1#! /bin/sh 2 3# From configure.in Id: configure.in,v 1.99 2002/03/07 17:56:41 ian Rel 4# aclocal.m4 generated automatically by aclocal 1.5 5 6# Copyright 1996, 1997, 1998, 1999, 2000, 2001 7# Free Software Foundation, Inc. 8# This file is free software; the Free Software Foundation 9# gives unlimited permission to copy and/or distribute it, 10# with or without modifications, as long as this notice is preserved. 11 12# This program is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 14# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 15# PARTICULAR PURPOSE. 16 17# Do all the work for Automake. This macro actually does too much -- 18# some checks are only needed if your package does certain things. 19# But this isn't really a big deal. 20 21# serial 5 22 23# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 24# written in clear, in which case automake, when reading aclocal.m4, 25# will think it sees a *use*, and therefore will trigger all it's 26# C support machinery. Also note that it means that autoscan, seeing 27# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 28 29 30# We require 2.13 because we rely on SHELL being computed by configure. 31 32 33# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 34# ----------------------------------------------------------- 35# If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED. 36# The purpose of this macro is to provide the user with a means to 37# check macros which are provided without letting her know how the 38# information is coded. 39# If this macro is not defined by Autoconf, define it here. 40 41 42 43# AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE]) 44# ---------------------------------------------- 45 46 47# 48# Check to make sure that the build environment is sane. 49# 50 51# serial 3 52 53# AM_SANITY_CHECK 54# --------------- 55 56 57 58# serial 2 59 60# AM_MISSING_PROG(NAME, PROGRAM) 61# ------------------------------ 62 63 64 65# AM_MISSING_HAS_RUN 66# ------------------ 67# Define MISSING if not defined so far and test if it supports --run. 68# If it does, set am_missing_run to use it, otherwise, to nothing. 69 70 71# AM_AUX_DIR_EXPAND 72 73# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 74# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 75# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 76# 77# Of course, Automake must honor this variable whenever it calls a 78# tool from the auxiliary directory. The problem is that $srcdir (and 79# therefore $ac_aux_dir as well) can be either absolute or relative, 80# depending on how configure is run. This is pretty annoying, since 81# it makes $ac_aux_dir quite unusable in subdirectories: in the top 82# source directory, any form will work fine, but in subdirectories a 83# relative path needs to be adjusted first. 84# 85# $ac_aux_dir/missing 86# fails when called from a subdirectory if $ac_aux_dir is relative 87# $top_srcdir/$ac_aux_dir/missing 88# fails if $ac_aux_dir is absolute, 89# fails when called from a subdirectory in a VPATH build with 90# a relative $ac_aux_dir 91# 92# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 93# are both prefixed by $srcdir. In an in-source build this is usually 94# harmless because $srcdir is `.', but things will broke when you 95# start a VPATH build or use an absolute $srcdir. 96# 97# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 98# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 99# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 100# and then we would define $MISSING as 101# MISSING="\${SHELL} $am_aux_dir/missing" 102# This will work as long as MISSING is not called from configure, because 103# unfortunately $(top_srcdir) has no meaning in configure. 104# However there are other variables, like CC, which are often used in 105# configure, and could therefore not use this "fixed" $ac_aux_dir. 106# 107# Another solution, used here, is to always expand $ac_aux_dir to an 108# absolute PATH. The drawback is that using absolute paths prevent a 109# configured tree to be moved without reconfiguration. 110 111 112 113# AM_PROG_INSTALL_SH 114# ------------------ 115# Define $install_sh. 116 117 118# One issue with vendor `install' (even GNU) is that you can't 119# specify the program used to strip binaries. This is especially 120# annoying in cross-compiling environments, where the build's strip 121# is unlikely to handle the host's binaries. 122# Fortunately install-sh will honor a STRIPPROG variable, so we 123# always use install-sh in `make install-strip', and initialize 124# STRIPPROG with the value of the STRIP variable (set by the user). 125 126 127# serial 4 -*- Autoconf -*- 128 129 130 131# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 132# written in clear, in which case automake, when reading aclocal.m4, 133# will think it sees a *use*, and therefore will trigger all it's 134# C support machinery. Also note that it means that autoscan, seeing 135# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 136 137 138 139# _AM_DEPENDENCIES(NAME) 140# --------------------- 141# See how the compiler implements dependency checking. 142# NAME is "CC", "CXX" or "OBJC". 143# We try a few techniques and use that to set a single cache variable. 144# 145# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 146# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 147# dependency, and given that the user is not expected to run this macro, 148# just rely on AC_PROG_CC. 149 150 151 152# AM_SET_DEPDIR 153# ------------- 154# Choose a directory name for dependency files. 155# This macro is AC_REQUIREd in _AM_DEPENDENCIES 156 157 158 159# AM_DEP_TRACK 160# ------------ 161 162 163# Generate code to set up dependency tracking. 164# This macro should only be invoked once -- use via AC_REQUIRE. 165# Usage: 166# AM_OUTPUT_DEPENDENCY_COMMANDS 167 168# 169# This code is only required when automatic dependency tracking 170# is enabled. FIXME. This creates each `.P' file that we will 171# need in order to bootstrap the dependency handling code. 172 173 174# AM_MAKE_INCLUDE() 175# ----------------- 176# Check to see how make treats includes. 177 178 179# serial 3 180 181# AM_CONDITIONAL(NAME, SHELL-CONDITION) 182# ------------------------------------- 183# Define a conditional. 184# 185# FIXME: Once using 2.50, use this: 186# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl 187 188 189# Like AC_CONFIG_HEADER, but automatically create stamp file. 190 191# serial 3 192 193# When config.status generates a header, we must update the stamp-h file. 194# This file resides in the same directory as the config header 195# that is generated. We must strip everything past the first ":", 196# and everything past the last "/". 197 198 199 200 # AM_CONFIG_HEADER 201 202# _AM_DIRNAME(PATH) 203# ----------------- 204# Like AS_DIRNAME, only do it during macro expansion 205 # _AM_DIRNAME 206 207# Add --enable-maintainer-mode option to configure. 208# From Jim Meyering 209 210# serial 1 211 212 213 214# Guess values for system-dependent variables and create Makefiles. 215# Generated automatically using autoconf version 2.13 216# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 217# 218# This configure script is free software; the Free Software Foundation 219# gives unlimited permission to copy, distribute and modify it. 220 221# Defaults: 222ac_help= 223ac_default_prefix=/usr/local 224# Any additions from configure.in: 225ac_help="$ac_help 226 --disable-dependency-tracking Speeds up one-time builds 227 --enable-dependency-tracking Do not reject slow dependency extractors" 228ac_help="$ac_help 229 --enable-maintainer-mode enable make rules and dependencies not useful 230 (and sometimes confusing) to the casual installer" 231ac_help="$ac_help 232 --with-user=USERNAME user ID for programs; default uucp" 233ac_help="$ac_help 234 --with-newconfigdir=DIRNAME new config file directory; default PREFIX/conf/uucp" 235ac_help="$ac_help 236 --with-oldconfigdir=DIRNAME old config file directory; default /usr/lib/uucp" 237ac_help="$ac_help 238 --enable-build-warnings Enable build-time compiler warnings if gcc is used" 239 240# Initialize some variables set by options. 241# The variables have the same names as the options, with 242# dashes changed to underlines. 243build=NONE 244cache_file=./config.cache 245exec_prefix=NONE 246host=NONE 247no_create= 248nonopt=NONE 249no_recursion= 250prefix=NONE 251program_prefix=NONE 252program_suffix=NONE 253program_transform_name=s,x,x, 254silent= 255site= 256srcdir= 257target=NONE 258verbose= 259x_includes=NONE 260x_libraries=NONE 261bindir='${exec_prefix}/bin' 262sbindir='${exec_prefix}/sbin' 263libexecdir='${exec_prefix}/libexec' 264datadir='${prefix}/share' 265sysconfdir='${prefix}/etc' 266sharedstatedir='${prefix}/com' 267localstatedir='${prefix}/var' 268libdir='${exec_prefix}/lib' 269includedir='${prefix}/include' 270oldincludedir='/usr/include' 271infodir='${prefix}/info' 272mandir='${prefix}/man' 273 274# Initialize some other variables. 275subdirs= 276MFLAGS= MAKEFLAGS= 277SHELL=${CONFIG_SHELL-/bin/sh} 278# Maximum number of lines to put in a shell here document. 279ac_max_here_lines=12 280 281ac_prev= 282for ac_option 283do 284 285 # If the previous option needs an argument, assign it. 286 if test -n "$ac_prev"; then 287 eval "$ac_prev=\$ac_option" 288 ac_prev= 289 continue 290 fi 291 292 case "$ac_option" in 293 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 294 *) ac_optarg= ;; 295 esac 296 297 # Accept the important Cygnus configure options, so we can diagnose typos. 298 299 case "$ac_option" in 300 301 -bindir | --bindir | --bindi | --bind | --bin | --bi) 302 ac_prev=bindir ;; 303 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 304 bindir="$ac_optarg" ;; 305 306 -build | --build | --buil | --bui | --bu) 307 ac_prev=build ;; 308 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 309 build="$ac_optarg" ;; 310 311 -cache-file | --cache-file | --cache-fil | --cache-fi \ 312 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 313 ac_prev=cache_file ;; 314 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 315 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 316 cache_file="$ac_optarg" ;; 317 318 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 319 ac_prev=datadir ;; 320 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 321 | --da=*) 322 datadir="$ac_optarg" ;; 323 324 -disable-* | --disable-*) 325 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 326 # Reject names that are not valid shell variable names. 327 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 328 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 329 fi 330 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 331 eval "enable_${ac_feature}=no" ;; 332 333 -enable-* | --enable-*) 334 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 335 # Reject names that are not valid shell variable names. 336 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 337 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 338 fi 339 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 340 case "$ac_option" in 341 *=*) ;; 342 *) ac_optarg=yes ;; 343 esac 344 eval "enable_${ac_feature}='$ac_optarg'" ;; 345 346 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 347 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 348 | --exec | --exe | --ex) 349 ac_prev=exec_prefix ;; 350 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 351 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 352 | --exec=* | --exe=* | --ex=*) 353 exec_prefix="$ac_optarg" ;; 354 355 -gas | --gas | --ga | --g) 356 # Obsolete; use --with-gas. 357 with_gas=yes ;; 358 359 -help | --help | --hel | --he) 360 # Omit some internal or obsolete options to make the list less imposing. 361 # This message is too long to be a string in the A/UX 3.1 sh. 362 cat << EOF 363Usage: configure [options] [host] 364Options: [defaults in brackets after descriptions] 365Configuration: 366 --cache-file=FILE cache test results in FILE 367 --help print this message 368 --no-create do not create output files 369 --quiet, --silent do not print \`checking...' messages 370 --version print the version of autoconf that created configure 371Directory and file names: 372 --prefix=PREFIX install architecture-independent files in PREFIX 373 [$ac_default_prefix] 374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 375 [same as prefix] 376 --bindir=DIR user executables in DIR [EPREFIX/bin] 377 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 378 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 379 --datadir=DIR read-only architecture-independent data in DIR 380 [PREFIX/share] 381 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 382 --sharedstatedir=DIR modifiable architecture-independent data in DIR 383 [PREFIX/com] 384 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 385 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 386 --includedir=DIR C header files in DIR [PREFIX/include] 387 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 388 --infodir=DIR info documentation in DIR [PREFIX/info] 389 --mandir=DIR man documentation in DIR [PREFIX/man] 390 --srcdir=DIR find the sources in DIR [configure dir or ..] 391 --program-prefix=PREFIX prepend PREFIX to installed program names 392 --program-suffix=SUFFIX append SUFFIX to installed program names 393 --program-transform-name=PROGRAM 394 run sed PROGRAM on installed program names 395EOF 396 cat << EOF 397Host type: 398 --build=BUILD configure for building on BUILD [BUILD=HOST] 399 --host=HOST configure for HOST [guessed] 400 --target=TARGET configure for TARGET [TARGET=HOST] 401Features and packages: 402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 406 --x-includes=DIR X include files are in DIR 407 --x-libraries=DIR X library files are in DIR 408EOF 409 if test -n "$ac_help"; then 410 echo "--enable and --with options recognized:$ac_help" 411 fi 412 exit 0 ;; 413 414 -host | --host | --hos | --ho) 415 ac_prev=host ;; 416 -host=* | --host=* | --hos=* | --ho=*) 417 host="$ac_optarg" ;; 418 419 -includedir | --includedir | --includedi | --included | --include \ 420 | --includ | --inclu | --incl | --inc) 421 ac_prev=includedir ;; 422 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 423 | --includ=* | --inclu=* | --incl=* | --inc=*) 424 includedir="$ac_optarg" ;; 425 426 -infodir | --infodir | --infodi | --infod | --info | --inf) 427 ac_prev=infodir ;; 428 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 429 infodir="$ac_optarg" ;; 430 431 -libdir | --libdir | --libdi | --libd) 432 ac_prev=libdir ;; 433 -libdir=* | --libdir=* | --libdi=* | --libd=*) 434 libdir="$ac_optarg" ;; 435 436 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 437 | --libexe | --libex | --libe) 438 ac_prev=libexecdir ;; 439 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 440 | --libexe=* | --libex=* | --libe=*) 441 libexecdir="$ac_optarg" ;; 442 443 -localstatedir | --localstatedir | --localstatedi | --localstated \ 444 | --localstate | --localstat | --localsta | --localst \ 445 | --locals | --local | --loca | --loc | --lo) 446 ac_prev=localstatedir ;; 447 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 448 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 449 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 450 localstatedir="$ac_optarg" ;; 451 452 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 453 ac_prev=mandir ;; 454 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 455 mandir="$ac_optarg" ;; 456 457 -nfp | --nfp | --nf) 458 # Obsolete; use --without-fp. 459 with_fp=no ;; 460 461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 462 | --no-cr | --no-c) 463 no_create=yes ;; 464 465 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 466 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 467 no_recursion=yes ;; 468 469 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 470 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 471 | --oldin | --oldi | --old | --ol | --o) 472 ac_prev=oldincludedir ;; 473 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 474 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 475 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 476 oldincludedir="$ac_optarg" ;; 477 478 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 479 ac_prev=prefix ;; 480 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 481 prefix="$ac_optarg" ;; 482 483 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 484 | --program-pre | --program-pr | --program-p) 485 ac_prev=program_prefix ;; 486 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 487 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 488 program_prefix="$ac_optarg" ;; 489 490 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 491 | --program-suf | --program-su | --program-s) 492 ac_prev=program_suffix ;; 493 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 494 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 495 program_suffix="$ac_optarg" ;; 496 497 -program-transform-name | --program-transform-name \ 498 | --program-transform-nam | --program-transform-na \ 499 | --program-transform-n | --program-transform- \ 500 | --program-transform | --program-transfor \ 501 | --program-transfo | --program-transf \ 502 | --program-trans | --program-tran \ 503 | --progr-tra | --program-tr | --program-t) 504 ac_prev=program_transform_name ;; 505 -program-transform-name=* | --program-transform-name=* \ 506 | --program-transform-nam=* | --program-transform-na=* \ 507 | --program-transform-n=* | --program-transform-=* \ 508 | --program-transform=* | --program-transfor=* \ 509 | --program-transfo=* | --program-transf=* \ 510 | --program-trans=* | --program-tran=* \ 511 | --progr-tra=* | --program-tr=* | --program-t=*) 512 program_transform_name="$ac_optarg" ;; 513 514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 515 | -silent | --silent | --silen | --sile | --sil) 516 silent=yes ;; 517 518 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 519 ac_prev=sbindir ;; 520 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 521 | --sbi=* | --sb=*) 522 sbindir="$ac_optarg" ;; 523 524 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 525 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 526 | --sharedst | --shareds | --shared | --share | --shar \ 527 | --sha | --sh) 528 ac_prev=sharedstatedir ;; 529 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 530 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 531 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 532 | --sha=* | --sh=*) 533 sharedstatedir="$ac_optarg" ;; 534 535 -site | --site | --sit) 536 ac_prev=site ;; 537 -site=* | --site=* | --sit=*) 538 site="$ac_optarg" ;; 539 540 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 541 ac_prev=srcdir ;; 542 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 543 srcdir="$ac_optarg" ;; 544 545 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 546 | --syscon | --sysco | --sysc | --sys | --sy) 547 ac_prev=sysconfdir ;; 548 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 549 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 550 sysconfdir="$ac_optarg" ;; 551 552 -target | --target | --targe | --targ | --tar | --ta | --t) 553 ac_prev=target ;; 554 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 555 target="$ac_optarg" ;; 556 557 -v | -verbose | --verbose | --verbos | --verbo | --verb) 558 verbose=yes ;; 559 560 -version | --version | --versio | --versi | --vers) 561 echo "configure generated by autoconf version 2.13" 562 exit 0 ;; 563 564 -with-* | --with-*) 565 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 566 # Reject names that are not valid shell variable names. 567 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 568 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 569 fi 570 ac_package=`echo $ac_package| sed 's/-/_/g'` 571 case "$ac_option" in 572 *=*) ;; 573 *) ac_optarg=yes ;; 574 esac 575 eval "with_${ac_package}='$ac_optarg'" ;; 576 577 -without-* | --without-*) 578 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 579 # Reject names that are not valid shell variable names. 580 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 581 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 582 fi 583 ac_package=`echo $ac_package| sed 's/-/_/g'` 584 eval "with_${ac_package}=no" ;; 585 586 --x) 587 # Obsolete; use --with-x. 588 with_x=yes ;; 589 590 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 591 | --x-incl | --x-inc | --x-in | --x-i) 592 ac_prev=x_includes ;; 593 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 594 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 595 x_includes="$ac_optarg" ;; 596 597 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 598 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 599 ac_prev=x_libraries ;; 600 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 601 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 602 x_libraries="$ac_optarg" ;; 603 604 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 605 ;; 606 607 *) 608 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 609 echo "configure: warning: $ac_option: invalid host type" 1>&2 610 fi 611 if test "x$nonopt" != xNONE; then 612 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 613 fi 614 nonopt="$ac_option" 615 ;; 616 617 esac 618done 619 620if test -n "$ac_prev"; then 621 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 622fi 623 624trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 625 626# File descriptor usage: 627# 0 standard input 628# 1 file creation 629# 2 errors and warnings 630# 3 some systems may open it to /dev/tty 631# 4 used on the Kubota Titan 632# 6 checking for... messages and results 633# 5 compiler messages saved in config.log 634if test "$silent" = yes; then 635 exec 6>/dev/null 636else 637 exec 6>&1 638fi 639exec 5>./config.log 640 641echo "\ 642This file contains any messages produced by compilers while 643running configure, to aid debugging if configure makes a mistake. 644" 1>&5 645 646# Strip out --no-create and --no-recursion so they do not pile up. 647# Also quote any args containing shell metacharacters. 648ac_configure_args= 649for ac_arg 650do 651 case "$ac_arg" in 652 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 653 | --no-cr | --no-c) ;; 654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 656 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 657 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 658 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 659 esac 660done 661 662# NLS nuisances. 663# Only set these to C if already set. These must not be set unconditionally 664# because not all systems understand e.g. LANG=C (notably SCO). 665# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 666# Non-C LC_CTYPE values break the ctype check. 667if test "${LANG+set}" = set; then LANG=C; export LANG; fi 668if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 669if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 670if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 671 672# confdefs.h avoids OS command line length limits that DEFS can exceed. 673rm -rf conftest* confdefs.h 674# AIX cpp loses on an empty file, so make sure it contains at least a newline. 675echo > confdefs.h 676 677# A filename unique to this package, relative to the directory that 678# configure is in, which we can look for to find out if srcdir is correct. 679ac_unique_file=policy.h 680 681# Find the source files, if location was not specified. 682if test -z "$srcdir"; then 683 ac_srcdir_defaulted=yes 684 # Try the directory containing this script, then its parent. 685 ac_prog=$0 686 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 687 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 688 srcdir=$ac_confdir 689 if test ! -r $srcdir/$ac_unique_file; then 690 srcdir=.. 691 fi 692else 693 ac_srcdir_defaulted=no 694fi 695if test ! -r $srcdir/$ac_unique_file; then 696 if test "$ac_srcdir_defaulted" = yes; then 697 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 698 else 699 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 700 fi 701fi 702srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 703 704# Prefer explicitly selected file to automatically selected ones. 705if test -z "$CONFIG_SITE"; then 706 if test "x$prefix" != xNONE; then 707 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 708 else 709 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 710 fi 711fi 712for ac_site_file in $CONFIG_SITE; do 713 if test -r "$ac_site_file"; then 714 echo "loading site script $ac_site_file" 715 . "$ac_site_file" 716 fi 717done 718 719if test -r "$cache_file"; then 720 echo "loading cache $cache_file" 721 . $cache_file 722else 723 echo "creating cache $cache_file" 724 > $cache_file 725fi 726 727ac_ext=c 728# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 729ac_cpp='$CPP $CPPFLAGS' 730ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 731ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 732cross_compiling=$ac_cv_prog_cc_cross 733 734ac_exeext= 735ac_objext=o 736if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 737 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 738 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 739 ac_n= ac_c=' 740' ac_t=' ' 741 else 742 ac_n=-n ac_c= ac_t= 743 fi 744else 745 ac_n= ac_c='\c' ac_t= 746fi 747 748 749ac_aux_dir= 750for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 751 if test -f $ac_dir/install-sh; then 752 ac_aux_dir=$ac_dir 753 ac_install_sh="$ac_aux_dir/install-sh -c" 754 break 755 elif test -f $ac_dir/install.sh; then 756 ac_aux_dir=$ac_dir 757 ac_install_sh="$ac_aux_dir/install.sh -c" 758 break 759 fi 760done 761if test -z "$ac_aux_dir"; then 762 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 763fi 764ac_config_guess=$ac_aux_dir/config.guess 765ac_config_sub=$ac_aux_dir/config.sub 766ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 767 768 769# expand $ac_aux_dir to an absolute path 770am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` 771 772# Find a good install program. We prefer a C program (faster), 773# so one script is as good as another. But avoid the broken or 774# incompatible versions: 775# SysV /etc/install, /usr/sbin/install 776# SunOS /usr/etc/install 777# IRIX /sbin/install 778# AIX /bin/install 779# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 780# AFS /usr/afsws/bin/install, which mishandles nonexistent args 781# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 782# ./install, which can be erroneously created by make from ./install.sh. 783echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 784echo "configure:785: checking for a BSD compatible install" >&5 785if test -z "$INSTALL"; then 786if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 787 echo $ac_n "(cached) $ac_c" 1>&6 788else 789 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 790 for ac_dir in $PATH; do 791 # Account for people who put trailing slashes in PATH elements. 792 case "$ac_dir/" in 793 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 794 *) 795 # OSF1 and SCO ODT 3.0 have their own names for install. 796 # Don't use installbsd from OSF since it installs stuff as root 797 # by default. 798 for ac_prog in ginstall scoinst install; do 799 if test -f $ac_dir/$ac_prog; then 800 if test $ac_prog = install && 801 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 802 # AIX install. It has an incompatible calling convention. 803 : 804 else 805 ac_cv_path_install="$ac_dir/$ac_prog -c" 806 break 2 807 fi 808 fi 809 done 810 ;; 811 esac 812 done 813 IFS="$ac_save_IFS" 814 815fi 816 if test "${ac_cv_path_install+set}" = set; then 817 INSTALL="$ac_cv_path_install" 818 else 819 # As a last resort, use the slow shell script. We don't cache a 820 # path for INSTALL within a source directory, because that will 821 # break other packages using the cache if that directory is 822 # removed, or if the path is relative. 823 INSTALL="$ac_install_sh" 824 fi 825fi 826echo "$ac_t""$INSTALL" 1>&6 827 828# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 829# It thinks the first close brace ends the variable substitution. 830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 831 832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 833 834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 835 836echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 837echo "configure:838: checking whether build environment is sane" >&5 838# Just in case 839sleep 1 840echo timestamp > conftest.file 841# Do `set' in a subshell so we don't clobber the current shell's 842# arguments. Must try -L first in case configure is actually a 843# symlink; some systems play weird games with the mod time of symlinks 844# (eg FreeBSD returns the mod time of the symlink's containing 845# directory). 846if ( 847 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 848 if test "$*" = "X"; then 849 # -L didn't work. 850 set X `ls -t $srcdir/configure conftest.file` 851 fi 852 rm -f conftest.file 853 if test "$*" != "X $srcdir/configure conftest.file" \ 854 && test "$*" != "X conftest.file $srcdir/configure"; then 855 856 # If neither matched, then we have a broken ls. This can happen 857 # if, for instance, CONFIG_SHELL is bash and it inherits a 858 # broken ls alias from the environment. This has actually 859 # happened. Such a system could not be considered "sane". 860 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 861alias in your environment" 1>&2; exit 1; } 862 fi 863 864 test "$2" = conftest.file 865 ) 866then 867 # Ok. 868 : 869else 870 { echo "configure: error: newly created file is older than distributed files! 871Check your system clock" 1>&2; exit 1; } 872fi 873echo "$ac_t""yes" 1>&6 874if test "$program_transform_name" = s,x,x,; then 875 program_transform_name= 876else 877 # Double any \ or $. echo might interpret backslashes. 878 cat <<\EOF_SED > conftestsed 879s,\\,\\\\,g; s,\$,$$,g 880EOF_SED 881 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 882 rm -f conftestsed 883fi 884test "$program_prefix" != NONE && 885 program_transform_name="s,^,${program_prefix},; $program_transform_name" 886# Use a double $ so make ignores it. 887test "$program_suffix" != NONE && 888 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 889 890# sed with no file args requires a program. 891test "$program_transform_name" = "" && program_transform_name="s,x,x," 892 893test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 894# Use eval to expand $SHELL 895if eval "$MISSING --run true"; then 896 am_missing_run="$MISSING --run " 897else 898 am_missing_run= 899 am_backtick='`' 900 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2 901fi 902 903for ac_prog in mawk gawk nawk awk 904do 905# Extract the first word of "$ac_prog", so it can be a program name with args. 906set dummy $ac_prog; ac_word=$2 907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 908echo "configure:909: checking for $ac_word" >&5 909if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 910 echo $ac_n "(cached) $ac_c" 1>&6 911else 912 if test -n "$AWK"; then 913 ac_cv_prog_AWK="$AWK" # Let the user override the test. 914else 915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 916 ac_dummy="$PATH" 917 for ac_dir in $ac_dummy; do 918 test -z "$ac_dir" && ac_dir=. 919 if test -f $ac_dir/$ac_word; then 920 ac_cv_prog_AWK="$ac_prog" 921 break 922 fi 923 done 924 IFS="$ac_save_ifs" 925fi 926fi 927AWK="$ac_cv_prog_AWK" 928if test -n "$AWK"; then 929 echo "$ac_t""$AWK" 1>&6 930else 931 echo "$ac_t""no" 1>&6 932fi 933 934test -n "$AWK" && break 935done 936 937echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 938echo "configure:939: checking whether ${MAKE-make} sets \${MAKE}" >&5 939set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 940if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 941 echo $ac_n "(cached) $ac_c" 1>&6 942else 943 cat > conftestmake <<\EOF 944all: 945 @echo 'ac_maketemp="${MAKE}"' 946EOF 947# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 948eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 949if test -n "$ac_maketemp"; then 950 eval ac_cv_prog_make_${ac_make}_set=yes 951else 952 eval ac_cv_prog_make_${ac_make}_set=no 953fi 954rm -f conftestmake 955fi 956if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 957 echo "$ac_t""yes" 1>&6 958 SET_MAKE= 959else 960 echo "$ac_t""no" 1>&6 961 SET_MAKE="MAKE=${MAKE-make}" 962fi 963 964# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 965if test "${enable_dependency_tracking+set}" = set; then 966 enableval="$enable_dependency_tracking" 967 : 968fi 969 970if test "x$enable_dependency_tracking" != xno; then 971 am_depcomp="$ac_aux_dir/depcomp" 972 AMDEPBACKSLASH='\' 973fi 974 975 976if test "x$enable_dependency_tracking" != xno; then 977 AMDEP_TRUE= 978 AMDEP_FALSE='#' 979else 980 AMDEP_TRUE='#' 981 AMDEP_FALSE= 982fi 983 984 985 986 987rm -f .deps 2>/dev/null 988mkdir .deps 2>/dev/null 989if test -d .deps; then 990 DEPDIR=.deps 991else 992 # MS-DOS does not allow filenames that begin with a dot. 993 DEPDIR=_deps 994fi 995rmdir .deps 2>/dev/null 996 997 998# test to see if srcdir already configured 999if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 1000 test -f $srcdir/config.status; then 1001 { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; } 1002fi 1003 1004# Define the identity of the package. 1005PACKAGE=uucp 1006VERSION=1.07 1007cat >> confdefs.h <<EOF 1008#define PACKAGE "$PACKAGE" 1009EOF 1010 1011cat >> confdefs.h <<EOF 1012#define VERSION "$VERSION" 1013EOF 1014 1015 1016# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 1017# the ones we care about. 1018 1019# Autoconf 2.50 always computes EXEEXT. However we need to be 1020# compatible with 2.13, for now. So we always define EXEEXT, but we 1021# don't compute it. 1022 1023# Similar for OBJEXT -- only we only use OBJEXT if the user actually 1024# requests that it be used. This is a bit dumb. 1025: ${OBJEXT=o} 1026 1027 1028# Some tools Automake needs. 1029 1030ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} 1031 1032 1033AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1034 1035 1036AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} 1037 1038 1039AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1040 1041 1042MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1043 1044 1045AMTAR=${AMTAR-"${am_missing_run}tar"} 1046 1047install_sh=${install_sh-"$am_aux_dir/install-sh"} 1048 1049INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1050 1051# We need awk for the "check" target. The system "awk" is bad on 1052# some platforms. 1053 1054 1055 1056 1057echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 1058echo "configure:1059: checking whether to enable maintainer-specific portions of Makefiles" >&5 1059 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1060if test "${enable_maintainer_mode+set}" = set; then 1061 enableval="$enable_maintainer_mode" 1062 USE_MAINTAINER_MODE=$enableval 1063else 1064 USE_MAINTAINER_MODE=no 1065fi 1066 1067 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 1068 1069 1070if test $USE_MAINTAINER_MODE = yes; then 1071 MAINTAINER_MODE_TRUE= 1072 MAINTAINER_MODE_FALSE='#' 1073else 1074 MAINTAINER_MODE_TRUE='#' 1075 MAINTAINER_MODE_FALSE= 1076fi 1077 MAINT=$MAINTAINER_MODE_TRUE 1078 1079 1080# Check whether --with-user or --without-user was given. 1081if test "${with_user+set}" = set; then 1082 withval="$with_user" 1083 OWNER=${withval} 1084else 1085 OWNER="uucp" 1086fi 1087 1088cat >> confdefs.h <<EOF 1089#define OWNER "$OWNER" 1090EOF 1091 1092 1093# Check whether --with-newconfigdir or --without-newconfigdir was given. 1094if test "${with_newconfigdir+set}" = set; then 1095 withval="$with_newconfigdir" 1096 NEWCONFIGDIR=${withval} 1097else 1098 NEWCONFIGDIR='${prefix}/conf/uucp' 1099fi 1100 1101 1102# Check whether --with-oldconfigdir or --without-oldconfigdir was given. 1103if test "${with_oldconfigdir+set}" = set; then 1104 withval="$with_oldconfigdir" 1105 OLDCONFIGDIR=${withval} 1106else 1107 OLDCONFIGDIR="/usr/lib/uucp" 1108fi 1109 1110 1111if test "x$prefix" = xNONE; then 1112echo $ac_n "checking for prefix by $ac_c" 1>&6 1113# Extract the first word of "gcc", so it can be a program name with args. 1114set dummy gcc; ac_word=$2 1115echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1116echo "configure:1117: checking for $ac_word" >&5 1117if eval "test \"`echo '$''{'ac_cv_path_GCC'+set}'`\" = set"; then 1118 echo $ac_n "(cached) $ac_c" 1>&6 1119else 1120 case "$GCC" in 1121 /*) 1122 ac_cv_path_GCC="$GCC" # Let the user override the test with a path. 1123 ;; 1124 ?:/*) 1125 ac_cv_path_GCC="$GCC" # Let the user override the test with a dos path. 1126 ;; 1127 *) 1128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1129 ac_dummy="$PATH" 1130 for ac_dir in $ac_dummy; do 1131 test -z "$ac_dir" && ac_dir=. 1132 if test -f $ac_dir/$ac_word; then 1133 ac_cv_path_GCC="$ac_dir/$ac_word" 1134 break 1135 fi 1136 done 1137 IFS="$ac_save_ifs" 1138 ;; 1139esac 1140fi 1141GCC="$ac_cv_path_GCC" 1142if test -n "$GCC"; then 1143 echo "$ac_t""$GCC" 1>&6 1144else 1145 echo "$ac_t""no" 1>&6 1146fi 1147 1148 if test -n "$ac_cv_path_GCC"; then 1149 prefix=`echo $ac_cv_path_GCC|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` 1150 fi 1151fi 1152 1153# Extract the first word of "gcc", so it can be a program name with args. 1154set dummy gcc; ac_word=$2 1155echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1156echo "configure:1157: checking for $ac_word" >&5 1157if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1158 echo $ac_n "(cached) $ac_c" 1>&6 1159else 1160 if test -n "$CC"; then 1161 ac_cv_prog_CC="$CC" # Let the user override the test. 1162else 1163 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1164 ac_dummy="$PATH" 1165 for ac_dir in $ac_dummy; do 1166 test -z "$ac_dir" && ac_dir=. 1167 if test -f $ac_dir/$ac_word; then 1168 ac_cv_prog_CC="gcc" 1169 break 1170 fi 1171 done 1172 IFS="$ac_save_ifs" 1173fi 1174fi 1175CC="$ac_cv_prog_CC" 1176if test -n "$CC"; then 1177 echo "$ac_t""$CC" 1>&6 1178else 1179 echo "$ac_t""no" 1>&6 1180fi 1181 1182if test -z "$CC"; then 1183 # Extract the first word of "cc", so it can be a program name with args. 1184set dummy cc; ac_word=$2 1185echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1186echo "configure:1187: checking for $ac_word" >&5 1187if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1188 echo $ac_n "(cached) $ac_c" 1>&6 1189else 1190 if test -n "$CC"; then 1191 ac_cv_prog_CC="$CC" # Let the user override the test. 1192else 1193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1194 ac_prog_rejected=no 1195 ac_dummy="$PATH" 1196 for ac_dir in $ac_dummy; do 1197 test -z "$ac_dir" && ac_dir=. 1198 if test -f $ac_dir/$ac_word; then 1199 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1200 ac_prog_rejected=yes 1201 continue 1202 fi 1203 ac_cv_prog_CC="cc" 1204 break 1205 fi 1206 done 1207 IFS="$ac_save_ifs" 1208if test $ac_prog_rejected = yes; then 1209 # We found a bogon in the path, so make sure we never use it. 1210 set dummy $ac_cv_prog_CC 1211 shift 1212 if test $# -gt 0; then 1213 # We chose a different compiler from the bogus one. 1214 # However, it has the same basename, so the bogon will be chosen 1215 # first if we set CC to just the basename; use the full file name. 1216 shift 1217 set dummy "$ac_dir/$ac_word" "$@" 1218 shift 1219 ac_cv_prog_CC="$@" 1220 fi 1221fi 1222fi 1223fi 1224CC="$ac_cv_prog_CC" 1225if test -n "$CC"; then 1226 echo "$ac_t""$CC" 1>&6 1227else 1228 echo "$ac_t""no" 1>&6 1229fi 1230 1231 if test -z "$CC"; then 1232 case "`uname -s`" in 1233 *win32* | *WIN32*) 1234 # Extract the first word of "cl", so it can be a program name with args. 1235set dummy cl; ac_word=$2 1236echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1237echo "configure:1238: checking for $ac_word" >&5 1238if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1239 echo $ac_n "(cached) $ac_c" 1>&6 1240else 1241 if test -n "$CC"; then 1242 ac_cv_prog_CC="$CC" # Let the user override the test. 1243else 1244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1245 ac_dummy="$PATH" 1246 for ac_dir in $ac_dummy; do 1247 test -z "$ac_dir" && ac_dir=. 1248 if test -f $ac_dir/$ac_word; then 1249 ac_cv_prog_CC="cl" 1250 break 1251 fi 1252 done 1253 IFS="$ac_save_ifs" 1254fi 1255fi 1256CC="$ac_cv_prog_CC" 1257if test -n "$CC"; then 1258 echo "$ac_t""$CC" 1>&6 1259else 1260 echo "$ac_t""no" 1>&6 1261fi 1262 ;; 1263 esac 1264 fi 1265 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1266fi 1267 1268echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1269echo "configure:1270: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1270 1271ac_ext=c 1272# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1273ac_cpp='$CPP $CPPFLAGS' 1274ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1275ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1276cross_compiling=$ac_cv_prog_cc_cross 1277 1278cat > conftest.$ac_ext << EOF 1279 1280#line 1281 "configure" 1281#include "confdefs.h" 1282 1283main(){return(0);} 1284EOF 1285if { (eval echo configure:1286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1286 ac_cv_prog_cc_works=yes 1287 # If we can't run a trivial program, we are probably using a cross compiler. 1288 if (./conftest; exit) 2>/dev/null; then 1289 ac_cv_prog_cc_cross=no 1290 else 1291 ac_cv_prog_cc_cross=yes 1292 fi 1293else 1294 echo "configure: failed program was:" >&5 1295 cat conftest.$ac_ext >&5 1296 ac_cv_prog_cc_works=no 1297fi 1298rm -fr conftest* 1299ac_ext=c 1300# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1301ac_cpp='$CPP $CPPFLAGS' 1302ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1303ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1304cross_compiling=$ac_cv_prog_cc_cross 1305 1306echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1307if test $ac_cv_prog_cc_works = no; then 1308 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1309fi 1310echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1311echo "configure:1312: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1312echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1313cross_compiling=$ac_cv_prog_cc_cross 1314 1315echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1316echo "configure:1317: checking whether we are using GNU C" >&5 1317if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1318 echo $ac_n "(cached) $ac_c" 1>&6 1319else 1320 cat > conftest.c <<EOF 1321#ifdef __GNUC__ 1322 yes; 1323#endif 1324EOF 1325if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1326 ac_cv_prog_gcc=yes 1327else 1328 ac_cv_prog_gcc=no 1329fi 1330fi 1331 1332echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1333 1334if test $ac_cv_prog_gcc = yes; then 1335 GCC=yes 1336else 1337 GCC= 1338fi 1339 1340ac_test_CFLAGS="${CFLAGS+set}" 1341ac_save_CFLAGS="$CFLAGS" 1342CFLAGS= 1343echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1344echo "configure:1345: checking whether ${CC-cc} accepts -g" >&5 1345if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1346 echo $ac_n "(cached) $ac_c" 1>&6 1347else 1348 echo 'void f(){}' > conftest.c 1349if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1350 ac_cv_prog_cc_g=yes 1351else 1352 ac_cv_prog_cc_g=no 1353fi 1354rm -f conftest* 1355 1356fi 1357 1358echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1359if test "$ac_test_CFLAGS" = set; then 1360 CFLAGS="$ac_save_CFLAGS" 1361elif test $ac_cv_prog_cc_g = yes; then 1362 if test "$GCC" = yes; then 1363 CFLAGS="-g -O2" 1364 else 1365 CFLAGS="-g" 1366 fi 1367else 1368 if test "$GCC" = yes; then 1369 CFLAGS="-O2" 1370 else 1371 CFLAGS= 1372 fi 1373fi 1374 1375 1376am_make=${MAKE-make} 1377cat > confinc << 'END' 1378doit: 1379 @echo done 1380END 1381# If we don't find an include directive, just comment out the code. 1382echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6 1383echo "configure:1384: checking for style of include used by $am_make" >&5 1384am__include='#' 1385am__quote= 1386_am_result=none 1387# First try GNU make style include. 1388echo "include confinc" > confmf 1389# We grep out `Entering directory' and `Leaving directory' 1390# messages which can occur if `w' ends up in MAKEFLAGS. 1391# In particular we don't look at `^make:' because GNU make might 1392# be invoked under some other name (usually "gmake"), in which 1393# case it prints its new name instead of `make'. 1394if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 1395 am__include=include 1396 am__quote= 1397 _am_result=GNU 1398fi 1399# Now try BSD make style include. 1400if test "$am__include" = "#"; then 1401 echo '.include "confinc"' > confmf 1402 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 1403 am__include=.include 1404 am__quote='"' 1405 _am_result=BSD 1406 fi 1407fi 1408 1409 1410echo "$ac_t""$_am_result" 1>&6 1411rm -f confinc confmf 1412 1413 1414depcc="$CC" am_compiler_list= 1415 1416echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6 1417echo "configure:1418: checking dependency style of $depcc" >&5 1418if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then 1419 echo $ac_n "(cached) $ac_c" 1>&6 1420else 1421 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 1422 # We make a subdir and do the tests there. Otherwise we can end up 1423 # making bogus files that we don't know about and never remove. For 1424 # instance it was reported that on HP-UX the gcc test will end up 1425 # making a dummy file named `D' -- because `-MD' means `put the output 1426 # in D'. 1427 mkdir conftest.dir 1428 # Copy depcomp to subdir because otherwise we won't find it if we're 1429 # using a relative directory. 1430 cp "$am_depcomp" conftest.dir 1431 cd conftest.dir 1432 1433 am_cv_CC_dependencies_compiler_type=none 1434 if test "$am_compiler_list" = ""; then 1435 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 1436 fi 1437 for depmode in $am_compiler_list; do 1438 # We need to recreate these files for each test, as the compiler may 1439 # overwrite some of them when testing with obscure command lines. 1440 # This happens at least with the AIX C compiler. 1441 echo '#include "conftest.h"' > conftest.c 1442 echo 'int i;' > conftest.h 1443 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 1444 1445 case $depmode in 1446 nosideeffect) 1447 # after this tag, mechanisms are not by side-effect, so they'll 1448 # only be used when explicitly requested 1449 if test "x$enable_dependency_tracking" = xyes; then 1450 continue 1451 else 1452 break 1453 fi 1454 ;; 1455 none) break ;; 1456 esac 1457 # We check with `-c' and `-o' for the sake of the "dashmstdout" 1458 # mode. It turns out that the SunPro C++ compiler does not properly 1459 # handle `-M -o', and we need to detect this. 1460 if depmode=$depmode \ 1461 source=conftest.c object=conftest.o \ 1462 depfile=conftest.Po tmpdepfile=conftest.TPo \ 1463 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 1464 grep conftest.h conftest.Po > /dev/null 2>&1 && 1465 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 1466 am_cv_CC_dependencies_compiler_type=$depmode 1467 break 1468 fi 1469 done 1470 1471 cd .. 1472 rm -rf conftest.dir 1473else 1474 am_cv_CC_dependencies_compiler_type=none 1475fi 1476 1477fi 1478 1479echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6 1480CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" 1481 1482 1483echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1484echo "configure:1485: checking how to run the C preprocessor" >&5 1485# On Suns, sometimes $CPP names a directory. 1486if test -n "$CPP" && test -d "$CPP"; then 1487 CPP= 1488fi 1489if test -z "$CPP"; then 1490if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1491 echo $ac_n "(cached) $ac_c" 1>&6 1492else 1493 # This must be in double quotes, not single quotes, because CPP may get 1494 # substituted into the Makefile and "${CC-cc}" will confuse make. 1495 CPP="${CC-cc} -E" 1496 # On the NeXT, cc -E runs the code through the compiler's parser, 1497 # not just through cpp. 1498 cat > conftest.$ac_ext <<EOF 1499#line 1500 "configure" 1500#include "confdefs.h" 1501#include <assert.h> 1502Syntax Error 1503EOF 1504ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1505{ (eval echo configure:1506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1506ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1507if test -z "$ac_err"; then 1508 : 1509else 1510 echo "$ac_err" >&5 1511 echo "configure: failed program was:" >&5 1512 cat conftest.$ac_ext >&5 1513 rm -rf conftest* 1514 CPP="${CC-cc} -E -traditional-cpp" 1515 cat > conftest.$ac_ext <<EOF 1516#line 1517 "configure" 1517#include "confdefs.h" 1518#include <assert.h> 1519Syntax Error 1520EOF 1521ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1522{ (eval echo configure:1523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1523ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1524if test -z "$ac_err"; then 1525 : 1526else 1527 echo "$ac_err" >&5 1528 echo "configure: failed program was:" >&5 1529 cat conftest.$ac_ext >&5 1530 rm -rf conftest* 1531 CPP="${CC-cc} -nologo -E" 1532 cat > conftest.$ac_ext <<EOF 1533#line 1534 "configure" 1534#include "confdefs.h" 1535#include <assert.h> 1536Syntax Error 1537EOF 1538ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1539{ (eval echo configure:1540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1540ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1541if test -z "$ac_err"; then 1542 : 1543else 1544 echo "$ac_err" >&5 1545 echo "configure: failed program was:" >&5 1546 cat conftest.$ac_ext >&5 1547 rm -rf conftest* 1548 CPP=/lib/cpp 1549fi 1550rm -f conftest* 1551fi 1552rm -f conftest* 1553fi 1554rm -f conftest* 1555 ac_cv_prog_CPP="$CPP" 1556fi 1557 CPP="$ac_cv_prog_CPP" 1558else 1559 ac_cv_prog_CPP="$CPP" 1560fi 1561echo "$ac_t""$CPP" 1>&6 1562 1563if test $ac_cv_prog_gcc = yes; then 1564 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 1565echo "configure:1566: checking whether ${CC-cc} needs -traditional" >&5 1566if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 1567 echo $ac_n "(cached) $ac_c" 1>&6 1568else 1569 ac_pattern="Autoconf.*'x'" 1570 cat > conftest.$ac_ext <<EOF 1571#line 1572 "configure" 1572#include "confdefs.h" 1573#include <sgtty.h> 1574Autoconf TIOCGETP 1575EOF 1576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1577 egrep "$ac_pattern" >/dev/null 2>&1; then 1578 rm -rf conftest* 1579 ac_cv_prog_gcc_traditional=yes 1580else 1581 rm -rf conftest* 1582 ac_cv_prog_gcc_traditional=no 1583fi 1584rm -f conftest* 1585 1586 1587 if test $ac_cv_prog_gcc_traditional = no; then 1588 cat > conftest.$ac_ext <<EOF 1589#line 1590 "configure" 1590#include "confdefs.h" 1591#include <termio.h> 1592Autoconf TCGETA 1593EOF 1594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1595 egrep "$ac_pattern" >/dev/null 2>&1; then 1596 rm -rf conftest* 1597 ac_cv_prog_gcc_traditional=yes 1598fi 1599rm -f conftest* 1600 1601 fi 1602fi 1603 1604echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 1605 if test $ac_cv_prog_gcc_traditional = yes; then 1606 CC="$CC -traditional" 1607 fi 1608fi 1609 1610build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 1611# Check whether --enable-build-warnings or --disable-build-warnings was given. 1612if test "${enable_build_warnings+set}" = set; then 1613 enableval="$enable_build_warnings" 1614 case "${enableval}" in 1615 yes) ;; 1616 no) build_warnings="-w";; 1617 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 1618 build_warnings="${build_warnings} ${t}";; 1619 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 1620 build_warnings="${t} ${build_warnings}";; 1621 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; 1622esac 1623if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then 1624 echo "Setting warning flags = $build_warnings" 6>&1 1625fi 1626fi 1627WARN_CFLAGS="" 1628if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then 1629 WARN_CFLAGS="${build_warnings}" 1630fi 1631 1632AR=${AR-ar} 1633 1634# Extract the first word of "ranlib", so it can be a program name with args. 1635set dummy ranlib; ac_word=$2 1636echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1637echo "configure:1638: checking for $ac_word" >&5 1638if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1639 echo $ac_n "(cached) $ac_c" 1>&6 1640else 1641 if test -n "$RANLIB"; then 1642 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1643else 1644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1645 ac_dummy="$PATH" 1646 for ac_dir in $ac_dummy; do 1647 test -z "$ac_dir" && ac_dir=. 1648 if test -f $ac_dir/$ac_word; then 1649 ac_cv_prog_RANLIB="ranlib" 1650 break 1651 fi 1652 done 1653 IFS="$ac_save_ifs" 1654 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1655fi 1656fi 1657RANLIB="$ac_cv_prog_RANLIB" 1658if test -n "$RANLIB"; then 1659 echo "$ac_t""$RANLIB" 1>&6 1660else 1661 echo "$ac_t""no" 1>&6 1662fi 1663 1664echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1665echo "configure:1666: checking for POSIXized ISC" >&5 1666if test -d /etc/conf/kconfig.d && 1667 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 1668then 1669 echo "$ac_t""yes" 1>&6 1670 ISC=yes # If later tests want to check for ISC. 1671 cat >> confdefs.h <<\EOF 1672#define _POSIX_SOURCE 1 1673EOF 1674 1675 if test "$GCC" = yes; then 1676 CC="$CC -posix" 1677 else 1678 CC="$CC -Xp" 1679 fi 1680else 1681 echo "$ac_t""no" 1>&6 1682 ISC= 1683fi 1684 1685ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` 1686echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 1687echo "configure:1688: checking for minix/config.h" >&5 1688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1689 echo $ac_n "(cached) $ac_c" 1>&6 1690else 1691 cat > conftest.$ac_ext <<EOF 1692#line 1693 "configure" 1693#include "confdefs.h" 1694#include <minix/config.h> 1695EOF 1696ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1697{ (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1698ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1699if test -z "$ac_err"; then 1700 rm -rf conftest* 1701 eval "ac_cv_header_$ac_safe=yes" 1702else 1703 echo "$ac_err" >&5 1704 echo "configure: failed program was:" >&5 1705 cat conftest.$ac_ext >&5 1706 rm -rf conftest* 1707 eval "ac_cv_header_$ac_safe=no" 1708fi 1709rm -f conftest* 1710fi 1711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1712 echo "$ac_t""yes" 1>&6 1713 MINIX=yes 1714else 1715 echo "$ac_t""no" 1>&6 1716MINIX= 1717fi 1718 1719if test "$MINIX" = yes; then 1720 cat >> confdefs.h <<\EOF 1721#define _POSIX_SOURCE 1 1722EOF 1723 1724 cat >> confdefs.h <<\EOF 1725#define _POSIX_1_SOURCE 2 1726EOF 1727 1728 cat >> confdefs.h <<\EOF 1729#define _MINIX 1 1730EOF 1731 1732fi 1733 1734echo $ac_n "checking for AIX""... $ac_c" 1>&6 1735echo "configure:1736: checking for AIX" >&5 1736cat > conftest.$ac_ext <<EOF 1737#line 1738 "configure" 1738#include "confdefs.h" 1739#ifdef _AIX 1740 yes 1741#endif 1742 1743EOF 1744if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1745 egrep "yes" >/dev/null 2>&1; then 1746 rm -rf conftest* 1747 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 1748#define _ALL_SOURCE 1 1749EOF 1750 1751else 1752 rm -rf conftest* 1753 echo "$ac_t""no" 1>&6 1754fi 1755rm -f conftest* 1756 1757 1758echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6 1759echo "configure:1760: checking for getpwnam in -lsun" >&5 1760ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'` 1761if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1762 echo $ac_n "(cached) $ac_c" 1>&6 1763else 1764 ac_save_LIBS="$LIBS" 1765LIBS="-lsun $LIBS" 1766cat > conftest.$ac_ext <<EOF 1767#line 1768 "configure" 1768#include "confdefs.h" 1769/* Override any gcc2 internal prototype to avoid an error. */ 1770/* We use char because int might match the return type of a gcc2 1771 builtin and then its argument prototype would still apply. */ 1772char getpwnam(); 1773 1774int main() { 1775getpwnam() 1776; return 0; } 1777EOF 1778if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1779 rm -rf conftest* 1780 eval "ac_cv_lib_$ac_lib_var=yes" 1781else 1782 echo "configure: failed program was:" >&5 1783 cat conftest.$ac_ext >&5 1784 rm -rf conftest* 1785 eval "ac_cv_lib_$ac_lib_var=no" 1786fi 1787rm -f conftest* 1788LIBS="$ac_save_LIBS" 1789 1790fi 1791if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1792 echo "$ac_t""yes" 1>&6 1793 ac_tr_lib=HAVE_LIB`echo sun | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1794 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1795 cat >> confdefs.h <<EOF 1796#define $ac_tr_lib 1 1797EOF 1798 1799 LIBS="-lsun $LIBS" 1800 1801else 1802 echo "$ac_t""no" 1>&6 1803fi 1804 1805echo $ac_n "checking for working const""... $ac_c" 1>&6 1806echo "configure:1807: checking for working const" >&5 1807if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1808 echo $ac_n "(cached) $ac_c" 1>&6 1809else 1810 cat > conftest.$ac_ext <<EOF 1811#line 1812 "configure" 1812#include "confdefs.h" 1813 1814int main() { 1815 1816/* Ultrix mips cc rejects this. */ 1817typedef int charset[2]; const charset x; 1818/* SunOS 4.1.1 cc rejects this. */ 1819char const *const *ccp; 1820char **p; 1821/* NEC SVR4.0.2 mips cc rejects this. */ 1822struct point {int x, y;}; 1823static struct point const zero = {0,0}; 1824/* AIX XL C 1.02.0.0 rejects this. 1825 It does not let you subtract one const X* pointer from another in an arm 1826 of an if-expression whose if-part is not a constant expression */ 1827const char *g = "string"; 1828ccp = &g + (g ? g-g : 0); 1829/* HPUX 7.0 cc rejects these. */ 1830++ccp; 1831p = (char**) ccp; 1832ccp = (char const *const *) p; 1833{ /* SCO 3.2v4 cc rejects this. */ 1834 char *t; 1835 char const *s = 0 ? (char *) 0 : (char const *) 0; 1836 1837 *t++ = 0; 1838} 1839{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 1840 int x[] = {25, 17}; 1841 const int *foo = &x[0]; 1842 ++foo; 1843} 1844{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 1845 typedef const int *iptr; 1846 iptr p = 0; 1847 ++p; 1848} 1849{ /* AIX XL C 1.02.0.0 rejects this saying 1850 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 1851 struct s { int j; const int *ap[3]; }; 1852 struct s *b; b->j = 5; 1853} 1854{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 1855 const int foo = 10; 1856} 1857 1858; return 0; } 1859EOF 1860if { (eval echo configure:1861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1861 rm -rf conftest* 1862 ac_cv_c_const=yes 1863else 1864 echo "configure: failed program was:" >&5 1865 cat conftest.$ac_ext >&5 1866 rm -rf conftest* 1867 ac_cv_c_const=no 1868fi 1869rm -f conftest* 1870fi 1871 1872echo "$ac_t""$ac_cv_c_const" 1>&6 1873if test $ac_cv_c_const = no; then 1874 cat >> confdefs.h <<\EOF 1875#define const 1876EOF 1877 1878fi 1879 1880echo $ac_n "checking for prototypes""... $ac_c" 1>&6 1881echo "configure:1882: checking for prototypes" >&5 1882if eval "test \"`echo '$''{'uucp_cv_c_prototypes'+set}'`\" = set"; then 1883 echo $ac_n "(cached) $ac_c" 1>&6 1884else 1885 cat > conftest.$ac_ext <<EOF 1886#line 1887 "configure" 1887#include "confdefs.h" 1888extern int foo (short); 1889int foo(short i) { return i; } 1890int main() { 1891int i; 1892; return 0; } 1893EOF 1894if { (eval echo configure:1895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1895 rm -rf conftest* 1896 uucp_cv_c_prototypes=yes 1897else 1898 echo "configure: failed program was:" >&5 1899 cat conftest.$ac_ext >&5 1900 rm -rf conftest* 1901 uucp_cv_c_prototypes=no 1902fi 1903rm -f conftest* 1904fi 1905 1906echo "$ac_t""$uucp_cv_c_prototypes" 1>&6 1907if test $uucp_cv_c_prototypes = yes; then 1908 cat >> confdefs.h <<\EOF 1909#define HAVE_PROTOTYPES 1 1910EOF 1911 1912fi 1913# Pull the hash mark out of the macro call to avoid m4 problems. 1914ac_msg="whether #! works in shell scripts" 1915echo $ac_n "checking $ac_msg""... $ac_c" 1>&6 1916echo "configure:1917: checking $ac_msg" >&5 1917if eval "test \"`echo '$''{'ac_cv_sys_interpreter'+set}'`\" = set"; then 1918 echo $ac_n "(cached) $ac_c" 1>&6 1919else 1920 echo '#! /bin/cat 1921exit 69 1922' > conftest 1923chmod u+x conftest 1924(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null) 1925if test $? -ne 69; then 1926 ac_cv_sys_interpreter=yes 1927else 1928 ac_cv_sys_interpreter=no 1929fi 1930rm -f conftest 1931fi 1932 1933echo "$ac_t""$ac_cv_sys_interpreter" 1>&6 1934interpval="$ac_cv_sys_interpreter" 1935 1936POUNDBANG=$ac_cv_sys_interpreter 1937 1938echo $ac_n "checking for echo""... $ac_c" 1>&6 1939echo "configure:1940: checking for echo" >&5 1940if (PATH= echo test) 2>/dev/null | grep test >/dev/null 2>&1; then 1941 echo_program='"echo"' 1942 echo "$ac_t""shell builtin" 1>&6 1943elif test -s /bin/echo; then 1944 echo_program="/bin/echo" 1945 echo "$ac_t""/bin/echo" 1>&6 1946else 1947 echo "$ac_t""not found" 1>&6 1948fi 1949cat >> confdefs.h <<EOF 1950#define ECHO_PROGRAM $echo_program 1951EOF 1952 1953echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1954echo "configure:1955: checking whether ln -s works" >&5 1955if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1956 echo $ac_n "(cached) $ac_c" 1>&6 1957else 1958 rm -f conftestdata 1959if ln -s X conftestdata 2>/dev/null 1960then 1961 rm -f conftestdata 1962 ac_cv_prog_LN_S="ln -s" 1963else 1964 ac_cv_prog_LN_S=ln 1965fi 1966fi 1967LN_S="$ac_cv_prog_LN_S" 1968if test "$ac_cv_prog_LN_S" = "ln -s"; then 1969 echo "$ac_t""yes" 1>&6 1970else 1971 echo "$ac_t""no" 1>&6 1972fi 1973 1974for ac_hdr in stddef.h stdarg.h string.h strings.h unistd.h stdlib.h 1975do 1976ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1977echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1978echo "configure:1979: checking for $ac_hdr" >&5 1979if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1980 echo $ac_n "(cached) $ac_c" 1>&6 1981else 1982 cat > conftest.$ac_ext <<EOF 1983#line 1984 "configure" 1984#include "confdefs.h" 1985#include <$ac_hdr> 1986EOF 1987ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1988{ (eval echo configure:1989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1989ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1990if test -z "$ac_err"; then 1991 rm -rf conftest* 1992 eval "ac_cv_header_$ac_safe=yes" 1993else 1994 echo "$ac_err" >&5 1995 echo "configure: failed program was:" >&5 1996 cat conftest.$ac_ext >&5 1997 rm -rf conftest* 1998 eval "ac_cv_header_$ac_safe=no" 1999fi 2000rm -f conftest* 2001fi 2002if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2003 echo "$ac_t""yes" 1>&6 2004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2005 cat >> confdefs.h <<EOF 2006#define $ac_tr_hdr 1 2007EOF 2008 2009else 2010 echo "$ac_t""no" 1>&6 2011fi 2012done 2013 2014for ac_hdr in limits.h time.h sys/wait.h sys/ioctl.h memory.h termios.h 2015do 2016ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2017echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2018echo "configure:2019: checking for $ac_hdr" >&5 2019if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2020 echo $ac_n "(cached) $ac_c" 1>&6 2021else 2022 cat > conftest.$ac_ext <<EOF 2023#line 2024 "configure" 2024#include "confdefs.h" 2025#include <$ac_hdr> 2026EOF 2027ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2028{ (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2029ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2030if test -z "$ac_err"; then 2031 rm -rf conftest* 2032 eval "ac_cv_header_$ac_safe=yes" 2033else 2034 echo "$ac_err" >&5 2035 echo "configure: failed program was:" >&5 2036 cat conftest.$ac_ext >&5 2037 rm -rf conftest* 2038 eval "ac_cv_header_$ac_safe=no" 2039fi 2040rm -f conftest* 2041fi 2042if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2043 echo "$ac_t""yes" 1>&6 2044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2045 cat >> confdefs.h <<EOF 2046#define $ac_tr_hdr 1 2047EOF 2048 2049else 2050 echo "$ac_t""no" 1>&6 2051fi 2052done 2053 2054for ac_hdr in fcntl.h sys/file.h sys/time.h sys/times.h libc.h 2055do 2056ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2057echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2058echo "configure:2059: checking for $ac_hdr" >&5 2059if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2060 echo $ac_n "(cached) $ac_c" 1>&6 2061else 2062 cat > conftest.$ac_ext <<EOF 2063#line 2064 "configure" 2064#include "confdefs.h" 2065#include <$ac_hdr> 2066EOF 2067ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2068{ (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2069ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2070if test -z "$ac_err"; then 2071 rm -rf conftest* 2072 eval "ac_cv_header_$ac_safe=yes" 2073else 2074 echo "$ac_err" >&5 2075 echo "configure: failed program was:" >&5 2076 cat conftest.$ac_ext >&5 2077 rm -rf conftest* 2078 eval "ac_cv_header_$ac_safe=no" 2079fi 2080rm -f conftest* 2081fi 2082if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2083 echo "$ac_t""yes" 1>&6 2084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2085 cat >> confdefs.h <<EOF 2086#define $ac_tr_hdr 1 2087EOF 2088 2089else 2090 echo "$ac_t""no" 1>&6 2091fi 2092done 2093 2094for ac_hdr in sysexits.h poll.h tiuser.h xti.h sys/tli.h stropts.h ftw.h 2095do 2096ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2097echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2098echo "configure:2099: checking for $ac_hdr" >&5 2099if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2100 echo $ac_n "(cached) $ac_c" 1>&6 2101else 2102 cat > conftest.$ac_ext <<EOF 2103#line 2104 "configure" 2104#include "confdefs.h" 2105#include <$ac_hdr> 2106EOF 2107ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2108{ (eval echo configure:2109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2109ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2110if test -z "$ac_err"; then 2111 rm -rf conftest* 2112 eval "ac_cv_header_$ac_safe=yes" 2113else 2114 echo "$ac_err" >&5 2115 echo "configure: failed program was:" >&5 2116 cat conftest.$ac_ext >&5 2117 rm -rf conftest* 2118 eval "ac_cv_header_$ac_safe=no" 2119fi 2120rm -f conftest* 2121fi 2122if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2123 echo "$ac_t""yes" 1>&6 2124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2125 cat >> confdefs.h <<EOF 2126#define $ac_tr_hdr 1 2127EOF 2128 2129else 2130 echo "$ac_t""no" 1>&6 2131fi 2132done 2133 2134for ac_hdr in glob.h sys/param.h sys/types.tcp.h sys/mount.h sys/vfs.h 2135do 2136ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2137echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2138echo "configure:2139: checking for $ac_hdr" >&5 2139if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2140 echo $ac_n "(cached) $ac_c" 1>&6 2141else 2142 cat > conftest.$ac_ext <<EOF 2143#line 2144 "configure" 2144#include "confdefs.h" 2145#include <$ac_hdr> 2146EOF 2147ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2148{ (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2149ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2150if test -z "$ac_err"; then 2151 rm -rf conftest* 2152 eval "ac_cv_header_$ac_safe=yes" 2153else 2154 echo "$ac_err" >&5 2155 echo "configure: failed program was:" >&5 2156 cat conftest.$ac_ext >&5 2157 rm -rf conftest* 2158 eval "ac_cv_header_$ac_safe=no" 2159fi 2160rm -f conftest* 2161fi 2162if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2163 echo "$ac_t""yes" 1>&6 2164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2165 cat >> confdefs.h <<EOF 2166#define $ac_tr_hdr 1 2167EOF 2168 2169else 2170 echo "$ac_t""no" 1>&6 2171fi 2172done 2173 2174for ac_hdr in sys/filsys.h sys/statfs.h sys/dustat.h sys/fs_types.h ustat.h 2175do 2176ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2177echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2178echo "configure:2179: checking for $ac_hdr" >&5 2179if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2180 echo $ac_n "(cached) $ac_c" 1>&6 2181else 2182 cat > conftest.$ac_ext <<EOF 2183#line 2184 "configure" 2184#include "confdefs.h" 2185#include <$ac_hdr> 2186EOF 2187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2188{ (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2190if test -z "$ac_err"; then 2191 rm -rf conftest* 2192 eval "ac_cv_header_$ac_safe=yes" 2193else 2194 echo "$ac_err" >&5 2195 echo "configure: failed program was:" >&5 2196 cat conftest.$ac_ext >&5 2197 rm -rf conftest* 2198 eval "ac_cv_header_$ac_safe=no" 2199fi 2200rm -f conftest* 2201fi 2202if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2203 echo "$ac_t""yes" 1>&6 2204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2205 cat >> confdefs.h <<EOF 2206#define $ac_tr_hdr 1 2207EOF 2208 2209else 2210 echo "$ac_t""no" 1>&6 2211fi 2212done 2213 2214for ac_hdr in sys/statvfs.h sys/termiox.h 2215do 2216ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2217echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2218echo "configure:2219: checking for $ac_hdr" >&5 2219if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2220 echo $ac_n "(cached) $ac_c" 1>&6 2221else 2222 cat > conftest.$ac_ext <<EOF 2223#line 2224 "configure" 2224#include "confdefs.h" 2225#include <$ac_hdr> 2226EOF 2227ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2228{ (eval echo configure:2229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2229ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2230if test -z "$ac_err"; then 2231 rm -rf conftest* 2232 eval "ac_cv_header_$ac_safe=yes" 2233else 2234 echo "$ac_err" >&5 2235 echo "configure: failed program was:" >&5 2236 cat conftest.$ac_ext >&5 2237 rm -rf conftest* 2238 eval "ac_cv_header_$ac_safe=no" 2239fi 2240rm -f conftest* 2241fi 2242if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2243 echo "$ac_t""yes" 1>&6 2244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2245 cat >> confdefs.h <<EOF 2246#define $ac_tr_hdr 1 2247EOF 2248 2249else 2250 echo "$ac_t""no" 1>&6 2251fi 2252done 2253 2254# Under Next 3.2 <dirent.h> apparently does not define struct dirent 2255# by default. 2256echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 2257echo "configure:2258: checking for dirent.h" >&5 2258if eval "test \"`echo '$''{'uucp_cv_header_dirent_h'+set}'`\" = set"; then 2259 echo $ac_n "(cached) $ac_c" 1>&6 2260else 2261 cat > conftest.$ac_ext <<EOF 2262#line 2263 "configure" 2263#include "confdefs.h" 2264#include <dirent.h> 2265int main() { 2266struct dirent s; 2267; return 0; } 2268EOF 2269if { (eval echo configure:2270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2270 rm -rf conftest* 2271 uucp_cv_header_dirent_h=yes 2272else 2273 echo "configure: failed program was:" >&5 2274 cat conftest.$ac_ext >&5 2275 rm -rf conftest* 2276 uucp_cv_header_dirent_h=no 2277fi 2278rm -f conftest* 2279fi 2280 2281echo "$ac_t""$uucp_cv_header_dirent_h" 1>&6 2282if test $uucp_cv_header_dirent_h = yes; then 2283 cat >> confdefs.h <<\EOF 2284#define HAVE_DIRENT_H 1 2285EOF 2286 2287fi 2288# Under Next 3.2 <utime.h> apparently does not define struct utimbuf 2289# by default. 2290echo $ac_n "checking for utime.h""... $ac_c" 1>&6 2291echo "configure:2292: checking for utime.h" >&5 2292if eval "test \"`echo '$''{'uucp_cv_header_utime_h'+set}'`\" = set"; then 2293 echo $ac_n "(cached) $ac_c" 1>&6 2294else 2295 cat > conftest.$ac_ext <<EOF 2296#line 2297 "configure" 2297#include "confdefs.h" 2298#include <sys/types.h> 2299#if HAVE_TIME_H 2300#include <time.h> 2301#endif 2302#include <utime.h> 2303int main() { 2304struct utimbuf s; 2305; return 0; } 2306EOF 2307if { (eval echo configure:2308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2308 rm -rf conftest* 2309 uucp_cv_header_utime_h=yes 2310else 2311 echo "configure: failed program was:" >&5 2312 cat conftest.$ac_ext >&5 2313 rm -rf conftest* 2314 uucp_cv_header_utime_h=no 2315fi 2316rm -f conftest* 2317fi 2318 2319echo "$ac_t""$uucp_cv_header_utime_h" 1>&6 2320if test $uucp_cv_header_utime_h = yes; then 2321 cat >> confdefs.h <<\EOF 2322#define HAVE_UTIME_H 1 2323EOF 2324 2325fi 2326echo $ac_n "checking for sys/select.h""... $ac_c" 1>&6 2327echo "configure:2328: checking for sys/select.h" >&5 2328if eval "test \"`echo '$''{'uucp_cv_header_sys_select_h'+set}'`\" = set"; then 2329 echo $ac_n "(cached) $ac_c" 1>&6 2330else 2331 cat > conftest.$ac_ext <<EOF 2332#line 2333 "configure" 2333#include "confdefs.h" 2334#include <sys/select.h> 2335#if HAVE_SYS_TIME_H 2336#include <sys/time.h> 2337#endif 2338int main() { 2339int i; 2340; return 0; } 2341EOF 2342if { (eval echo configure:2343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2343 rm -rf conftest* 2344 uucp_cv_header_sys_select_h=yes 2345else 2346 echo "configure: failed program was:" >&5 2347 cat conftest.$ac_ext >&5 2348 rm -rf conftest* 2349 uucp_cv_header_sys_select_h=no 2350fi 2351rm -f conftest* 2352fi 2353 2354echo "$ac_t""$uucp_cv_header_sys_select_h" 1>&6 2355if test $uucp_cv_header_sys_select_h = yes; then 2356 cat >> confdefs.h <<\EOF 2357#define HAVE_SYS_SELECT_H 1 2358EOF 2359 2360fi 2361echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6 2362echo "configure:2363: checking whether sys/types.h defines makedev" >&5 2363if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then 2364 echo $ac_n "(cached) $ac_c" 1>&6 2365else 2366 cat > conftest.$ac_ext <<EOF 2367#line 2368 "configure" 2368#include "confdefs.h" 2369#include <sys/types.h> 2370int main() { 2371return makedev(0, 0); 2372; return 0; } 2373EOF 2374if { (eval echo configure:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2375 rm -rf conftest* 2376 ac_cv_header_sys_types_h_makedev=yes 2377else 2378 echo "configure: failed program was:" >&5 2379 cat conftest.$ac_ext >&5 2380 rm -rf conftest* 2381 ac_cv_header_sys_types_h_makedev=no 2382fi 2383rm -f conftest* 2384 2385fi 2386 2387echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6 2388 2389if test $ac_cv_header_sys_types_h_makedev = no; then 2390ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'` 2391echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6 2392echo "configure:2393: checking for sys/mkdev.h" >&5 2393if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2394 echo $ac_n "(cached) $ac_c" 1>&6 2395else 2396 cat > conftest.$ac_ext <<EOF 2397#line 2398 "configure" 2398#include "confdefs.h" 2399#include <sys/mkdev.h> 2400EOF 2401ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2402{ (eval echo configure:2403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2403ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2404if test -z "$ac_err"; then 2405 rm -rf conftest* 2406 eval "ac_cv_header_$ac_safe=yes" 2407else 2408 echo "$ac_err" >&5 2409 echo "configure: failed program was:" >&5 2410 cat conftest.$ac_ext >&5 2411 rm -rf conftest* 2412 eval "ac_cv_header_$ac_safe=no" 2413fi 2414rm -f conftest* 2415fi 2416if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2417 echo "$ac_t""yes" 1>&6 2418 cat >> confdefs.h <<\EOF 2419#define MAJOR_IN_MKDEV 1 2420EOF 2421 2422else 2423 echo "$ac_t""no" 1>&6 2424fi 2425 2426 2427 if test $ac_cv_header_sys_mkdev_h = no; then 2428ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'` 2429echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6 2430echo "configure:2431: checking for sys/sysmacros.h" >&5 2431if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2432 echo $ac_n "(cached) $ac_c" 1>&6 2433else 2434 cat > conftest.$ac_ext <<EOF 2435#line 2436 "configure" 2436#include "confdefs.h" 2437#include <sys/sysmacros.h> 2438EOF 2439ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2440{ (eval echo configure:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2441ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2442if test -z "$ac_err"; then 2443 rm -rf conftest* 2444 eval "ac_cv_header_$ac_safe=yes" 2445else 2446 echo "$ac_err" >&5 2447 echo "configure: failed program was:" >&5 2448 cat conftest.$ac_ext >&5 2449 rm -rf conftest* 2450 eval "ac_cv_header_$ac_safe=no" 2451fi 2452rm -f conftest* 2453fi 2454if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2455 echo "$ac_t""yes" 1>&6 2456 cat >> confdefs.h <<\EOF 2457#define MAJOR_IN_SYSMACROS 1 2458EOF 2459 2460else 2461 echo "$ac_t""no" 1>&6 2462fi 2463 2464 fi 2465fi 2466 2467echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2468echo "configure:2469: checking return type of signal handlers" >&5 2469if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2470 echo $ac_n "(cached) $ac_c" 1>&6 2471else 2472 cat > conftest.$ac_ext <<EOF 2473#line 2474 "configure" 2474#include "confdefs.h" 2475#include <sys/types.h> 2476#include <signal.h> 2477#ifdef signal 2478#undef signal 2479#endif 2480#ifdef __cplusplus 2481extern "C" void (*signal (int, void (*)(int)))(int); 2482#else 2483void (*signal ()) (); 2484#endif 2485 2486int main() { 2487int i; 2488; return 0; } 2489EOF 2490if { (eval echo configure:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2491 rm -rf conftest* 2492 ac_cv_type_signal=void 2493else 2494 echo "configure: failed program was:" >&5 2495 cat conftest.$ac_ext >&5 2496 rm -rf conftest* 2497 ac_cv_type_signal=int 2498fi 2499rm -f conftest* 2500fi 2501 2502echo "$ac_t""$ac_cv_type_signal" 1>&6 2503cat >> confdefs.h <<EOF 2504#define RETSIGTYPE $ac_cv_type_signal 2505EOF 2506 2507 2508echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6 2509echo "configure:2510: checking whether stat file-mode macros are broken" >&5 2510if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then 2511 echo $ac_n "(cached) $ac_c" 1>&6 2512else 2513 cat > conftest.$ac_ext <<EOF 2514#line 2515 "configure" 2515#include "confdefs.h" 2516#include <sys/types.h> 2517#include <sys/stat.h> 2518 2519#if defined(S_ISBLK) && defined(S_IFDIR) 2520# if S_ISBLK (S_IFDIR) 2521You lose. 2522# endif 2523#endif 2524 2525#if defined(S_ISBLK) && defined(S_IFCHR) 2526# if S_ISBLK (S_IFCHR) 2527You lose. 2528# endif 2529#endif 2530 2531#if defined(S_ISLNK) && defined(S_IFREG) 2532# if S_ISLNK (S_IFREG) 2533You lose. 2534# endif 2535#endif 2536 2537#if defined(S_ISSOCK) && defined(S_IFREG) 2538# if S_ISSOCK (S_IFREG) 2539You lose. 2540# endif 2541#endif 2542 2543EOF 2544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2545 egrep "You lose" >/dev/null 2>&1; then 2546 rm -rf conftest* 2547 ac_cv_header_stat_broken=yes 2548else 2549 rm -rf conftest* 2550 ac_cv_header_stat_broken=no 2551fi 2552rm -f conftest* 2553 2554fi 2555 2556echo "$ac_t""$ac_cv_header_stat_broken" 1>&6 2557if test $ac_cv_header_stat_broken = yes; then 2558 cat >> confdefs.h <<\EOF 2559#define STAT_MACROS_BROKEN 1 2560EOF 2561 2562fi 2563 2564echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2565echo "configure:2566: checking whether time.h and sys/time.h may both be included" >&5 2566if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2567 echo $ac_n "(cached) $ac_c" 1>&6 2568else 2569 cat > conftest.$ac_ext <<EOF 2570#line 2571 "configure" 2571#include "confdefs.h" 2572#include <sys/types.h> 2573#include <sys/time.h> 2574#include <time.h> 2575int main() { 2576struct tm *tp; 2577; return 0; } 2578EOF 2579if { (eval echo configure:2580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2580 rm -rf conftest* 2581 ac_cv_header_time=yes 2582else 2583 echo "configure: failed program was:" >&5 2584 cat conftest.$ac_ext >&5 2585 rm -rf conftest* 2586 ac_cv_header_time=no 2587fi 2588rm -f conftest* 2589fi 2590 2591echo "$ac_t""$ac_cv_header_time" 1>&6 2592if test $ac_cv_header_time = yes; then 2593 cat >> confdefs.h <<\EOF 2594#define TIME_WITH_SYS_TIME 1 2595EOF 2596 2597fi 2598 2599echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2600echo "configure:2601: checking whether struct tm is in sys/time.h or time.h" >&5 2601if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2602 echo $ac_n "(cached) $ac_c" 1>&6 2603else 2604 cat > conftest.$ac_ext <<EOF 2605#line 2606 "configure" 2606#include "confdefs.h" 2607#include <sys/types.h> 2608#include <time.h> 2609int main() { 2610struct tm *tp; tp->tm_sec; 2611; return 0; } 2612EOF 2613if { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2614 rm -rf conftest* 2615 ac_cv_struct_tm=time.h 2616else 2617 echo "configure: failed program was:" >&5 2618 cat conftest.$ac_ext >&5 2619 rm -rf conftest* 2620 ac_cv_struct_tm=sys/time.h 2621fi 2622rm -f conftest* 2623fi 2624 2625echo "$ac_t""$ac_cv_struct_tm" 1>&6 2626if test $ac_cv_struct_tm = sys/time.h; then 2627 cat >> confdefs.h <<\EOF 2628#define TM_IN_SYS_TIME 1 2629EOF 2630 2631fi 2632 2633echo $ac_n "checking whether termios.h and sys/ioctl.h may both be included""... $ac_c" 1>&6 2634echo "configure:2635: checking whether termios.h and sys/ioctl.h may both be included" >&5 2635if eval "test \"`echo '$''{'uucp_cv_header_termios_and_ioctl'+set}'`\" = set"; then 2636 echo $ac_n "(cached) $ac_c" 1>&6 2637else 2638 cat > conftest.$ac_ext <<EOF 2639#line 2640 "configure" 2640#include "confdefs.h" 2641#include <termios.h> 2642#include <sys/ioctl.h> 2643int main() { 2644int i; 2645; return 0; } 2646EOF 2647if { (eval echo configure:2648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2648 rm -rf conftest* 2649 uucp_cv_header_termios_and_ioctl=yes 2650else 2651 echo "configure: failed program was:" >&5 2652 cat conftest.$ac_ext >&5 2653 rm -rf conftest* 2654 uucp_cv_header_termios_and_ioctl=no 2655fi 2656rm -f conftest* 2657fi 2658 2659echo "$ac_t""$uucp_cv_header_termios_and_ioctl" 1>&6 2660if test $uucp_cv_header_termios_and_ioctl = yes; then 2661 cat >> confdefs.h <<\EOF 2662#define HAVE_TERMIOS_AND_SYS_IOCTL_H 1 2663EOF 2664 2665fi 2666echo $ac_n "checking for CBREAK""... $ac_c" 1>&6 2667echo "configure:2668: checking for CBREAK" >&5 2668if eval "test \"`echo '$''{'uucp_cv_decl_cbreak'+set}'`\" = set"; then 2669 echo $ac_n "(cached) $ac_c" 1>&6 2670else 2671 cat > conftest.$ac_ext <<EOF 2672#line 2673 "configure" 2673#include "confdefs.h" 2674#include <sgtty.h> 2675int main() { 2676int i = CBREAK; 2677; return 0; } 2678EOF 2679if { (eval echo configure:2680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2680 rm -rf conftest* 2681 uucp_cv_decl_cbreak=yes 2682else 2683 echo "configure: failed program was:" >&5 2684 cat conftest.$ac_ext >&5 2685 rm -rf conftest* 2686 uucp_cv_decl_cbreak=no 2687fi 2688rm -f conftest* 2689fi 2690 2691echo "$ac_t""$uucp_cv_decl_cbreak" 1>&6 2692if test $uucp_cv_decl_cbreak = yes; then 2693 cat >> confdefs.h <<\EOF 2694#define HAVE_CBREAK 1 2695EOF 2696 2697fi 2698echo $ac_n "checking for pid_t in sys/types.h""... $ac_c" 1>&6 2699echo "configure:2700: checking for pid_t in sys/types.h" >&5 2700if eval "test \"`echo '$''{'uucp_cv_decl_pid_t'+set}'`\" = set"; then 2701 echo $ac_n "(cached) $ac_c" 1>&6 2702else 2703 cat > conftest.$ac_ext <<EOF 2704#line 2705 "configure" 2705#include "confdefs.h" 2706#include <sys/types.h> 2707int main() { 2708pid_t x; 2709; return 0; } 2710EOF 2711if { (eval echo configure:2712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2712 rm -rf conftest* 2713 uucp_cv_decl_pid_t=yes 2714else 2715 echo "configure: failed program was:" >&5 2716 cat conftest.$ac_ext >&5 2717 rm -rf conftest* 2718 uucp_cv_decl_pid_t=no 2719fi 2720rm -f conftest* 2721fi 2722 2723echo "$ac_t""$uucp_cv_decl_pid_t" 1>&6 2724if test $uucp_cv_decl_pid_t = no; then 2725 cat >> confdefs.h <<\EOF 2726#define PID_T int 2727EOF 2728 2729fi 2730echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 2731echo "configure:2732: checking for uid_t in sys/types.h" >&5 2732if eval "test \"`echo '$''{'uucp_cv_decl_uid_t'+set}'`\" = set"; then 2733 echo $ac_n "(cached) $ac_c" 1>&6 2734else 2735 cat > conftest.$ac_ext <<EOF 2736#line 2737 "configure" 2737#include "confdefs.h" 2738#include <sys/types.h> 2739int main() { 2740uid_t x; 2741; return 0; } 2742EOF 2743if { (eval echo configure:2744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2744 rm -rf conftest* 2745 uucp_cv_decl_uid_t=yes 2746else 2747 echo "configure: failed program was:" >&5 2748 cat conftest.$ac_ext >&5 2749 rm -rf conftest* 2750 uucp_cv_decl_uid_t=no 2751fi 2752rm -f conftest* 2753fi 2754 2755echo "$ac_t""$uucp_cv_decl_uid_t" 1>&6 2756if test $uucp_cv_decl_uid_t = no; then 2757 cat >> confdefs.h <<\EOF 2758#define UID_T int 2759EOF 2760 2761fi 2762echo $ac_n "checking for gid_t in sys/types.h""... $ac_c" 1>&6 2763echo "configure:2764: checking for gid_t in sys/types.h" >&5 2764if eval "test \"`echo '$''{'uucp_cv_decl_gid_t'+set}'`\" = set"; then 2765 echo $ac_n "(cached) $ac_c" 1>&6 2766else 2767 cat > conftest.$ac_ext <<EOF 2768#line 2769 "configure" 2769#include "confdefs.h" 2770#include <sys/types.h> 2771int main() { 2772gid_t x; 2773; return 0; } 2774EOF 2775if { (eval echo configure:2776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2776 rm -rf conftest* 2777 uucp_cv_decl_gid_t=yes 2778else 2779 echo "configure: failed program was:" >&5 2780 cat conftest.$ac_ext >&5 2781 rm -rf conftest* 2782 uucp_cv_decl_gid_t=no 2783fi 2784rm -f conftest* 2785fi 2786 2787echo "$ac_t""$uucp_cv_decl_gid_t" 1>&6 2788if test $uucp_cv_decl_gid_t = no; then 2789 cat >> confdefs.h <<\EOF 2790#define GID_T int 2791EOF 2792 2793fi 2794echo $ac_n "checking for off_t in sys/types.h""... $ac_c" 1>&6 2795echo "configure:2796: checking for off_t in sys/types.h" >&5 2796if eval "test \"`echo '$''{'uucp_cv_decl_off_t'+set}'`\" = set"; then 2797 echo $ac_n "(cached) $ac_c" 1>&6 2798else 2799 cat > conftest.$ac_ext <<EOF 2800#line 2801 "configure" 2801#include "confdefs.h" 2802#include <sys/types.h> 2803int main() { 2804off_t x; 2805; return 0; } 2806EOF 2807if { (eval echo configure:2808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2808 rm -rf conftest* 2809 uucp_cv_decl_off_t=yes 2810else 2811 echo "configure: failed program was:" >&5 2812 cat conftest.$ac_ext >&5 2813 rm -rf conftest* 2814 uucp_cv_decl_off_t=no 2815fi 2816rm -f conftest* 2817fi 2818 2819echo "$ac_t""$uucp_cv_decl_off_t" 1>&6 2820if test $uucp_cv_decl_off_t = no; then 2821 cat >> confdefs.h <<\EOF 2822#define OFF_T long 2823EOF 2824 2825fi 2826echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6 2827echo "configure:2828: checking for sig_atomic_t in signal.h" >&5 2828if eval "test \"`echo '$''{'uucp_cv_decl_sig_atomic_t_signal_h'+set}'`\" = set"; then 2829 echo $ac_n "(cached) $ac_c" 1>&6 2830else 2831 cat > conftest.$ac_ext <<EOF 2832#line 2833 "configure" 2833#include "confdefs.h" 2834#include <signal.h> 2835int main() { 2836sig_atomic_t x; 2837; return 0; } 2838EOF 2839if { (eval echo configure:2840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2840 rm -rf conftest* 2841 uucp_cv_decl_sig_atomic_t_signal_h=yes 2842else 2843 echo "configure: failed program was:" >&5 2844 cat conftest.$ac_ext >&5 2845 rm -rf conftest* 2846 uucp_cv_decl_sig_atomic_t_signal_h=no 2847fi 2848rm -f conftest* 2849fi 2850 2851echo "$ac_t""$uucp_cv_decl_sig_atomic_t_signal_h" 1>&6 2852if test $uucp_cv_decl_sig_atomic_t_signal_h = yes; then 2853 cat >> confdefs.h <<\EOF 2854#define HAVE_SIG_ATOMIC_T_IN_SIGNAL_H 1 2855EOF 2856 2857fi 2858echo $ac_n "checking for sig_atomic_t in sys/types.h""... $ac_c" 1>&6 2859echo "configure:2860: checking for sig_atomic_t in sys/types.h" >&5 2860if eval "test \"`echo '$''{'uucp_cv_decl_sig_atomic_t_types_h'+set}'`\" = set"; then 2861 echo $ac_n "(cached) $ac_c" 1>&6 2862else 2863 cat > conftest.$ac_ext <<EOF 2864#line 2865 "configure" 2865#include "confdefs.h" 2866#include <sys/types.h> 2867int main() { 2868sig_atomic_t x; 2869; return 0; } 2870EOF 2871if { (eval echo configure:2872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2872 rm -rf conftest* 2873 uucp_cv_decl_sig_atomic_t_types_h=yes 2874else 2875 echo "configure: failed program was:" >&5 2876 cat conftest.$ac_ext >&5 2877 rm -rf conftest* 2878 uucp_cv_decl_sig_atomic_t_types_h=no 2879fi 2880rm -f conftest* 2881fi 2882 2883echo "$ac_t""$uucp_cv_decl_sig_atomic_t_types_h" 1>&6 2884if test $uucp_cv_decl_sig_atomic_t_types_h = yes; then 2885 cat >> confdefs.h <<\EOF 2886#define HAVE_SIG_ATOMIC_T_IN_TYPES_H 1 2887EOF 2888 2889fi 2890if test $ac_cv_header_stddef_h = yes; then 2891 echo $ac_n "checking for size_t in stddef.h""... $ac_c" 1>&6 2892echo "configure:2893: checking for size_t in stddef.h" >&5 2893 if eval "test \"`echo '$''{'uucp_cv_decl_size_t_stddef_h'+set}'`\" = set"; then 2894 echo $ac_n "(cached) $ac_c" 1>&6 2895else 2896 cat > conftest.$ac_ext <<EOF 2897#line 2898 "configure" 2898#include "confdefs.h" 2899#include <stddef.h> 2900int main() { 2901size_t x; 2902; return 0; } 2903EOF 2904if { (eval echo configure:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2905 rm -rf conftest* 2906 uucp_cv_decl_size_t_stddef_h=yes 2907else 2908 echo "configure: failed program was:" >&5 2909 cat conftest.$ac_ext >&5 2910 rm -rf conftest* 2911 uucp_cv_decl_size_t_stddef_h=no 2912fi 2913rm -f conftest* 2914fi 2915 2916 echo "$ac_t""$uucp_cv_decl_size_t_stddef_h" 1>&6 2917 if test $uucp_cv_decl_size_t_stddef_h = yes; then 2918 cat >> confdefs.h <<\EOF 2919#define HAVE_SIZE_T_IN_STDDEF_H 1 2920EOF 2921 2922 fi 2923fi 2924echo $ac_n "checking for size_t in sys/types.h""... $ac_c" 1>&6 2925echo "configure:2926: checking for size_t in sys/types.h" >&5 2926if eval "test \"`echo '$''{'uucp_cv_decl_size_t_types_h'+set}'`\" = set"; then 2927 echo $ac_n "(cached) $ac_c" 1>&6 2928else 2929 cat > conftest.$ac_ext <<EOF 2930#line 2931 "configure" 2931#include "confdefs.h" 2932#include <sys/types.h> 2933int main() { 2934size_t x; 2935; return 0; } 2936EOF 2937if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2938 rm -rf conftest* 2939 uucp_cv_decl_size_t_types_h=yes 2940else 2941 echo "configure: failed program was:" >&5 2942 cat conftest.$ac_ext >&5 2943 rm -rf conftest* 2944 uucp_cv_decl_size_t_types_h=no 2945fi 2946rm -f conftest* 2947fi 2948 2949echo "$ac_t""$uucp_cv_decl_size_t_types_h" 1>&6 2950if test $uucp_cv_decl_size_t_types_h = yes; then 2951 cat >> confdefs.h <<\EOF 2952#define HAVE_SIZE_T_IN_TYPES_H 1 2953EOF 2954 2955fi 2956echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6 2957echo "configure:2958: checking for time_t in time.h" >&5 2958if eval "test \"`echo '$''{'uucp_cv_decl_time_t_time_h'+set}'`\" = set"; then 2959 echo $ac_n "(cached) $ac_c" 1>&6 2960else 2961 cat > conftest.$ac_ext <<EOF 2962#line 2963 "configure" 2963#include "confdefs.h" 2964#include <time.h> 2965int main() { 2966time_t i; 2967; return 0; } 2968EOF 2969if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2970 rm -rf conftest* 2971 uucp_cv_decl_time_t_time_h=yes 2972else 2973 echo "configure: failed program was:" >&5 2974 cat conftest.$ac_ext >&5 2975 rm -rf conftest* 2976 uucp_cv_decl_time_t_time_h=no 2977fi 2978rm -f conftest* 2979fi 2980 2981echo "$ac_t""$uucp_cv_decl_time_t_time_h" 1>&6 2982if test $uucp_cv_decl_time_t_time_h = yes; then 2983 cat >> confdefs.h <<\EOF 2984#define HAVE_TIME_T_IN_TIME_H 1 2985EOF 2986 2987fi 2988echo $ac_n "checking time_t in sys/types.h""... $ac_c" 1>&6 2989echo "configure:2990: checking time_t in sys/types.h" >&5 2990if eval "test \"`echo '$''{'uucp_cv_decl_time_t_types_h'+set}'`\" = set"; then 2991 echo $ac_n "(cached) $ac_c" 1>&6 2992else 2993 cat > conftest.$ac_ext <<EOF 2994#line 2995 "configure" 2995#include "confdefs.h" 2996#include <sys/types.h> 2997int main() { 2998time_t i; 2999; return 0; } 3000EOF 3001if { (eval echo configure:3002: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3002 rm -rf conftest* 3003 uucp_cv_decl_time_t_types_h=yes 3004else 3005 echo "configure: failed program was:" >&5 3006 cat conftest.$ac_ext >&5 3007 rm -rf conftest* 3008 uucp_cv_decl_time_t_types_h=no 3009fi 3010rm -f conftest* 3011fi 3012 3013echo "$ac_t""$uucp_cv_decl_time_t_types_h" 1>&6 3014if test $uucp_cv_decl_time_t_types_h = yes; then 3015 cat >> confdefs.h <<\EOF 3016#define HAVE_TIME_T_IN_TYPES_H 1 3017EOF 3018 3019fi 3020echo $ac_n "checking for void""... $ac_c" 1>&6 3021echo "configure:3022: checking for void" >&5 3022if eval "test \"`echo '$''{'uucp_cv_c_void'+set}'`\" = set"; then 3023 echo $ac_n "(cached) $ac_c" 1>&6 3024else 3025 cat > conftest.$ac_ext <<EOF 3026#line 3027 "configure" 3027#include "confdefs.h" 3028 3029int main() { 3030extern void foo (); (void) exit (0); 3031; return 0; } 3032EOF 3033if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3034 rm -rf conftest* 3035 uucp_cv_c_void=yes 3036else 3037 echo "configure: failed program was:" >&5 3038 cat conftest.$ac_ext >&5 3039 rm -rf conftest* 3040 uucp_cv_c_void=no 3041fi 3042rm -f conftest* 3043fi 3044 3045echo "$ac_t""$uucp_cv_c_void" 1>&6 3046if test $uucp_cv_c_void = yes; then 3047 cat >> confdefs.h <<\EOF 3048#define HAVE_VOID 1 3049EOF 3050 3051fi 3052echo $ac_n "checking for unsigned char""... $ac_c" 1>&6 3053echo "configure:3054: checking for unsigned char" >&5 3054if eval "test \"`echo '$''{'uucp_cv_c_unsigned_char'+set}'`\" = set"; then 3055 echo $ac_n "(cached) $ac_c" 1>&6 3056else 3057 cat > conftest.$ac_ext <<EOF 3058#line 3059 "configure" 3059#include "confdefs.h" 3060 3061int main() { 3062unsigned char i = (unsigned char) -1; 3063; return 0; } 3064EOF 3065if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3066 rm -rf conftest* 3067 uucp_cv_c_unsigned_char=yes 3068else 3069 echo "configure: failed program was:" >&5 3070 cat conftest.$ac_ext >&5 3071 rm -rf conftest* 3072 uucp_cv_c_unsigned_char=no 3073fi 3074rm -f conftest* 3075fi 3076 3077echo "$ac_t""$uucp_cv_c_unsigned_char" 1>&6 3078if test $uucp_cv_c_unsigned_char = yes; then 3079 cat >> confdefs.h <<\EOF 3080#define HAVE_UNSIGNED_CHAR 1 3081EOF 3082 3083fi 3084echo $ac_n "checking for errno declaration""... $ac_c" 1>&6 3085echo "configure:3086: checking for errno declaration" >&5 3086if eval "test \"`echo '$''{'uucp_cv_decl_errno'+set}'`\" = set"; then 3087 echo $ac_n "(cached) $ac_c" 1>&6 3088else 3089 cat > conftest.$ac_ext <<EOF 3090#line 3091 "configure" 3091#include "confdefs.h" 3092#include <errno.h> 3093int main() { 3094int i = errno; errno = 1; 3095; return 0; } 3096EOF 3097if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3098 rm -rf conftest* 3099 uucp_cv_decl_errno=yes 3100else 3101 echo "configure: failed program was:" >&5 3102 cat conftest.$ac_ext >&5 3103 rm -rf conftest* 3104 uucp_cv_decl_errno=no 3105fi 3106rm -f conftest* 3107fi 3108 3109echo "$ac_t""$uucp_cv_decl_errno" 1>&6 3110if test $uucp_cv_decl_errno = yes; then 3111 cat >> confdefs.h <<\EOF 3112#define HAVE_ERRNO_DECLARATION 1 3113EOF 3114 3115fi 3116echo $ac_n "checking for TXADDCD""... $ac_c" 1>&6 3117echo "configure:3118: checking for TXADDCD" >&5 3118if eval "test \"`echo '$''{'uucp_cv_txaddcd'+set}'`\" = set"; then 3119 echo $ac_n "(cached) $ac_c" 1>&6 3120else 3121 cat > conftest.$ac_ext <<EOF 3122#line 3123 "configure" 3123#include "confdefs.h" 3124#include <sys/ioctl.h> 3125int main() { 3126int i = (int) TXADDCD; 3127; return 0; } 3128EOF 3129if { (eval echo configure:3130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3130 rm -rf conftest* 3131 uucp_cv_txaddcd=yes 3132else 3133 echo "configure: failed program was:" >&5 3134 cat conftest.$ac_ext >&5 3135 rm -rf conftest* 3136 uucp_cv_txaddcd=no 3137fi 3138rm -f conftest* 3139fi 3140 3141echo "$ac_t""$uucp_cv_txaddcd" 1>&6 3142if test $uucp_cv_txaddcd = yes; then 3143 cat >> confdefs.h <<\EOF 3144#define HAVE_TXADDCD 1 3145EOF 3146 3147fi 3148echo $ac_n "checking for memset""... $ac_c" 1>&6 3149echo "configure:3150: checking for memset" >&5 3150if eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then 3151 echo $ac_n "(cached) $ac_c" 1>&6 3152else 3153 cat > conftest.$ac_ext <<EOF 3154#line 3155 "configure" 3155#include "confdefs.h" 3156 3157int main() { 3158 char *i; int j, k; memset(i, j, k); 3159; return 0; } 3160EOF 3161if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3162 rm -rf conftest* 3163 ac_cv_func_memset=yes 3164else 3165 echo "configure: failed program was:" >&5 3166 cat conftest.$ac_ext >&5 3167 rm -rf conftest* 3168 ac_cv_func_memset=no 3169fi 3170rm -f conftest* 3171fi 3172 3173echo "$ac_t""$ac_cv_func_memset" 1>&6 3174if test $ac_cv_func_memset = yes; then 3175 cat >> confdefs.h <<\EOF 3176#define HAVE_MEMSET 1 3177EOF 3178 3179fi 3180echo $ac_n "checking for memcmp""... $ac_c" 1>&6 3181echo "configure:3182: checking for memcmp" >&5 3182if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then 3183 echo $ac_n "(cached) $ac_c" 1>&6 3184else 3185 cat > conftest.$ac_ext <<EOF 3186#line 3187 "configure" 3187#include "confdefs.h" 3188 3189int main() { 3190 char *i, *j; int k; memcmp(i, j, k); 3191; return 0; } 3192EOF 3193if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3194 rm -rf conftest* 3195 ac_cv_func_memcmp=yes 3196else 3197 echo "configure: failed program was:" >&5 3198 cat conftest.$ac_ext >&5 3199 rm -rf conftest* 3200 ac_cv_func_memcmp=no 3201fi 3202rm -f conftest* 3203fi 3204 3205echo "$ac_t""$ac_cv_func_memcmp" 1>&6 3206if test $ac_cv_func_memcmp = yes; then 3207 cat >> confdefs.h <<\EOF 3208#define HAVE_MEMCMP 1 3209EOF 3210 3211fi 3212echo $ac_n "checking for memcpy""... $ac_c" 1>&6 3213echo "configure:3214: checking for memcpy" >&5 3214if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then 3215 echo $ac_n "(cached) $ac_c" 1>&6 3216else 3217 cat > conftest.$ac_ext <<EOF 3218#line 3219 "configure" 3219#include "confdefs.h" 3220 3221int main() { 3222 char *i, *j; int k; memcpy(i, j, k); 3223; return 0; } 3224EOF 3225if { (eval echo configure:3226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3226 rm -rf conftest* 3227 ac_cv_func_memcpy=yes 3228else 3229 echo "configure: failed program was:" >&5 3230 cat conftest.$ac_ext >&5 3231 rm -rf conftest* 3232 ac_cv_func_memcpy=no 3233fi 3234rm -f conftest* 3235fi 3236 3237echo "$ac_t""$ac_cv_func_memcpy" 1>&6 3238if test $ac_cv_func_memcpy = yes; then 3239 cat >> confdefs.h <<\EOF 3240#define HAVE_MEMCPY 1 3241EOF 3242 3243fi 3244 3245for ac_func in memchr bcopy bcmp bzero 3246do 3247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3248echo "configure:3249: checking for $ac_func" >&5 3249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3250 echo $ac_n "(cached) $ac_c" 1>&6 3251else 3252 cat > conftest.$ac_ext <<EOF 3253#line 3254 "configure" 3254#include "confdefs.h" 3255/* System header to define __stub macros and hopefully few prototypes, 3256 which can conflict with char $ac_func(); below. */ 3257#include <assert.h> 3258/* Override any gcc2 internal prototype to avoid an error. */ 3259/* We use char because int might match the return type of a gcc2 3260 builtin and then its argument prototype would still apply. */ 3261char $ac_func(); 3262 3263int main() { 3264 3265/* The GNU C library defines this for functions which it implements 3266 to always fail with ENOSYS. Some functions are actually named 3267 something starting with __ and the normal name is an alias. */ 3268#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3269choke me 3270#else 3271$ac_func(); 3272#endif 3273 3274; return 0; } 3275EOF 3276if { (eval echo configure:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3277 rm -rf conftest* 3278 eval "ac_cv_func_$ac_func=yes" 3279else 3280 echo "configure: failed program was:" >&5 3281 cat conftest.$ac_ext >&5 3282 rm -rf conftest* 3283 eval "ac_cv_func_$ac_func=no" 3284fi 3285rm -f conftest* 3286fi 3287 3288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3289 echo "$ac_t""yes" 1>&6 3290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3291 cat >> confdefs.h <<EOF 3292#define $ac_tr_func 1 3293EOF 3294 3295else 3296 echo "$ac_t""no" 1>&6 3297fi 3298done 3299 3300for ac_func in strchr strrchr index rindex strerror strtol strtoul strstr 3301do 3302echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3303echo "configure:3304: checking for $ac_func" >&5 3304if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3305 echo $ac_n "(cached) $ac_c" 1>&6 3306else 3307 cat > conftest.$ac_ext <<EOF 3308#line 3309 "configure" 3309#include "confdefs.h" 3310/* System header to define __stub macros and hopefully few prototypes, 3311 which can conflict with char $ac_func(); below. */ 3312#include <assert.h> 3313/* Override any gcc2 internal prototype to avoid an error. */ 3314/* We use char because int might match the return type of a gcc2 3315 builtin and then its argument prototype would still apply. */ 3316char $ac_func(); 3317 3318int main() { 3319 3320/* The GNU C library defines this for functions which it implements 3321 to always fail with ENOSYS. Some functions are actually named 3322 something starting with __ and the normal name is an alias. */ 3323#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3324choke me 3325#else 3326$ac_func(); 3327#endif 3328 3329; return 0; } 3330EOF 3331if { (eval echo configure:3332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3332 rm -rf conftest* 3333 eval "ac_cv_func_$ac_func=yes" 3334else 3335 echo "configure: failed program was:" >&5 3336 cat conftest.$ac_ext >&5 3337 rm -rf conftest* 3338 eval "ac_cv_func_$ac_func=no" 3339fi 3340rm -f conftest* 3341fi 3342 3343if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3344 echo "$ac_t""yes" 1>&6 3345 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3346 cat >> confdefs.h <<EOF 3347#define $ac_tr_func 1 3348EOF 3349 3350else 3351 echo "$ac_t""no" 1>&6 3352fi 3353done 3354 3355for ac_func in strdup strcasecmp strncasecmp stricmp strnicmp 3356do 3357echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3358echo "configure:3359: checking for $ac_func" >&5 3359if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3360 echo $ac_n "(cached) $ac_c" 1>&6 3361else 3362 cat > conftest.$ac_ext <<EOF 3363#line 3364 "configure" 3364#include "confdefs.h" 3365/* System header to define __stub macros and hopefully few prototypes, 3366 which can conflict with char $ac_func(); below. */ 3367#include <assert.h> 3368/* Override any gcc2 internal prototype to avoid an error. */ 3369/* We use char because int might match the return type of a gcc2 3370 builtin and then its argument prototype would still apply. */ 3371char $ac_func(); 3372 3373int main() { 3374 3375/* The GNU C library defines this for functions which it implements 3376 to always fail with ENOSYS. Some functions are actually named 3377 something starting with __ and the normal name is an alias. */ 3378#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3379choke me 3380#else 3381$ac_func(); 3382#endif 3383 3384; return 0; } 3385EOF 3386if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3387 rm -rf conftest* 3388 eval "ac_cv_func_$ac_func=yes" 3389else 3390 echo "configure: failed program was:" >&5 3391 cat conftest.$ac_ext >&5 3392 rm -rf conftest* 3393 eval "ac_cv_func_$ac_func=no" 3394fi 3395rm -f conftest* 3396fi 3397 3398if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3399 echo "$ac_t""yes" 1>&6 3400 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3401 cat >> confdefs.h <<EOF 3402#define $ac_tr_func 1 3403EOF 3404 3405else 3406 echo "$ac_t""no" 1>&6 3407fi 3408done 3409 3410for ac_func in bsearch vfprintf 3411do 3412echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3413echo "configure:3414: checking for $ac_func" >&5 3414if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3415 echo $ac_n "(cached) $ac_c" 1>&6 3416else 3417 cat > conftest.$ac_ext <<EOF 3418#line 3419 "configure" 3419#include "confdefs.h" 3420/* System header to define __stub macros and hopefully few prototypes, 3421 which can conflict with char $ac_func(); below. */ 3422#include <assert.h> 3423/* Override any gcc2 internal prototype to avoid an error. */ 3424/* We use char because int might match the return type of a gcc2 3425 builtin and then its argument prototype would still apply. */ 3426char $ac_func(); 3427 3428int main() { 3429 3430/* The GNU C library defines this for functions which it implements 3431 to always fail with ENOSYS. Some functions are actually named 3432 something starting with __ and the normal name is an alias. */ 3433#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3434choke me 3435#else 3436$ac_func(); 3437#endif 3438 3439; return 0; } 3440EOF 3441if { (eval echo configure:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3442 rm -rf conftest* 3443 eval "ac_cv_func_$ac_func=yes" 3444else 3445 echo "configure: failed program was:" >&5 3446 cat conftest.$ac_ext >&5 3447 rm -rf conftest* 3448 eval "ac_cv_func_$ac_func=no" 3449fi 3450rm -f conftest* 3451fi 3452 3453if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3454 echo "$ac_t""yes" 1>&6 3455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3456 cat >> confdefs.h <<EOF 3457#define $ac_tr_func 1 3458EOF 3459 3460else 3461 echo "$ac_t""no" 1>&6 3462fi 3463done 3464 3465for ac_func in remove ftruncate ltrunc rename opendir dup2 waitpid wait4 3466do 3467echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3468echo "configure:3469: checking for $ac_func" >&5 3469if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3470 echo $ac_n "(cached) $ac_c" 1>&6 3471else 3472 cat > conftest.$ac_ext <<EOF 3473#line 3474 "configure" 3474#include "confdefs.h" 3475/* System header to define __stub macros and hopefully few prototypes, 3476 which can conflict with char $ac_func(); below. */ 3477#include <assert.h> 3478/* Override any gcc2 internal prototype to avoid an error. */ 3479/* We use char because int might match the return type of a gcc2 3480 builtin and then its argument prototype would still apply. */ 3481char $ac_func(); 3482 3483int main() { 3484 3485/* The GNU C library defines this for functions which it implements 3486 to always fail with ENOSYS. Some functions are actually named 3487 something starting with __ and the normal name is an alias. */ 3488#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3489choke me 3490#else 3491$ac_func(); 3492#endif 3493 3494; return 0; } 3495EOF 3496if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3497 rm -rf conftest* 3498 eval "ac_cv_func_$ac_func=yes" 3499else 3500 echo "configure: failed program was:" >&5 3501 cat conftest.$ac_ext >&5 3502 rm -rf conftest* 3503 eval "ac_cv_func_$ac_func=no" 3504fi 3505rm -f conftest* 3506fi 3507 3508if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3509 echo "$ac_t""yes" 1>&6 3510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3511 cat >> confdefs.h <<EOF 3512#define $ac_tr_func 1 3513EOF 3514 3515else 3516 echo "$ac_t""no" 1>&6 3517fi 3518done 3519 3520for ac_func in sigsetjmp setret sigaction sigvec sigset 3521do 3522echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3523echo "configure:3524: checking for $ac_func" >&5 3524if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3525 echo $ac_n "(cached) $ac_c" 1>&6 3526else 3527 cat > conftest.$ac_ext <<EOF 3528#line 3529 "configure" 3529#include "confdefs.h" 3530/* System header to define __stub macros and hopefully few prototypes, 3531 which can conflict with char $ac_func(); below. */ 3532#include <assert.h> 3533/* Override any gcc2 internal prototype to avoid an error. */ 3534/* We use char because int might match the return type of a gcc2 3535 builtin and then its argument prototype would still apply. */ 3536char $ac_func(); 3537 3538int main() { 3539 3540/* The GNU C library defines this for functions which it implements 3541 to always fail with ENOSYS. Some functions are actually named 3542 something starting with __ and the normal name is an alias. */ 3543#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3544choke me 3545#else 3546$ac_func(); 3547#endif 3548 3549; return 0; } 3550EOF 3551if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3552 rm -rf conftest* 3553 eval "ac_cv_func_$ac_func=yes" 3554else 3555 echo "configure: failed program was:" >&5 3556 cat conftest.$ac_ext >&5 3557 rm -rf conftest* 3558 eval "ac_cv_func_$ac_func=no" 3559fi 3560rm -f conftest* 3561fi 3562 3563if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3564 echo "$ac_t""yes" 1>&6 3565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3566 cat >> confdefs.h <<EOF 3567#define $ac_tr_func 1 3568EOF 3569 3570else 3571 echo "$ac_t""no" 1>&6 3572fi 3573done 3574 3575for ac_func in sigprocmask sigblock sighold getdtablesize sysconf 3576do 3577echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3578echo "configure:3579: checking for $ac_func" >&5 3579if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3580 echo $ac_n "(cached) $ac_c" 1>&6 3581else 3582 cat > conftest.$ac_ext <<EOF 3583#line 3584 "configure" 3584#include "confdefs.h" 3585/* System header to define __stub macros and hopefully few prototypes, 3586 which can conflict with char $ac_func(); below. */ 3587#include <assert.h> 3588/* Override any gcc2 internal prototype to avoid an error. */ 3589/* We use char because int might match the return type of a gcc2 3590 builtin and then its argument prototype would still apply. */ 3591char $ac_func(); 3592 3593int main() { 3594 3595/* The GNU C library defines this for functions which it implements 3596 to always fail with ENOSYS. Some functions are actually named 3597 something starting with __ and the normal name is an alias. */ 3598#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3599choke me 3600#else 3601$ac_func(); 3602#endif 3603 3604; return 0; } 3605EOF 3606if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3607 rm -rf conftest* 3608 eval "ac_cv_func_$ac_func=yes" 3609else 3610 echo "configure: failed program was:" >&5 3611 cat conftest.$ac_ext >&5 3612 rm -rf conftest* 3613 eval "ac_cv_func_$ac_func=no" 3614fi 3615rm -f conftest* 3616fi 3617 3618if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3619 echo "$ac_t""yes" 1>&6 3620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3621 cat >> confdefs.h <<EOF 3622#define $ac_tr_func 1 3623EOF 3624 3625else 3626 echo "$ac_t""no" 1>&6 3627fi 3628done 3629 3630for ac_func in setpgrp setsid setreuid seteuid gethostname uname 3631do 3632echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3633echo "configure:3634: checking for $ac_func" >&5 3634if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3635 echo $ac_n "(cached) $ac_c" 1>&6 3636else 3637 cat > conftest.$ac_ext <<EOF 3638#line 3639 "configure" 3639#include "confdefs.h" 3640/* System header to define __stub macros and hopefully few prototypes, 3641 which can conflict with char $ac_func(); below. */ 3642#include <assert.h> 3643/* Override any gcc2 internal prototype to avoid an error. */ 3644/* We use char because int might match the return type of a gcc2 3645 builtin and then its argument prototype would still apply. */ 3646char $ac_func(); 3647 3648int main() { 3649 3650/* The GNU C library defines this for functions which it implements 3651 to always fail with ENOSYS. Some functions are actually named 3652 something starting with __ and the normal name is an alias. */ 3653#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3654choke me 3655#else 3656$ac_func(); 3657#endif 3658 3659; return 0; } 3660EOF 3661if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3662 rm -rf conftest* 3663 eval "ac_cv_func_$ac_func=yes" 3664else 3665 echo "configure: failed program was:" >&5 3666 cat conftest.$ac_ext >&5 3667 rm -rf conftest* 3668 eval "ac_cv_func_$ac_func=no" 3669fi 3670rm -f conftest* 3671fi 3672 3673if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3674 echo "$ac_t""yes" 1>&6 3675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3676 cat >> confdefs.h <<EOF 3677#define $ac_tr_func 1 3678EOF 3679 3680else 3681 echo "$ac_t""no" 1>&6 3682fi 3683done 3684 3685for ac_func in gettimeofday ftw glob dev_info getaddrinfo 3686do 3687echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3688echo "configure:3689: checking for $ac_func" >&5 3689if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3690 echo $ac_n "(cached) $ac_c" 1>&6 3691else 3692 cat > conftest.$ac_ext <<EOF 3693#line 3694 "configure" 3694#include "confdefs.h" 3695/* System header to define __stub macros and hopefully few prototypes, 3696 which can conflict with char $ac_func(); below. */ 3697#include <assert.h> 3698/* Override any gcc2 internal prototype to avoid an error. */ 3699/* We use char because int might match the return type of a gcc2 3700 builtin and then its argument prototype would still apply. */ 3701char $ac_func(); 3702 3703int main() { 3704 3705/* The GNU C library defines this for functions which it implements 3706 to always fail with ENOSYS. Some functions are actually named 3707 something starting with __ and the normal name is an alias. */ 3708#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3709choke me 3710#else 3711$ac_func(); 3712#endif 3713 3714; return 0; } 3715EOF 3716if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3717 rm -rf conftest* 3718 eval "ac_cv_func_$ac_func=yes" 3719else 3720 echo "configure: failed program was:" >&5 3721 cat conftest.$ac_ext >&5 3722 rm -rf conftest* 3723 eval "ac_cv_func_$ac_func=no" 3724fi 3725rm -f conftest* 3726fi 3727 3728if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3729 echo "$ac_t""yes" 1>&6 3730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3731 cat >> confdefs.h <<EOF 3732#define $ac_tr_func 1 3733EOF 3734 3735else 3736 echo "$ac_t""no" 1>&6 3737fi 3738done 3739 3740echo $ac_n "checking for getdelim""... $ac_c" 1>&6 3741echo "configure:3742: checking for getdelim" >&5 3742if eval "test \"`echo '$''{'ac_cv_func_getdelim'+set}'`\" = set"; then 3743 echo $ac_n "(cached) $ac_c" 1>&6 3744else 3745 cat > conftest.$ac_ext <<EOF 3746#line 3747 "configure" 3747#include "confdefs.h" 3748/* System header to define __stub macros and hopefully few prototypes, 3749 which can conflict with char getdelim(); below. */ 3750#include <assert.h> 3751/* Override any gcc2 internal prototype to avoid an error. */ 3752/* We use char because int might match the return type of a gcc2 3753 builtin and then its argument prototype would still apply. */ 3754char getdelim(); 3755 3756int main() { 3757 3758/* The GNU C library defines this for functions which it implements 3759 to always fail with ENOSYS. Some functions are actually named 3760 something starting with __ and the normal name is an alias. */ 3761#if defined (__stub_getdelim) || defined (__stub___getdelim) 3762choke me 3763#else 3764getdelim(); 3765#endif 3766 3767; return 0; } 3768EOF 3769if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3770 rm -rf conftest* 3771 eval "ac_cv_func_getdelim=yes" 3772else 3773 echo "configure: failed program was:" >&5 3774 cat conftest.$ac_ext >&5 3775 rm -rf conftest* 3776 eval "ac_cv_func_getdelim=no" 3777fi 3778rm -f conftest* 3779fi 3780 3781if eval "test \"`echo '$ac_cv_func_'getdelim`\" = yes"; then 3782 echo "$ac_t""yes" 1>&6 3783 echo $ac_n "checking for getline""... $ac_c" 1>&6 3784echo "configure:3785: checking for getline" >&5 3785if eval "test \"`echo '$''{'ac_cv_func_getline'+set}'`\" = set"; then 3786 echo $ac_n "(cached) $ac_c" 1>&6 3787else 3788 cat > conftest.$ac_ext <<EOF 3789#line 3790 "configure" 3790#include "confdefs.h" 3791/* System header to define __stub macros and hopefully few prototypes, 3792 which can conflict with char getline(); below. */ 3793#include <assert.h> 3794/* Override any gcc2 internal prototype to avoid an error. */ 3795/* We use char because int might match the return type of a gcc2 3796 builtin and then its argument prototype would still apply. */ 3797char getline(); 3798 3799int main() { 3800 3801/* The GNU C library defines this for functions which it implements 3802 to always fail with ENOSYS. Some functions are actually named 3803 something starting with __ and the normal name is an alias. */ 3804#if defined (__stub_getline) || defined (__stub___getline) 3805choke me 3806#else 3807getline(); 3808#endif 3809 3810; return 0; } 3811EOF 3812if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3813 rm -rf conftest* 3814 eval "ac_cv_func_getline=yes" 3815else 3816 echo "configure: failed program was:" >&5 3817 cat conftest.$ac_ext >&5 3818 rm -rf conftest* 3819 eval "ac_cv_func_getline=no" 3820fi 3821rm -f conftest* 3822fi 3823 3824if eval "test \"`echo '$ac_cv_func_'getline`\" = yes"; then 3825 echo "$ac_t""yes" 1>&6 3826 cat >> confdefs.h <<\EOF 3827#define HAVE_GETLINE 1 3828EOF 3829 3830else 3831 echo "$ac_t""no" 1>&6 3832LIBOBJS="$LIBOBJS getlin.o" 3833fi 3834 3835else 3836 echo "$ac_t""no" 1>&6 3837LIBOBJS="$LIBOBJS getlin.o" 3838fi 3839 3840echo $ac_n "checking for ftime""... $ac_c" 1>&6 3841echo "configure:3842: checking for ftime" >&5 3842if eval "test \"`echo '$''{'ac_cv_func_ftime'+set}'`\" = set"; then 3843 echo $ac_n "(cached) $ac_c" 1>&6 3844else 3845 cat > conftest.$ac_ext <<EOF 3846#line 3847 "configure" 3847#include "confdefs.h" 3848/* System header to define __stub macros and hopefully few prototypes, 3849 which can conflict with char ftime(); below. */ 3850#include <assert.h> 3851/* Override any gcc2 internal prototype to avoid an error. */ 3852/* We use char because int might match the return type of a gcc2 3853 builtin and then its argument prototype would still apply. */ 3854char ftime(); 3855 3856int main() { 3857 3858/* The GNU C library defines this for functions which it implements 3859 to always fail with ENOSYS. Some functions are actually named 3860 something starting with __ and the normal name is an alias. */ 3861#if defined (__stub_ftime) || defined (__stub___ftime) 3862choke me 3863#else 3864ftime(); 3865#endif 3866 3867; return 0; } 3868EOF 3869if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3870 rm -rf conftest* 3871 eval "ac_cv_func_ftime=yes" 3872else 3873 echo "configure: failed program was:" >&5 3874 cat conftest.$ac_ext >&5 3875 rm -rf conftest* 3876 eval "ac_cv_func_ftime=no" 3877fi 3878rm -f conftest* 3879fi 3880 3881if eval "test \"`echo '$ac_cv_func_'ftime`\" = yes"; then 3882 echo "$ac_t""yes" 1>&6 3883 echo $ac_n "checking that ftime works correctly""... $ac_c" 1>&6 3884echo "configure:3885: checking that ftime works correctly" >&5 3885if eval "test \"`echo '$''{'uucp_cv_sys_ftime_ok'+set}'`\" = set"; then 3886 echo $ac_n "(cached) $ac_c" 1>&6 3887else 3888 if test "$cross_compiling" = yes; then 3889 uucp_cv_sys_ftime_ok=runtime 3890else 3891 cat > conftest.$ac_ext <<EOF 3892#line 3893 "configure" 3893#include "confdefs.h" 3894 3895#include <sys/types.h> 3896#include <sys/timeb.h> 3897main () 3898{ 3899 struct timeb s, slast; 3900 int c = 0; 3901 ftime (&slast); 3902 while (c < 10) 3903 { 3904 ftime (&s); 3905 if (s.time < slast.time 3906 || (s.time == slast.time && s.millitm < slast.millitm)) 3907 exit (1); 3908 if (s.time != slast.time) 3909 ++c; 3910 slast.time = s.time; 3911 slast.millitm = s.millitm; 3912 } 3913 exit (0); 3914} 3915 3916EOF 3917if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3918then 3919 uucp_cv_sys_ftime_ok=yes 3920else 3921 echo "configure: failed program was:" >&5 3922 cat conftest.$ac_ext >&5 3923 rm -fr conftest* 3924 uucp_cv_sys_ftime_ok=no 3925fi 3926rm -fr conftest* 3927fi 3928 3929fi 3930 3931case $uucp_cv_sys_ftime_ok in 3932yes) echo "$ac_t""yes" 1>&6 ;; 3933no) echo "$ac_t""no" 1>&6 3934 echo "configure: warning: ftime seems to be buggy" 1>&2 ;; 3935runtime) echo "$ac_t""will check at run time" 1>&6 ;; 3936esac 3937 3938else 3939 echo "$ac_t""no" 1>&6 3940fi 3941 3942if test $uucp_cv_sys_ftime_ok = yes || test $uucp_cv_sys_ftime_ok = runtime; then 3943 cat >> confdefs.h <<\EOF 3944#define HAVE_FTIME 1 3945EOF 3946 3947fi 3948for ac_func in times 3949do 3950echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3951echo "configure:3952: checking for $ac_func" >&5 3952if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3953 echo $ac_n "(cached) $ac_c" 1>&6 3954else 3955 cat > conftest.$ac_ext <<EOF 3956#line 3957 "configure" 3957#include "confdefs.h" 3958/* System header to define __stub macros and hopefully few prototypes, 3959 which can conflict with char $ac_func(); below. */ 3960#include <assert.h> 3961/* Override any gcc2 internal prototype to avoid an error. */ 3962/* We use char because int might match the return type of a gcc2 3963 builtin and then its argument prototype would still apply. */ 3964char $ac_func(); 3965 3966int main() { 3967 3968/* The GNU C library defines this for functions which it implements 3969 to always fail with ENOSYS. Some functions are actually named 3970 something starting with __ and the normal name is an alias. */ 3971#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3972choke me 3973#else 3974$ac_func(); 3975#endif 3976 3977; return 0; } 3978EOF 3979if { (eval echo configure:3980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3980 rm -rf conftest* 3981 eval "ac_cv_func_$ac_func=yes" 3982else 3983 echo "configure: failed program was:" >&5 3984 cat conftest.$ac_ext >&5 3985 rm -rf conftest* 3986 eval "ac_cv_func_$ac_func=no" 3987fi 3988rm -f conftest* 3989fi 3990 3991if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3992 echo "$ac_t""yes" 1>&6 3993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3994 cat >> confdefs.h <<EOF 3995#define $ac_tr_func 1 3996EOF 3997 3998else 3999 echo "$ac_t""no" 1>&6 4000fi 4001done 4002 4003for ac_func in napms nap usleep poll select 4004do 4005echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4006echo "configure:4007: checking for $ac_func" >&5 4007if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4008 echo $ac_n "(cached) $ac_c" 1>&6 4009else 4010 cat > conftest.$ac_ext <<EOF 4011#line 4012 "configure" 4012#include "confdefs.h" 4013/* System header to define __stub macros and hopefully few prototypes, 4014 which can conflict with char $ac_func(); below. */ 4015#include <assert.h> 4016/* Override any gcc2 internal prototype to avoid an error. */ 4017/* We use char because int might match the return type of a gcc2 4018 builtin and then its argument prototype would still apply. */ 4019char $ac_func(); 4020 4021int main() { 4022 4023/* The GNU C library defines this for functions which it implements 4024 to always fail with ENOSYS. Some functions are actually named 4025 something starting with __ and the normal name is an alias. */ 4026#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4027choke me 4028#else 4029$ac_func(); 4030#endif 4031 4032; return 0; } 4033EOF 4034if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4035 rm -rf conftest* 4036 eval "ac_cv_func_$ac_func=yes" 4037else 4038 echo "configure: failed program was:" >&5 4039 cat conftest.$ac_ext >&5 4040 rm -rf conftest* 4041 eval "ac_cv_func_$ac_func=no" 4042fi 4043rm -f conftest* 4044fi 4045 4046if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4047 echo "$ac_t""yes" 1>&6 4048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4049 cat >> confdefs.h <<EOF 4050#define $ac_tr_func 1 4051EOF 4052 4053else 4054 echo "$ac_t""no" 1>&6 4055fi 4056done 4057 4058if test $ac_cv_func_napms != yes \ 4059 && test $ac_cv_func_nap != yes \ 4060 && test $ac_cv_func_usleep != yes \ 4061 && test $ac_cv_func_poll != yes \ 4062 && test $ac_cv_func_select != yes; then 4063 echo "configure: warning: No way to sleep for less than one second" 1>&2 4064 echo "configure: warning: \p in chat scripts will sleep for a full second" 1>&2 4065fi 4066for ac_func in getgrent 4067do 4068echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4069echo "configure:4070: checking for $ac_func" >&5 4070if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4071 echo $ac_n "(cached) $ac_c" 1>&6 4072else 4073 cat > conftest.$ac_ext <<EOF 4074#line 4075 "configure" 4075#include "confdefs.h" 4076/* System header to define __stub macros and hopefully few prototypes, 4077 which can conflict with char $ac_func(); below. */ 4078#include <assert.h> 4079/* Override any gcc2 internal prototype to avoid an error. */ 4080/* We use char because int might match the return type of a gcc2 4081 builtin and then its argument prototype would still apply. */ 4082char $ac_func(); 4083 4084int main() { 4085 4086/* The GNU C library defines this for functions which it implements 4087 to always fail with ENOSYS. Some functions are actually named 4088 something starting with __ and the normal name is an alias. */ 4089#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4090choke me 4091#else 4092$ac_func(); 4093#endif 4094 4095; return 0; } 4096EOF 4097if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4098 rm -rf conftest* 4099 eval "ac_cv_func_$ac_func=yes" 4100else 4101 echo "configure: failed program was:" >&5 4102 cat conftest.$ac_ext >&5 4103 rm -rf conftest* 4104 eval "ac_cv_func_$ac_func=no" 4105fi 4106rm -f conftest* 4107fi 4108 4109if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4110 echo "$ac_t""yes" 1>&6 4111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4112 cat >> confdefs.h <<EOF 4113#define $ac_tr_func 1 4114EOF 4115 4116else 4117 echo "$ac_t""no" 1>&6 4118fi 4119done 4120 4121case $LIBS in 4122*-lnsl*) ;; 4123*) echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6 4124echo "configure:4125: checking for main in -lnsl_s" >&5 4125ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-%__p_%'` 4126if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4127 echo $ac_n "(cached) $ac_c" 1>&6 4128else 4129 ac_save_LIBS="$LIBS" 4130LIBS="-lnsl_s $LIBS" 4131cat > conftest.$ac_ext <<EOF 4132#line 4133 "configure" 4133#include "confdefs.h" 4134 4135int main() { 4136main() 4137; return 0; } 4138EOF 4139if { (eval echo configure:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4140 rm -rf conftest* 4141 eval "ac_cv_lib_$ac_lib_var=yes" 4142else 4143 echo "configure: failed program was:" >&5 4144 cat conftest.$ac_ext >&5 4145 rm -rf conftest* 4146 eval "ac_cv_lib_$ac_lib_var=no" 4147fi 4148rm -f conftest* 4149LIBS="$ac_save_LIBS" 4150 4151fi 4152if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4153 echo "$ac_t""yes" 1>&6 4154 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4155 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4156 cat >> confdefs.h <<EOF 4157#define $ac_tr_lib 1 4158EOF 4159 4160 LIBS="-lnsl_s $LIBS" 4161 4162else 4163 echo "$ac_t""no" 1>&6 4164fi 4165 ;; 4166esac 4167case $LIBS in 4168*-lnsl*) ;; 4169*) echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 4170echo "configure:4171: checking for main in -lnsl" >&5 4171ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` 4172if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4173 echo $ac_n "(cached) $ac_c" 1>&6 4174else 4175 ac_save_LIBS="$LIBS" 4176LIBS="-lnsl $LIBS" 4177cat > conftest.$ac_ext <<EOF 4178#line 4179 "configure" 4179#include "confdefs.h" 4180 4181int main() { 4182main() 4183; return 0; } 4184EOF 4185if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4186 rm -rf conftest* 4187 eval "ac_cv_lib_$ac_lib_var=yes" 4188else 4189 echo "configure: failed program was:" >&5 4190 cat conftest.$ac_ext >&5 4191 rm -rf conftest* 4192 eval "ac_cv_lib_$ac_lib_var=no" 4193fi 4194rm -f conftest* 4195LIBS="$ac_save_LIBS" 4196 4197fi 4198if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4199 echo "$ac_t""yes" 1>&6 4200 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4202 cat >> confdefs.h <<EOF 4203#define $ac_tr_lib 1 4204EOF 4205 4206 LIBS="-lnsl $LIBS" 4207 4208else 4209 echo "$ac_t""no" 1>&6 4210fi 4211 ;; 4212esac 4213case $LIBS in 4214*-lsocket*) ;; 4215*) echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 4216echo "configure:4217: checking for socket in -lsocket" >&5 4217ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 4218if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4219 echo $ac_n "(cached) $ac_c" 1>&6 4220else 4221 ac_save_LIBS="$LIBS" 4222LIBS="-lsocket $LIBS" 4223cat > conftest.$ac_ext <<EOF 4224#line 4225 "configure" 4225#include "confdefs.h" 4226/* Override any gcc2 internal prototype to avoid an error. */ 4227/* We use char because int might match the return type of a gcc2 4228 builtin and then its argument prototype would still apply. */ 4229char socket(); 4230 4231int main() { 4232socket() 4233; return 0; } 4234EOF 4235if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4236 rm -rf conftest* 4237 eval "ac_cv_lib_$ac_lib_var=yes" 4238else 4239 echo "configure: failed program was:" >&5 4240 cat conftest.$ac_ext >&5 4241 rm -rf conftest* 4242 eval "ac_cv_lib_$ac_lib_var=no" 4243fi 4244rm -f conftest* 4245LIBS="$ac_save_LIBS" 4246 4247fi 4248if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4249 echo "$ac_t""yes" 1>&6 4250 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4252 cat >> confdefs.h <<EOF 4253#define $ac_tr_lib 1 4254EOF 4255 4256 LIBS="-lsocket $LIBS" 4257 4258else 4259 echo "$ac_t""no" 1>&6 4260fi 4261 ;; 4262esac 4263case $LIBS in 4264*-lxti*) ;; 4265*) echo $ac_n "checking for t_open in -lxti""... $ac_c" 1>&6 4266echo "configure:4267: checking for t_open in -lxti" >&5 4267ac_lib_var=`echo xti'_'t_open | sed 'y%./+-%__p_%'` 4268if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4269 echo $ac_n "(cached) $ac_c" 1>&6 4270else 4271 ac_save_LIBS="$LIBS" 4272LIBS="-lxti $LIBS" 4273cat > conftest.$ac_ext <<EOF 4274#line 4275 "configure" 4275#include "confdefs.h" 4276/* Override any gcc2 internal prototype to avoid an error. */ 4277/* We use char because int might match the return type of a gcc2 4278 builtin and then its argument prototype would still apply. */ 4279char t_open(); 4280 4281int main() { 4282t_open() 4283; return 0; } 4284EOF 4285if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4286 rm -rf conftest* 4287 eval "ac_cv_lib_$ac_lib_var=yes" 4288else 4289 echo "configure: failed program was:" >&5 4290 cat conftest.$ac_ext >&5 4291 rm -rf conftest* 4292 eval "ac_cv_lib_$ac_lib_var=no" 4293fi 4294rm -f conftest* 4295LIBS="$ac_save_LIBS" 4296 4297fi 4298if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 4299 echo "$ac_t""yes" 1>&6 4300 ac_tr_lib=HAVE_LIB`echo xti | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 4301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 4302 cat >> confdefs.h <<EOF 4303#define $ac_tr_lib 1 4304EOF 4305 4306 LIBS="-lxti $LIBS" 4307 4308else 4309 echo "$ac_t""no" 1>&6 4310fi 4311;; 4312esac 4313for ac_func in socket t_open 4314do 4315echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4316echo "configure:4317: checking for $ac_func" >&5 4317if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4318 echo $ac_n "(cached) $ac_c" 1>&6 4319else 4320 cat > conftest.$ac_ext <<EOF 4321#line 4322 "configure" 4322#include "confdefs.h" 4323/* System header to define __stub macros and hopefully few prototypes, 4324 which can conflict with char $ac_func(); below. */ 4325#include <assert.h> 4326/* Override any gcc2 internal prototype to avoid an error. */ 4327/* We use char because int might match the return type of a gcc2 4328 builtin and then its argument prototype would still apply. */ 4329char $ac_func(); 4330 4331int main() { 4332 4333/* The GNU C library defines this for functions which it implements 4334 to always fail with ENOSYS. Some functions are actually named 4335 something starting with __ and the normal name is an alias. */ 4336#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4337choke me 4338#else 4339$ac_func(); 4340#endif 4341 4342; return 0; } 4343EOF 4344if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4345 rm -rf conftest* 4346 eval "ac_cv_func_$ac_func=yes" 4347else 4348 echo "configure: failed program was:" >&5 4349 cat conftest.$ac_ext >&5 4350 rm -rf conftest* 4351 eval "ac_cv_func_$ac_func=no" 4352fi 4353rm -f conftest* 4354fi 4355 4356if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4357 echo "$ac_t""yes" 1>&6 4358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4359 cat >> confdefs.h <<EOF 4360#define $ac_tr_func 1 4361EOF 4362 4363else 4364 echo "$ac_t""no" 1>&6 4365fi 4366done 4367 4368for ac_func in getcwd getwd 4369do 4370echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4371echo "configure:4372: checking for $ac_func" >&5 4372if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4373 echo $ac_n "(cached) $ac_c" 1>&6 4374else 4375 cat > conftest.$ac_ext <<EOF 4376#line 4377 "configure" 4377#include "confdefs.h" 4378/* System header to define __stub macros and hopefully few prototypes, 4379 which can conflict with char $ac_func(); below. */ 4380#include <assert.h> 4381/* Override any gcc2 internal prototype to avoid an error. */ 4382/* We use char because int might match the return type of a gcc2 4383 builtin and then its argument prototype would still apply. */ 4384char $ac_func(); 4385 4386int main() { 4387 4388/* The GNU C library defines this for functions which it implements 4389 to always fail with ENOSYS. Some functions are actually named 4390 something starting with __ and the normal name is an alias. */ 4391#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4392choke me 4393#else 4394$ac_func(); 4395#endif 4396 4397; return 0; } 4398EOF 4399if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4400 rm -rf conftest* 4401 eval "ac_cv_func_$ac_func=yes" 4402else 4403 echo "configure: failed program was:" >&5 4404 cat conftest.$ac_ext >&5 4405 rm -rf conftest* 4406 eval "ac_cv_func_$ac_func=no" 4407fi 4408rm -f conftest* 4409fi 4410 4411if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4412 echo "$ac_t""yes" 1>&6 4413 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4414 cat >> confdefs.h <<EOF 4415#define $ac_tr_func 1 4416EOF 4417 4418else 4419 echo "$ac_t""no" 1>&6 4420fi 4421done 4422 4423if test $ac_cv_func_getcwd != yes \ 4424 && test $ac_cv_func_getwd != yes; then 4425 UNIXOBJS="$UNIXOBJS getcwd.o" 4426 if test -s /bin/pwd; then 4427 cat >> confdefs.h <<\EOF 4428#define PWD_PROGRAM "/bin/pwd" 4429EOF 4430 4431 fi 4432fi 4433for ac_func in mkdir 4434do 4435echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4436echo "configure:4437: checking for $ac_func" >&5 4437if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4438 echo $ac_n "(cached) $ac_c" 1>&6 4439else 4440 cat > conftest.$ac_ext <<EOF 4441#line 4442 "configure" 4442#include "confdefs.h" 4443/* System header to define __stub macros and hopefully few prototypes, 4444 which can conflict with char $ac_func(); below. */ 4445#include <assert.h> 4446/* Override any gcc2 internal prototype to avoid an error. */ 4447/* We use char because int might match the return type of a gcc2 4448 builtin and then its argument prototype would still apply. */ 4449char $ac_func(); 4450 4451int main() { 4452 4453/* The GNU C library defines this for functions which it implements 4454 to always fail with ENOSYS. Some functions are actually named 4455 something starting with __ and the normal name is an alias. */ 4456#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4457choke me 4458#else 4459$ac_func(); 4460#endif 4461 4462; return 0; } 4463EOF 4464if { (eval echo configure:4465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4465 rm -rf conftest* 4466 eval "ac_cv_func_$ac_func=yes" 4467else 4468 echo "configure: failed program was:" >&5 4469 cat conftest.$ac_ext >&5 4470 rm -rf conftest* 4471 eval "ac_cv_func_$ac_func=no" 4472fi 4473rm -f conftest* 4474fi 4475 4476if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4477 echo "$ac_t""yes" 1>&6 4478 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4479 cat >> confdefs.h <<EOF 4480#define $ac_tr_func 1 4481EOF 4482 4483else 4484 echo "$ac_t""no" 1>&6 4485fi 4486done 4487 4488 4489 4490if test $ac_cv_func_mkdir = yes; then 4491 HAVE_MKDIR_TRUE= 4492 HAVE_MKDIR_FALSE='#' 4493else 4494 HAVE_MKDIR_TRUE='#' 4495 HAVE_MKDIR_FALSE= 4496fi 4497if test $ac_cv_func_mkdir != yes; then 4498 UNIXOBJS="$UNIXOBJS mkdir.o" 4499 if test -s /bin/mkdir; then 4500 cat >> confdefs.h <<\EOF 4501#define MKDIR_PROGRAM "/bin/mkdir" 4502EOF 4503 4504 fi 4505fi 4506for ac_func in rmdir 4507do 4508echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4509echo "configure:4510: checking for $ac_func" >&5 4510if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4511 echo $ac_n "(cached) $ac_c" 1>&6 4512else 4513 cat > conftest.$ac_ext <<EOF 4514#line 4515 "configure" 4515#include "confdefs.h" 4516/* System header to define __stub macros and hopefully few prototypes, 4517 which can conflict with char $ac_func(); below. */ 4518#include <assert.h> 4519/* Override any gcc2 internal prototype to avoid an error. */ 4520/* We use char because int might match the return type of a gcc2 4521 builtin and then its argument prototype would still apply. */ 4522char $ac_func(); 4523 4524int main() { 4525 4526/* The GNU C library defines this for functions which it implements 4527 to always fail with ENOSYS. Some functions are actually named 4528 something starting with __ and the normal name is an alias. */ 4529#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4530choke me 4531#else 4532$ac_func(); 4533#endif 4534 4535; return 0; } 4536EOF 4537if { (eval echo configure:4538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4538 rm -rf conftest* 4539 eval "ac_cv_func_$ac_func=yes" 4540else 4541 echo "configure: failed program was:" >&5 4542 cat conftest.$ac_ext >&5 4543 rm -rf conftest* 4544 eval "ac_cv_func_$ac_func=no" 4545fi 4546rm -f conftest* 4547fi 4548 4549if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4550 echo "$ac_t""yes" 1>&6 4551 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4552 cat >> confdefs.h <<EOF 4553#define $ac_tr_func 1 4554EOF 4555 4556else 4557 echo "$ac_t""no" 1>&6 4558fi 4559done 4560 4561if test $ac_cv_func_rmdir != yes; then 4562 UNIXOBJS="$UNIXOBJS rmdir.o" 4563 if test -s /bin/rmdir; then 4564 cat >> confdefs.h <<\EOF 4565#define RMDIR_PROGRAM "/bin/rmdir" 4566EOF 4567 4568 fi 4569fi 4570if test $ac_cv_func_bsearch != yes; then 4571 LIBOBJS="$LIBOBJS bsrch.o" 4572fi 4573if test $ac_cv_func_bzero != yes \ 4574 && test $ac_cv_func_memset != yes; then 4575 LIBOBJS="$LIBOBJS bzero.o" 4576fi 4577if test $ac_cv_func_memchr != yes; then 4578 LIBOBJS="$LIBOBJS memchr.o" 4579fi 4580if test $ac_cv_func_memcmp != yes \ 4581 && test $ac_cv_func_bcmp != yes; then 4582 LIBOBJS="$LIBOBJS memcmp.o" 4583fi 4584if test $ac_cv_func_memcpy != yes \ 4585 && test $ac_cv_func_bcopy != yes; then 4586 LIBOBJS="$LIBOBJS memcpy.o" 4587fi 4588if test $ac_cv_func_strcasecmp != yes \ 4589 && test $ac_cv_func_stricmp != yes; then 4590 LIBOBJS="$LIBOBJS strcas.o" 4591fi 4592if test $ac_cv_func_strchr != yes \ 4593 && test $ac_cv_func_index != yes; then 4594 LIBOBJS="$LIBOBJS strchr.o" 4595fi 4596if test $ac_cv_func_strdup != yes; then 4597 LIBOBJS="$LIBOBJS strdup.o" 4598fi 4599if test $ac_cv_func_strncasecmp != yes \ 4600 && test $ac_cv_func_strnicmp != yes; then 4601 LIBOBJS="$LIBOBJS strncs.o" 4602fi 4603if test $ac_cv_func_strrchr != yes \ 4604 && test $ac_cv_func_rindex != yes; then 4605 LIBOBJS="$LIBOBJS strrch.o" 4606fi 4607if test $ac_cv_func_strstr != yes; then 4608 LIBOBJS="$LIBOBJS strstr.o" 4609fi 4610if test $ac_cv_func_strtol != yes; then 4611 LIBOBJS="$LIBOBJS strtol.o" 4612fi 4613if test $ac_cv_func_strtoul != yes; then 4614 LIBOBJS="$LIBOBJS strtou.o" 4615fi 4616if test $ac_cv_func_opendir != yes; then 4617 UNIXOBJS="$UNIXOBJS dirent.o" 4618fi 4619if test $ac_cv_func_dup2 != yes; then 4620 UNIXOBJS="$UNIXOBJS dup2.o" 4621fi 4622if test $ac_cv_func_ftw != yes; then 4623 UNIXOBJS="$UNIXOBJS ftw.o" 4624fi 4625if test $ac_cv_func_remove != yes; then 4626 UNIXOBJS="$UNIXOBJS remove.o" 4627fi 4628if test $ac_cv_func_rename != yes; then 4629 UNIXOBJS="$UNIXOBJS rename.o" 4630fi 4631if test $ac_cv_func_strerror != yes; then 4632 UNIXOBJS="$UNIXOBJS strerr.o" 4633fi 4634 4635if test $ac_cv_func_sigvec = yes; then 4636 echo $ac_n "checking for sv_flags""... $ac_c" 1>&6 4637echo "configure:4638: checking for sv_flags" >&5 4638 if eval "test \"`echo '$''{'uucp_cv_struct_sv_flags'+set}'`\" = set"; then 4639 echo $ac_n "(cached) $ac_c" 1>&6 4640else 4641 cat > conftest.$ac_ext <<EOF 4642#line 4643 "configure" 4643#include "confdefs.h" 4644#include <signal.h> 4645int main() { 4646struct sigvec s; s.sv_flags = 0; 4647; return 0; } 4648EOF 4649if { (eval echo configure:4650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4650 rm -rf conftest* 4651 uucp_cv_struct_sv_flags=yes 4652else 4653 echo "configure: failed program was:" >&5 4654 cat conftest.$ac_ext >&5 4655 rm -rf conftest* 4656 uucp_cv_struct_sv_flags=no 4657fi 4658rm -f conftest* 4659fi 4660 4661 echo "$ac_t""$uucp_cv_struct_sv_flags" 1>&6 4662 if test $uucp_cv_struct_sv_flags = yes; then 4663 cat >> confdefs.h <<\EOF 4664#define HAVE_SIGVEC_SV_FLAGS 1 4665EOF 4666 4667 fi 4668fi 4669 4670echo "checking how to get filesystem space usage" 1>&6 4671echo "configure:4672: checking how to get filesystem space usage" >&5 4672space=no 4673 4674# Here we'll compromise a little (and perform only the link test) 4675# since it seems there are no variants of the statvfs function. 4676if test $space = no; then 4677 # SVR4 4678 for ac_func in statvfs 4679do 4680echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4681echo "configure:4682: checking for $ac_func" >&5 4682if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4683 echo $ac_n "(cached) $ac_c" 1>&6 4684else 4685 cat > conftest.$ac_ext <<EOF 4686#line 4687 "configure" 4687#include "confdefs.h" 4688/* System header to define __stub macros and hopefully few prototypes, 4689 which can conflict with char $ac_func(); below. */ 4690#include <assert.h> 4691/* Override any gcc2 internal prototype to avoid an error. */ 4692/* We use char because int might match the return type of a gcc2 4693 builtin and then its argument prototype would still apply. */ 4694char $ac_func(); 4695 4696int main() { 4697 4698/* The GNU C library defines this for functions which it implements 4699 to always fail with ENOSYS. Some functions are actually named 4700 something starting with __ and the normal name is an alias. */ 4701#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4702choke me 4703#else 4704$ac_func(); 4705#endif 4706 4707; return 0; } 4708EOF 4709if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4710 rm -rf conftest* 4711 eval "ac_cv_func_$ac_func=yes" 4712else 4713 echo "configure: failed program was:" >&5 4714 cat conftest.$ac_ext >&5 4715 rm -rf conftest* 4716 eval "ac_cv_func_$ac_func=no" 4717fi 4718rm -f conftest* 4719fi 4720 4721if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4722 echo "$ac_t""yes" 1>&6 4723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4724 cat >> confdefs.h <<EOF 4725#define $ac_tr_func 1 4726EOF 4727 4728else 4729 echo "$ac_t""no" 1>&6 4730fi 4731done 4732 4733 if test $ac_cv_func_statvfs = yes; then 4734 space=yes 4735 cat >> confdefs.h <<\EOF 4736#define STAT_STATVFS 1 4737EOF 4738 4739 fi 4740fi 4741 4742if test $space = no; then 4743 # DEC Alpha running OSF/1 4744 echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6 4745echo "configure:4746: checking for 3-argument statfs function (DEC OSF/1)" >&5 4746 if eval "test \"`echo '$''{'uucp_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then 4747 echo $ac_n "(cached) $ac_c" 1>&6 4748else 4749 if test "$cross_compiling" = yes; then 4750 uucp_cv_sys_stat_statfs3_osf1=no 4751else 4752 cat > conftest.$ac_ext <<EOF 4753#line 4754 "configure" 4754#include "confdefs.h" 4755 4756#include <sys/param.h> 4757#include <sys/types.h> 4758#include <sys/mount.h> 4759 main () 4760 { 4761 struct statfs fsd; 4762 fsd.f_fsize = 0; 4763 exit (statfs (".", &fsd, sizeof (struct statfs))); 4764 } 4765EOF 4766if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4767then 4768 uucp_cv_sys_stat_statfs3_osf1=yes 4769else 4770 echo "configure: failed program was:" >&5 4771 cat conftest.$ac_ext >&5 4772 rm -fr conftest* 4773 uucp_cv_sys_stat_statfs3_osf1=no 4774fi 4775rm -fr conftest* 4776fi 4777 4778fi 4779 4780 echo "$ac_t""$uucp_cv_sys_stat_statfs3_osf1" 1>&6 4781 if test $uucp_cv_sys_stat_statfs3_osf1 = yes; then 4782 space=yes 4783 cat >> confdefs.h <<\EOF 4784#define STAT_STATFS3_OSF1 1 4785EOF 4786 4787 fi 4788fi 4789 4790if test $space = no; then 4791# AIX 4792 echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6 4793echo "configure:4794: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5 4794 if eval "test \"`echo '$''{'uucp_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then 4795 echo $ac_n "(cached) $ac_c" 1>&6 4796else 4797 if test "$cross_compiling" = yes; then 4798 uucp_cv_sys_stat_statfs2_bsize=no 4799else 4800 cat > conftest.$ac_ext <<EOF 4801#line 4802 "configure" 4802#include "confdefs.h" 4803 4804#ifdef HAVE_SYS_PARAM_H 4805#include <sys/param.h> 4806#endif 4807#ifdef HAVE_SYS_MOUNT_H 4808#include <sys/mount.h> 4809#endif 4810#ifdef HAVE_SYS_VFS_H 4811#include <sys/vfs.h> 4812#endif 4813 main () 4814 { 4815 struct statfs fsd; 4816 fsd.f_bsize = 0; 4817 exit (statfs (".", &fsd)); 4818 } 4819EOF 4820if { (eval echo configure:4821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4821then 4822 uucp_cv_sys_stat_statfs2_bsize=yes 4823else 4824 echo "configure: failed program was:" >&5 4825 cat conftest.$ac_ext >&5 4826 rm -fr conftest* 4827 uucp_cv_sys_stat_statfs2_bsize=no 4828fi 4829rm -fr conftest* 4830fi 4831 4832fi 4833 4834 echo "$ac_t""$uucp_cv_sys_stat_statfs2_bsize" 1>&6 4835 if test $uucp_cv_sys_stat_statfs2_bsize = yes; then 4836 space=yes 4837 cat >> confdefs.h <<\EOF 4838#define STAT_STATFS2_BSIZE 1 4839EOF 4840 4841 fi 4842fi 4843 4844if test $space = no; then 4845# SVR3 4846 echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6 4847echo "configure:4848: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5 4848 if eval "test \"`echo '$''{'uucp_cv_sys_stat_statfs4'+set}'`\" = set"; then 4849 echo $ac_n "(cached) $ac_c" 1>&6 4850else 4851 if test "$cross_compiling" = yes; then 4852 uucp_cv_sys_stat_statfs4=no 4853else 4854 cat > conftest.$ac_ext <<EOF 4855#line 4856 "configure" 4856#include "confdefs.h" 4857#include <sys/types.h> 4858#include <sys/statfs.h> 4859 main () 4860 { 4861 struct statfs fsd; 4862 exit (statfs (".", &fsd, sizeof fsd, 0)); 4863 } 4864EOF 4865if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4866then 4867 uucp_cv_sys_stat_statfs4=yes 4868else 4869 echo "configure: failed program was:" >&5 4870 cat conftest.$ac_ext >&5 4871 rm -fr conftest* 4872 uucp_cv_sys_stat_statfs4=no 4873fi 4874rm -fr conftest* 4875fi 4876 4877fi 4878 4879 echo "$ac_t""$uucp_cv_sys_stat_statfs4" 1>&6 4880 if test $uucp_cv_sys_stat_statfs4 = yes; then 4881 space=yes 4882 cat >> confdefs.h <<\EOF 4883#define STAT_STATFS4 1 4884EOF 4885 4886 fi 4887fi 4888 4889if test $space = no; then 4890# 4.4BSD and NetBSD 4891 echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6 4892echo "configure:4893: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5 4893 if eval "test \"`echo '$''{'uucp_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then 4894 echo $ac_n "(cached) $ac_c" 1>&6 4895else 4896 if test "$cross_compiling" = yes; then 4897 uucp_cv_sys_stat_statfs2_fsize=no 4898else 4899 cat > conftest.$ac_ext <<EOF 4900#line 4901 "configure" 4901#include "confdefs.h" 4902#include <sys/types.h> 4903#ifdef HAVE_SYS_PARAM_H 4904#include <sys/param.h> 4905#endif 4906#ifdef HAVE_SYS_MOUNT_H 4907#include <sys/mount.h> 4908#endif 4909 main () 4910 { 4911 struct statfs fsd; 4912 fsd.f_fsize = 0; 4913 exit (statfs (".", &fsd)); 4914 } 4915EOF 4916if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4917then 4918 uucp_cv_sys_stat_statfs2_fsize=yes 4919else 4920 echo "configure: failed program was:" >&5 4921 cat conftest.$ac_ext >&5 4922 rm -fr conftest* 4923 uucp_cv_sys_stat_statfs2_fsize=no 4924fi 4925rm -fr conftest* 4926fi 4927 4928fi 4929 4930 echo "$ac_t""$uucp_cv_sys_stat_statfs2_fsize" 1>&6 4931 if test $uucp_cv_sys_stat_statfs2_fsize = yes; then 4932 space=yes 4933 cat >> confdefs.h <<\EOF 4934#define STAT_STATFS2_FSIZE 1 4935EOF 4936 4937 fi 4938fi 4939 4940if test $space = no; then 4941 # Ultrix 4942 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6 4943echo "configure:4944: checking for two-argument statfs with struct fs_data (Ultrix)" >&5 4944 if eval "test \"`echo '$''{'uucp_cv_sys_stat_fs_data'+set}'`\" = set"; then 4945 echo $ac_n "(cached) $ac_c" 1>&6 4946else 4947 if test "$cross_compiling" = yes; then 4948 uucp_cv_sys_stat_fs_data=no 4949else 4950 cat > conftest.$ac_ext <<EOF 4951#line 4952 "configure" 4952#include "confdefs.h" 4953#include <sys/types.h> 4954#ifdef HAVE_SYS_PARAM_H 4955#include <sys/param.h> 4956#endif 4957#ifdef HAVE_SYS_MOUNT_H 4958#include <sys/mount.h> 4959#endif 4960#ifdef HAVE_SYS_FS_TYPES_H 4961#include <sys/fs_types.h> 4962#endif 4963 main () 4964 { 4965 struct fs_data fsd; 4966 /* Ultrix's statfs returns 1 for success, 4967 0 for not mounted, -1 for failure. */ 4968 exit (statfs (".", &fsd) != 1); 4969 } 4970EOF 4971if { (eval echo configure:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4972then 4973 uucp_cv_sys_stat_fs_data=yes 4974else 4975 echo "configure: failed program was:" >&5 4976 cat conftest.$ac_ext >&5 4977 rm -fr conftest* 4978 uucp_cv_sys_stat_fs_data=no 4979fi 4980rm -fr conftest* 4981fi 4982 4983fi 4984 4985 echo "$ac_t""$uucp_cv_sys_stat_fs_data" 1>&6 4986 if test $uucp_cv_sys_stat_fs_data = yes; then 4987 space=yes 4988 cat >> confdefs.h <<\EOF 4989#define STAT_STATFS2_FS_DATA 1 4990EOF 4991 4992 fi 4993fi 4994 4995if test $space = no; then 4996 for ac_func in ustat 4997do 4998echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4999echo "configure:5000: checking for $ac_func" >&5 5000if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5001 echo $ac_n "(cached) $ac_c" 1>&6 5002else 5003 cat > conftest.$ac_ext <<EOF 5004#line 5005 "configure" 5005#include "confdefs.h" 5006/* System header to define __stub macros and hopefully few prototypes, 5007 which can conflict with char $ac_func(); below. */ 5008#include <assert.h> 5009/* Override any gcc2 internal prototype to avoid an error. */ 5010/* We use char because int might match the return type of a gcc2 5011 builtin and then its argument prototype would still apply. */ 5012char $ac_func(); 5013 5014int main() { 5015 5016/* The GNU C library defines this for functions which it implements 5017 to always fail with ENOSYS. Some functions are actually named 5018 something starting with __ and the normal name is an alias. */ 5019#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5020choke me 5021#else 5022$ac_func(); 5023#endif 5024 5025; return 0; } 5026EOF 5027if { (eval echo configure:5028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5028 rm -rf conftest* 5029 eval "ac_cv_func_$ac_func=yes" 5030else 5031 echo "configure: failed program was:" >&5 5032 cat conftest.$ac_ext >&5 5033 rm -rf conftest* 5034 eval "ac_cv_func_$ac_func=no" 5035fi 5036rm -f conftest* 5037fi 5038 5039if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5040 echo "$ac_t""yes" 1>&6 5041 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5042 cat >> confdefs.h <<EOF 5043#define $ac_tr_func 1 5044EOF 5045 5046else 5047 echo "$ac_t""no" 1>&6 5048fi 5049done 5050 5051 if test $ac_cv_func_ustat = yes; then 5052 space=yes 5053 cat >> confdefs.h <<\EOF 5054#define STAT_USTAT 1 5055EOF 5056 5057 fi 5058fi 5059 5060if test $space = no; then 5061 # QNX 5062 for ac_func in disk_space 5063do 5064echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5065echo "configure:5066: checking for $ac_func" >&5 5066if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5067 echo $ac_n "(cached) $ac_c" 1>&6 5068else 5069 cat > conftest.$ac_ext <<EOF 5070#line 5071 "configure" 5071#include "confdefs.h" 5072/* System header to define __stub macros and hopefully few prototypes, 5073 which can conflict with char $ac_func(); below. */ 5074#include <assert.h> 5075/* Override any gcc2 internal prototype to avoid an error. */ 5076/* We use char because int might match the return type of a gcc2 5077 builtin and then its argument prototype would still apply. */ 5078char $ac_func(); 5079 5080int main() { 5081 5082/* The GNU C library defines this for functions which it implements 5083 to always fail with ENOSYS. Some functions are actually named 5084 something starting with __ and the normal name is an alias. */ 5085#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5086choke me 5087#else 5088$ac_func(); 5089#endif 5090 5091; return 0; } 5092EOF 5093if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5094 rm -rf conftest* 5095 eval "ac_cv_func_$ac_func=yes" 5096else 5097 echo "configure: failed program was:" >&5 5098 cat conftest.$ac_ext >&5 5099 rm -rf conftest* 5100 eval "ac_cv_func_$ac_func=no" 5101fi 5102rm -f conftest* 5103fi 5104 5105if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 5106 echo "$ac_t""yes" 1>&6 5107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 5108 cat >> confdefs.h <<EOF 5109#define $ac_tr_func 1 5110EOF 5111 5112else 5113 echo "$ac_t""no" 1>&6 5114fi 5115done 5116 5117 if test $ac_cv_func_disk_space = yes; then 5118 space=yes 5119 cat >> confdefs.h <<\EOF 5120#define STAT_DISK_SPACE 1 5121EOF 5122 5123 fi 5124fi 5125 5126 5127echo $ac_n "checking for times declared as long""... $ac_c" 1>&6 5128echo "configure:5129: checking for times declared as long" >&5 5129if eval "test \"`echo '$''{'uucp_cv_decl_times'+set}'`\" = set"; then 5130 echo $ac_n "(cached) $ac_c" 1>&6 5131else 5132 cat > conftest.$ac_ext <<EOF 5133#line 5134 "configure" 5134#include "confdefs.h" 5135#include <sys/types.h> 5136#include <pwd.h> 5137#include <grp.h> 5138#ifdef HAVE_LIBC_H 5139#include <libc.h> 5140#endif 5141#ifdef HAVE_SYS_TIMES_H 5142#include <sys/times.h> 5143#endif 5144extern long times (); 5145int main() { 5146int i = 0; 5147; return 0; } 5148EOF 5149if { (eval echo configure:5150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5150 rm -rf conftest* 5151 eval "uucp_cv_decl_times=yes" 5152else 5153 echo "configure: failed program was:" >&5 5154 cat conftest.$ac_ext >&5 5155 rm -rf conftest* 5156 eval "uucp_cv_decl_times=no" 5157fi 5158rm -f conftest* 5159fi 5160 5161if eval "test \"`echo '$uucp_cv_decl_'times`\" = yes"; then 5162 echo "$ac_t""yes" 1>&6 5163 cat >> confdefs.h <<EOF 5164#define TIMES_DECLARATION_OK 1 5165EOF 5166 5167else 5168 echo "$ac_t""no" 1>&6 5169fi 5170 5171echo $ac_n "checking for getpwnam declared as struct passwd *""... $ac_c" 1>&6 5172echo "configure:5173: checking for getpwnam declared as struct passwd *" >&5 5173if eval "test \"`echo '$''{'uucp_cv_decl_getpwnam'+set}'`\" = set"; then 5174 echo $ac_n "(cached) $ac_c" 1>&6 5175else 5176 cat > conftest.$ac_ext <<EOF 5177#line 5178 "configure" 5178#include "confdefs.h" 5179#include <sys/types.h> 5180#include <pwd.h> 5181#include <grp.h> 5182#ifdef HAVE_LIBC_H 5183#include <libc.h> 5184#endif 5185#ifdef HAVE_SYS_TIMES_H 5186#include <sys/times.h> 5187#endif 5188extern struct passwd * getpwnam (); 5189int main() { 5190int i = 0; 5191; return 0; } 5192EOF 5193if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5194 rm -rf conftest* 5195 eval "uucp_cv_decl_getpwnam=yes" 5196else 5197 echo "configure: failed program was:" >&5 5198 cat conftest.$ac_ext >&5 5199 rm -rf conftest* 5200 eval "uucp_cv_decl_getpwnam=no" 5201fi 5202rm -f conftest* 5203fi 5204 5205if eval "test \"`echo '$uucp_cv_decl_'getpwnam`\" = yes"; then 5206 echo "$ac_t""yes" 1>&6 5207 cat >> confdefs.h <<EOF 5208#define GETPWNAM_DECLARATION_OK 1 5209EOF 5210 5211else 5212 echo "$ac_t""no" 1>&6 5213fi 5214 5215echo $ac_n "checking for getpwuid declared as struct passwd *""... $ac_c" 1>&6 5216echo "configure:5217: checking for getpwuid declared as struct passwd *" >&5 5217if eval "test \"`echo '$''{'uucp_cv_decl_getpwuid'+set}'`\" = set"; then 5218 echo $ac_n "(cached) $ac_c" 1>&6 5219else 5220 cat > conftest.$ac_ext <<EOF 5221#line 5222 "configure" 5222#include "confdefs.h" 5223#include <sys/types.h> 5224#include <pwd.h> 5225#include <grp.h> 5226#ifdef HAVE_LIBC_H 5227#include <libc.h> 5228#endif 5229#ifdef HAVE_SYS_TIMES_H 5230#include <sys/times.h> 5231#endif 5232extern struct passwd * getpwuid (); 5233int main() { 5234int i = 0; 5235; return 0; } 5236EOF 5237if { (eval echo configure:5238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5238 rm -rf conftest* 5239 eval "uucp_cv_decl_getpwuid=yes" 5240else 5241 echo "configure: failed program was:" >&5 5242 cat conftest.$ac_ext >&5 5243 rm -rf conftest* 5244 eval "uucp_cv_decl_getpwuid=no" 5245fi 5246rm -f conftest* 5247fi 5248 5249if eval "test \"`echo '$uucp_cv_decl_'getpwuid`\" = yes"; then 5250 echo "$ac_t""yes" 1>&6 5251 cat >> confdefs.h <<EOF 5252#define GETPWUID_DECLARATION_OK 1 5253EOF 5254 5255else 5256 echo "$ac_t""no" 1>&6 5257fi 5258 5259echo $ac_n "checking for getgrent declared as struct group *""... $ac_c" 1>&6 5260echo "configure:5261: checking for getgrent declared as struct group *" >&5 5261if eval "test \"`echo '$''{'uucp_cv_decl_getgrent'+set}'`\" = set"; then 5262 echo $ac_n "(cached) $ac_c" 1>&6 5263else 5264 cat > conftest.$ac_ext <<EOF 5265#line 5266 "configure" 5266#include "confdefs.h" 5267#include <sys/types.h> 5268#include <pwd.h> 5269#include <grp.h> 5270#ifdef HAVE_LIBC_H 5271#include <libc.h> 5272#endif 5273#ifdef HAVE_SYS_TIMES_H 5274#include <sys/times.h> 5275#endif 5276extern struct group * getgrent (); 5277int main() { 5278int i = 0; 5279; return 0; } 5280EOF 5281if { (eval echo configure:5282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5282 rm -rf conftest* 5283 eval "uucp_cv_decl_getgrent=yes" 5284else 5285 echo "configure: failed program was:" >&5 5286 cat conftest.$ac_ext >&5 5287 rm -rf conftest* 5288 eval "uucp_cv_decl_getgrent=no" 5289fi 5290rm -f conftest* 5291fi 5292 5293if eval "test \"`echo '$uucp_cv_decl_'getgrent`\" = yes"; then 5294 echo "$ac_t""yes" 1>&6 5295 cat >> confdefs.h <<EOF 5296#define GETGRENT_DECLARATION_OK 1 5297EOF 5298 5299else 5300 echo "$ac_t""no" 1>&6 5301fi 5302 5303echo $ac_n "checking for BSD setpgrp""... $ac_c" 1>&6 5304echo "configure:5305: checking for BSD setpgrp" >&5 5305if eval "test \"`echo '$''{'uucp_cv_decl_setpgrp'+set}'`\" = set"; then 5306 echo $ac_n "(cached) $ac_c" 1>&6 5307else 5308 cat > conftest.$ac_ext <<EOF 5309#line 5310 "configure" 5310#include "confdefs.h" 5311#ifdef HAVE_UNISTD_H 5312#include <unistd.h> 5313#endif 5314int main() { 5315getpgrp (0); setpgrp (0, 0); 5316; return 0; } 5317EOF 5318if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5319 rm -rf conftest* 5320 uucp_cv_decl_setpgrp=yes 5321else 5322 echo "configure: failed program was:" >&5 5323 cat conftest.$ac_ext >&5 5324 rm -rf conftest* 5325 uucp_cv_decl_setpgrp=no 5326fi 5327rm -f conftest* 5328fi 5329 5330echo "$ac_t""$uucp_cv_decl_setpgrp" 1>&6 5331if test $uucp_cv_decl_setpgrp = yes; then 5332 cat >> confdefs.h <<\EOF 5333#define HAVE_BSD_PGRP 1 5334EOF 5335 5336fi 5337echo $ac_n "checking for union wait""... $ac_c" 1>&6 5338echo "configure:5339: checking for union wait" >&5 5339if eval "test \"`echo '$''{'uucp_cv_struct_wait'+set}'`\" = set"; then 5340 echo $ac_n "(cached) $ac_c" 1>&6 5341else 5342 cat > conftest.$ac_ext <<EOF 5343#line 5344 "configure" 5344#include "confdefs.h" 5345#include <sys/wait.h> 5346#ifndef WIFEXITED 5347#define WIFEXITED(u) ((u).w_termsig == 0) 5348#endif 5349int main() { 5350union wait u; if (WIFEXITED (u)) wait (&u); 5351; return 0; } 5352EOF 5353if { (eval echo configure:5354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5354 rm -rf conftest* 5355 uucp_cv_struct_wait=yes 5356else 5357 echo "configure: failed program was:" >&5 5358 cat conftest.$ac_ext >&5 5359 rm -rf conftest* 5360 uucp_cv_struct_wait=no 5361fi 5362rm -f conftest* 5363fi 5364 5365echo "$ac_t""$uucp_cv_struct_wait" 1>&6 5366if test $uucp_cv_struct_wait = yes; then 5367 cat >> confdefs.h <<\EOF 5368#define HAVE_UNION_WAIT 1 5369EOF 5370 5371fi 5372echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6 5373echo "configure:5374: checking for struct sockaddr_storage" >&5 5374if eval "test \"`echo '$''{'uucp_cv_struct_sockaddrstorage'+set}'`\" = set"; then 5375 echo $ac_n "(cached) $ac_c" 1>&6 5376else 5377 cat > conftest.$ac_ext <<EOF 5378#line 5379 "configure" 5379#include "confdefs.h" 5380#include <sys/socket.h> 5381int main() { 5382struct sockaddr_storage s; 5383; return 0; } 5384EOF 5385if { (eval echo configure:5386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5386 rm -rf conftest* 5387 uucp_cv_struct_sockaddrstorage=yes 5388else 5389 echo "configure: failed program was:" >&5 5390 cat conftest.$ac_ext >&5 5391 rm -rf conftest* 5392 uucp_cv_struct_sockaddrstorage=no 5393fi 5394rm -f conftest* 5395fi 5396 5397echo "$ac_t""$uucp_cv_struct_sockaddrstorage" 1>&6 5398if test $uucp_cv_struct_sockaddrstorage = yes; then 5399 cat >> confdefs.h <<\EOF 5400#define HAVE_STRUCT_SOCKADDR_STORAGE 1 5401EOF 5402 5403fi 5404if test "$cross_compiling" = yes; then 5405 cat >> confdefs.h <<\EOF 5406#define HAVE_LONG_FILE_NAMES 0 5407EOF 5408 5409 cat >> confdefs.h <<\EOF 5410#define HAVE_RESTARTABLE_SYSCALLS -1 5411EOF 5412 5413else 5414 echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6 5415echo "configure:5416: checking for restartable system calls" >&5 5416if eval "test \"`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`\" = set"; then 5417 echo $ac_n "(cached) $ac_c" 1>&6 5418else 5419 if test "$cross_compiling" = yes; then 5420 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 5421else 5422 cat > conftest.$ac_ext <<EOF 5423#line 5424 "configure" 5424#include "confdefs.h" 5425/* Exit 0 (true) if wait returns something other than -1, 5426 i.e. the pid of the child, which means that wait was restarted 5427 after getting the signal. */ 5428#include <sys/types.h> 5429#include <signal.h> 5430ucatch (isig) { } 5431main () { 5432 int i = fork (), status; 5433 if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); } 5434 signal (SIGINT, ucatch); 5435 status = wait(&i); 5436 if (status == -1) wait(&i); 5437 exit (status == -1); 5438} 5439 5440EOF 5441if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5442then 5443 ac_cv_sys_restartable_syscalls=yes 5444else 5445 echo "configure: failed program was:" >&5 5446 cat conftest.$ac_ext >&5 5447 rm -fr conftest* 5448 ac_cv_sys_restartable_syscalls=no 5449fi 5450rm -fr conftest* 5451fi 5452 5453fi 5454 5455echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6 5456if test $ac_cv_sys_restartable_syscalls = yes; then 5457 cat >> confdefs.h <<\EOF 5458#define HAVE_RESTARTABLE_SYSCALLS 1 5459EOF 5460 5461fi 5462 5463 echo $ac_n "checking for long file names""... $ac_c" 1>&6 5464echo "configure:5465: checking for long file names" >&5 5465if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 5466 echo $ac_n "(cached) $ac_c" 1>&6 5467else 5468 ac_cv_sys_long_file_names=yes 5469# Test for long file names in all the places we know might matter: 5470# . the current directory, where building will happen 5471# $prefix/lib where we will be installing things 5472# $exec_prefix/lib likewise 5473# eval it to expand exec_prefix. 5474# $TMPDIR if set, where it might want to write temporary files 5475# if $TMPDIR is not set: 5476# /tmp where it might want to write temporary files 5477# /var/tmp likewise 5478# /usr/tmp likewise 5479if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then 5480 ac_tmpdirs="$TMPDIR" 5481else 5482 ac_tmpdirs='/tmp /var/tmp /usr/tmp' 5483fi 5484for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do 5485 test -d $ac_dir || continue 5486 test -w $ac_dir || continue # It is less confusing to not echo anything here. 5487 (echo 1 > $ac_dir/conftest9012345) 2>/dev/null 5488 (echo 2 > $ac_dir/conftest9012346) 2>/dev/null 5489 val=`cat $ac_dir/conftest9012345 2>/dev/null` 5490 if test ! -f $ac_dir/conftest9012345 || test "$val" != 1; then 5491 ac_cv_sys_long_file_names=no 5492 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 5493 break 5494 fi 5495 rm -f $ac_dir/conftest9012345 $ac_dir/conftest9012346 2>/dev/null 5496done 5497fi 5498 5499echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6 5500if test $ac_cv_sys_long_file_names = yes; then 5501 cat >> confdefs.h <<\EOF 5502#define HAVE_LONG_FILE_NAMES 1 5503EOF 5504 5505fi 5506 5507fi 5508trap '' 1 2 15 5509cat > confcache <<\EOF 5510# This file is a shell script that caches the results of configure 5511# tests run on this system so they can be shared between configure 5512# scripts and configure runs. It is not useful on other systems. 5513# If it contains results you don't want to keep, you may remove or edit it. 5514# 5515# By default, configure uses ./config.cache as the cache file, 5516# creating it if it does not exist already. You can give configure 5517# the --cache-file=FILE option to use a different cache file; that is 5518# what configure does when it calls configure scripts in 5519# subdirectories, so they share the cache. 5520# Giving --cache-file=/dev/null disables caching, for debugging configure. 5521# config.status only pays attention to the cache file if you give it the 5522# --recheck option to rerun configure. 5523# 5524EOF 5525# The following way of writing the cache mishandles newlines in values, 5526# but we know of no workaround that is simple, portable, and efficient. 5527# So, don't put newlines in cache variables' values. 5528# Ultrix sh set writes to stderr and can't be redirected directly, 5529# and sets the high bit in the cache file unless we assign to the vars. 5530(set) 2>&1 | 5531 case `(ac_space=' '; set | grep ac_space) 2>&1` in 5532 *ac_space=\ *) 5533 # `set' does not quote correctly, so add quotes (double-quote substitution 5534 # turns \\\\ into \\, and sed turns \\ into \). 5535 sed -n \ 5536 -e "s/'/'\\\\''/g" \ 5537 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 5538 ;; 5539 *) 5540 # `set' quotes correctly as required by POSIX, so do not add quotes. 5541 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 5542 ;; 5543 esac >> confcache 5544if cmp -s $cache_file confcache; then 5545 : 5546else 5547 if test -w $cache_file; then 5548 echo "updating cache $cache_file" 5549 cat confcache > $cache_file 5550 else 5551 echo "not updating unwritable cache $cache_file" 5552 fi 5553fi 5554rm -f confcache 5555 5556trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 5557 5558test "x$prefix" = xNONE && prefix=$ac_default_prefix 5559# Let make expand exec_prefix. 5560test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5561 5562# Any assignment to VPATH causes Sun make to only execute 5563# the first set of double-colon rules, so remove it if not needed. 5564# If there is a colon in the path, we need to keep it. 5565if test "x$srcdir" = x.; then 5566 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 5567fi 5568 5569trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 5570 5571DEFS=-DHAVE_CONFIG_H 5572 5573# Without the "./", some shells look in PATH for config.status. 5574: ${CONFIG_STATUS=./config.status} 5575 5576echo creating $CONFIG_STATUS 5577rm -f $CONFIG_STATUS 5578cat > $CONFIG_STATUS <<EOF 5579#! /bin/sh 5580# Generated automatically by configure. 5581# Run this file to recreate the current configuration. 5582# This directory was configured as follows, 5583# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 5584# 5585# $0 $ac_configure_args 5586# 5587# Compiler output produced by configure, useful for debugging 5588# configure, is in ./config.log if it exists. 5589 5590ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 5591for ac_option 5592do 5593 case "\$ac_option" in 5594 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5595 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 5596 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 5597 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 5598 echo "$CONFIG_STATUS generated by autoconf version 2.13" 5599 exit 0 ;; 5600 -help | --help | --hel | --he | --h) 5601 echo "\$ac_cs_usage"; exit 0 ;; 5602 *) echo "\$ac_cs_usage"; exit 1 ;; 5603 esac 5604done 5605 5606ac_given_srcdir=$srcdir 5607ac_given_INSTALL="$INSTALL" 5608 5609trap 'rm -fr `echo "Makefile uuconf/Makefile lib/Makefile unix/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 5610EOF 5611cat >> $CONFIG_STATUS <<EOF 5612 5613# Protect against being on the right side of a sed subst in config.status. 5614sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 5615 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 5616$ac_vpsub 5617$extrasub 5618s%@SHELL@%$SHELL%g 5619s%@CFLAGS@%$CFLAGS%g 5620s%@CPPFLAGS@%$CPPFLAGS%g 5621s%@CXXFLAGS@%$CXXFLAGS%g 5622s%@FFLAGS@%$FFLAGS%g 5623s%@DEFS@%$DEFS%g 5624s%@LDFLAGS@%$LDFLAGS%g 5625s%@LIBS@%$LIBS%g 5626s%@exec_prefix@%$exec_prefix%g 5627s%@prefix@%$prefix%g 5628s%@program_transform_name@%$program_transform_name%g 5629s%@bindir@%$bindir%g 5630s%@sbindir@%$sbindir%g 5631s%@libexecdir@%$libexecdir%g 5632s%@datadir@%$datadir%g 5633s%@sysconfdir@%$sysconfdir%g 5634s%@sharedstatedir@%$sharedstatedir%g 5635s%@localstatedir@%$localstatedir%g 5636s%@libdir@%$libdir%g 5637s%@includedir@%$includedir%g 5638s%@oldincludedir@%$oldincludedir%g 5639s%@infodir@%$infodir%g 5640s%@mandir@%$mandir%g 5641s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 5642s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 5643s%@INSTALL_DATA@%$INSTALL_DATA%g 5644s%@PACKAGE@%$PACKAGE%g 5645s%@VERSION@%$VERSION%g 5646s%@EXEEXT@%$EXEEXT%g 5647s%@OBJEXT@%$OBJEXT%g 5648s%@ACLOCAL@%$ACLOCAL%g 5649s%@AUTOCONF@%$AUTOCONF%g 5650s%@AUTOMAKE@%$AUTOMAKE%g 5651s%@AUTOHEADER@%$AUTOHEADER%g 5652s%@MAKEINFO@%$MAKEINFO%g 5653s%@AMTAR@%$AMTAR%g 5654s%@install_sh@%$install_sh%g 5655s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g 5656s%@AWK@%$AWK%g 5657s%@SET_MAKE@%$SET_MAKE%g 5658s%@AMDEP_TRUE@%$AMDEP_TRUE%g 5659s%@AMDEP_FALSE@%$AMDEP_FALSE%g 5660s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g 5661s%@DEPDIR@%$DEPDIR%g 5662s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g 5663s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g 5664s%@MAINT@%$MAINT%g 5665s%@OWNER@%$OWNER%g 5666s%@NEWCONFIGDIR@%$NEWCONFIGDIR%g 5667s%@OLDCONFIGDIR@%$OLDCONFIGDIR%g 5668s%@GCC@%$GCC%g 5669s%@CC@%$CC%g 5670s%@am__include@%$am__include%g 5671s%@am__quote@%$am__quote%g 5672s%@CCDEPMODE@%$CCDEPMODE%g 5673s%@CPP@%$CPP%g 5674s%@WARN_CFLAGS@%$WARN_CFLAGS%g 5675s%@AR@%$AR%g 5676s%@RANLIB@%$RANLIB%g 5677s%@POUNDBANG@%$POUNDBANG%g 5678s%@LN_S@%$LN_S%g 5679s%@HAVE_MKDIR_TRUE@%$HAVE_MKDIR_TRUE%g 5680s%@HAVE_MKDIR_FALSE@%$HAVE_MKDIR_FALSE%g 5681s%@LIBOBJS@%$LIBOBJS%g 5682s%@UNIXOBJS@%$UNIXOBJS%g 5683 5684CEOF 5685EOF 5686 5687cat >> $CONFIG_STATUS <<\EOF 5688 5689# Split the substitutions into bite-sized pieces for seds with 5690# small command number limits, like on Digital OSF/1 and HP-UX. 5691ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 5692ac_file=1 # Number of current file. 5693ac_beg=1 # First line for current file. 5694ac_end=$ac_max_sed_cmds # Line after last line for current file. 5695ac_more_lines=: 5696ac_sed_cmds="" 5697while $ac_more_lines; do 5698 if test $ac_beg -gt 1; then 5699 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 5700 else 5701 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 5702 fi 5703 if test ! -s conftest.s$ac_file; then 5704 ac_more_lines=false 5705 rm -f conftest.s$ac_file 5706 else 5707 if test -z "$ac_sed_cmds"; then 5708 ac_sed_cmds="sed -f conftest.s$ac_file" 5709 else 5710 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 5711 fi 5712 ac_file=`expr $ac_file + 1` 5713 ac_beg=$ac_end 5714 ac_end=`expr $ac_end + $ac_max_sed_cmds` 5715 fi 5716done 5717if test -z "$ac_sed_cmds"; then 5718 ac_sed_cmds=cat 5719fi 5720EOF 5721 5722cat >> $CONFIG_STATUS <<EOF 5723 5724CONFIG_FILES=\${CONFIG_FILES-"Makefile uuconf/Makefile lib/Makefile unix/Makefile"} 5725EOF 5726cat >> $CONFIG_STATUS <<\EOF 5727for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 5728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5729 case "$ac_file" in 5730 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5731 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5732 *) ac_file_in="${ac_file}.in" ;; 5733 esac 5734 5735 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 5736 5737 # Remove last slash and all that follows it. Not all systems have dirname. 5738 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5739 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5740 # The file is in a subdirectory. 5741 test ! -d "$ac_dir" && mkdir "$ac_dir" 5742 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 5743 # A "../" for each directory in $ac_dir_suffix. 5744 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 5745 else 5746 ac_dir_suffix= ac_dots= 5747 fi 5748 5749 case "$ac_given_srcdir" in 5750 .) srcdir=. 5751 if test -z "$ac_dots"; then top_srcdir=. 5752 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 5753 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 5754 *) # Relative path. 5755 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 5756 top_srcdir="$ac_dots$ac_given_srcdir" ;; 5757 esac 5758 5759 case "$ac_given_INSTALL" in 5760 [/$]*) INSTALL="$ac_given_INSTALL" ;; 5761 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 5762 esac 5763 5764 echo creating "$ac_file" 5765 rm -f "$ac_file" 5766 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 5767 case "$ac_file" in 5768 *Makefile*) ac_comsub="1i\\ 5769# $configure_input" ;; 5770 *) ac_comsub= ;; 5771 esac 5772 5773 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5774 sed -e "$ac_comsub 5775s%@configure_input@%$configure_input%g 5776s%@srcdir@%$srcdir%g 5777s%@top_srcdir@%$top_srcdir%g 5778s%@INSTALL@%$INSTALL%g 5779" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 5780fi; done 5781rm -f conftest.s* 5782 5783# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5784# NAME is the cpp macro being defined and VALUE is the value it is being given. 5785# 5786# ac_d sets the value in "#define NAME VALUE" lines. 5787ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5788ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 5789ac_dC='\3' 5790ac_dD='%g' 5791# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 5792ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5793ac_uB='\([ ]\)%\1#\2define\3' 5794ac_uC=' ' 5795ac_uD='\4%g' 5796# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5797ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5798ac_eB='$%\1#\2define\3' 5799ac_eC=' ' 5800ac_eD='%g' 5801 5802if test "${CONFIG_HEADERS+set}" != set; then 5803EOF 5804cat >> $CONFIG_STATUS <<EOF 5805 CONFIG_HEADERS="config.h" 5806EOF 5807cat >> $CONFIG_STATUS <<\EOF 5808fi 5809for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 5810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5811 case "$ac_file" in 5812 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 5813 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 5814 *) ac_file_in="${ac_file}.in" ;; 5815 esac 5816 5817 echo creating $ac_file 5818 5819 rm -f conftest.frag conftest.in conftest.out 5820 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 5821 cat $ac_file_inputs > conftest.in 5822 5823EOF 5824 5825# Transform confdefs.h into a sed script conftest.vals that substitutes 5826# the proper values into config.h.in to produce config.h. And first: 5827# Protect against being on the right side of a sed subst in config.status. 5828# Protect against being in an unquoted here document in config.status. 5829rm -f conftest.vals 5830cat > conftest.hdr <<\EOF 5831s/[\\&%]/\\&/g 5832s%[\\$`]%\\&%g 5833s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 5834s%ac_d%ac_u%gp 5835s%ac_u%ac_e%gp 5836EOF 5837sed -n -f conftest.hdr confdefs.h > conftest.vals 5838rm -f conftest.hdr 5839 5840# This sed command replaces #undef with comments. This is necessary, for 5841# example, in the case of _POSIX_SOURCE, which is predefined and required 5842# on some systems where configure will not decide to define it. 5843cat >> conftest.vals <<\EOF 5844s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 5845EOF 5846 5847# Break up conftest.vals because some shells have a limit on 5848# the size of here documents, and old seds have small limits too. 5849 5850rm -f conftest.tail 5851while : 5852do 5853 ac_lines=`grep -c . conftest.vals` 5854 # grep -c gives empty output for an empty file on some AIX systems. 5855 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 5856 # Write a limited-size here document to conftest.frag. 5857 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 5858 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 5859 echo 'CEOF 5860 sed -f conftest.frag conftest.in > conftest.out 5861 rm -f conftest.in 5862 mv conftest.out conftest.in 5863' >> $CONFIG_STATUS 5864 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 5865 rm -f conftest.vals 5866 mv conftest.tail conftest.vals 5867done 5868rm -f conftest.vals 5869 5870cat >> $CONFIG_STATUS <<\EOF 5871 rm -f conftest.frag conftest.h 5872 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 5873 cat conftest.in >> conftest.h 5874 rm -f conftest.in 5875 if cmp -s $ac_file conftest.h 2>/dev/null; then 5876 echo "$ac_file is unchanged" 5877 rm -f conftest.h 5878 else 5879 # Remove last slash and all that follows it. Not all systems have dirname. 5880 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 5881 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 5882 # The file is in a subdirectory. 5883 test ! -d "$ac_dir" && mkdir "$ac_dir" 5884 fi 5885 rm -f $ac_file 5886 mv conftest.h $ac_file 5887 fi 5888fi; done 5889 5890EOF 5891cat >> $CONFIG_STATUS <<EOF 5892am_indx=1 5893for am_file in config.h; do 5894 case " \$CONFIG_HEADERS " in 5895 *" \$am_file "*) 5896 am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` 5897 if test -n "\$am_dir"; then 5898 am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` 5899 for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do 5900 am_tmpdir=\$am_tmpdir\$am_subdir/ 5901 if test ! -d \$am_tmpdir; then 5902 mkdir \$am_tmpdir 5903 fi 5904 done 5905 fi 5906 echo timestamp > "\$am_dir"stamp-h\$am_indx 5907 ;; 5908 esac 5909 am_indx=\`expr \$am_indx + 1\` 5910done 5911AMDEP_TRUE="$AMDEP_TRUE" 5912ac_aux_dir="$ac_aux_dir" 5913 5914EOF 5915cat >> $CONFIG_STATUS <<\EOF 5916test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 5917 5918test x"$AMDEP_TRUE" != x"" || 5919for mf in $CONFIG_FILES; do 5920 case "$mf" in 5921 Makefile) dirpart=.;; 5922 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 5923 *) continue;; 5924 esac 5925 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 5926 # Extract the definition of DEP_FILES from the Makefile without 5927 # running `make'. 5928 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 5929 test -z "$DEPDIR" && continue 5930 # When using ansi2knr, U may be empty or an underscore; expand it 5931 U=`sed -n -e '/^U = / s///p' < "$mf"` 5932 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 5933 # We invoke sed twice because it is the simplest approach to 5934 # changing $(DEPDIR) to its actual value in the expansion. 5935 for file in `sed -n -e ' 5936 /^DEP_FILES = .*\\\\$/ { 5937 s/^DEP_FILES = // 5938 :loop 5939 s/\\\\$// 5940 p 5941 n 5942 /\\\\$/ b loop 5943 p 5944 } 5945 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 5946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 5947 # Make sure the directory exists. 5948 test -f "$dirpart/$file" && continue 5949 fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 5950 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 5951 # echo "creating $dirpart/$file" 5952 echo '# dummy' > "$dirpart/$file" 5953 done 5954done 5955 5956 5957exit 0 5958EOF 5959chmod +x $CONFIG_STATUS 5960rm -fr confdefs* $ac_clean_files 5961test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 5962 5963