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