"...postgres-fd-implementation.git" did not exist on "98f5efe774d56999a1ba753d5e1f71a3a22cb549"
configure 129 KB
Newer Older
1 2 3
#! /bin/sh

# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.12 
5 6 7 8 9 10 11 12 13
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.

# Defaults:
ac_help=
ac_default_prefix=/usr/local
# Any additions from configure.in:
14
ac_default_prefix=/usr/local/pgsql
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
53 54
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335

ac_prev=
for ac_option
do

  # If the previous option needs an argument, assign it.
  if test -n "$ac_prev"; then
    eval "$ac_prev=\$ac_option"
    ac_prev=
    continue
  fi

  case "$ac_option" in
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

  # Accept the important Cygnus configure options, so we can diagnose typos.

  case "$ac_option" in

  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    ac_prev=bindir ;;
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    bindir="$ac_optarg" ;;

  -build | --build | --buil | --bui | --bu)
    ac_prev=build ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build="$ac_optarg" ;;

  -cache-file | --cache-file | --cache-fil | --cache-fi \
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    ac_prev=cache_file ;;
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    cache_file="$ac_optarg" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    eval "enable_${ac_feature}=no" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
    fi
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "enable_${ac_feature}='$ac_optarg'" ;;

  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  | --exec | --exe | --ex)
    ac_prev=exec_prefix ;;
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  | --exec=* | --exe=* | --ex=*)
    exec_prefix="$ac_optarg" ;;

  -gas | --gas | --ga | --g)
    # Obsolete; use --with-gas.
    with_gas=yes ;;

  -help | --help | --hel | --he)
    # Omit some internal or obsolete options to make the list less imposing.
    # This message is too long to be a string in the A/UX 3.1 sh.
    cat << EOF
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print \`checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [$ac_default_prefix]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
EOF
    cat << EOF
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
EOF
    if test -n "$ac_help"; then
      echo "--enable and --with options recognized:$ac_help"
    fi
    exit 0 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$ac_optarg" ;;

  -includedir | --includedir | --includedi | --included | --include \
  | --includ | --inclu | --incl | --inc)
    ac_prev=includedir ;;
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  | --includ=* | --inclu=* | --incl=* | --inc=*)
    includedir="$ac_optarg" ;;

  -infodir | --infodir | --infodi | --infod | --info | --inf)
    ac_prev=infodir ;;
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
    infodir="$ac_optarg" ;;

  -libdir | --libdir | --libdi | --libd)
    ac_prev=libdir ;;
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
    libdir="$ac_optarg" ;;

  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  | --libexe | --libex | --libe)
    ac_prev=libexecdir ;;
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  | --libexe=* | --libex=* | --libe=*)
    libexecdir="$ac_optarg" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    localstatedir="$ac_optarg" ;;

  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
    ac_prev=mandir ;;
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
    mandir="$ac_optarg" ;;

  -nfp | --nfp | --nf)
    # Obsolete; use --without-fp.
    with_fp=no ;;

  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c)
    no_create=yes ;;

  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
    no_recursion=yes ;;

  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  | --oldin | --oldi | --old | --ol | --o)
    ac_prev=oldincludedir ;;
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
    oldincludedir="$ac_optarg" ;;

  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
    ac_prev=prefix ;;
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
    prefix="$ac_optarg" ;;

  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  | --program-pre | --program-pr | --program-p)
    ac_prev=program_prefix ;;
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
    program_prefix="$ac_optarg" ;;

  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  | --program-suf | --program-su | --program-s)
    ac_prev=program_suffix ;;
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
    program_suffix="$ac_optarg" ;;

  -program-transform-name | --program-transform-name \
  | --program-transform-nam | --program-transform-na \
  | --program-transform-n | --program-transform- \
  | --program-transform | --program-transfor \
  | --program-transfo | --program-transf \
  | --program-trans | --program-tran \
  | --progr-tra | --program-tr | --program-t)
    ac_prev=program_transform_name ;;
  -program-transform-name=* | --program-transform-name=* \
  | --program-transform-nam=* | --program-transform-na=* \
  | --program-transform-n=* | --program-transform-=* \
  | --program-transform=* | --program-transfor=* \
  | --program-transfo=* | --program-transf=* \
  | --program-trans=* | --program-tran=* \
  | --progr-tra=* | --program-tr=* | --program-t=*)
    program_transform_name="$ac_optarg" ;;

  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  | -silent | --silent | --silen | --sile | --sil)
    silent=yes ;;

  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
    ac_prev=sbindir ;;
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  | --sbi=* | --sb=*)
    sbindir="$ac_optarg" ;;

  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  | --sharedst | --shareds | --shared | --share | --shar \
  | --sha | --sh)
    ac_prev=sharedstatedir ;;
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  | --sha=* | --sh=*)
    sharedstatedir="$ac_optarg" ;;

  -site | --site | --sit)
    ac_prev=site ;;
  -site=* | --site=* | --sit=*)
    site="$ac_optarg" ;;

  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
    ac_prev=srcdir ;;
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
    srcdir="$ac_optarg" ;;

  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  | --syscon | --sysco | --sysc | --sys | --sy)
    ac_prev=sysconfdir ;;
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
    sysconfdir="$ac_optarg" ;;

  -target | --target | --targe | --targ | --tar | --ta | --t)
    ac_prev=target ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

  -v | -verbose | --verbose | --verbos | --verbo | --verb)
    verbose=yes ;;

  -version | --version | --versio | --versi | --vers)
336
    echo "configure generated by autoconf version 2.12"
337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    case "$ac_option" in
      *=*) ;;
      *) ac_optarg=yes ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
    fi
    ac_package=`echo $ac_package| sed 's/-/_/g'`
    eval "with_${ac_package}=no" ;;

  --x)
    # Obsolete; use --with-x.
    with_x=yes ;;

  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  | --x-incl | --x-inc | --x-in | --x-i)
    ac_prev=x_includes ;;
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
    x_includes="$ac_optarg" ;;

  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
    ac_prev=x_libraries ;;
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
    x_libraries="$ac_optarg" ;;

  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;

  *)
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
      echo "configure: warning: $ac_option: invalid host type" 1>&2
    fi
    if test "x$nonopt" != xNONE; then
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
    fi
    nonopt="$ac_option"
    ;;

  esac
done

if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

# File descriptor usage:
# 0 standard input
# 1 file creation
# 2 errors and warnings
# 3 some systems may open it to /dev/tty
# 4 used on the Kubota Titan
# 6 checking for... messages and results
# 5 compiler messages saved in config.log
if test "$silent" = yes; then
  exec 6>/dev/null
else
  exec 6>&1
fi
exec 5>./config.log

echo "\
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
" 1>&5

# Strip out --no-create and --no-recursion so they do not pile up.
# Also quote any args containing shell metacharacters.
ac_configure_args=
for ac_arg
do
  case "$ac_arg" in
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  | --no-cr | --no-c) ;;
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
done

# NLS nuisances.
438 439 440 441
# Only set these to C if already set.  These must not be set unconditionally
# because not all systems understand e.g. LANG=C (notably SCO).
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
# Non-C LC_CTYPE values break the ctype check.
442
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
443 444 445
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506

# confdefs.h avoids OS command line length limits that DEFS can exceed.
rm -rf conftest* confdefs.h
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
echo > confdefs.h

# A filename unique to this package, relative to the directory that
# configure is in, which we can look for to find out if srcdir is correct.
ac_unique_file=backend/access/common/heaptuple.c

# Find the source files, if location was not specified.
if test -z "$srcdir"; then
  ac_srcdir_defaulted=yes
  # Try the directory containing this script, then its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  srcdir=$ac_confdir
  if test ! -r $srcdir/$ac_unique_file; then
    srcdir=..
  fi
else
  ac_srcdir_defaulted=no
fi
if test ! -r $srcdir/$ac_unique_file; then
  if test "$ac_srcdir_defaulted" = yes; then
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  else
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  fi
fi
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`

# Prefer explicitly selected file to automatically selected ones.
if test -z "$CONFIG_SITE"; then
  if test "x$prefix" != xNONE; then
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  else
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  fi
fi
for ac_site_file in $CONFIG_SITE; do
  if test -r "$ac_site_file"; then
    echo "loading site script $ac_site_file"
    . "$ac_site_file"
  fi
done

if test -r "$cache_file"; then
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507
cross_compiling=$ac_cv_prog_cc_cross
508 509 510 511 512 513 514 515 516 517 518 519 520 521

if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
    ac_n= ac_c='
' ac_t='	'
  else
    ac_n=-n ac_c= ac_t=
  fi
else
  ac_n= ac_c='\c' ac_t=
fi


522 523


524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549
ac_aux_dir=
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  if test -f $ac_dir/install-sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
  elif test -f $ac_dir/install.sh; then
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
ac_config_guess=$ac_aux_dir/config.guess
ac_config_sub=$ac_aux_dir/config.sub
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.


# Make sure we can run config.sub.
if $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
550
echo "configure:551: checking host system type" >&5
551 552 553 554 555 556 557 558 559 560 561 562 563 564

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`$ac_config_guess`; then :
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
    fi ;;
  *) host_alias=$nonopt ;;
  esac ;;
esac

host=`$ac_config_sub $host_alias`
565 566 567
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
568 569
echo "$ac_t""$host" 1>&6

570

571
tas_file=dummy.s
572
case "$host_os" in
573 574
 solaris*)
        case "$host_cpu" in
575 576
          sparc) os=sparc_solaris need_tas=yes tas_file=sparc_solaris.s ;;
           i386) os=i386_solaris need_tas=yes tas_file=i386_solaris ;;
577
        esac ;;
578 579 580 581 582 583 584 585 586 587
   sunos*) os=sunos4 need_tas=no ;;
     aux*) os=aux need_tas=no ;;
   linux*) os=linux need_tas=no ;;
    bsdi*) os=bsdi need_tas=no ;;
 freebsd*|netbsd*|openbsd*) os=bsd need_tas=no ;;
    dgux*) os=dgux need_tas=no ;;
     aix*) os=aix need_tas=no ;;
nextstep*) os=nextstep need_tas=no ;;
  ultrix*) os=ultrix4 need_tas=no ;;
    irix*) os=irix5 need_tas=no ;;
588
    hpux*) os=hpux need_tas=yes tas_file=hpux.s ;;
589 590 591 592
     osf*) os=alpha need_tas=no ;;
     sco*) os=sco need_tas=no ;;
 machten*) os=machten need_tas=no ;;
  cygwin*) os=win need_tas=no ;;
593 594
 sysv4.2*) 
       case "$host_vendor" in
595 596
               univel) os=univel need_tas=no ;;
                    *) os=unknown need_tas=no ;;
597
       esac ;;
598
   sysv4*) os=svr4 need_tas=no ;;
599 600 601 602
*) echo ""
   echo "*************************************************************"
   echo "configure does not currently recognize your operating system,"
   echo "therefore you must do a manual configuration of:"
603
   echo "$host_os"
604 605 606 607 608 609 610
   echo "Please contact scrappy@hub.org to see about rectifying this, "
   echo "including the above 'checking host system type...' line "
   echo "*************************************************************"
   echo ""
   exit;;
esac

611
if test "X$need_tas" = "Xyes"
612 613 614 615 616
then
	
	TAS=tas.o
	 
fi
617

618
PORTNAME=${os}
619 620


621 622 623 624 625

 



626 627 628 629 630 631 632 633 634 635 636 637
echo "checking echo setting..."
if echo '\c' | grep -s c >/dev/null 2>&1
then
	ECHO_N="echo -n"
	ECHO_C=""
else
	ECHO_N="echo"
	ECHO_C='\c'
fi

cat <<EOT
**************************************************************
Bruce Momjian's avatar
Bruce Momjian committed
638
	PostreSQL v6.2 Installation Program
639 640

Welcome to the new improved PostgreSQL installation program.
Bruce Momjian's avatar
Bruce Momjian committed
641
This configuration program is for version 6.2 of the
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663
PostgreSQL software.

EOT


if test "X$with_template" != "X"
then
	TEMPLATE=template/$with_template
else
	TEMPLATE=DO_NOT_CHANGE_THIS_INVALID_FILENAME
fi

if test ! -f $TEMPLATE
then
	cat <<EOT
Please select a template from the ones listed below.  If no
template is available, then select the 'generic' one and
consider emailling scrappy@hub.org with the above line which
starts 'checking host system type...'
**************************************************************
EOT
	TEMPLATE=generic
Bruce Momjian's avatar
Bruce Momjian committed
664
	GUESS=`grep "$host" template/.similar 2>/dev/null`
Bruce Momjian's avatar
Bruce Momjian committed
665
	if test ! "$GUESS"
Bruce Momjian's avatar
Bruce Momjian committed
666 667
	then	host_no_ver=`echo "$host" | sed 's/[0-9.]*$//'`
		GUESS=`grep "$host_no_ver" template/.similar 2>/dev/null`
668
	fi
Bruce Momjian's avatar
Bruce Momjian committed
669
	if test "$GUESS"
670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686
	then
		TEMPLATE=`echo $GUESS | sed 's/.*=//'`
	fi
	export TEMPLATE
	ls template
	echo "**************************************************************"
	$ECHO_N "Appropriate template file { $TEMPLATE }: $ECHO_C"
	read a
	if test "$a." != "."
	then
		TEMPLATE=$a
	fi
	if test ! -f template/$TEMPLATE
	then
		echo "You must choose an appropriate template file."
		exit
	fi
687
	TEMPLATE=template/$TEMPLATE 
688
fi
689 690
export TEMPLATE
echo ""
691

692 693 694 695 696 697 698 699 700 701 702
AROPT=`grep '^AROPT:' $TEMPLATE | awk -F: '{print $2}'`
SHARED_LIB=`grep '^SHARED_LIB:' $TEMPLATE | awk -F: '{print $2}'`
CFLAGS=`grep '^CFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
SRCH_INC=`grep '^SRCH_INC:' $TEMPLATE | awk -F: '{print $2}'`
SRCH_LIB=`grep '^SRCH_LIB:' $TEMPLATE | awk -F: '{print $2}'`
USE_LOCALE=`grep '^USE_LOCALE:' $TEMPLATE | awk -F: '{print $2}'`
DLSUFFIX=`grep '^DLSUFFIX:' $TEMPLATE | awk -F: '{print $2}'`
DL_LIB=`grep '^DL_LIB:' $TEMPLATE | awk -F: '{print $2}'`
YACC=`grep '^YACC:' $TEMPLATE | awk -F: '{print $2}'`
YFLAGS=`grep '^YFLAGS:' $TEMPLATE | awk -F: '{print $2}'`
CC=`grep '^CC:' $TEMPLATE | awk -F: '{print $2}'`
703
LIBS=`grep '^LIBS:' $TEMPLATE | awk -F: '{print $2}'`
704 705 706 707 708 709 710 711 712


echo "**************************************************************"
echo "We now need to know if your compiler needs to search any
echo "additional directories for include or library files.  If
echo "you don't know the answers to these questions, then just
echo "hit enter and we will try and figure it out.  If things
echo "don't compile because of missing libraries or include
echo "files, then you probably need to enter something here.
713
echo "enter 'none' or new directories to override default"
714
echo ""
715
$ECHO_N "Additional directories to search for include files { $SRCH_INC }: $ECHO_C"
716 717 718 719 720 721 722
if test "X$with_defaults" = "Xyes"
then
	a=$SRCH_INC
	echo ""
else
	read a
fi
723
if test "$a." = "none." 
724 725 726
then
	SRCH_INC=
	CPPFLAGS=
727 728 729 730 731 732 733
else
	if test "$a." = "."
	then
		a=$SRCH_INC
	fi
	CPPFLAGS=`echo "$a" | sed 's@  *@ @g; s@^\([^ ]\)@-I\1@; s@ \([^ ]\)@ -I\1@g'`

734
fi
735
export CPPFLAGS
736
echo "- setting CPPFLAGS=$CPPFLAGS"
737

738
$ECHO_N "Additional directories to search for library files { $SRCH_LIB }: $ECHO_C"
739 740 741 742 743 744 745
if test "X$with_defaults" = "Xyes"
then
	a=$SRCH_LIB
	echo ""
else
	read a
fi
746
if test "$a." = "none."
747 748 749
then
	SRCH_LIB=
	LDFLAGS=
750 751 752 753 754 755 756
else
	if test "$a." = "."
	then
		a=$SRCH_LIB
	fi
	LDFLAGS=`echo "$a" | sed 's@  *@ @g; s@^\([^ ]\)@-L\1@; s@ \([^ ]\)@ -L\1@g'`

757
fi
758
export LDFLAGS
759
echo "- setting LDFLAGS=$LDFLAGS"
760 761 762 763 764

if test "$enable_locale" = "yes" -o "$enable_locale" = "no"
then
	USE_LOCALE=$enable_locale
else
765
	USE_LOCALE=no
766 767 768 769 770 771 772
fi
export USE_LOCALE

if test "X$with_pgport" != "X"
then
	DEF_PGPORT=$with_pgport
else
773
	DEF_PGPORT=5432
774 775 776
fi
export DEF_PGPORT

777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792
if test "X$with_tcl" = "Xyes"
then
	USE_TCL=true
else
	USE_TCL=
fi
export USE_TCL

if test "X$with_perl" = "Xyes"
then
	USE_PERL=true
else
	USE_PERL=
fi
export USE_PERL

793
echo ""
794

795 796
if test "$enable_cassert" = "no"
then
797
	echo "-ASSERT CHECKING disabled"
798 799 800 801 802 803
        cat >> confdefs.h <<\EOF
#define NO_ASSERT_CHECKING 1
EOF

elif test "$enable_cassert" = "yes"
then
804 805 806 807
	echo "-ASSERT CHECKING enabled"
else
	echo "-ASSERT CHECKING disabled"
	cat >> confdefs.h <<\EOF
808 809 810 811 812
#define NO_ASSERT_CHECKING 1
EOF

fi

813 814 815 816 817
if test "X$with_compiler" != "X"
then
        CC=$with_compiler
else
        # Extract the first word of "gcc", so it can be a program name with args.
818 819
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
820
echo "configure:821: checking for $ac_word" >&5
821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -z "$CC"; then
  # Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
849
echo "configure:850: checking for $ac_word" >&5
850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  ac_prog_rejected=no
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
        ac_prog_rejected=yes
	continue
      fi
      ac_cv_prog_CC="cc"
      break
    fi
  done
  IFS="$ac_save_ifs"
if test $ac_prog_rejected = yes; then
  # We found a bogon in the path, so make sure we never use it.
  set dummy $ac_cv_prog_CC
  shift
  if test $# -gt 0; then
    # We chose a different compiler from the bogus one.
    # However, it has the same basename, so the bogon will be chosen
    # first if we set CC to just the basename; use the full file name.
    shift
    set dummy "$ac_dir/$ac_word" "$@"
    shift
    ac_cv_prog_CC="$@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

896
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
897
echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
898 899 900 901 902 903 904 905 906

ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CPP $CPPFLAGS'
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
907
#line 908 "configure"
908 909 910
#include "confdefs.h"
main(){return(0);}
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
911
if { (eval echo configure:912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930
  ac_cv_prog_cc_works=yes
  # If we can't run a trivial program, we are probably using a cross compiler.
  if (./conftest; exit) 2>/dev/null; then
    ac_cv_prog_cc_cross=no
  else
    ac_cv_prog_cc_cross=yes
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
if test $ac_cv_prog_cc_works = no; then
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
931
echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
932 933 934
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross

935
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
936
echo "configure:937: checking whether we are using GNU C" >&5
937 938 939 940 941 942 943 944
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.c <<EOF
#ifdef __GNUC__
  yes;
#endif
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
945
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
946 947 948 949 950 951 952
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi

echo "$ac_t""$ac_cv_prog_gcc" 1>&6
953

954 955
if test $ac_cv_prog_gcc = yes; then
  GCC=yes
956 957 958 959
  ac_test_CFLAGS="${CFLAGS+set}"
  ac_save_CFLAGS="$CFLAGS"
  CFLAGS=
  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
960
echo "configure:961: checking whether ${CC-cc} accepts -g" >&5
961
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
962 963 964 965
  echo $ac_n "(cached) $ac_c" 1>&6
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
966
  ac_cv_prog_cc_g=yes
967
else
968
  ac_cv_prog_cc_g=no
969 970 971 972 973
fi
rm -f conftest*

fi

974 975 976 977 978 979 980
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
981 982 983 984 985 986
  fi
else
  GCC=
  test "${CFLAGS+set}" = set || CFLAGS="-g"
fi

987 988 989 990 991
fi




992
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
993
echo "configure:994: checking how to run the C preprocessor" >&5
994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # This must be in double quotes, not single quotes, because CPP may get
  # substituted into the Makefile and "${CC-cc}" will confuse make.
  CPP="${CC-cc} -E"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1008
#line 1009 "configure"
1009 1010 1011 1012 1013
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marc G. Fournier's avatar
Marc G. Fournier committed
1014
{ (eval echo configure:1015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1015 1016 1017 1018 1019
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
1020 1021
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1022 1023 1024
  rm -rf conftest*
  CPP="${CC-cc} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1025
#line 1026 "configure"
1026 1027 1028 1029 1030
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marc G. Fournier's avatar
Marc G. Fournier committed
1031
{ (eval echo configure:1032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1032 1033 1034 1035 1036
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  :
else
  echo "$ac_err" >&5
1037 1038
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053
  rm -rf conftest*
  CPP=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6


Marc G. Fournier's avatar
Marc G. Fournier committed
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064











1065 1066
HAVECXX='HAVE_Cplusplus=false'

1067
INSTALLPATH="/usr/ucb:$PATH"
1068
for ac_prog in ginstall installbsd bsdinst scoinst install
1069 1070 1071
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
1072
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1073
echo "configure:1074: checking for $ac_word" >&5
1074 1075 1076 1077 1078 1079 1080 1081 1082
if eval "test \"`echo '$''{'ac_cv_path_INSTALL'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$INSTALL" in
  /*)
  ac_cv_path_INSTALL="$INSTALL" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1083
  for ac_dir in $INSTALLPATH$ac_dummy; do
1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_INSTALL="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
INSTALL="$ac_cv_path_INSTALL"
if test -n "$INSTALL"; then
  echo "$ac_t""$INSTALL" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

1101 1102
test -n "$INSTALL" && break
done
1103
test -n "$INSTALL" || INSTALL="NONE"
1104

1105 1106 1107 1108
if test $INSTALL = "NONE"
then
   echo "- No Install Script found - aborting."
   exit 0;
1109 1110
fi

1111 1112 1113 1114
INSTLOPTS="-m 444"
INSTL_EXE_OPTS="-m 555"
INSTL_LIB_OPTS="-m 664"

1115
case "`basename $INSTALL`" in
1116
 install|installbsd|scoinst)
1117 1118
	INSTLOPTS="-c $INSTLOPTS"
	INSTL_EXE_OPTS="-c $INSTL_EXE_OPTS"
1119 1120
	INSTL_LIB_OPTS="-c $INSTL_LIB_OPTS";;
esac
1121

1122
echo "- Using $INSTALL"
1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135





ECHO_N_OUT=`echo -n "" | wc -c`
ECHO_C_OUT=`echo "\c" | wc -c`
if test "$ECHO_N_OUT" -eq 0; then
  DASH_N='-n'
  BACKSLASH_C=
else
  if test "ECHO_C_OUT" -eq 0; then
    DASH_N=
1136
    BACKSLASH_C='\\\\c'
1137 1138 1139 1140 1141 1142 1143 1144 1145 1146
  else
    { echo "configure: error: "echo behaviour undetermined"" 1>&2; exit 1; }
  fi
fi



# Extract the first word of "flex", so it can be a program name with args.
set dummy flex; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1147
echo "configure:1148: checking for $ac_word" >&5
1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$LEX"; then
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_LEX="flex"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
fi
fi
LEX="$ac_cv_prog_LEX"
if test -n "$LEX"; then
  echo "$ac_t""$LEX" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -z "$LEXLIB"
then
  case "$LEX" in
  flex*) ac_lib=fl ;;
  *) ac_lib=l ;;
  esac
1179
  echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1180
echo "configure:1181: checking for yywrap in -l$ac_lib" >&5
1181
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1182 1183 1184 1185 1186 1187
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-l$ac_lib  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1188
#line 1189 "configure"
1189 1190 1191 1192 1193 1194
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yywrap();

1195
int main() {
1196 1197 1198
yywrap()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1199
if { (eval echo configure:1200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1200 1201 1202
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1203 1204
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  LEXLIB="-l$ac_lib"
else
  echo "$ac_t""no" 1>&6
fi

fi

echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1222
echo "configure:1223: checking whether ln -s works" >&5
1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  ac_cv_prog_LN_S=ln
fi
fi
LN_S="$ac_cv_prog_LN_S"
if test "$ac_cv_prog_LN_S" = "ln -s"; then
  echo "$ac_t""yes" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1243
echo "configure:1244: checking whether ${MAKE-make} sets \${MAKE}" >&5
1244
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftestmake <<\EOF
all:
	@echo 'ac_maketemp="${MAKE}"'
EOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
if test -n "$ac_maketemp"; then
  eval ac_cv_prog_make_${ac_make}_set=yes
else
  eval ac_cv_prog_make_${ac_make}_set=no
fi
rm -f conftestmake
fi
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  SET_MAKE=
else
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1272
echo "configure:1273: checking for $ac_word" >&5
1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$RANLIB"; then
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
fi
fi
RANLIB="$ac_cv_prog_RANLIB"
if test -n "$RANLIB"; then
  echo "$ac_t""$RANLIB" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "find", so it can be a program name with args.
set dummy find; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1301
echo "configure:1302: checking for $ac_word" >&5
1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331
if eval "test \"`echo '$''{'ac_cv_path_find'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$find" in
  /*)
  ac_cv_path_find="$find" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_find="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
find="$ac_cv_path_find"
if test -n "$find"; then
  echo "$ac_t""$find" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "tar", so it can be a program name with args.
set dummy tar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1332
echo "configure:1333: checking for $ac_word" >&5
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362
if eval "test \"`echo '$''{'ac_cv_path_tar'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$tar" in
  /*)
  ac_cv_path_tar="$tar" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_tar="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
tar="$ac_cv_path_tar"
if test -n "$tar"; then
  echo "$ac_t""$tar" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "split", so it can be a program name with args.
set dummy split; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1363
echo "configure:1364: checking for $ac_word" >&5
1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393
if eval "test \"`echo '$''{'ac_cv_path_split'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$split" in
  /*)
  ac_cv_path_split="$split" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_split="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
split="$ac_cv_path_split"
if test -n "$split"; then
  echo "$ac_t""$split" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "etags", so it can be a program name with args.
set dummy etags; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1394
echo "configure:1395: checking for $ac_word" >&5
1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424
if eval "test \"`echo '$''{'ac_cv_path_etags'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$etags" in
  /*)
  ac_cv_path_etags="$etags" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_etags="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
etags="$ac_cv_path_etags"
if test -n "$etags"; then
  echo "$ac_t""$etags" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "xargs", so it can be a program name with args.
set dummy xargs; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1425
echo "configure:1426: checking for $ac_word" >&5
1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452
if eval "test \"`echo '$''{'ac_cv_path_xargs'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$xargs" in
  /*)
  ac_cv_path_xargs="$xargs" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_xargs="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
xargs="$ac_cv_path_xargs"
if test -n "$xargs"; then
  echo "$ac_t""$xargs" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

1453 1454
# Extract the first word of "ipcs", so it can be a program name with args.
set dummy ipcs; ac_word=$2
1455
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1456
echo "configure:1457: checking for $ac_word" >&5
1457
if eval "test \"`echo '$''{'ac_cv_path_ipcs'+set}'`\" = set"; then
1458 1459
  echo $ac_n "(cached) $ac_c" 1>&6
else
1460
  case "$ipcs" in
1461
  /*)
1462
  ac_cv_path_ipcs="$ipcs" # Let the user override the test with a path.
1463 1464 1465 1466 1467 1468
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
1469
      ac_cv_path_ipcs="$ac_dir/$ac_word"
1470 1471 1472 1473 1474 1475 1476
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
1477 1478 1479
ipcs="$ac_cv_path_ipcs"
if test -n "$ipcs"; then
  echo "$ac_t""$ipcs" 1>&6
1480 1481 1482 1483
else
  echo "$ac_t""no" 1>&6
fi

1484 1485
# Extract the first word of "ipcrm", so it can be a program name with args.
set dummy ipcrm; ac_word=$2
1486
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1487
echo "configure:1488: checking for $ac_word" >&5
1488
if eval "test \"`echo '$''{'ac_cv_path_ipcrm'+set}'`\" = set"; then
1489 1490
  echo $ac_n "(cached) $ac_c" 1>&6
else
1491
  case "$ipcrm" in
1492
  /*)
1493
  ac_cv_path_ipcrm="$ipcrm" # Let the user override the test with a path.
1494 1495 1496 1497 1498 1499
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
1500
      ac_cv_path_ipcrm="$ac_dir/$ac_word"
1501 1502 1503 1504 1505 1506 1507
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
1508 1509 1510
ipcrm="$ac_cv_path_ipcrm"
if test -n "$ipcrm"; then
  echo "$ac_t""$ipcrm" 1>&6
1511 1512 1513 1514
else
  echo "$ac_t""no" 1>&6
fi

1515
for ac_prog in trbsd tr
1516 1517 1518
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
1519
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1520
echo "configure:1521: checking for $ac_word" >&5
1521
if eval "test \"`echo '$''{'ac_cv_path_TR'+set}'`\" = set"; then
1522 1523
  echo $ac_n "(cached) $ac_c" 1>&6
else
1524
  case "$TR" in
1525
  /*)
1526
  ac_cv_path_TR="$TR" # Let the user override the test with a path.
1527 1528 1529 1530 1531 1532
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
1533
      ac_cv_path_TR="$ac_dir/$ac_word"
1534 1535 1536 1537 1538 1539 1540
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
1541 1542 1543
TR="$ac_cv_path_TR"
if test -n "$TR"; then
  echo "$ac_t""$TR" 1>&6
1544 1545 1546 1547
else
  echo "$ac_t""no" 1>&6
fi

1548 1549 1550 1551
test -n "$TR" && break
done
test -n "$TR" || TR="NOT_FOUND"

1552

Bruce Momjian's avatar
Bruce Momjian committed
1553 1554
TRSTRINGS="`echo ABCdef | $TR '[a-z]' '[A-Z]' 2>/dev/null | grep ABCDEF`"
TRCLASS="`echo ABCdef | $TR '[:lower:]' '[:upper:]' 2>/dev/null | grep ABCDEF`"
1555 1556

if test "$TRSTRINGS" = "ABCDEF"; then
1557
  TRARGS="'[a-z]' '[A-Z]'"
1558
elif test "$TRCLASS" = "ABCDEF"; then
Bruce Momjian's avatar
Bruce Momjian committed
1559
  TRARGS="'[:lower:]' '[:upper:]'"
1560 1561 1562 1563 1564
else
  { echo "configure: error: "Can\'t find method to covert from upper to lower case with tr"" 1>&2; exit 1; }
fi


1565 1566 1567 1568 1569 1570



# Extract the first word of "yacc", so it can be a program name with args.
set dummy yacc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1571
echo "configure:1572: checking for $ac_word" >&5
1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601
if eval "test \"`echo '$''{'ac_cv_path_yacc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$yacc" in
  /*)
  ac_cv_path_yacc="$yacc" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_yacc="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
yacc="$ac_cv_path_yacc"
if test -n "$yacc"; then
  echo "$ac_t""$yacc" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

# Extract the first word of "bison", so it can be a program name with args.
set dummy bison; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1602
echo "configure:1603: checking for $ac_word" >&5
1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644
if eval "test \"`echo '$''{'ac_cv_path_bison'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  case "$bison" in
  /*)
  ac_cv_path_bison="$bison" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_bison="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
  ;;
esac
fi
bison="$ac_cv_path_bison"
if test -n "$bison"; then
  echo "$ac_t""$bison" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

if test -f "$YACC" 
then
	echo "- Using $YACC $YFLAGS"
elif test -f "$bison"
then
	echo "- Using $bison -y $YFLAGS"
	YACC="$bison"
	YFLAGS="-y $YFLAGS"
	export YACC YFLAGS
else
	echo "- Using $yacc $YFLAGS"
	YACC="$yacc"
	export YACC
fi

1645
echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1646
echo "configure:1647: checking for main in -lcurses" >&5
1647
ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1648 1649 1650 1651
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1652
LIBS="-lcurses  $LIBS"
1653
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1654
#line 1655 "configure"
1655 1656
#include "confdefs.h"

1657
int main() {
1658 1659 1660
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1661
if { (eval echo configure:1662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1662 1663 1664
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1665 1666
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1667 1668 1669 1670 1671 1672 1673 1674 1675
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1676 1677
    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1678 1679 1680 1681
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

1682
  LIBS="-lcurses $LIBS"
1683 1684 1685 1686 1687

else
  echo "$ac_t""no" 1>&6
fi

1688
echo $ac_n "checking for main in -ltermcap""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1689
echo "configure:1690: checking for main in -ltermcap" >&5
1690
ac_lib_var=`echo termcap'_'main | sed 'y%./+-%__p_%'`
1691 1692 1693 1694
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1695
LIBS="-ltermcap  $LIBS"
1696
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1697
#line 1698 "configure"
1698 1699
#include "confdefs.h"

1700
int main() {
1701
main()
1702 1703
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1704
if { (eval echo configure:1705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1705 1706 1707
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1708 1709
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1710 1711 1712 1713 1714 1715 1716 1717 1718
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1719 1720
    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1721 1722
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
1723 1724
EOF

1725 1726
  LIBS="-ltermcap $LIBS"

1727 1728 1729 1730
else
  echo "$ac_t""no" 1>&6
fi

1731
echo $ac_n "checking for main in -lhistory""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1732
echo "configure:1733: checking for main in -lhistory" >&5
1733
ac_lib_var=`echo history'_'main | sed 'y%./+-%__p_%'`
1734 1735 1736 1737 1738 1739
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lhistory  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1740
#line 1741 "configure"
1741 1742
#include "confdefs.h"

1743
int main() {
1744 1745 1746
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1747
if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1748 1749 1750
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1751 1752
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1753 1754 1755 1756 1757 1758 1759 1760 1761
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1762 1763
    ac_tr_lib=HAVE_LIB`echo history | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1764 1765 1766 1767 1768 1769 1770 1771 1772 1773
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lhistory $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

1774
echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1775
echo "configure:1776: checking for main in -lreadline" >&5
1776
ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
1777 1778 1779 1780
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1781
LIBS="-lreadline  $LIBS"
1782
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1783
#line 1784 "configure"
1784 1785
#include "confdefs.h"

1786
int main() {
1787 1788 1789
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1790
if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1791 1792 1793
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1794 1795
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1796 1797 1798 1799 1800 1801 1802 1803 1804
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1805 1806
    ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1807 1808 1809 1810
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

1811
  LIBS="-lreadline $LIBS"
1812 1813 1814 1815 1816

else
  echo "$ac_t""no" 1>&6
fi

1817
echo $ac_n "checking for write_history in -lreadline""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1818
echo "configure:1819: checking for write_history in -lreadline" >&5
1819
ac_lib_var=`echo readline'_'write_history | sed 'y%./+-%__p_%'`
1820 1821 1822 1823
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1824
LIBS="-lreadline  $LIBS"
1825
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1826
#line 1827 "configure"
1827
#include "confdefs.h"
1828 1829 1830 1831
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char write_history();
1832

1833
int main() {
1834
write_history()
1835 1836
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1837
if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1838 1839 1840
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1841 1842
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1843 1844 1845 1846 1847 1848 1849 1850 1851
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1852 1853
  cat >> confdefs.h <<\EOF
#define HAVE_HISTORY 1
1854 1855 1856 1857 1858 1859
EOF

else
  echo "$ac_t""no" 1>&6
fi

1860 1861 1862
if test "$PORTNAME" != "aix"
then
	echo $ac_n "checking for main in -lbsd""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1863
echo "configure:1864: checking for main in -lbsd" >&5
1864
ac_lib_var=`echo bsd'_'main | sed 'y%./+-%__p_%'`
1865 1866 1867 1868
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1869
LIBS="-lbsd  $LIBS"
1870
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1871
#line 1872 "configure"
1872 1873
#include "confdefs.h"

1874
int main() {
1875 1876 1877
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1878
if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1879 1880 1881
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1882 1883
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1884 1885 1886 1887 1888 1889 1890 1891 1892
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1893
    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1894
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1895 1896 1897 1898
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

1899
  LIBS="-lbsd $LIBS"
1900 1901 1902 1903 1904

else
  echo "$ac_t""no" 1>&6
fi

1905
fi
1906
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1907
echo "configure:1908: checking for main in -lm" >&5
1908
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1909 1910 1911 1912
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1913
LIBS="-lm  $LIBS"
1914
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1915
#line 1916 "configure"
1916 1917
#include "confdefs.h"

1918
int main() {
1919 1920 1921
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1922
if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1923 1924 1925
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1926 1927
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1928 1929 1930 1931 1932 1933 1934 1935 1936
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1937
    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1938
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1939 1940 1941 1942
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

1943
  LIBS="-lm $LIBS"
1944 1945 1946 1947 1948

else
  echo "$ac_t""no" 1>&6
fi

1949
echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1950
echo "configure:1951: checking for main in -ldl" >&5
1951
ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'`
1952 1953 1954 1955
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1956
LIBS="-ldl  $LIBS"
1957
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1958
#line 1959 "configure"
1959 1960
#include "confdefs.h"

1961
int main() {
1962 1963 1964
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
1965
if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1966 1967 1968
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
1969 1970
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
1971 1972 1973 1974 1975 1976 1977 1978 1979
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
1980
    ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1981
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1982 1983 1984 1985
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

1986
  LIBS="-ldl $LIBS"
1987 1988 1989 1990 1991

else
  echo "$ac_t""no" 1>&6
fi

1992
echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
1993
echo "configure:1994: checking for main in -lsocket" >&5
1994
ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1995 1996 1997 1998
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
1999
LIBS="-lsocket  $LIBS"
2000
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2001
#line 2002 "configure"
2002 2003
#include "confdefs.h"

2004
int main() {
2005 2006 2007
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2008
if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2009 2010 2011
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2012 2013
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2014 2015 2016 2017 2018 2019 2020 2021 2022
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2023
    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2024
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2025 2026 2027 2028
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

2029
  LIBS="-lsocket $LIBS"
2030 2031 2032 2033 2034

else
  echo "$ac_t""no" 1>&6
fi

2035
echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2036
echo "configure:2037: checking for main in -lnsl" >&5
2037
ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2038 2039 2040 2041
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
2042
LIBS="-lnsl  $LIBS"
2043
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2044
#line 2045 "configure"
2045 2046
#include "confdefs.h"

2047
int main() {
2048 2049 2050
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2051
if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2052 2053 2054
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2055 2056
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2057 2058 2059 2060 2061 2062 2063 2064 2065
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2066
    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2067
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2068 2069 2070 2071
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

2072
  LIBS="-lnsl $LIBS"
2073 2074 2075 2076 2077

else
  echo "$ac_t""no" 1>&6
fi

2078
echo $ac_n "checking for main in -lipc""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2079
echo "configure:2080: checking for main in -lipc" >&5
2080
ac_lib_var=`echo ipc'_'main | sed 'y%./+-%__p_%'`
2081 2082 2083 2084
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
2085
LIBS="-lipc  $LIBS"
2086
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2087
#line 2088 "configure"
2088 2089
#include "confdefs.h"

2090
int main() {
2091 2092 2093
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2094
if { (eval echo configure:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2095 2096 2097
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2098 2099
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2100 2101 2102 2103 2104 2105 2106 2107 2108
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2109
    ac_tr_lib=HAVE_LIB`echo ipc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2110
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2111 2112 2113 2114
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

2115
  LIBS="-lipc $LIBS"
2116 2117 2118 2119 2120

else
  echo "$ac_t""no" 1>&6
fi

2121
echo $ac_n "checking for main in -lIPC""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2122
echo "configure:2123: checking for main in -lIPC" >&5
2123
ac_lib_var=`echo IPC'_'main | sed 'y%./+-%__p_%'`
2124 2125 2126 2127
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
2128
LIBS="-lIPC  $LIBS"
2129
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2130
#line 2131 "configure"
2131 2132
#include "confdefs.h"

2133
int main() {
2134 2135 2136
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2137
if { (eval echo configure:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2138 2139 2140
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2141 2142
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2143 2144 2145 2146 2147 2148 2149 2150 2151
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2152
    ac_tr_lib=HAVE_LIB`echo IPC | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2153
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2154 2155 2156 2157
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

2158
  LIBS="-lIPC $LIBS"
2159 2160 2161 2162 2163

else
  echo "$ac_t""no" 1>&6
fi

2164
echo $ac_n "checking for main in -llc""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2165
echo "configure:2166: checking for main in -llc" >&5
2166
ac_lib_var=`echo lc'_'main | sed 'y%./+-%__p_%'`
2167 2168 2169 2170
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
2171
LIBS="-llc  $LIBS"
2172
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2173
#line 2174 "configure"
2174 2175
#include "confdefs.h"

2176
int main() {
2177 2178 2179
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2180
if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2181 2182 2183
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2184 2185
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2186 2187 2188 2189 2190 2191 2192 2193 2194
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2195
    ac_tr_lib=HAVE_LIB`echo lc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2196
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2197 2198 2199 2200
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

2201
  LIBS="-llc $LIBS"
2202 2203 2204 2205 2206

else
  echo "$ac_t""no" 1>&6
fi

2207
echo $ac_n "checking for main in -ldld""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2208
echo "configure:2209: checking for main in -ldld" >&5
2209
ac_lib_var=`echo dld'_'main | sed 'y%./+-%__p_%'`
2210 2211 2212 2213
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
2214
LIBS="-ldld  $LIBS"
2215
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2216
#line 2217 "configure"
2217 2218
#include "confdefs.h"

2219
int main() {
2220 2221 2222
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2223
if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2224 2225 2226
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2227 2228
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2229 2230 2231 2232 2233 2234 2235 2236 2237
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2238
    ac_tr_lib=HAVE_LIB`echo dld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2239
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2240 2241 2242 2243
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

2244
  LIBS="-ldld $LIBS"
2245 2246 2247 2248 2249

else
  echo "$ac_t""no" 1>&6
fi

2250
echo $ac_n "checking for main in -lln""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2251
echo "configure:2252: checking for main in -lln" >&5
2252
ac_lib_var=`echo ln'_'main | sed 'y%./+-%__p_%'`
2253 2254 2255 2256
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
2257
LIBS="-lln  $LIBS"
2258
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2259
#line 2260 "configure"
2260 2261
#include "confdefs.h"

2262
int main() {
2263 2264 2265
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2266
if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2267 2268 2269
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2270 2271
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2272 2273 2274 2275 2276 2277 2278 2279 2280
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2281
    ac_tr_lib=HAVE_LIB`echo ln | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2282
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2283 2284 2285 2286
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

2287
  LIBS="-lln $LIBS"
2288 2289 2290 2291 2292

else
  echo "$ac_t""no" 1>&6
fi

2293
echo $ac_n "checking for main in -lld""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2294
echo "configure:2295: checking for main in -lld" >&5
2295
ac_lib_var=`echo ld'_'main | sed 'y%./+-%__p_%'`
2296 2297 2298 2299 2300 2301
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lld  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2302
#line 2303 "configure"
2303 2304
#include "confdefs.h"

2305
int main() {
2306 2307 2308
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2309
if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2310 2311 2312
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2313 2314
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2315 2316 2317 2318 2319 2320 2321 2322 2323
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2324 2325
    ac_tr_lib=HAVE_LIB`echo ld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2326 2327 2328 2329 2330 2331 2332 2333 2334 2335
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lld $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

2336
echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2337
echo "configure:2338: checking for main in -lcompat" >&5
2338
ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
2339 2340 2341 2342 2343 2344
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcompat  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2345
#line 2346 "configure"
2346 2347
#include "confdefs.h"

2348
int main() {
2349 2350 2351
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2352
if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2353 2354 2355
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2356 2357
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2358 2359 2360 2361 2362 2363 2364 2365 2366
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2367 2368
    ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2369 2370 2371 2372 2373 2374 2375 2376 2377 2378
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lcompat $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

2379
echo $ac_n "checking for main in -lBSD""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2380
echo "configure:2381: checking for main in -lBSD" >&5
2381
ac_lib_var=`echo BSD'_'main | sed 'y%./+-%__p_%'`
2382 2383 2384 2385 2386 2387
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lBSD  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2388
#line 2389 "configure"
2389 2390
#include "confdefs.h"

2391
int main() {
2392 2393 2394
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2395
if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2396 2397 2398
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2399 2400
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2401 2402 2403 2404 2405 2406 2407 2408 2409
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2410 2411
    ac_tr_lib=HAVE_LIB`echo BSD | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2412 2413 2414 2415 2416 2417 2418 2419 2420 2421
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lBSD $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

2422
echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2423
echo "configure:2424: checking for main in -lcrypt" >&5
2424
ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2425 2426 2427 2428 2429 2430
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lcrypt  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2431
#line 2432 "configure"
2432 2433
#include "confdefs.h"

2434
int main() {
2435 2436 2437
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2438
if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2439 2440 2441
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
2442 2443
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2444 2445 2446 2447 2448 2449 2450 2451 2452
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2453 2454
    ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2455 2456 2457 2458 2459 2460 2461 2462 2463 2464
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lcrypt $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

2465
echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2466
echo "configure:2467: checking for main in -lgen" >&5
2467 2468 2469 2470 2471 2472 2473
ac_lib_var=`echo gen'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lgen  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2474
#line 2475 "configure"
2475 2476 2477 2478 2479 2480
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2481
if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lgen $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

2508
echo $ac_n "checking for main in -lPW""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2509
echo "configure:2510: checking for main in -lPW" >&5
2510 2511 2512 2513 2514 2515 2516
ac_lib_var=`echo PW'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lPW  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2517
#line 2518 "configure"
2518 2519 2520 2521 2522 2523
#include "confdefs.h"

int main() {
main()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2524
if { (eval echo configure:2525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_lib=HAVE_LIB`echo PW | sed -e 's/[^a-zA-Z0-9_]/_/g' \
    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

  LIBS="-lPW $LIBS"

else
  echo "$ac_t""no" 1>&6
fi

2551

2552
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2553
echo "configure:2554: checking for ANSI C header files" >&5
2554 2555 2556 2557
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2558
#line 2559 "configure"
2559 2560 2561 2562 2563 2564 2565
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marc G. Fournier's avatar
Marc G. Fournier committed
2566
{ (eval echo configure:2567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2567 2568 2569 2570 2571 2572
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
2573 2574
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2575 2576 2577 2578 2579 2580 2581 2582
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

if test $ac_cv_header_stdc = yes; then
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2583
#line 2584 "configure"
2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2601
#line 2602 "configure"
2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
rm -f conftest*

fi

if test $ac_cv_header_stdc = yes; then
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
if test "$cross_compiling" = yes; then
  :
else
2621
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2622
#line 2623 "configure"
2623 2624 2625 2626 2627 2628 2629 2630 2631 2632
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int main () { int i; for (i = 0; i < 256; i++)
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }

EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2633
if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2634
then
2635 2636
  :
else
2637 2638 2639
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
2640 2641
  ac_cv_header_stdc=no
fi
2642
rm -fr conftest*
2643 2644
fi

2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656
fi
fi

echo "$ac_t""$ac_cv_header_stdc" 1>&6
if test $ac_cv_header_stdc = yes; then
  cat >> confdefs.h <<\EOF
#define STDC_HEADERS 1
EOF

fi

echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2657
echo "configure:2658: checking for sys/wait.h that is POSIX.1 compatible" >&5
2658 2659 2660 2661
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2662
#line 2663 "configure"
2663 2664 2665 2666 2667 2668 2669 2670 2671
#include "confdefs.h"
#include <sys/types.h>
#include <sys/wait.h>
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
#endif
#ifndef WIFEXITED
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
#endif
2672
int main() {
2673 2674 2675 2676 2677
int s;
wait (&s);
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2678
if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 2680 2681
  rm -rf conftest*
  ac_cv_header_sys_wait_h=yes
else
2682 2683
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699
  rm -rf conftest*
  ac_cv_header_sys_wait_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
if test $ac_cv_header_sys_wait_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_SYS_WAIT_H 1
EOF

fi

for ac_hdr in limits.h unistd.h termios.h values.h sys/select.h
do
2700
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2701
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2702
echo "configure:2703: checking for $ac_hdr" >&5
2703 2704 2705 2706
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2707
#line 2708 "configure"
2708 2709 2710 2711
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marc G. Fournier's avatar
Marc G. Fournier committed
2712
{ (eval echo configure:2713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

2738
for ac_hdr in sys/resource.h netdb.h arpa/inet.h getopt.h
2739 2740 2741
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2742
echo "configure:2743: checking for $ac_hdr" >&5
2743 2744 2745 2746
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2747
#line 2748 "configure"
2748 2749 2750 2751
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marc G. Fournier's avatar
Marc G. Fournier committed
2752
{ (eval echo configure:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 2754 2755 2756 2757 2758
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
2759 2760
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2761 2762 2763 2764 2765 2766 2767
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2768
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2769 2770 2771 2772 2773 2774 2775 2776 2777
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

Marc G. Fournier's avatar
Marc G. Fournier committed
2778
for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
2779
do
2780
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2781
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2782
echo "configure:2783: checking for $ac_hdr" >&5
2783 2784 2785 2786
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2787
#line 2788 "configure"
2788 2789 2790 2791
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marc G. Fournier's avatar
Marc G. Fournier committed
2792
{ (eval echo configure:2793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2793 2794 2795 2796 2797 2798
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
2799 2800
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2801 2802 2803 2804 2805 2806 2807
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
2808
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2809 2810 2811 2812 2813 2814 2815 2816 2817
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

2818
for ac_hdr in readline/history.h ieeefp.h fp_class.h netinet/in.h
2819 2820 2821
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2822
echo "configure:2823: checking for $ac_hdr" >&5
2823 2824 2825 2826
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2827
#line 2828 "configure"
2828 2829 2830 2831
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Marc G. Fournier's avatar
Marc G. Fournier committed
2832
{ (eval echo configure:2833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=yes"
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
fi
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

2858 2859

echo $ac_n "checking for working const""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2860
echo "configure:2861: checking for working const" >&5
2861 2862 2863 2864
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2865
#line 2866 "configure"
2866 2867
#include "confdefs.h"

2868
int main() {
2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913

/* Ultrix mips cc rejects this.  */
typedef int charset[2]; const charset x;
/* SunOS 4.1.1 cc rejects this.  */
char const *const *ccp;
char **p;
/* NEC SVR4.0.2 mips cc rejects this.  */
struct point {int x, y;};
static struct point const zero = {0,0};
/* AIX XL C 1.02.0.0 rejects this.
   It does not let you subtract one const X* pointer from another in an arm
   of an if-expression whose if-part is not a constant expression */
const char *g = "string";
ccp = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
++ccp;
p = (char**) ccp;
ccp = (char const *const *) p;
{ /* SCO 3.2v4 cc rejects this.  */
  char *t;
  char const *s = 0 ? (char *) 0 : (char const *) 0;

  *t++ = 0;
}
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  int x[] = {25, 17};
  const int *foo = &x[0];
  ++foo;
}
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  typedef const int *iptr;
  iptr p = 0;
  ++p;
}
{ /* AIX XL C 1.02.0.0 rejects this saying
     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  struct s { int j; const int *ap[3]; };
  struct s *b; b->j = 5;
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  const int foo = 10;
}

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2914
if { (eval echo configure:2915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2915 2916 2917
  rm -rf conftest*
  ac_cv_c_const=yes
else
2918 2919
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934
  rm -rf conftest*
  ac_cv_c_const=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi

echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2935
echo "configure:2936: checking for uid_t in sys/types.h" >&5
2936 2937 2938 2939
if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2940
#line 2941 "configure"
2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968
#include "confdefs.h"
#include <sys/types.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "uid_t" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_uid_t=yes
else
  rm -rf conftest*
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_type_uid_t" 1>&6
if test $ac_cv_type_uid_t = no; then
  cat >> confdefs.h <<\EOF
#define uid_t int
EOF

  cat >> confdefs.h <<\EOF
#define gid_t int
EOF

fi

echo $ac_n "checking for inline""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
2969
echo "configure:2970: checking for inline" >&5
2970 2971 2972 2973 2974 2975
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2976
#line 2977 "configure"
2977 2978
#include "confdefs.h"

2979
int main() {
2980 2981 2982
} $ac_kw foo() {
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
2983
if { (eval echo configure:2984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2984 2985
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
2986 2987 2988
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008
fi
rm -f conftest*
done

fi

echo "$ac_t""$ac_cv_c_inline" 1>&6
case "$ac_cv_c_inline" in
  inline | yes) ;;
  no) cat >> confdefs.h <<\EOF
#define inline 
EOF
 ;;
  *)  cat >> confdefs.h <<EOF
#define inline $ac_cv_c_inline
EOF
 ;;
esac

echo $ac_n "checking for mode_t""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3009
echo "configure:3010: checking for mode_t" >&5
3010 3011 3012 3013
if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3014
#line 3015 "configure"
3015 3016 3017 3018
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
3019
#include <stddef.h>
3020 3021 3022
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023
  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041
  rm -rf conftest*
  ac_cv_type_mode_t=yes
else
  rm -rf conftest*
  ac_cv_type_mode_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_mode_t" 1>&6
if test $ac_cv_type_mode_t = no; then
  cat >> confdefs.h <<\EOF
#define mode_t int
EOF

fi

echo $ac_n "checking for off_t""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3042
echo "configure:3043: checking for off_t" >&5
3043 3044 3045 3046
if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3047
#line 3048 "configure"
3048 3049 3050 3051
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
3052
#include <stddef.h>
3053 3054 3055
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056
  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074
  rm -rf conftest*
  ac_cv_type_off_t=yes
else
  rm -rf conftest*
  ac_cv_type_off_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_off_t" 1>&6
if test $ac_cv_type_off_t = no; then
  cat >> confdefs.h <<\EOF
#define off_t long
EOF

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3075
echo "configure:3076: checking for size_t" >&5
3076 3077 3078 3079
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3080
#line 3081 "configure"
3081 3082 3083 3084
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
3085
#include <stddef.h>
3086 3087 3088
#endif
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089
  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
rm -f conftest*

fi
echo "$ac_t""$ac_cv_type_size_t" 1>&6
if test $ac_cv_type_size_t = no; then
  cat >> confdefs.h <<\EOF
#define size_t unsigned
EOF

fi

echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3108
echo "configure:3109: checking whether time.h and sys/time.h may both be included" >&5
3109 3110 3111 3112
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3113
#line 3114 "configure"
3114 3115 3116 3117
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
3118
int main() {
3119 3120 3121
struct tm *tp;
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3122
if { (eval echo configure:3123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3123 3124 3125
  rm -rf conftest*
  ac_cv_header_time=yes
else
3126 3127
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_time" 1>&6
if test $ac_cv_header_time = yes; then
  cat >> confdefs.h <<\EOF
#define TIME_WITH_SYS_TIME 1
EOF

fi

echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3143
echo "configure:3144: checking whether struct tm is in sys/time.h or time.h" >&5
3144 3145 3146 3147
if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3148
#line 3149 "configure"
3149 3150 3151
#include "confdefs.h"
#include <sys/types.h>
#include <time.h>
3152
int main() {
3153 3154 3155
struct tm *tp; tp->tm_sec;
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3156
if { (eval echo configure:3157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3157 3158 3159
  rm -rf conftest*
  ac_cv_struct_tm=time.h
else
3160 3161
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176
  rm -rf conftest*
  ac_cv_struct_tm=sys/time.h
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_struct_tm" 1>&6
if test $ac_cv_struct_tm = sys/time.h; then
  cat >> confdefs.h <<\EOF
#define TM_IN_SYS_TIME 1
EOF

fi


3177
echo $ac_n "checking for int timezone""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3178
echo "configure:3179: checking for int timezone" >&5
3179
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3180
#line 3181 "configure"
3181 3182
#include "confdefs.h"
#include <time.h>
3183
int main() {
3184 3185 3186
int res = timezone / 60; 
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3187
if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3188 3189 3190 3191
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_INT_TIMEZONE 1
EOF
3192
 echo "$ac_t""yes" 1>&6
3193
else
3194 3195
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3196 3197 3198 3199
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
fi
rm -f conftest*
3200

3201
echo $ac_n "checking for union semun""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3202
echo "configure:3203: checking for union semun" >&5
3203
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3204
#line 3205 "configure"
3205 3206
#include "confdefs.h"
#include <sys/types.h>
3207
#include <sys/ipc.h>
3208
#include <sys/sem.h>
3209
int main() {
3210 3211 3212
union semun semun;
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3213
if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3214 3215 3216 3217 3218
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UNION_SEMUN 1
EOF
 echo "$ac_t""yes" 1>&6
3219
else
3220 3221
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3222 3223
  rm -rf conftest*
  echo "$ac_t""no" 1>&6
3224 3225 3226
fi
rm -f conftest*

3227
if test $ac_cv_prog_gcc = yes; then
3228
    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3229
echo "configure:3230: checking whether ${CC-cc} needs -traditional" >&5
3230 3231 3232 3233 3234
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    ac_pattern="Autoconf.*'x'"
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3235
#line 3236 "configure"
3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_prog_gcc_traditional=yes
else
  rm -rf conftest*
  ac_cv_prog_gcc_traditional=no
fi
rm -f conftest*


  if test $ac_cv_prog_gcc_traditional = no; then
    cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3253
#line 3254 "configure"
3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "$ac_pattern" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_prog_gcc_traditional=yes
fi
rm -f conftest*

  fi
fi

echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  if test $ac_cv_prog_gcc_traditional = yes; then
    CC="$CC -traditional"
  fi
fi

echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3275
echo "configure:3276: checking for 8-bit clean memcmp" >&5
3276
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3277 3278 3279
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
3280
  ac_cv_func_memcmp_clean=no
3281
else
3282
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3283
#line 3284 "configure"
3284 3285 3286 3287 3288 3289 3290 3291 3292
#include "confdefs.h"

main()
{
  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
}

EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3293
if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3294 3295
then
  ac_cv_func_memcmp_clean=yes
3296
else
3297 3298 3299 3300
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_memcmp_clean=no
3301
fi
3302
rm -fr conftest*
3303 3304
fi

3305 3306 3307 3308
fi

echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
3309 3310

echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3311
echo "configure:3312: checking return type of signal handlers" >&5
3312 3313 3314 3315
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3316
#line 3317 "configure"
3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
#endif
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
#endif

3329
int main() {
3330 3331 3332
int i;
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3333
if { (eval echo configure:3334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3334 3335 3336
  rm -rf conftest*
  ac_cv_type_signal=void
else
3337 3338
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351
  rm -rf conftest*
  ac_cv_type_signal=int
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF


echo $ac_n "checking for vprintf""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3352
echo "configure:3353: checking for vprintf" >&5
3353 3354 3355 3356
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3357
#line 3358 "configure"
3358 3359 3360 3361 3362 3363 3364 3365 3366
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char vprintf(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char vprintf();

3367
int main() {
3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_vprintf) || defined (__stub___vprintf)
choke me
#else
vprintf();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3380
if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3381 3382 3383
  rm -rf conftest*
  eval "ac_cv_func_vprintf=yes"
else
3384 3385
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3386 3387 3388 3389
  rm -rf conftest*
  eval "ac_cv_func_vprintf=no"
fi
rm -f conftest*
3390
fi
3391

3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_VPRINTF 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

if test "$ac_cv_func_vprintf" != yes; then
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3404
echo "configure:3405: checking for _doprnt" >&5
3405 3406 3407 3408
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3409
#line 3410 "configure"
3410 3411 3412 3413 3414 3415 3416 3417 3418
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char _doprnt(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char _doprnt();

3419
int main() {
3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub__doprnt) || defined (__stub____doprnt)
choke me
#else
_doprnt();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3432
if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3433 3434 3435
  rm -rf conftest*
  eval "ac_cv_func__doprnt=yes"
else
3436 3437
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3438 3439 3440 3441
  rm -rf conftest*
  eval "ac_cv_func__doprnt=no"
fi
rm -f conftest*
3442
fi
3443

3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_DOPRNT 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

fi

3456
for ac_func in tzset vfork memmove sigsetjmp kill sysconf fpclass
3457 3458
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3459
echo "configure:3460: checking for $ac_func" >&5
3460 3461 3462 3463
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3464
#line 3465 "configure"
3465 3466 3467 3468 3469 3470 3471 3472 3473
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

3474
int main() {
3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3487
if { (eval echo configure:3488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3488 3489 3490
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
3491 3492
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3493 3494 3495 3496
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
3497
fi
3498

3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

3511
for ac_func in fp_class fp_class_d class
3512 3513
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3514
echo "configure:3515: checking for $ac_func" >&5
3515 3516 3517 3518
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3519
#line 3520 "configure"
3520 3521 3522 3523 3524 3525 3526 3527 3528
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

3529
int main() {
3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3542
if { (eval echo configure:3543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3543 3544 3545
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
3546 3547
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3548 3549 3550 3551
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
3552
fi
3553

3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

3566 3567 3568
for ac_func in sigprocmask waitpid setsid fcvt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3569
echo "configure:3570: checking for $ac_func" >&5
3570 3571 3572 3573
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3574
#line 3575 "configure"
3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char $ac_func();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3597
if { (eval echo configure:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
else
  echo "$ac_t""no" 1>&6
fi
done

3621
echo $ac_n "checking for isinf""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3622
echo "configure:3623: checking for isinf" >&5
3623 3624 3625 3626
if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3627
#line 3628 "configure"
3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char isinf(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char isinf();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_isinf) || defined (__stub___isinf)
choke me
#else
isinf();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3650
if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672
  rm -rf conftest*
  eval "ac_cv_func_isinf=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_isinf=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_ISINF 1
EOF

else
  echo "$ac_t""no" 1>&6
ISINF='isinf.o'
fi

3673

3674
echo $ac_n "checking for getrusage""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3675
echo "configure:3676: checking for getrusage" >&5
3676 3677 3678 3679
if eval "test \"`echo '$''{'ac_cv_func_getrusage'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3680
#line 3681 "configure"
3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char getrusage(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char getrusage();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_getrusage) || defined (__stub___getrusage)
choke me
#else
getrusage();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3703
if { (eval echo configure:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725
  rm -rf conftest*
  eval "ac_cv_func_getrusage=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_getrusage=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'getrusage`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_GETRUSAGE 1
EOF

else
  echo "$ac_t""no" 1>&6
GETRUSAGE='getrusage.o'
fi

3726

3727
echo $ac_n "checking for srandom""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3728
echo "configure:3729: checking for srandom" >&5
3729 3730 3731 3732
if eval "test \"`echo '$''{'ac_cv_func_srandom'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3733
#line 3734 "configure"
3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char srandom(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char srandom();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_srandom) || defined (__stub___srandom)
choke me
#else
srandom();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3756
if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778
  rm -rf conftest*
  eval "ac_cv_func_srandom=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_srandom=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'srandom`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_SRANDOM 1
EOF

else
  echo "$ac_t""no" 1>&6
SRANDOM='srandom.o'
fi

3779

3780
echo $ac_n "checking for gethostname""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3781
echo "configure:3782: checking for gethostname" >&5
3782 3783 3784 3785
if eval "test \"`echo '$''{'ac_cv_func_gethostname'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3786
#line 3787 "configure"
3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char gethostname(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethostname();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethostname) || defined (__stub___gethostname)
choke me
#else
gethostname();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3809
if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831
  rm -rf conftest*
  eval "ac_cv_func_gethostname=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostname=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'gethostname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_GETHOSTNAME 1
EOF

else
  echo "$ac_t""no" 1>&6
GETHOSTNAME='gethostname.o'
fi

3832

3833
echo $ac_n "checking for random""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3834
echo "configure:3835: checking for random" >&5
3835 3836 3837 3838
if eval "test \"`echo '$''{'ac_cv_func_random'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3839
#line 3840 "configure"
3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char random(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char random();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_random) || defined (__stub___random)
choke me
#else
random();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3862
if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881
  rm -rf conftest*
  eval "ac_cv_func_random=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_random=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'random`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_RANDOM 1
EOF

else
  echo "$ac_t""no" 1>&6
3882
MISSING_RANDOM='random.o'
3883 3884
fi

3885

3886
echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3887
echo "configure:3888: checking for inet_aton" >&5
3888 3889 3890 3891
if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3892
#line 3893 "configure"
3893 3894 3895 3896 3897 3898 3899 3900 3901
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char inet_aton(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char inet_aton();

3902
int main() {
3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
choke me
#else
inet_aton();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3915
if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3916 3917 3918
  rm -rf conftest*
  eval "ac_cv_func_inet_aton=yes"
else
3919 3920
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3921 3922 3923 3924
  rm -rf conftest*
  eval "ac_cv_func_inet_aton=no"
fi
rm -f conftest*
3925
fi
3926

3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937
if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_INET_ATON 1
EOF

else
  echo "$ac_t""no" 1>&6
INET_ATON='inet_aton.o'
fi

3938

3939
echo $ac_n "checking for strerror""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3940
echo "configure:3941: checking for strerror" >&5
3941 3942 3943 3944
if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3945
#line 3946 "configure"
3946 3947 3948 3949 3950 3951 3952 3953 3954
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strerror(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strerror();

3955
int main() {
3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strerror) || defined (__stub___strerror)
choke me
#else
strerror();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3968
if { (eval echo configure:3969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3969 3970 3971
  rm -rf conftest*
  eval "ac_cv_func_strerror=yes"
else
3972 3973
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
3974 3975 3976 3977 3978
  rm -rf conftest*
  eval "ac_cv_func_strerror=no"
fi
rm -f conftest*
fi
3979

3980 3981 3982 3983 3984 3985 3986 3987
if eval "test \"`echo '$ac_cv_func_'strerror`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_STRERROR 1
EOF

else
  echo "$ac_t""no" 1>&6
3988
STRERROR='strerror.o' STRERROR2='../../backend/port/strerror.o'
3989 3990
fi

3991 3992


3993
echo $ac_n "checking for strdup""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
3994
echo "configure:3995: checking for strdup" >&5
3995 3996 3997 3998
if eval "test \"`echo '$''{'ac_cv_func_strdup'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
3999
#line 4000 "configure"
4000 4001 4002 4003 4004 4005 4006 4007 4008
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strdup(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strdup();

4009
int main() {
4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strdup) || defined (__stub___strdup)
choke me
#else
strdup();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4022
if { (eval echo configure:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4023 4024 4025
  rm -rf conftest*
  eval "ac_cv_func_strdup=yes"
else
4026 4027
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
4028 4029 4030 4031
  rm -rf conftest*
  eval "ac_cv_func_strdup=no"
fi
rm -f conftest*
4032
fi
4033

4034 4035
if eval "test \"`echo '$ac_cv_func_'strdup`\" = yes"; then
  echo "$ac_t""yes" 1>&6
4036
  cat >> confdefs.h <<\EOF
4037 4038 4039
#define HAVE_STRDUP 1
EOF

4040 4041
else
  echo "$ac_t""no" 1>&6
4042
STRDUP='../../utils/strdup.o'
4043 4044
fi

4045

4046
echo $ac_n "checking for strtol""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4047
echo "configure:4048: checking for strtol" >&5
4048 4049 4050 4051
if eval "test \"`echo '$''{'ac_cv_func_strtol'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4052
#line 4053 "configure"
4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strtol(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strtol();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strtol) || defined (__stub___strtol)
choke me
#else
strtol();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4075
if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097
  rm -rf conftest*
  eval "ac_cv_func_strtol=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_strtol=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'strtol`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_STRTOL 1
EOF

else
  echo "$ac_t""no" 1>&6
STRDUP='strtol.o'
fi

4098
echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4099
echo "configure:4100: checking for strcasecmp" >&5
4100 4101 4102 4103
if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4104
#line 4105 "configure"
4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char strcasecmp(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char strcasecmp();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
choke me
#else
strcasecmp();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4127
if { (eval echo configure:4128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149
  rm -rf conftest*
  eval "ac_cv_func_strcasecmp=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_strcasecmp=no"
fi
rm -f conftest*
fi

if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_STRCASECMP 1
EOF

else
  echo "$ac_t""no" 1>&6
STRCASECMP='strcasecmp.o'
fi

4150

4151
echo $ac_n "checking for cbrt""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4152
echo "configure:4153: checking for cbrt" >&5
4153 4154 4155 4156
if eval "test \"`echo '$''{'ac_cv_func_cbrt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4157
#line 4158 "configure"
4158 4159 4160 4161 4162 4163 4164 4165 4166
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char cbrt(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char cbrt();

4167
int main() {
4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_cbrt) || defined (__stub___cbrt)
choke me
#else
cbrt();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4180
if { (eval echo configure:4181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4181 4182 4183
  rm -rf conftest*
  eval "ac_cv_func_cbrt=yes"
else
4184 4185
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
4186 4187 4188 4189
  rm -rf conftest*
  eval "ac_cv_func_cbrt=no"
fi
rm -f conftest*
4190
fi
4191

4192 4193 4194 4195 4196 4197 4198 4199
if eval "test \"`echo '$ac_cv_func_'cbrt`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_CBRT 1
EOF

else
  echo "$ac_t""no" 1>&6
4200
echo $ac_n "checking for cbrt in -lm""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4201
echo "configure:4202: checking for cbrt in -lm" >&5
4202
ac_lib_var=`echo m'_'cbrt | sed 'y%./+-%__p_%'`
4203 4204 4205 4206 4207 4208
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4209
#line 4210 "configure"
4210 4211 4212 4213 4214 4215
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char cbrt();

4216
int main() {
4217 4218 4219
cbrt()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4220
if { (eval echo configure:4221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4221 4222 4223
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
4224 4225
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_CBRT 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

fi

echo $ac_n "checking for rint""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4246
echo "configure:4247: checking for rint" >&5
4247 4248 4249 4250
if eval "test \"`echo '$''{'ac_cv_func_rint'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4251
#line 4252 "configure"
4252 4253 4254 4255 4256 4257 4258 4259 4260
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char rint(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char rint();

4261
int main() {
4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_rint) || defined (__stub___rint)
choke me
#else
rint();
#endif

; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4274
if { (eval echo configure:4275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4275 4276 4277
  rm -rf conftest*
  eval "ac_cv_func_rint=yes"
else
4278 4279
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
4280 4281 4282 4283
  rm -rf conftest*
  eval "ac_cv_func_rint=no"
fi
rm -f conftest*
4284
fi
4285

4286 4287 4288 4289 4290 4291 4292 4293
if eval "test \"`echo '$ac_cv_func_'rint`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_RINT 1
EOF

else
  echo "$ac_t""no" 1>&6
4294
echo $ac_n "checking for rint in -lm""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4295
echo "configure:4296: checking for rint in -lm" >&5
4296
ac_lib_var=`echo m'_'rint | sed 'y%./+-%__p_%'`
4297 4298 4299 4300 4301 4302
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_save_LIBS="$LIBS"
LIBS="-lm  $LIBS"
cat > conftest.$ac_ext <<EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4303
#line 4304 "configure"
4304 4305 4306 4307 4308 4309
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char rint();

4310
int main() {
4311 4312 4313
rint()
; return 0; }
EOF
Marc G. Fournier's avatar
Marc G. Fournier committed
4314
if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4315 4316 4317
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=yes"
else
4318 4319
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
fi
rm -f conftest*
LIBS="$ac_save_LIBS"

fi
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<\EOF
#define HAVE_RINT 1
EOF

else
  echo "$ac_t""no" 1>&6
fi

fi


4340
echo $ac_n "checking setting USE_LOCALE""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4341
echo "configure:4342: checking setting USE_LOCALE" >&5
4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352
if test "$USE_LOCALE" = "yes"
then
	echo "$ac_t""enabled" 1>&6
	cat >> confdefs.h <<\EOF
#define USE_LOCALE 1
EOF

else
	echo "$ac_t""disabled" 1>&6
fi
echo $ac_n "checking setting DEF_PGPORT""... $ac_c" 1>&6
Marc G. Fournier's avatar
Marc G. Fournier committed
4353
echo "configure:4354: checking setting DEF_PGPORT" >&5
4354 4355 4356 4357 4358 4359
cat >> confdefs.h <<EOF
#define DEF_PGPORT "${DEF_PGPORT}"
EOF

echo "$ac_t""$DEF_PGPORT" 1>&6

4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376
trap '' 1 2 15
cat > confcache <<\EOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs.  It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already.  You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
EOF
4377 4378 4379
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
# So, don't put newlines in cache variables' values.
4380 4381 4382
# Ultrix sh set writes to stderr and can't be redirected directly,
# and sets the high bit in the cache file unless we assign to the vars.
(set) 2>&1 |
4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395
  case `(ac_space=' '; set) 2>&1` in
  *ac_space=\ *)
    # `set' does not quote correctly, so add quotes (double-quote substitution
    # turns \\\\ into \\, and sed turns \\ into \).
    sed -n \
      -e "s/'/'\\\\''/g" \
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
    ;;
  *)
    # `set' quotes correctly as required by POSIX, so do not add quotes.
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
    ;;
  esac >> confcache
4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449
if cmp -s $cache_file confcache; then
  :
else
  if test -w $cache_file; then
    echo "updating cache $cache_file"
    cat confcache > $cache_file
  else
    echo "not updating unwritable cache $cache_file"
  fi
fi
rm -f confcache

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# Any assignment to VPATH causes Sun make to only execute
# the first set of double-colon rules, so remove it if not needed.
# If there is a colon in the path, we need to keep it.
if test "x$srcdir" = x.; then
  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
fi

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

echo creating $CONFIG_STATUS
rm -f $CONFIG_STATUS
cat > $CONFIG_STATUS <<EOF
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
#
# $0 $ac_configure_args
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
for ac_option
do
  case "\$ac_option" in
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4450
    echo "$CONFIG_STATUS generated by autoconf version 2.12"
4451 4452 4453 4454 4455 4456 4457 4458 4459
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir

4460
trap 'rm -fr `echo "GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile  include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494
EOF
cat >> $CONFIG_STATUS <<EOF

# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
$ac_vpsub
$extrasub
s%@CFLAGS@%$CFLAGS%g
s%@CPPFLAGS@%$CPPFLAGS%g
s%@CXXFLAGS@%$CXXFLAGS%g
s%@DEFS@%$DEFS%g
s%@LDFLAGS@%$LDFLAGS%g
s%@LIBS@%$LIBS%g
s%@exec_prefix@%$exec_prefix%g
s%@prefix@%$prefix%g
s%@program_transform_name@%$program_transform_name%g
s%@bindir@%$bindir%g
s%@sbindir@%$sbindir%g
s%@libexecdir@%$libexecdir%g
s%@datadir@%$datadir%g
s%@sysconfdir@%$sysconfdir%g
s%@sharedstatedir@%$sharedstatedir%g
s%@localstatedir@%$localstatedir%g
s%@libdir@%$libdir%g
s%@includedir@%$includedir%g
s%@oldincludedir@%$oldincludedir%g
s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@host@%$host%g
s%@host_alias@%$host_alias%g
s%@host_cpu@%$host_cpu%g
s%@host_vendor@%$host_vendor%g
s%@host_os@%$host_os%g
4495
s%@TAS@%$TAS%g
4496
s%@PORTNAME@%$PORTNAME%g
4497 4498
s%@CC@%$CC%g
s%@CPP@%$CPP%g
Marc G. Fournier's avatar
Marc G. Fournier committed
4499
s%@AROPT@%$AROPT%g
4500 4501 4502
s%@SHARED_LIB@%$SHARED_LIB%g
s%@DLSUFFIX@%$DLSUFFIX%g
s%@DL_LIB@%$DL_LIB%g
4503 4504
s%@USE_TCL@%$USE_TCL%g
s%@USE_PERL@%$USE_PERL%g
4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523
s%@HAVECXX@%$HAVECXX%g
s%@INSTALL@%$INSTALL%g
s%@INSTLOPTS@%$INSTLOPTS%g
s%@INSTL_LIB_OPTS@%$INSTL_LIB_OPTS%g
s%@INSTL_EXE_OPTS@%$INSTL_EXE_OPTS%g
s%@DASH_N@%$DASH_N%g
s%@BACKSLASH_C@%$BACKSLASH_C%g
s%@LEX@%$LEX%g
s%@LEXLIB@%$LEXLIB%g
s%@LN_S@%$LN_S%g
s%@SET_MAKE@%$SET_MAKE%g
s%@RANLIB@%$RANLIB%g
s%@find@%$find%g
s%@tar@%$tar%g
s%@split@%$split%g
s%@etags@%$etags%g
s%@xargs@%$xargs%g
s%@ipcs@%$ipcs%g
s%@ipcrm@%$ipcrm%g
4524
s%@TR@%$TR%g
4525
s%@TRARGS@%$TRARGS%g
4526 4527 4528 4529
s%@YACC@%$YACC%g
s%@YFLAGS@%$YFLAGS%g
s%@yacc@%$yacc%g
s%@bison@%$bison%g
4530
s%@LIBOBJS@%$LIBOBJS%g
4531
s%@ISINF@%$ISINF%g
4532 4533
s%@GETRUSAGE@%$GETRUSAGE%g
s%@SRANDOM@%$SRANDOM%g
4534
s%@GETHOSTNAME@%$GETHOSTNAME%g
4535
s%@MISSING_RANDOM@%$MISSING_RANDOM%g
4536
s%@INET_ATON@%$INET_ATON%g
4537
s%@STRERROR@%$STRERROR%g
4538
s%@STRERROR2@%$STRERROR2%g
4539 4540
s%@STRDUP@%$STRDUP%g
s%@STRCASECMP@%$STRCASECMP%g
4541 4542 4543

CEOF
EOF
4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579

cat >> $CONFIG_STATUS <<\EOF

# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
  if test $ac_beg -gt 1; then
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  else
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  fi
  if test ! -s conftest.s$ac_file; then
    ac_more_lines=false
    rm -f conftest.s$ac_file
  else
    if test -z "$ac_sed_cmds"; then
      ac_sed_cmds="sed -f conftest.s$ac_file"
    else
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
    fi
    ac_file=`expr $ac_file + 1`
    ac_beg=$ac_end
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  fi
done
if test -z "$ac_sed_cmds"; then
  ac_sed_cmds=cat
fi
EOF

4580 4581
cat >> $CONFIG_STATUS <<EOF

4582
CONFIG_FILES=\${CONFIG_FILES-"GNUmakefile Makefile.global backend/port/Makefile bin/pg_version/Makefile bin/psql/Makefile bin/pg_dump/Makefile backend/utils/Gen_fmgrtab.sh interfaces/libpq/Makefile interfaces/libpgtcl/Makefile interfaces/ecpg/lib/Makefile "}
4583 4584 4585
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4586
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4587
  case "$ac_file" in
4588
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4589 4590 4591 4592
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

4593
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616

  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
    # The file is in a subdirectory.
    test ! -d "$ac_dir" && mkdir "$ac_dir"
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dir_suffix.
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dir_suffix= ac_dots=
  fi

  case "$ac_given_srcdir" in
  .)  srcdir=.
      if test -z "$ac_dots"; then top_srcdir=.
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  *) # Relative path.
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  esac

4617

4618 4619 4620 4621 4622 4623 4624 4625
  echo creating "$ac_file"
  rm -f "$ac_file"
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  case "$ac_file" in
  *Makefile*) ac_comsub="1i\\
# $configure_input" ;;
  *) ac_comsub= ;;
  esac
4626 4627

  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4628 4629 4630 4631
  sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
4632
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4633
fi; done
4634
rm -f conftest.s*
4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654

# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
# NAME is the cpp macro being defined and VALUE is the value it is being given.
#
# ac_d sets the value in "#define NAME VALUE" lines.
ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
ac_dC='\3'
ac_dD='%g'
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_uB='\([ 	]\)%\1#\2define\3'
ac_uC=' '
ac_uD='\4%g'
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
ac_eB='$%\1#\2define\3'
ac_eC=' '
ac_eD='%g'

4655 4656 4657 4658 4659 4660 4661
if test "${CONFIG_HEADERS+set}" != set; then
EOF
cat >> $CONFIG_STATUS <<EOF
  CONFIG_HEADERS="include/config.h"
EOF
cat >> $CONFIG_STATUS <<\EOF
fi
4662
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4663
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4664
  case "$ac_file" in
4665
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4666 4667 4668 4669 4670 4671 4672
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  *) ac_file_in="${ac_file}.in" ;;
  esac

  echo creating $ac_file

  rm -f conftest.frag conftest.in conftest.out
4673 4674
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  cat $ac_file_inputs > conftest.in
4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742

EOF

# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h.  And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
rm -f conftest.vals
cat > conftest.hdr <<\EOF
s/[\\&%]/\\&/g
s%[\\$`]%\\&%g
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
s%ac_d%ac_u%gp
s%ac_u%ac_e%gp
EOF
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr

# This sed command replaces #undef with comments.  This is necessary, for
# example, in the case of _POSIX_SOURCE, which is predefined and required
# on some systems where configure will not decide to define it.
cat >> conftest.vals <<\EOF
s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
EOF

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

rm -f conftest.tail
while :
do
  ac_lines=`grep -c . conftest.vals`
  # grep -c gives empty output for an empty file on some AIX systems.
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  # Write a limited-size here document to conftest.frag.
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  echo 'CEOF
  sed -f conftest.frag conftest.in > conftest.out
  rm -f conftest.in
  mv conftest.out conftest.in
' >> $CONFIG_STATUS
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  rm -f conftest.vals
  mv conftest.tail conftest.vals
done
rm -f conftest.vals

cat >> $CONFIG_STATUS <<\EOF
  rm -f conftest.frag conftest.h
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  cat conftest.in >> conftest.h
  rm -f conftest.in
  if cmp -s $ac_file conftest.h 2>/dev/null; then
    echo "$ac_file is unchanged"
    rm -f conftest.h
  else
    # Remove last slash and all that follows it.  Not all systems have dirname.
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
      # The file is in a subdirectory.
      test ! -d "$ac_dir" && mkdir "$ac_dir"
    fi
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done

4743 4744 4745
EOF

cat >> $CONFIG_STATUS <<EOF
4746
ac_sources="backend/port/tas/${tas_file} backend/port/dynloader/${os}.c backend/port/dynloader/${os}.h include/port/${os}.h makefiles/Makefile.${os}"
4747
ac_dests="backend/port/tas.s backend/port/dynloader.c include/dynloader.h include/os.h Makefile.port"
4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787
EOF

cat >> $CONFIG_STATUS <<\EOF
srcdir=$ac_given_srcdir
while test -n "$ac_sources"; do
  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  set $ac_sources; ac_source=$1; shift; ac_sources=$*

  echo "linking $srcdir/$ac_source to $ac_dest"

  if test ! -r $srcdir/$ac_source; then
    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
  fi
  rm -f $ac_dest

  # Make relative symlinks.
  # Remove last slash and all that follows it.  Not all systems have dirname.
  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
    # The dest file is in a subdirectory.
    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
    # A "../" for each directory in $ac_dest_dir_suffix.
    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
  else
    ac_dest_dir_suffix= ac_dots=
  fi

  case "$srcdir" in
  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
  esac

  # Make a symlink if possible; otherwise try a hard link.
  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
    ln $srcdir/$ac_source $ac_dest; then :
  else
    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
  fi
done
4788 4789
EOF
cat >> $CONFIG_STATUS <<EOF
4790

4791 4792
EOF
cat >> $CONFIG_STATUS <<\EOF
4793 4794 4795 4796 4797 4798

exit 0
EOF
chmod +x $CONFIG_STATUS
rm -fr confdefs* $ac_clean_files
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4799