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: 14ac_help="$ac_help 15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 16ac_help="$ac_help 17 --enable-shared build shared libraries [default=yes]" 18ac_help="$ac_help 19 --enable-static build static libraries [default=yes]" 20ac_help="$ac_help 21 --enable-shadow Enable shadow password support" 22ac_help="$ac_help 23 --with-secure-path PATH setting for exec'ed programs" 24ac_help="$ac_help 25 --with-facility Syslog facility to use" 26ac_help="$ac_help 27 --enable-radius-116 Include support for Livingston's RADIUS server 1.16" 28ac_help="$ac_help 29 --enable-scp Add service type hints derived from username prefix" 30 31# Initialize some variables set by options. 32# The variables have the same names as the options, with 33# dashes changed to underlines. 34build=NONE 35cache_file=./config.cache 36exec_prefix=NONE 37host=NONE 38no_create= 39nonopt=NONE 40no_recursion= 41prefix=NONE 42program_prefix=NONE 43program_suffix=NONE 44program_transform_name=s,x,x, 45silent= 46site= 47srcdir= 48target=NONE 49verbose= 50x_includes=NONE 51x_libraries=NONE 52bindir='${exec_prefix}/bin' 53sbindir='${exec_prefix}/sbin' 54libexecdir='${exec_prefix}/libexec' 55datadir='${prefix}/share' 56sysconfdir='${prefix}/etc' 57sharedstatedir='${prefix}/com' 58localstatedir='${prefix}/var' 59libdir='${exec_prefix}/lib' 60includedir='${prefix}/include' 61oldincludedir='/usr/include' 62infodir='${prefix}/info' 63mandir='${prefix}/man' 64 65# Initialize some other variables. 66subdirs= 67MFLAGS= MAKEFLAGS= 68# Maximum number of lines to put in a shell here document. 69ac_max_here_lines=12 70 71ac_prev= 72for ac_option 73do 74 75 # If the previous option needs an argument, assign it. 76 if test -n "$ac_prev"; then 77 eval "$ac_prev=\$ac_option" 78 ac_prev= 79 continue 80 fi 81 82 case "$ac_option" in 83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 84 *) ac_optarg= ;; 85 esac 86 87 # Accept the important Cygnus configure options, so we can diagnose typos. 88 89 case "$ac_option" in 90 91 -bindir | --bindir | --bindi | --bind | --bin | --bi) 92 ac_prev=bindir ;; 93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 94 bindir="$ac_optarg" ;; 95 96 -build | --build | --buil | --bui | --bu) 97 ac_prev=build ;; 98 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 99 build="$ac_optarg" ;; 100 101 -cache-file | --cache-file | --cache-fil | --cache-fi \ 102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 103 ac_prev=cache_file ;; 104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 106 cache_file="$ac_optarg" ;; 107 108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 109 ac_prev=datadir ;; 110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 111 | --da=*) 112 datadir="$ac_optarg" ;; 113 114 -disable-* | --disable-*) 115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 116 # Reject names that are not valid shell variable names. 117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 119 fi 120 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 121 eval "enable_${ac_feature}=no" ;; 122 123 -enable-* | --enable-*) 124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 125 # Reject names that are not valid shell variable names. 126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 128 fi 129 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 130 case "$ac_option" in 131 *=*) ;; 132 *) ac_optarg=yes ;; 133 esac 134 eval "enable_${ac_feature}='$ac_optarg'" ;; 135 136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 138 | --exec | --exe | --ex) 139 ac_prev=exec_prefix ;; 140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 142 | --exec=* | --exe=* | --ex=*) 143 exec_prefix="$ac_optarg" ;; 144 145 -gas | --gas | --ga | --g) 146 # Obsolete; use --with-gas. 147 with_gas=yes ;; 148 149 -help | --help | --hel | --he) 150 # Omit some internal or obsolete options to make the list less imposing. 151 # This message is too long to be a string in the A/UX 3.1 sh. 152 cat << EOF 153Usage: configure [options] [host] 154Options: [defaults in brackets after descriptions] 155Configuration: 156 --cache-file=FILE cache test results in FILE 157 --help print this message 158 --no-create do not create output files 159 --quiet, --silent do not print \`checking...' messages 160 --version print the version of autoconf that created configure 161Directory and file names: 162 --prefix=PREFIX install architecture-independent files in PREFIX 163 [$ac_default_prefix] 164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 165 [same as prefix] 166 --bindir=DIR user executables in DIR [EPREFIX/bin] 167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 169 --datadir=DIR read-only architecture-independent data in DIR 170 [PREFIX/share] 171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 172 --sharedstatedir=DIR modifiable architecture-independent data in DIR 173 [PREFIX/com] 174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 175 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 176 --includedir=DIR C header files in DIR [PREFIX/include] 177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 178 --infodir=DIR info documentation in DIR [PREFIX/info] 179 --mandir=DIR man documentation in DIR [PREFIX/man] 180 --srcdir=DIR find the sources in DIR [configure dir or ..] 181 --program-prefix=PREFIX prepend PREFIX to installed program names 182 --program-suffix=SUFFIX append SUFFIX to installed program names 183 --program-transform-name=PROGRAM 184 run sed PROGRAM on installed program names 185EOF 186 cat << EOF 187Host type: 188 --build=BUILD configure for building on BUILD [BUILD=HOST] 189 --host=HOST configure for HOST [guessed] 190 --target=TARGET configure for TARGET [TARGET=HOST] 191Features and packages: 192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 196 --x-includes=DIR X include files are in DIR 197 --x-libraries=DIR X library files are in DIR 198EOF 199 if test -n "$ac_help"; then 200 echo "--enable and --with options recognized:$ac_help" 201 fi 202 exit 0 ;; 203 204 -host | --host | --hos | --ho) 205 ac_prev=host ;; 206 -host=* | --host=* | --hos=* | --ho=*) 207 host="$ac_optarg" ;; 208 209 -includedir | --includedir | --includedi | --included | --include \ 210 | --includ | --inclu | --incl | --inc) 211 ac_prev=includedir ;; 212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 213 | --includ=* | --inclu=* | --incl=* | --inc=*) 214 includedir="$ac_optarg" ;; 215 216 -infodir | --infodir | --infodi | --infod | --info | --inf) 217 ac_prev=infodir ;; 218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 219 infodir="$ac_optarg" ;; 220 221 -libdir | --libdir | --libdi | --libd) 222 ac_prev=libdir ;; 223 -libdir=* | --libdir=* | --libdi=* | --libd=*) 224 libdir="$ac_optarg" ;; 225 226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 227 | --libexe | --libex | --libe) 228 ac_prev=libexecdir ;; 229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 230 | --libexe=* | --libex=* | --libe=*) 231 libexecdir="$ac_optarg" ;; 232 233 -localstatedir | --localstatedir | --localstatedi | --localstated \ 234 | --localstate | --localstat | --localsta | --localst \ 235 | --locals | --local | --loca | --loc | --lo) 236 ac_prev=localstatedir ;; 237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 240 localstatedir="$ac_optarg" ;; 241 242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 243 ac_prev=mandir ;; 244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 245 mandir="$ac_optarg" ;; 246 247 -nfp | --nfp | --nf) 248 # Obsolete; use --without-fp. 249 with_fp=no ;; 250 251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 252 | --no-cr | --no-c) 253 no_create=yes ;; 254 255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 257 no_recursion=yes ;; 258 259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 261 | --oldin | --oldi | --old | --ol | --o) 262 ac_prev=oldincludedir ;; 263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 266 oldincludedir="$ac_optarg" ;; 267 268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 269 ac_prev=prefix ;; 270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 271 prefix="$ac_optarg" ;; 272 273 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 274 | --program-pre | --program-pr | --program-p) 275 ac_prev=program_prefix ;; 276 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 278 program_prefix="$ac_optarg" ;; 279 280 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 281 | --program-suf | --program-su | --program-s) 282 ac_prev=program_suffix ;; 283 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 285 program_suffix="$ac_optarg" ;; 286 287 -program-transform-name | --program-transform-name \ 288 | --program-transform-nam | --program-transform-na \ 289 | --program-transform-n | --program-transform- \ 290 | --program-transform | --program-transfor \ 291 | --program-transfo | --program-transf \ 292 | --program-trans | --program-tran \ 293 | --progr-tra | --program-tr | --program-t) 294 ac_prev=program_transform_name ;; 295 -program-transform-name=* | --program-transform-name=* \ 296 | --program-transform-nam=* | --program-transform-na=* \ 297 | --program-transform-n=* | --program-transform-=* \ 298 | --program-transform=* | --program-transfor=* \ 299 | --program-transfo=* | --program-transf=* \ 300 | --program-trans=* | --program-tran=* \ 301 | --progr-tra=* | --program-tr=* | --program-t=*) 302 program_transform_name="$ac_optarg" ;; 303 304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 305 | -silent | --silent | --silen | --sile | --sil) 306 silent=yes ;; 307 308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 309 ac_prev=sbindir ;; 310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 311 | --sbi=* | --sb=*) 312 sbindir="$ac_optarg" ;; 313 314 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 316 | --sharedst | --shareds | --shared | --share | --shar \ 317 | --sha | --sh) 318 ac_prev=sharedstatedir ;; 319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 322 | --sha=* | --sh=*) 323 sharedstatedir="$ac_optarg" ;; 324 325 -site | --site | --sit) 326 ac_prev=site ;; 327 -site=* | --site=* | --sit=*) 328 site="$ac_optarg" ;; 329 330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 331 ac_prev=srcdir ;; 332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 333 srcdir="$ac_optarg" ;; 334 335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 336 | --syscon | --sysco | --sysc | --sys | --sy) 337 ac_prev=sysconfdir ;; 338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 340 sysconfdir="$ac_optarg" ;; 341 342 -target | --target | --targe | --targ | --tar | --ta | --t) 343 ac_prev=target ;; 344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 345 target="$ac_optarg" ;; 346 347 -v | -verbose | --verbose | --verbos | --verbo | --verb) 348 verbose=yes ;; 349 350 -version | --version | --versio | --versi | --vers) 351 echo "configure generated by autoconf version 2.12" 352 exit 0 ;; 353 354 -with-* | --with-*) 355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 356 # Reject names that are not valid shell variable names. 357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 359 fi 360 ac_package=`echo $ac_package| sed 's/-/_/g'` 361 case "$ac_option" in 362 *=*) ;; 363 *) ac_optarg=yes ;; 364 esac 365 eval "with_${ac_package}='$ac_optarg'" ;; 366 367 -without-* | --without-*) 368 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 369 # Reject names that are not valid shell variable names. 370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 372 fi 373 ac_package=`echo $ac_package| sed 's/-/_/g'` 374 eval "with_${ac_package}=no" ;; 375 376 --x) 377 # Obsolete; use --with-x. 378 with_x=yes ;; 379 380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 381 | --x-incl | --x-inc | --x-in | --x-i) 382 ac_prev=x_includes ;; 383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 385 x_includes="$ac_optarg" ;; 386 387 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 389 ac_prev=x_libraries ;; 390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 392 x_libraries="$ac_optarg" ;; 393 394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 395 ;; 396 397 *) 398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 399 echo "configure: warning: $ac_option: invalid host type" 1>&2 400 fi 401 if test "x$nonopt" != xNONE; then 402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 403 fi 404 nonopt="$ac_option" 405 ;; 406 407 esac 408done 409 410if test -n "$ac_prev"; then 411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 412fi 413 414trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 415 416# File descriptor usage: 417# 0 standard input 418# 1 file creation 419# 2 errors and warnings 420# 3 some systems may open it to /dev/tty 421# 4 used on the Kubota Titan 422# 6 checking for... messages and results 423# 5 compiler messages saved in config.log 424if test "$silent" = yes; then 425 exec 6>/dev/null 426else 427 exec 6>&1 428fi 429exec 5>./config.log 430 431echo "\ 432This file contains any messages produced by compilers while 433running configure, to aid debugging if configure makes a mistake. 434" 1>&5 435 436# Strip out --no-create and --no-recursion so they do not pile up. 437# Also quote any args containing shell metacharacters. 438ac_configure_args= 439for ac_arg 440do 441 case "$ac_arg" in 442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 443 | --no-cr | --no-c) ;; 444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 447 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 448 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 449 esac 450done 451 452# NLS nuisances. 453# Only set these to C if already set. These must not be set unconditionally 454# because not all systems understand e.g. LANG=C (notably SCO). 455# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 456# Non-C LC_CTYPE values break the ctype check. 457if test "${LANG+set}" = set; then LANG=C; export LANG; fi 458if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 459if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 460if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 461 462# confdefs.h avoids OS command line length limits that DEFS can exceed. 463rm -rf conftest* confdefs.h 464# AIX cpp loses on an empty file, so make sure it contains at least a newline. 465echo > confdefs.h 466 467# A filename unique to this package, relative to the directory that 468# configure is in, which we can look for to find out if srcdir is correct. 469ac_unique_file=src/radlogin.c 470 471# Find the source files, if location was not specified. 472if test -z "$srcdir"; then 473 ac_srcdir_defaulted=yes 474 # Try the directory containing this script, then its parent. 475 ac_prog=$0 476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 478 srcdir=$ac_confdir 479 if test ! -r $srcdir/$ac_unique_file; then 480 srcdir=.. 481 fi 482else 483 ac_srcdir_defaulted=no 484fi 485if test ! -r $srcdir/$ac_unique_file; then 486 if test "$ac_srcdir_defaulted" = yes; then 487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 488 else 489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 490 fi 491fi 492srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 493 494# Prefer explicitly selected file to automatically selected ones. 495if test -z "$CONFIG_SITE"; then 496 if test "x$prefix" != xNONE; then 497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 498 else 499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 500 fi 501fi 502for ac_site_file in $CONFIG_SITE; do 503 if test -r "$ac_site_file"; then 504 echo "loading site script $ac_site_file" 505 . "$ac_site_file" 506 fi 507done 508 509if test -r "$cache_file"; then 510 echo "loading cache $cache_file" 511 . $cache_file 512else 513 echo "creating cache $cache_file" 514 > $cache_file 515fi 516 517ac_ext=c 518# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 519ac_cpp='$CPP $CPPFLAGS' 520ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 521ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 522cross_compiling=$ac_cv_prog_cc_cross 523 524if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 527 ac_n= ac_c=' 528' ac_t=' ' 529 else 530 ac_n=-n ac_c= ac_t= 531 fi 532else 533 ac_n= ac_c='\c' ac_t= 534fi 535 536 537ac_aux_dir= 538for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 539 if test -f $ac_dir/install-sh; then 540 ac_aux_dir=$ac_dir 541 ac_install_sh="$ac_aux_dir/install-sh -c" 542 break 543 elif test -f $ac_dir/install.sh; then 544 ac_aux_dir=$ac_dir 545 ac_install_sh="$ac_aux_dir/install.sh -c" 546 break 547 fi 548done 549if test -z "$ac_aux_dir"; then 550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 551fi 552ac_config_guess=$ac_aux_dir/config.guess 553ac_config_sub=$ac_aux_dir/config.sub 554ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 555 556 557# Do some error checking and defaulting for the host and target type. 558# The inputs are: 559# configure --host=HOST --target=TARGET --build=BUILD NONOPT 560# 561# The rules are: 562# 1. You are not allowed to specify --host, --target, and nonopt at the 563# same time. 564# 2. Host defaults to nonopt. 565# 3. If nonopt is not specified, then host defaults to the current host, 566# as determined by config.guess. 567# 4. Target and build default to nonopt. 568# 5. If nonopt is not specified, then target and build default to host. 569 570# The aliases save the names the user supplied, while $host etc. 571# will get canonicalized. 572case $host---$target---$nonopt in 573NONE---*---* | *---NONE---* | *---*---NONE) ;; 574*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; 575esac 576 577 578# Make sure we can run config.sub. 579if $ac_config_sub sun4 >/dev/null 2>&1; then : 580else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 581fi 582 583echo $ac_n "checking host system type""... $ac_c" 1>&6 584echo "configure:585: checking host system type" >&5 585 586host_alias=$host 587case "$host_alias" in 588NONE) 589 case $nonopt in 590 NONE) 591 if host_alias=`$ac_config_guess`; then : 592 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 593 fi ;; 594 *) host_alias=$nonopt ;; 595 esac ;; 596esac 597 598host=`$ac_config_sub $host_alias` 599host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 600host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 601host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 602echo "$ac_t""$host" 1>&6 603 604echo $ac_n "checking target system type""... $ac_c" 1>&6 605echo "configure:606: checking target system type" >&5 606 607target_alias=$target 608case "$target_alias" in 609NONE) 610 case $nonopt in 611 NONE) target_alias=$host_alias ;; 612 *) target_alias=$nonopt ;; 613 esac ;; 614esac 615 616target=`$ac_config_sub $target_alias` 617target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 618target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 619target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 620echo "$ac_t""$target" 1>&6 621 622echo $ac_n "checking build system type""... $ac_c" 1>&6 623echo "configure:624: checking build system type" >&5 624 625build_alias=$build 626case "$build_alias" in 627NONE) 628 case $nonopt in 629 NONE) build_alias=$host_alias ;; 630 *) build_alias=$nonopt ;; 631 esac ;; 632esac 633 634build=`$ac_config_sub $build_alias` 635build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 636build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 637build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 638echo "$ac_t""$build" 1>&6 639 640test "$host_alias" != "$target_alias" && 641 test "$program_prefix$program_suffix$program_transform_name" = \ 642 NONENONEs,x,x, && 643 program_prefix=${target_alias}- 644 645 646case "$target" in 647 *) 648 ;; 649esac 650 651# Find a good install program. We prefer a C program (faster), 652# so one script is as good as another. But avoid the broken or 653# incompatible versions: 654# SysV /etc/install, /usr/sbin/install 655# SunOS /usr/etc/install 656# IRIX /sbin/install 657# AIX /bin/install 658# AFS /usr/afsws/bin/install, which mishandles nonexistent args 659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 660# ./install, which can be erroneously created by make from ./install.sh. 661echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 662echo "configure:663: checking for a BSD compatible install" >&5 663if test -z "$INSTALL"; then 664if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 665 echo $ac_n "(cached) $ac_c" 1>&6 666else 667 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 668 for ac_dir in $PATH; do 669 # Account for people who put trailing slashes in PATH elements. 670 case "$ac_dir/" in 671 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 672 *) 673 # OSF1 and SCO ODT 3.0 have their own names for install. 674 for ac_prog in ginstall installbsd scoinst install; do 675 if test -f $ac_dir/$ac_prog; then 676 if test $ac_prog = install && 677 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 678 # AIX install. It has an incompatible calling convention. 679 # OSF/1 installbsd also uses dspmsg, but is usable. 680 : 681 else 682 ac_cv_path_install="$ac_dir/$ac_prog -c" 683 break 2 684 fi 685 fi 686 done 687 ;; 688 esac 689 done 690 IFS="$ac_save_IFS" 691 692fi 693 if test "${ac_cv_path_install+set}" = set; then 694 INSTALL="$ac_cv_path_install" 695 else 696 # As a last resort, use the slow shell script. We don't cache a 697 # path for INSTALL within a source directory, because that will 698 # break other packages using the cache if that directory is 699 # removed, or if the path is relative. 700 INSTALL="$ac_install_sh" 701 fi 702fi 703echo "$ac_t""$INSTALL" 1>&6 704 705# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 706# It thinks the first close brace ends the variable substitution. 707test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 708 709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 710 711 712test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 713 714echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 715echo "configure:716: checking whether build environment is sane" >&5 716# Just in case 717sleep 1 718echo timestamp > conftestfile 719# Do `set' in a subshell so we don't clobber the current shell's 720# arguments. Must try -L first in case configure is actually a 721# symlink; some systems play weird games with the mod time of symlinks 722# (eg FreeBSD returns the mod time of the symlink's containing 723# directory). 724if ( 725 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 726 if test "$*" = "X"; then 727 # -L didn't work. 728 set X `ls -t $srcdir/configure conftestfile` 729 fi 730 if test "$*" != "X $srcdir/configure conftestfile" \ 731 && test "$*" != "X conftestfile $srcdir/configure"; then 732 733 # If neither matched, then we have a broken ls. This can happen 734 # if, for instance, CONFIG_SHELL is bash and it inherits a 735 # broken ls alias from the environment. This has actually 736 # happened. Such a system could not be considered "sane". 737 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 738alias in your environment" 1>&2; exit 1; } 739 fi 740 741 test "$2" = conftestfile 742 ) 743then 744 # Ok. 745 : 746else 747 { echo "configure: error: newly created file is older than distributed files! 748Check your system clock" 1>&2; exit 1; } 749fi 750rm -f conftest* 751echo "$ac_t""yes" 1>&6 752if test "$program_transform_name" = s,x,x,; then 753 program_transform_name= 754else 755 # Double any \ or $. echo might interpret backslashes. 756 cat <<\EOF_SED > conftestsed 757s,\\,\\\\,g; s,\$,$$,g 758EOF_SED 759 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 760 rm -f conftestsed 761fi 762test "$program_prefix" != NONE && 763 program_transform_name="s,^,${program_prefix},; $program_transform_name" 764# Use a double $ so make ignores it. 765test "$program_suffix" != NONE && 766 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 767 768# sed with no file args requires a program. 769test "$program_transform_name" = "" && program_transform_name="s,x,x," 770 771echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 772echo "configure:773: checking whether ${MAKE-make} sets \${MAKE}" >&5 773set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 774if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 775 echo $ac_n "(cached) $ac_c" 1>&6 776else 777 cat > conftestmake <<\EOF 778all: 779 @echo 'ac_maketemp="${MAKE}"' 780EOF 781# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 782eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 783if test -n "$ac_maketemp"; then 784 eval ac_cv_prog_make_${ac_make}_set=yes 785else 786 eval ac_cv_prog_make_${ac_make}_set=no 787fi 788rm -f conftestmake 789fi 790if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 791 echo "$ac_t""yes" 1>&6 792 SET_MAKE= 793else 794 echo "$ac_t""no" 1>&6 795 SET_MAKE="MAKE=${MAKE-make}" 796fi 797 798 799PACKAGE=radiusclient 800 801VERSION=0.3.1 802 803if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 804 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 805fi 806cat >> confdefs.h <<EOF 807#define PACKAGE "$PACKAGE" 808EOF 809 810cat >> confdefs.h <<EOF 811#define VERSION "$VERSION" 812EOF 813 814 815 816missing_dir=`cd $ac_aux_dir && pwd` 817echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 818echo "configure:819: checking for working aclocal" >&5 819# Run test in a subshell; some versions of sh will print an error if 820# an executable is not found, even if stderr is redirected. 821# Redirect stdin to placate older versions of autoconf. Sigh. 822if (aclocal --version) < /dev/null > /dev/null 2>&1; then 823 ACLOCAL=aclocal 824 echo "$ac_t""found" 1>&6 825else 826 ACLOCAL="$missing_dir/missing aclocal" 827 echo "$ac_t""missing" 1>&6 828fi 829 830echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 831echo "configure:832: checking for working autoconf" >&5 832# Run test in a subshell; some versions of sh will print an error if 833# an executable is not found, even if stderr is redirected. 834# Redirect stdin to placate older versions of autoconf. Sigh. 835if (autoconf --version) < /dev/null > /dev/null 2>&1; then 836 AUTOCONF=autoconf 837 echo "$ac_t""found" 1>&6 838else 839 AUTOCONF="$missing_dir/missing autoconf" 840 echo "$ac_t""missing" 1>&6 841fi 842 843echo $ac_n "checking for working automake""... $ac_c" 1>&6 844echo "configure:845: checking for working automake" >&5 845# Run test in a subshell; some versions of sh will print an error if 846# an executable is not found, even if stderr is redirected. 847# Redirect stdin to placate older versions of autoconf. Sigh. 848if (automake --version) < /dev/null > /dev/null 2>&1; then 849 AUTOMAKE=automake 850 echo "$ac_t""found" 1>&6 851else 852 AUTOMAKE="$missing_dir/missing automake" 853 echo "$ac_t""missing" 1>&6 854fi 855 856echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 857echo "configure:858: checking for working autoheader" >&5 858# Run test in a subshell; some versions of sh will print an error if 859# an executable is not found, even if stderr is redirected. 860# Redirect stdin to placate older versions of autoconf. Sigh. 861if (autoheader --version) < /dev/null > /dev/null 2>&1; then 862 AUTOHEADER=autoheader 863 echo "$ac_t""found" 1>&6 864else 865 AUTOHEADER="$missing_dir/missing autoheader" 866 echo "$ac_t""missing" 1>&6 867fi 868 869echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 870echo "configure:871: checking for working makeinfo" >&5 871# Run test in a subshell; some versions of sh will print an error if 872# an executable is not found, even if stderr is redirected. 873# Redirect stdin to placate older versions of autoconf. Sigh. 874if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 875 MAKEINFO=makeinfo 876 echo "$ac_t""found" 1>&6 877else 878 MAKEINFO="$missing_dir/missing makeinfo" 879 echo "$ac_t""missing" 1>&6 880fi 881 882 883 884LIBVERSION=0:1:0 885 886 887pkgsysconfdir=${sysconfdir}/$PACKAGE 888 889 890# Extract the first word of "gcc", so it can be a program name with args. 891set dummy gcc; ac_word=$2 892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 893echo "configure:894: checking for $ac_word" >&5 894if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 895 echo $ac_n "(cached) $ac_c" 1>&6 896else 897 if test -n "$CC"; then 898 ac_cv_prog_CC="$CC" # Let the user override the test. 899else 900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 901 for ac_dir in $PATH; do 902 test -z "$ac_dir" && ac_dir=. 903 if test -f $ac_dir/$ac_word; then 904 ac_cv_prog_CC="gcc" 905 break 906 fi 907 done 908 IFS="$ac_save_ifs" 909fi 910fi 911CC="$ac_cv_prog_CC" 912if test -n "$CC"; then 913 echo "$ac_t""$CC" 1>&6 914else 915 echo "$ac_t""no" 1>&6 916fi 917 918if test -z "$CC"; then 919 # Extract the first word of "cc", so it can be a program name with args. 920set dummy cc; ac_word=$2 921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 922echo "configure:923: checking for $ac_word" >&5 923if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 924 echo $ac_n "(cached) $ac_c" 1>&6 925else 926 if test -n "$CC"; then 927 ac_cv_prog_CC="$CC" # Let the user override the test. 928else 929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 930 ac_prog_rejected=no 931 for ac_dir in $PATH; do 932 test -z "$ac_dir" && ac_dir=. 933 if test -f $ac_dir/$ac_word; then 934 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 935 ac_prog_rejected=yes 936 continue 937 fi 938 ac_cv_prog_CC="cc" 939 break 940 fi 941 done 942 IFS="$ac_save_ifs" 943if test $ac_prog_rejected = yes; then 944 # We found a bogon in the path, so make sure we never use it. 945 set dummy $ac_cv_prog_CC 946 shift 947 if test $# -gt 0; then 948 # We chose a different compiler from the bogus one. 949 # However, it has the same basename, so the bogon will be chosen 950 # first if we set CC to just the basename; use the full file name. 951 shift 952 set dummy "$ac_dir/$ac_word" "$@" 953 shift 954 ac_cv_prog_CC="$@" 955 fi 956fi 957fi 958fi 959CC="$ac_cv_prog_CC" 960if test -n "$CC"; then 961 echo "$ac_t""$CC" 1>&6 962else 963 echo "$ac_t""no" 1>&6 964fi 965 966 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 967fi 968 969echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 970echo "configure:971: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 971 972ac_ext=c 973# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 974ac_cpp='$CPP $CPPFLAGS' 975ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 976ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 977cross_compiling=$ac_cv_prog_cc_cross 978 979cat > conftest.$ac_ext <<EOF 980#line 981 "configure" 981#include "confdefs.h" 982main(){return(0);} 983EOF 984if { (eval echo configure:985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 985 ac_cv_prog_cc_works=yes 986 # If we can't run a trivial program, we are probably using a cross compiler. 987 if (./conftest; exit) 2>/dev/null; then 988 ac_cv_prog_cc_cross=no 989 else 990 ac_cv_prog_cc_cross=yes 991 fi 992else 993 echo "configure: failed program was:" >&5 994 cat conftest.$ac_ext >&5 995 ac_cv_prog_cc_works=no 996fi 997rm -fr conftest* 998 999echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1000if test $ac_cv_prog_cc_works = no; then 1001 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1002fi 1003echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1004echo "configure:1005: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1005echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1006cross_compiling=$ac_cv_prog_cc_cross 1007 1008echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1009echo "configure:1010: checking whether we are using GNU C" >&5 1010if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1011 echo $ac_n "(cached) $ac_c" 1>&6 1012else 1013 cat > conftest.c <<EOF 1014#ifdef __GNUC__ 1015 yes; 1016#endif 1017EOF 1018if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1019 ac_cv_prog_gcc=yes 1020else 1021 ac_cv_prog_gcc=no 1022fi 1023fi 1024 1025echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1026 1027if test $ac_cv_prog_gcc = yes; then 1028 GCC=yes 1029 ac_test_CFLAGS="${CFLAGS+set}" 1030 ac_save_CFLAGS="$CFLAGS" 1031 CFLAGS= 1032 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1033echo "configure:1034: checking whether ${CC-cc} accepts -g" >&5 1034if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1035 echo $ac_n "(cached) $ac_c" 1>&6 1036else 1037 echo 'void f(){}' > conftest.c 1038if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1039 ac_cv_prog_cc_g=yes 1040else 1041 ac_cv_prog_cc_g=no 1042fi 1043rm -f conftest* 1044 1045fi 1046 1047echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1048 if test "$ac_test_CFLAGS" = set; then 1049 CFLAGS="$ac_save_CFLAGS" 1050 elif test $ac_cv_prog_cc_g = yes; then 1051 CFLAGS="-g -O2" 1052 else 1053 CFLAGS="-O2" 1054 fi 1055else 1056 GCC= 1057 test "${CFLAGS+set}" = set || CFLAGS="-g" 1058fi 1059 1060 1061# Extract the first word of "ar", so it can be a program name with args. 1062set dummy ar; ac_word=$2 1063echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1064echo "configure:1065: checking for $ac_word" >&5 1065if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then 1066 echo $ac_n "(cached) $ac_c" 1>&6 1067else 1068 case "$AR" in 1069 /*) 1070 ac_cv_path_AR="$AR" # Let the user override the test with a path. 1071 ;; 1072 *) 1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1074 for ac_dir in $PATH; do 1075 test -z "$ac_dir" && ac_dir=. 1076 if test -f $ac_dir/$ac_word; then 1077 ac_cv_path_AR="$ac_dir/$ac_word" 1078 break 1079 fi 1080 done 1081 IFS="$ac_save_ifs" 1082 ;; 1083esac 1084fi 1085AR="$ac_cv_path_AR" 1086if test -n "$AR"; then 1087 echo "$ac_t""$AR" 1>&6 1088else 1089 echo "$ac_t""no" 1>&6 1090fi 1091 1092# Extract the first word of "ranlib", so it can be a program name with args. 1093set dummy ranlib; ac_word=$2 1094echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1095echo "configure:1096: checking for $ac_word" >&5 1096if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1097 echo $ac_n "(cached) $ac_c" 1>&6 1098else 1099 if test -n "$RANLIB"; then 1100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1101else 1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1103 for ac_dir in $PATH; do 1104 test -z "$ac_dir" && ac_dir=. 1105 if test -f $ac_dir/$ac_word; then 1106 ac_cv_prog_RANLIB="ranlib" 1107 break 1108 fi 1109 done 1110 IFS="$ac_save_ifs" 1111 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1112fi 1113fi 1114RANLIB="$ac_cv_prog_RANLIB" 1115if test -n "$RANLIB"; then 1116 echo "$ac_t""$RANLIB" 1>&6 1117else 1118 echo "$ac_t""no" 1>&6 1119fi 1120 1121# Check whether --with-gnu-ld or --without-gnu-ld was given. 1122if test "${with_gnu_ld+set}" = set; then 1123 withval="$with_gnu_ld" 1124 test "$withval" = no || with_gnu_ld=yes 1125else 1126 with_gnu_ld=no 1127fi 1128 1129 1130ac_prog=ld 1131if test "$ac_cv_prog_gcc" = yes; then 1132 # Check if gcc -print-prog-name=ld gives a path. 1133 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1134echo "configure:1135: checking for ld used by GCC" >&5 1135 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1136 case "$ac_prog" in 1137 # Accept absolute paths. 1138 /*) 1139 test -z "$LD" && LD="$ac_prog" 1140 ;; 1141 "") 1142 # If it fails, then pretend we aren't using GCC. 1143 ac_prog=ld 1144 ;; 1145 *) 1146 # If it is relative, then search for the first ld in PATH. 1147 with_gnu_ld=unknown 1148 ;; 1149 esac 1150elif test "$with_gnu_ld" = yes; then 1151 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1152echo "configure:1153: checking for GNU ld" >&5 1153else 1154 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1155echo "configure:1156: checking for non-GNU ld" >&5 1156fi 1157if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1158 echo $ac_n "(cached) $ac_c" 1>&6 1159else 1160 if test -z "$LD"; then 1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1162 for ac_dir in $PATH; do 1163 test -z "$ac_dir" && ac_dir=. 1164 if test -f "$ac_dir/$ac_prog"; then 1165 ac_cv_path_LD="$ac_dir/$ac_prog" 1166 # Check to see if the program is GNU ld. I'd rather use --version, 1167 # but apparently some GNU ld's only accept -v. 1168 # Break only if it was the GNU/non-GNU ld that we prefer. 1169 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1170 test "$with_gnu_ld" != no && break 1171 else 1172 test "$with_gnu_ld" != yes && break 1173 fi 1174 fi 1175 done 1176 IFS="$ac_save_ifs" 1177else 1178 ac_cv_path_LD="$LD" # Let the user override the test with a path. 1179fi 1180fi 1181 1182LD="$ac_cv_path_LD" 1183if test -n "$LD"; then 1184 echo "$ac_t""$LD" 1>&6 1185else 1186 echo "$ac_t""no" 1>&6 1187fi 1188test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1189 1190echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1191echo "configure:1192: checking if the linker ($LD) is GNU ld" >&5 1192if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1193 echo $ac_n "(cached) $ac_c" 1>&6 1194else 1195 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1196if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1197 ac_cv_prog_gnu_ld=yes 1198else 1199 ac_cv_prog_gnu_ld=no 1200fi 1201fi 1202 1203echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1204 1205 1206echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1207echo "configure:1208: checking for BSD-compatible nm" >&5 1208if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1209 echo $ac_n "(cached) $ac_c" 1>&6 1210else 1211 case "$NM" in 1212/*) 1213 ac_cv_path_NM="$NM" # Let the user override the test with a path. 1214 ;; 1215*) 1216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1217 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do 1218 test -z "$ac_dir" && dir=. 1219 if test -f $ac_dir/nm; then 1220 # Check to see if the nm accepts a BSD-compat flag. 1221 # Adding the `sed 1!d' prevents false positives on HP-UX, which says: 1222 # nm: unknown option "B" ignored 1223 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then 1224 ac_cv_path_NM="$ac_dir/nm -B" 1225 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1!d'; exit 0) | egrep /dev/null >/dev/null; then 1226 ac_cv_path_NM="$ac_dir/nm -p" 1227 else 1228 ac_cv_path_NM="$ac_dir/nm" 1229 fi 1230 break 1231 fi 1232 done 1233 IFS="$ac_save_ifs" 1234 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 1235 ;; 1236esac 1237fi 1238 1239NM="$ac_cv_path_NM" 1240echo "$ac_t""$NM" 1>&6 1241 1242 1243echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1244echo "configure:1245: checking whether ln -s works" >&5 1245if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1246 echo $ac_n "(cached) $ac_c" 1>&6 1247else 1248 rm -f conftestdata 1249if ln -s X conftestdata 2>/dev/null 1250then 1251 rm -f conftestdata 1252 ac_cv_prog_LN_S="ln -s" 1253else 1254 ac_cv_prog_LN_S=ln 1255fi 1256fi 1257LN_S="$ac_cv_prog_LN_S" 1258if test "$ac_cv_prog_LN_S" = "ln -s"; then 1259 echo "$ac_t""yes" 1>&6 1260else 1261 echo "$ac_t""no" 1>&6 1262fi 1263 1264 1265 1266 1267 1268 1269 1270 1271# Always use our own libtool. 1272LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1273 1274 1275# Check whether --enable-shared or --disable-shared was given. 1276if test "${enable_shared+set}" = set; then 1277 enableval="$enable_shared" 1278 if test "$enableval" = no; then 1279 libtool_enable_shared=no 1280else 1281 libtool_enable_shared=yes 1282fi 1283fi 1284 1285test -n "$libtool_enable_shared" && enable_shared="$libtool_enable_shared" 1286libtool_shared= 1287test "$enable_shared" = no && libtool_shared=" --disable-shared" 1288 1289# Check whether --enable-static or --disable-static was given. 1290if test "${enable_static+set}" = set; then 1291 enableval="$enable_static" 1292 if test "$enableval" = no; then 1293 libtool_enable_static=no 1294else 1295 libtool_enable_static=yes 1296fi 1297fi 1298 1299test -n "$libtool_enable_static" && enable_static="$libtool_enable_static" 1300libtool_static= 1301test "$enable_static" = no && libtool_static=" --disable-static" 1302 1303libtool_flags="$libtool_shared$libtool_static" 1304test "$silent" = yes && libtool_flags="$libtool_flags --silent" 1305test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 1306test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 1307 1308# Some flags need to be propagated to the compiler or linker for good 1309# libtool support. 1310case "$host" in 1311*-*-irix6*) 1312 ac_save_CFLAGS="$CFLAGS" 1313 flag_passed=no 1314 for f in -32 -64 -n32 ABI -cckr -mips1 -mips2 -mips3 -mips4; do 1315 case "$f" in 1316 ABI) 1317 test -n "$SGI_ABI" && flag_passed=yes 1318 if test "$flag_passed" = no && test "$ac_cv_prog_gcc" = yes; then 1319 # Choose the ABI flag according to GCC's specs. 1320 if $CC -dumpspecs 2>&1 | sed '/^\*link:$/,/^$/!d' | egrep -e '[ ]-32' >/dev/null; then 1321 LD="${LD-ld} -32" 1322 else 1323 LD="${LD-ld} -n32" 1324 fi 1325 fi 1326 ;; 1327 1328 *) 1329 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then 1330 flag_passed=yes 1331 LD="${LD-ld} $f" 1332 fi 1333 ;; 1334 esac 1335 done 1336 CFLAGS="$ac_save_CFLAGS" 1337 ;; 1338 1339*-*-sco3.2v5*) 1340 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1341 CFLAGS="$CFLAGS -belf" 1342 ;; 1343esac 1344 1345# Actually configure libtool. ac_aux_dir is where install-sh is found. 1346CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1347LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ 1348${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ 1349$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ 1350|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1351 1352 1353echo $ac_n "checking whether to include shadow password support""... $ac_c" 1>&6 1354echo "configure:1355: checking whether to include shadow password support" >&5 1355# Check whether --enable-shadow or --disable-shadow was given. 1356if test "${enable_shadow+set}" = set; then 1357 enableval="$enable_shadow" 1358 1359 echo "$ac_t""yes" 1>&6 1360 cat >> confdefs.h <<\EOF 1361#define HAVE_SHADOW_PASSWORDS 1 1362EOF 1363 1364 shadow_passwords=yes 1365 1366else 1367 1368 echo "$ac_t""no" 1>&6 1369 shadow_passwords=no 1370 1371 1372fi 1373 1374 1375echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1376echo "configure:1377: checking for gethostbyname in -lnsl" >&5 1377ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1378if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1379 echo $ac_n "(cached) $ac_c" 1>&6 1380else 1381 ac_save_LIBS="$LIBS" 1382LIBS="-lnsl $LIBS" 1383cat > conftest.$ac_ext <<EOF 1384#line 1385 "configure" 1385#include "confdefs.h" 1386/* Override any gcc2 internal prototype to avoid an error. */ 1387/* We use char because int might match the return type of a gcc2 1388 builtin and then its argument prototype would still apply. */ 1389char gethostbyname(); 1390 1391int main() { 1392gethostbyname() 1393; return 0; } 1394EOF 1395if { (eval echo configure:1396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1396 rm -rf conftest* 1397 eval "ac_cv_lib_$ac_lib_var=yes" 1398else 1399 echo "configure: failed program was:" >&5 1400 cat conftest.$ac_ext >&5 1401 rm -rf conftest* 1402 eval "ac_cv_lib_$ac_lib_var=no" 1403fi 1404rm -f conftest* 1405LIBS="$ac_save_LIBS" 1406 1407fi 1408if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1409 echo "$ac_t""yes" 1>&6 1410 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1411 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1412 cat >> confdefs.h <<EOF 1413#define $ac_tr_lib 1 1414EOF 1415 1416 LIBS="-lnsl $LIBS" 1417 1418else 1419 echo "$ac_t""no" 1>&6 1420fi 1421 1422echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 1423echo "configure:1424: checking for socket in -lsocket" >&5 1424ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 1425if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1426 echo $ac_n "(cached) $ac_c" 1>&6 1427else 1428 ac_save_LIBS="$LIBS" 1429LIBS="-lsocket $LIBS" 1430cat > conftest.$ac_ext <<EOF 1431#line 1432 "configure" 1432#include "confdefs.h" 1433/* Override any gcc2 internal prototype to avoid an error. */ 1434/* We use char because int might match the return type of a gcc2 1435 builtin and then its argument prototype would still apply. */ 1436char socket(); 1437 1438int main() { 1439socket() 1440; return 0; } 1441EOF 1442if { (eval echo configure:1443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1443 rm -rf conftest* 1444 eval "ac_cv_lib_$ac_lib_var=yes" 1445else 1446 echo "configure: failed program was:" >&5 1447 cat conftest.$ac_ext >&5 1448 rm -rf conftest* 1449 eval "ac_cv_lib_$ac_lib_var=no" 1450fi 1451rm -f conftest* 1452LIBS="$ac_save_LIBS" 1453 1454fi 1455if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1456 echo "$ac_t""yes" 1>&6 1457 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1459 cat >> confdefs.h <<EOF 1460#define $ac_tr_lib 1 1461EOF 1462 1463 LIBS="-lsocket $LIBS" 1464 1465else 1466 echo "$ac_t""no" 1>&6 1467fi 1468 1469if test "$shadow_passwords" = "yes" 1470then 1471 echo $ac_n "checking for getspnam in -lc""... $ac_c" 1>&6 1472echo "configure:1473: checking for getspnam in -lc" >&5 1473ac_lib_var=`echo c'_'getspnam | sed 'y%./+-%__p_%'` 1474if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1475 echo $ac_n "(cached) $ac_c" 1>&6 1476else 1477 ac_save_LIBS="$LIBS" 1478LIBS="-lc $LIBS" 1479cat > conftest.$ac_ext <<EOF 1480#line 1481 "configure" 1481#include "confdefs.h" 1482/* Override any gcc2 internal prototype to avoid an error. */ 1483/* We use char because int might match the return type of a gcc2 1484 builtin and then its argument prototype would still apply. */ 1485char getspnam(); 1486 1487int main() { 1488getspnam() 1489; return 0; } 1490EOF 1491if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1492 rm -rf conftest* 1493 eval "ac_cv_lib_$ac_lib_var=yes" 1494else 1495 echo "configure: failed program was:" >&5 1496 cat conftest.$ac_ext >&5 1497 rm -rf conftest* 1498 eval "ac_cv_lib_$ac_lib_var=no" 1499fi 1500rm -f conftest* 1501LIBS="$ac_save_LIBS" 1502 1503fi 1504if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1505 echo "$ac_t""yes" 1>&6 1506 : 1507else 1508 echo "$ac_t""no" 1>&6 1509echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6 1510echo "configure:1511: checking for getspnam in -lshadow" >&5 1511ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'` 1512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1513 echo $ac_n "(cached) $ac_c" 1>&6 1514else 1515 ac_save_LIBS="$LIBS" 1516LIBS="-lshadow $LIBS" 1517cat > conftest.$ac_ext <<EOF 1518#line 1519 "configure" 1519#include "confdefs.h" 1520/* Override any gcc2 internal prototype to avoid an error. */ 1521/* We use char because int might match the return type of a gcc2 1522 builtin and then its argument prototype would still apply. */ 1523char getspnam(); 1524 1525int main() { 1526getspnam() 1527; return 0; } 1528EOF 1529if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1530 rm -rf conftest* 1531 eval "ac_cv_lib_$ac_lib_var=yes" 1532else 1533 echo "configure: failed program was:" >&5 1534 cat conftest.$ac_ext >&5 1535 rm -rf conftest* 1536 eval "ac_cv_lib_$ac_lib_var=no" 1537fi 1538rm -f conftest* 1539LIBS="$ac_save_LIBS" 1540 1541fi 1542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1543 echo "$ac_t""yes" 1>&6 1544 LIBS="$LIBS -lshadow" 1545 1546else 1547 echo "$ac_t""no" 1>&6 1548fi 1549 1550 1551fi 1552 1553fi 1554echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 1555echo "configure:1556: checking for crypt in -lcrypt" >&5 1556ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 1557if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1558 echo $ac_n "(cached) $ac_c" 1>&6 1559else 1560 ac_save_LIBS="$LIBS" 1561LIBS="-lcrypt $LIBS" 1562cat > conftest.$ac_ext <<EOF 1563#line 1564 "configure" 1564#include "confdefs.h" 1565/* Override any gcc2 internal prototype to avoid an error. */ 1566/* We use char because int might match the return type of a gcc2 1567 builtin and then its argument prototype would still apply. */ 1568char crypt(); 1569 1570int main() { 1571crypt() 1572; return 0; } 1573EOF 1574if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1575 rm -rf conftest* 1576 eval "ac_cv_lib_$ac_lib_var=yes" 1577else 1578 echo "configure: failed program was:" >&5 1579 cat conftest.$ac_ext >&5 1580 rm -rf conftest* 1581 eval "ac_cv_lib_$ac_lib_var=no" 1582fi 1583rm -f conftest* 1584LIBS="$ac_save_LIBS" 1585 1586fi 1587if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1588 echo "$ac_t""yes" 1>&6 1589 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1590 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1591 cat >> confdefs.h <<EOF 1592#define $ac_tr_lib 1 1593EOF 1594 1595 LIBS="-lcrypt $LIBS" 1596 1597else 1598 echo "$ac_t""no" 1>&6 1599fi 1600 1601 1602ac_header_dirent=no 1603for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 1604do 1605ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1606echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 1607echo "configure:1608: checking for $ac_hdr that defines DIR" >&5 1608if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 1609 echo $ac_n "(cached) $ac_c" 1>&6 1610else 1611 cat > conftest.$ac_ext <<EOF 1612#line 1613 "configure" 1613#include "confdefs.h" 1614#include <sys/types.h> 1615#include <$ac_hdr> 1616int main() { 1617DIR *dirp = 0; 1618; return 0; } 1619EOF 1620if { (eval echo configure:1621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1621 rm -rf conftest* 1622 eval "ac_cv_header_dirent_$ac_safe=yes" 1623else 1624 echo "configure: failed program was:" >&5 1625 cat conftest.$ac_ext >&5 1626 rm -rf conftest* 1627 eval "ac_cv_header_dirent_$ac_safe=no" 1628fi 1629rm -f conftest* 1630fi 1631if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 1632 echo "$ac_t""yes" 1>&6 1633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1634 cat >> confdefs.h <<EOF 1635#define $ac_tr_hdr 1 1636EOF 1637 ac_header_dirent=$ac_hdr; break 1638else 1639 echo "$ac_t""no" 1>&6 1640fi 1641done 1642# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 1643if test $ac_header_dirent = dirent.h; then 1644echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 1645echo "configure:1646: checking for opendir in -ldir" >&5 1646ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 1647if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1648 echo $ac_n "(cached) $ac_c" 1>&6 1649else 1650 ac_save_LIBS="$LIBS" 1651LIBS="-ldir $LIBS" 1652cat > conftest.$ac_ext <<EOF 1653#line 1654 "configure" 1654#include "confdefs.h" 1655/* Override any gcc2 internal prototype to avoid an error. */ 1656/* We use char because int might match the return type of a gcc2 1657 builtin and then its argument prototype would still apply. */ 1658char opendir(); 1659 1660int main() { 1661opendir() 1662; return 0; } 1663EOF 1664if { (eval echo configure:1665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1665 rm -rf conftest* 1666 eval "ac_cv_lib_$ac_lib_var=yes" 1667else 1668 echo "configure: failed program was:" >&5 1669 cat conftest.$ac_ext >&5 1670 rm -rf conftest* 1671 eval "ac_cv_lib_$ac_lib_var=no" 1672fi 1673rm -f conftest* 1674LIBS="$ac_save_LIBS" 1675 1676fi 1677if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1678 echo "$ac_t""yes" 1>&6 1679 LIBS="$LIBS -ldir" 1680else 1681 echo "$ac_t""no" 1>&6 1682fi 1683 1684else 1685echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 1686echo "configure:1687: checking for opendir in -lx" >&5 1687ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 1688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1689 echo $ac_n "(cached) $ac_c" 1>&6 1690else 1691 ac_save_LIBS="$LIBS" 1692LIBS="-lx $LIBS" 1693cat > conftest.$ac_ext <<EOF 1694#line 1695 "configure" 1695#include "confdefs.h" 1696/* Override any gcc2 internal prototype to avoid an error. */ 1697/* We use char because int might match the return type of a gcc2 1698 builtin and then its argument prototype would still apply. */ 1699char opendir(); 1700 1701int main() { 1702opendir() 1703; return 0; } 1704EOF 1705if { (eval echo configure:1706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1706 rm -rf conftest* 1707 eval "ac_cv_lib_$ac_lib_var=yes" 1708else 1709 echo "configure: failed program was:" >&5 1710 cat conftest.$ac_ext >&5 1711 rm -rf conftest* 1712 eval "ac_cv_lib_$ac_lib_var=no" 1713fi 1714rm -f conftest* 1715LIBS="$ac_save_LIBS" 1716 1717fi 1718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1719 echo "$ac_t""yes" 1>&6 1720 LIBS="$LIBS -lx" 1721else 1722 echo "$ac_t""no" 1>&6 1723fi 1724 1725fi 1726 1727echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1728echo "configure:1729: checking how to run the C preprocessor" >&5 1729# On Suns, sometimes $CPP names a directory. 1730if test -n "$CPP" && test -d "$CPP"; then 1731 CPP= 1732fi 1733if test -z "$CPP"; then 1734if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1735 echo $ac_n "(cached) $ac_c" 1>&6 1736else 1737 # This must be in double quotes, not single quotes, because CPP may get 1738 # substituted into the Makefile and "${CC-cc}" will confuse make. 1739 CPP="${CC-cc} -E" 1740 # On the NeXT, cc -E runs the code through the compiler's parser, 1741 # not just through cpp. 1742 cat > conftest.$ac_ext <<EOF 1743#line 1744 "configure" 1744#include "confdefs.h" 1745#include <assert.h> 1746Syntax Error 1747EOF 1748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1749{ (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1750ac_err=`grep -v '^ *+' conftest.out` 1751if test -z "$ac_err"; then 1752 : 1753else 1754 echo "$ac_err" >&5 1755 echo "configure: failed program was:" >&5 1756 cat conftest.$ac_ext >&5 1757 rm -rf conftest* 1758 CPP="${CC-cc} -E -traditional-cpp" 1759 cat > conftest.$ac_ext <<EOF 1760#line 1761 "configure" 1761#include "confdefs.h" 1762#include <assert.h> 1763Syntax Error 1764EOF 1765ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1766{ (eval echo configure:1767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1767ac_err=`grep -v '^ *+' conftest.out` 1768if test -z "$ac_err"; then 1769 : 1770else 1771 echo "$ac_err" >&5 1772 echo "configure: failed program was:" >&5 1773 cat conftest.$ac_ext >&5 1774 rm -rf conftest* 1775 CPP=/lib/cpp 1776fi 1777rm -f conftest* 1778fi 1779rm -f conftest* 1780 ac_cv_prog_CPP="$CPP" 1781fi 1782 CPP="$ac_cv_prog_CPP" 1783else 1784 ac_cv_prog_CPP="$CPP" 1785fi 1786echo "$ac_t""$CPP" 1>&6 1787 1788echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1789echo "configure:1790: checking for ANSI C header files" >&5 1790if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1791 echo $ac_n "(cached) $ac_c" 1>&6 1792else 1793 cat > conftest.$ac_ext <<EOF 1794#line 1795 "configure" 1795#include "confdefs.h" 1796#include <stdlib.h> 1797#include <stdarg.h> 1798#include <string.h> 1799#include <float.h> 1800EOF 1801ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1802{ (eval echo configure:1803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1803ac_err=`grep -v '^ *+' conftest.out` 1804if test -z "$ac_err"; then 1805 rm -rf conftest* 1806 ac_cv_header_stdc=yes 1807else 1808 echo "$ac_err" >&5 1809 echo "configure: failed program was:" >&5 1810 cat conftest.$ac_ext >&5 1811 rm -rf conftest* 1812 ac_cv_header_stdc=no 1813fi 1814rm -f conftest* 1815 1816if test $ac_cv_header_stdc = yes; then 1817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1818cat > conftest.$ac_ext <<EOF 1819#line 1820 "configure" 1820#include "confdefs.h" 1821#include <string.h> 1822EOF 1823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1824 egrep "memchr" >/dev/null 2>&1; then 1825 : 1826else 1827 rm -rf conftest* 1828 ac_cv_header_stdc=no 1829fi 1830rm -f conftest* 1831 1832fi 1833 1834if test $ac_cv_header_stdc = yes; then 1835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1836cat > conftest.$ac_ext <<EOF 1837#line 1838 "configure" 1838#include "confdefs.h" 1839#include <stdlib.h> 1840EOF 1841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1842 egrep "free" >/dev/null 2>&1; then 1843 : 1844else 1845 rm -rf conftest* 1846 ac_cv_header_stdc=no 1847fi 1848rm -f conftest* 1849 1850fi 1851 1852if test $ac_cv_header_stdc = yes; then 1853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1854if test "$cross_compiling" = yes; then 1855 : 1856else 1857 cat > conftest.$ac_ext <<EOF 1858#line 1859 "configure" 1859#include "confdefs.h" 1860#include <ctype.h> 1861#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1862#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1863#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1864int main () { int i; for (i = 0; i < 256; i++) 1865if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1866exit (0); } 1867 1868EOF 1869if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1870then 1871 : 1872else 1873 echo "configure: failed program was:" >&5 1874 cat conftest.$ac_ext >&5 1875 rm -fr conftest* 1876 ac_cv_header_stdc=no 1877fi 1878rm -fr conftest* 1879fi 1880 1881fi 1882fi 1883 1884echo "$ac_t""$ac_cv_header_stdc" 1>&6 1885if test $ac_cv_header_stdc = yes; then 1886 cat >> confdefs.h <<\EOF 1887#define STDC_HEADERS 1 1888EOF 1889 1890fi 1891 1892for ac_hdr in crypt.h signal.h sys/signal.h sys/stat.h 1893do 1894ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1895echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1896echo "configure:1897: checking for $ac_hdr" >&5 1897if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1898 echo $ac_n "(cached) $ac_c" 1>&6 1899else 1900 cat > conftest.$ac_ext <<EOF 1901#line 1902 "configure" 1902#include "confdefs.h" 1903#include <$ac_hdr> 1904EOF 1905ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1906{ (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1907ac_err=`grep -v '^ *+' conftest.out` 1908if test -z "$ac_err"; then 1909 rm -rf conftest* 1910 eval "ac_cv_header_$ac_safe=yes" 1911else 1912 echo "$ac_err" >&5 1913 echo "configure: failed program was:" >&5 1914 cat conftest.$ac_ext >&5 1915 rm -rf conftest* 1916 eval "ac_cv_header_$ac_safe=no" 1917fi 1918rm -f conftest* 1919fi 1920if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1921 echo "$ac_t""yes" 1>&6 1922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1923 cat >> confdefs.h <<EOF 1924#define $ac_tr_hdr 1 1925EOF 1926 1927else 1928 echo "$ac_t""no" 1>&6 1929fi 1930done 1931 1932for ac_hdr in fcntl.h sys/fcntl.h 1933do 1934ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1935echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1936echo "configure:1937: checking for $ac_hdr" >&5 1937if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1938 echo $ac_n "(cached) $ac_c" 1>&6 1939else 1940 cat > conftest.$ac_ext <<EOF 1941#line 1942 "configure" 1942#include "confdefs.h" 1943#include <$ac_hdr> 1944EOF 1945ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1946{ (eval echo configure:1947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1947ac_err=`grep -v '^ *+' conftest.out` 1948if test -z "$ac_err"; then 1949 rm -rf conftest* 1950 eval "ac_cv_header_$ac_safe=yes" 1951else 1952 echo "$ac_err" >&5 1953 echo "configure: failed program was:" >&5 1954 cat conftest.$ac_ext >&5 1955 rm -rf conftest* 1956 eval "ac_cv_header_$ac_safe=no" 1957fi 1958rm -f conftest* 1959fi 1960if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1961 echo "$ac_t""yes" 1>&6 1962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1963 cat >> confdefs.h <<EOF 1964#define $ac_tr_hdr 1 1965EOF 1966 1967else 1968 echo "$ac_t""no" 1>&6 1969fi 1970done 1971 1972for ac_hdr in sys/utsname.h getopt.h unistd.h 1973do 1974ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1975echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1976echo "configure:1977: checking for $ac_hdr" >&5 1977if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1978 echo $ac_n "(cached) $ac_c" 1>&6 1979else 1980 cat > conftest.$ac_ext <<EOF 1981#line 1982 "configure" 1982#include "confdefs.h" 1983#include <$ac_hdr> 1984EOF 1985ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1986{ (eval echo configure:1987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1987ac_err=`grep -v '^ *+' conftest.out` 1988if test -z "$ac_err"; then 1989 rm -rf conftest* 1990 eval "ac_cv_header_$ac_safe=yes" 1991else 1992 echo "$ac_err" >&5 1993 echo "configure: failed program was:" >&5 1994 cat conftest.$ac_ext >&5 1995 rm -rf conftest* 1996 eval "ac_cv_header_$ac_safe=no" 1997fi 1998rm -f conftest* 1999fi 2000if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2001 echo "$ac_t""yes" 1>&6 2002 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2003 cat >> confdefs.h <<EOF 2004#define $ac_tr_hdr 1 2005EOF 2006 2007else 2008 echo "$ac_t""no" 1>&6 2009fi 2010done 2011 2012for ac_hdr in sys/file.h termios.h sys/ioctl.h 2013do 2014ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2015echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2016echo "configure:2017: checking for $ac_hdr" >&5 2017if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2018 echo $ac_n "(cached) $ac_c" 1>&6 2019else 2020 cat > conftest.$ac_ext <<EOF 2021#line 2022 "configure" 2022#include "confdefs.h" 2023#include <$ac_hdr> 2024EOF 2025ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2026{ (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2027ac_err=`grep -v '^ *+' conftest.out` 2028if test -z "$ac_err"; then 2029 rm -rf conftest* 2030 eval "ac_cv_header_$ac_safe=yes" 2031else 2032 echo "$ac_err" >&5 2033 echo "configure: failed program was:" >&5 2034 cat conftest.$ac_ext >&5 2035 rm -rf conftest* 2036 eval "ac_cv_header_$ac_safe=no" 2037fi 2038rm -f conftest* 2039fi 2040if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2041 echo "$ac_t""yes" 1>&6 2042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2043 cat >> confdefs.h <<EOF 2044#define $ac_tr_hdr 1 2045EOF 2046 2047else 2048 echo "$ac_t""no" 1>&6 2049fi 2050done 2051 2052if test "$shadow_passwords" = "yes" 2053then 2054 ac_safe=`echo "shadow.h" | sed 'y%./+-%__p_%'` 2055echo $ac_n "checking for shadow.h""... $ac_c" 1>&6 2056echo "configure:2057: checking for shadow.h" >&5 2057if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2058 echo $ac_n "(cached) $ac_c" 1>&6 2059else 2060 cat > conftest.$ac_ext <<EOF 2061#line 2062 "configure" 2062#include "confdefs.h" 2063#include <shadow.h> 2064EOF 2065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2066{ (eval echo configure:2067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2067ac_err=`grep -v '^ *+' conftest.out` 2068if test -z "$ac_err"; then 2069 rm -rf conftest* 2070 eval "ac_cv_header_$ac_safe=yes" 2071else 2072 echo "$ac_err" >&5 2073 echo "configure: failed program was:" >&5 2074 cat conftest.$ac_ext >&5 2075 rm -rf conftest* 2076 eval "ac_cv_header_$ac_safe=no" 2077fi 2078rm -f conftest* 2079fi 2080if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2081 echo "$ac_t""yes" 1>&6 2082 : 2083else 2084 echo "$ac_t""no" 1>&6 2085fi 2086 2087fi 2088 2089 2090echo $ac_n "checking for working const""... $ac_c" 1>&6 2091echo "configure:2092: checking for working const" >&5 2092if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2093 echo $ac_n "(cached) $ac_c" 1>&6 2094else 2095 cat > conftest.$ac_ext <<EOF 2096#line 2097 "configure" 2097#include "confdefs.h" 2098 2099int main() { 2100 2101/* Ultrix mips cc rejects this. */ 2102typedef int charset[2]; const charset x; 2103/* SunOS 4.1.1 cc rejects this. */ 2104char const *const *ccp; 2105char **p; 2106/* NEC SVR4.0.2 mips cc rejects this. */ 2107struct point {int x, y;}; 2108static struct point const zero = {0,0}; 2109/* AIX XL C 1.02.0.0 rejects this. 2110 It does not let you subtract one const X* pointer from another in an arm 2111 of an if-expression whose if-part is not a constant expression */ 2112const char *g = "string"; 2113ccp = &g + (g ? g-g : 0); 2114/* HPUX 7.0 cc rejects these. */ 2115++ccp; 2116p = (char**) ccp; 2117ccp = (char const *const *) p; 2118{ /* SCO 3.2v4 cc rejects this. */ 2119 char *t; 2120 char const *s = 0 ? (char *) 0 : (char const *) 0; 2121 2122 *t++ = 0; 2123} 2124{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2125 int x[] = {25, 17}; 2126 const int *foo = &x[0]; 2127 ++foo; 2128} 2129{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2130 typedef const int *iptr; 2131 iptr p = 0; 2132 ++p; 2133} 2134{ /* AIX XL C 1.02.0.0 rejects this saying 2135 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2136 struct s { int j; const int *ap[3]; }; 2137 struct s *b; b->j = 5; 2138} 2139{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2140 const int foo = 10; 2141} 2142 2143; return 0; } 2144EOF 2145if { (eval echo configure:2146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2146 rm -rf conftest* 2147 ac_cv_c_const=yes 2148else 2149 echo "configure: failed program was:" >&5 2150 cat conftest.$ac_ext >&5 2151 rm -rf conftest* 2152 ac_cv_c_const=no 2153fi 2154rm -f conftest* 2155fi 2156 2157echo "$ac_t""$ac_cv_c_const" 1>&6 2158if test $ac_cv_c_const = no; then 2159 cat >> confdefs.h <<\EOF 2160#define const 2161EOF 2162 2163fi 2164 2165echo $ac_n "checking for off_t""... $ac_c" 1>&6 2166echo "configure:2167: checking for off_t" >&5 2167if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 2168 echo $ac_n "(cached) $ac_c" 1>&6 2169else 2170 cat > conftest.$ac_ext <<EOF 2171#line 2172 "configure" 2172#include "confdefs.h" 2173#include <sys/types.h> 2174#if STDC_HEADERS 2175#include <stdlib.h> 2176#include <stddef.h> 2177#endif 2178EOF 2179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2180 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2181 rm -rf conftest* 2182 ac_cv_type_off_t=yes 2183else 2184 rm -rf conftest* 2185 ac_cv_type_off_t=no 2186fi 2187rm -f conftest* 2188 2189fi 2190echo "$ac_t""$ac_cv_type_off_t" 1>&6 2191if test $ac_cv_type_off_t = no; then 2192 cat >> confdefs.h <<\EOF 2193#define off_t long 2194EOF 2195 2196fi 2197 2198echo $ac_n "checking for size_t""... $ac_c" 1>&6 2199echo "configure:2200: checking for size_t" >&5 2200if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2201 echo $ac_n "(cached) $ac_c" 1>&6 2202else 2203 cat > conftest.$ac_ext <<EOF 2204#line 2205 "configure" 2205#include "confdefs.h" 2206#include <sys/types.h> 2207#if STDC_HEADERS 2208#include <stdlib.h> 2209#include <stddef.h> 2210#endif 2211EOF 2212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2213 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2214 rm -rf conftest* 2215 ac_cv_type_size_t=yes 2216else 2217 rm -rf conftest* 2218 ac_cv_type_size_t=no 2219fi 2220rm -f conftest* 2221 2222fi 2223echo "$ac_t""$ac_cv_type_size_t" 1>&6 2224if test $ac_cv_type_size_t = no; then 2225 cat >> confdefs.h <<\EOF 2226#define size_t unsigned 2227EOF 2228 2229fi 2230 2231echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2232echo "configure:2233: checking whether time.h and sys/time.h may both be included" >&5 2233if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2234 echo $ac_n "(cached) $ac_c" 1>&6 2235else 2236 cat > conftest.$ac_ext <<EOF 2237#line 2238 "configure" 2238#include "confdefs.h" 2239#include <sys/types.h> 2240#include <sys/time.h> 2241#include <time.h> 2242int main() { 2243struct tm *tp; 2244; return 0; } 2245EOF 2246if { (eval echo configure:2247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2247 rm -rf conftest* 2248 ac_cv_header_time=yes 2249else 2250 echo "configure: failed program was:" >&5 2251 cat conftest.$ac_ext >&5 2252 rm -rf conftest* 2253 ac_cv_header_time=no 2254fi 2255rm -f conftest* 2256fi 2257 2258echo "$ac_t""$ac_cv_header_time" 1>&6 2259if test $ac_cv_header_time = yes; then 2260 cat >> confdefs.h <<\EOF 2261#define TIME_WITH_SYS_TIME 1 2262EOF 2263 2264fi 2265 2266echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2267echo "configure:2268: checking whether struct tm is in sys/time.h or time.h" >&5 2268if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2269 echo $ac_n "(cached) $ac_c" 1>&6 2270else 2271 cat > conftest.$ac_ext <<EOF 2272#line 2273 "configure" 2273#include "confdefs.h" 2274#include <sys/types.h> 2275#include <time.h> 2276int main() { 2277struct tm *tp; tp->tm_sec; 2278; return 0; } 2279EOF 2280if { (eval echo configure:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2281 rm -rf conftest* 2282 ac_cv_struct_tm=time.h 2283else 2284 echo "configure: failed program was:" >&5 2285 cat conftest.$ac_ext >&5 2286 rm -rf conftest* 2287 ac_cv_struct_tm=sys/time.h 2288fi 2289rm -f conftest* 2290fi 2291 2292echo "$ac_t""$ac_cv_struct_tm" 1>&6 2293if test $ac_cv_struct_tm = sys/time.h; then 2294 cat >> confdefs.h <<\EOF 2295#define TM_IN_SYS_TIME 1 2296EOF 2297 2298fi 2299 2300 2301if test $ac_cv_prog_gcc = yes; then 2302 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2303echo "configure:2304: checking whether ${CC-cc} needs -traditional" >&5 2304if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2305 echo $ac_n "(cached) $ac_c" 1>&6 2306else 2307 ac_pattern="Autoconf.*'x'" 2308 cat > conftest.$ac_ext <<EOF 2309#line 2310 "configure" 2310#include "confdefs.h" 2311#include <sgtty.h> 2312Autoconf TIOCGETP 2313EOF 2314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2315 egrep "$ac_pattern" >/dev/null 2>&1; then 2316 rm -rf conftest* 2317 ac_cv_prog_gcc_traditional=yes 2318else 2319 rm -rf conftest* 2320 ac_cv_prog_gcc_traditional=no 2321fi 2322rm -f conftest* 2323 2324 2325 if test $ac_cv_prog_gcc_traditional = no; then 2326 cat > conftest.$ac_ext <<EOF 2327#line 2328 "configure" 2328#include "confdefs.h" 2329#include <termio.h> 2330Autoconf TCGETA 2331EOF 2332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2333 egrep "$ac_pattern" >/dev/null 2>&1; then 2334 rm -rf conftest* 2335 ac_cv_prog_gcc_traditional=yes 2336fi 2337rm -f conftest* 2338 2339 fi 2340fi 2341 2342echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 2343 if test $ac_cv_prog_gcc_traditional = yes; then 2344 CC="$CC -traditional" 2345 fi 2346fi 2347 2348echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6 2349echo "configure:2350: checking for 8-bit clean memcmp" >&5 2350if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then 2351 echo $ac_n "(cached) $ac_c" 1>&6 2352else 2353 if test "$cross_compiling" = yes; then 2354 ac_cv_func_memcmp_clean=no 2355else 2356 cat > conftest.$ac_ext <<EOF 2357#line 2358 "configure" 2358#include "confdefs.h" 2359 2360main() 2361{ 2362 char c0 = 0x40, c1 = 0x80, c2 = 0x81; 2363 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1); 2364} 2365 2366EOF 2367if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2368then 2369 ac_cv_func_memcmp_clean=yes 2370else 2371 echo "configure: failed program was:" >&5 2372 cat conftest.$ac_ext >&5 2373 rm -fr conftest* 2374 ac_cv_func_memcmp_clean=no 2375fi 2376rm -fr conftest* 2377fi 2378 2379fi 2380 2381echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6 2382test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o" 2383 2384echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6 2385echo "configure:2386: checking whether setvbuf arguments are reversed" >&5 2386if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then 2387 echo $ac_n "(cached) $ac_c" 1>&6 2388else 2389 if test "$cross_compiling" = yes; then 2390 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2391else 2392 cat > conftest.$ac_ext <<EOF 2393#line 2394 "configure" 2394#include "confdefs.h" 2395#include <stdio.h> 2396/* If setvbuf has the reversed format, exit 0. */ 2397main () { 2398 /* This call has the arguments reversed. 2399 A reversed system may check and see that the address of main 2400 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 2401 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0) 2402 exit(1); 2403 putc('\r', stdout); 2404 exit(0); /* Non-reversed systems segv here. */ 2405} 2406EOF 2407if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2408then 2409 ac_cv_func_setvbuf_reversed=yes 2410else 2411 echo "configure: failed program was:" >&5 2412 cat conftest.$ac_ext >&5 2413 rm -fr conftest* 2414 ac_cv_func_setvbuf_reversed=no 2415fi 2416rm -fr conftest* 2417fi 2418 2419rm -f core core.* *.core 2420fi 2421 2422echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6 2423if test $ac_cv_func_setvbuf_reversed = yes; then 2424 cat >> confdefs.h <<\EOF 2425#define SETVBUF_REVERSED 1 2426EOF 2427 2428fi 2429 2430echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2431echo "configure:2432: checking return type of signal handlers" >&5 2432if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2433 echo $ac_n "(cached) $ac_c" 1>&6 2434else 2435 cat > conftest.$ac_ext <<EOF 2436#line 2437 "configure" 2437#include "confdefs.h" 2438#include <sys/types.h> 2439#include <signal.h> 2440#ifdef signal 2441#undef signal 2442#endif 2443#ifdef __cplusplus 2444extern "C" void (*signal (int, void (*)(int)))(int); 2445#else 2446void (*signal ()) (); 2447#endif 2448 2449int main() { 2450int i; 2451; return 0; } 2452EOF 2453if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2454 rm -rf conftest* 2455 ac_cv_type_signal=void 2456else 2457 echo "configure: failed program was:" >&5 2458 cat conftest.$ac_ext >&5 2459 rm -rf conftest* 2460 ac_cv_type_signal=int 2461fi 2462rm -f conftest* 2463fi 2464 2465echo "$ac_t""$ac_cv_type_signal" 1>&6 2466cat >> confdefs.h <<EOF 2467#define RETSIGTYPE $ac_cv_type_signal 2468EOF 2469 2470 2471echo $ac_n "checking for strftime""... $ac_c" 1>&6 2472echo "configure:2473: checking for strftime" >&5 2473if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then 2474 echo $ac_n "(cached) $ac_c" 1>&6 2475else 2476 cat > conftest.$ac_ext <<EOF 2477#line 2478 "configure" 2478#include "confdefs.h" 2479/* System header to define __stub macros and hopefully few prototypes, 2480 which can conflict with char strftime(); below. */ 2481#include <assert.h> 2482/* Override any gcc2 internal prototype to avoid an error. */ 2483/* We use char because int might match the return type of a gcc2 2484 builtin and then its argument prototype would still apply. */ 2485char strftime(); 2486 2487int main() { 2488 2489/* The GNU C library defines this for functions which it implements 2490 to always fail with ENOSYS. Some functions are actually named 2491 something starting with __ and the normal name is an alias. */ 2492#if defined (__stub_strftime) || defined (__stub___strftime) 2493choke me 2494#else 2495strftime(); 2496#endif 2497 2498; return 0; } 2499EOF 2500if { (eval echo configure:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2501 rm -rf conftest* 2502 eval "ac_cv_func_strftime=yes" 2503else 2504 echo "configure: failed program was:" >&5 2505 cat conftest.$ac_ext >&5 2506 rm -rf conftest* 2507 eval "ac_cv_func_strftime=no" 2508fi 2509rm -f conftest* 2510fi 2511 2512if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then 2513 echo "$ac_t""yes" 1>&6 2514 cat >> confdefs.h <<\EOF 2515#define HAVE_STRFTIME 1 2516EOF 2517 2518else 2519 echo "$ac_t""no" 1>&6 2520# strftime is in -lintl on SCO UNIX. 2521echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 2522echo "configure:2523: checking for strftime in -lintl" >&5 2523ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` 2524if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2525 echo $ac_n "(cached) $ac_c" 1>&6 2526else 2527 ac_save_LIBS="$LIBS" 2528LIBS="-lintl $LIBS" 2529cat > conftest.$ac_ext <<EOF 2530#line 2531 "configure" 2531#include "confdefs.h" 2532/* Override any gcc2 internal prototype to avoid an error. */ 2533/* We use char because int might match the return type of a gcc2 2534 builtin and then its argument prototype would still apply. */ 2535char strftime(); 2536 2537int main() { 2538strftime() 2539; return 0; } 2540EOF 2541if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2542 rm -rf conftest* 2543 eval "ac_cv_lib_$ac_lib_var=yes" 2544else 2545 echo "configure: failed program was:" >&5 2546 cat conftest.$ac_ext >&5 2547 rm -rf conftest* 2548 eval "ac_cv_lib_$ac_lib_var=no" 2549fi 2550rm -f conftest* 2551LIBS="$ac_save_LIBS" 2552 2553fi 2554if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2555 echo "$ac_t""yes" 1>&6 2556 cat >> confdefs.h <<\EOF 2557#define HAVE_STRFTIME 1 2558EOF 2559 2560LIBS="-lintl $LIBS" 2561else 2562 echo "$ac_t""no" 1>&6 2563fi 2564 2565fi 2566 2567for ac_func in strdup strerror strcasecmp 2568do 2569echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2570echo "configure:2571: checking for $ac_func" >&5 2571if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2572 echo $ac_n "(cached) $ac_c" 1>&6 2573else 2574 cat > conftest.$ac_ext <<EOF 2575#line 2576 "configure" 2576#include "confdefs.h" 2577/* System header to define __stub macros and hopefully few prototypes, 2578 which can conflict with char $ac_func(); below. */ 2579#include <assert.h> 2580/* Override any gcc2 internal prototype to avoid an error. */ 2581/* We use char because int might match the return type of a gcc2 2582 builtin and then its argument prototype would still apply. */ 2583char $ac_func(); 2584 2585int main() { 2586 2587/* The GNU C library defines this for functions which it implements 2588 to always fail with ENOSYS. Some functions are actually named 2589 something starting with __ and the normal name is an alias. */ 2590#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2591choke me 2592#else 2593$ac_func(); 2594#endif 2595 2596; return 0; } 2597EOF 2598if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2599 rm -rf conftest* 2600 eval "ac_cv_func_$ac_func=yes" 2601else 2602 echo "configure: failed program was:" >&5 2603 cat conftest.$ac_ext >&5 2604 rm -rf conftest* 2605 eval "ac_cv_func_$ac_func=no" 2606fi 2607rm -f conftest* 2608fi 2609 2610if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2611 echo "$ac_t""yes" 1>&6 2612 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2613 cat >> confdefs.h <<EOF 2614#define $ac_tr_func 1 2615EOF 2616 2617else 2618 echo "$ac_t""no" 1>&6 2619LIBOBJS="$LIBOBJS ${ac_func}.o" 2620fi 2621done 2622 2623 2624for ac_func in flock fcntl uname gethostname sysinfo getdomainname 2625do 2626echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2627echo "configure:2628: checking for $ac_func" >&5 2628if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2629 echo $ac_n "(cached) $ac_c" 1>&6 2630else 2631 cat > conftest.$ac_ext <<EOF 2632#line 2633 "configure" 2633#include "confdefs.h" 2634/* System header to define __stub macros and hopefully few prototypes, 2635 which can conflict with char $ac_func(); below. */ 2636#include <assert.h> 2637/* Override any gcc2 internal prototype to avoid an error. */ 2638/* We use char because int might match the return type of a gcc2 2639 builtin and then its argument prototype would still apply. */ 2640char $ac_func(); 2641 2642int main() { 2643 2644/* The GNU C library defines this for functions which it implements 2645 to always fail with ENOSYS. Some functions are actually named 2646 something starting with __ and the normal name is an alias. */ 2647#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2648choke me 2649#else 2650$ac_func(); 2651#endif 2652 2653; return 0; } 2654EOF 2655if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2656 rm -rf conftest* 2657 eval "ac_cv_func_$ac_func=yes" 2658else 2659 echo "configure: failed program was:" >&5 2660 cat conftest.$ac_ext >&5 2661 rm -rf conftest* 2662 eval "ac_cv_func_$ac_func=no" 2663fi 2664rm -f conftest* 2665fi 2666 2667if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2668 echo "$ac_t""yes" 1>&6 2669 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2670 cat >> confdefs.h <<EOF 2671#define $ac_tr_func 1 2672EOF 2673 2674else 2675 echo "$ac_t""no" 1>&6 2676fi 2677done 2678 2679for ac_func in stricmp random rand snprintf vsnprintf 2680do 2681echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2682echo "configure:2683: checking for $ac_func" >&5 2683if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2684 echo $ac_n "(cached) $ac_c" 1>&6 2685else 2686 cat > conftest.$ac_ext <<EOF 2687#line 2688 "configure" 2688#include "confdefs.h" 2689/* System header to define __stub macros and hopefully few prototypes, 2690 which can conflict with char $ac_func(); below. */ 2691#include <assert.h> 2692/* Override any gcc2 internal prototype to avoid an error. */ 2693/* We use char because int might match the return type of a gcc2 2694 builtin and then its argument prototype would still apply. */ 2695char $ac_func(); 2696 2697int main() { 2698 2699/* The GNU C library defines this for functions which it implements 2700 to always fail with ENOSYS. Some functions are actually named 2701 something starting with __ and the normal name is an alias. */ 2702#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2703choke me 2704#else 2705$ac_func(); 2706#endif 2707 2708; return 0; } 2709EOF 2710if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2711 rm -rf conftest* 2712 eval "ac_cv_func_$ac_func=yes" 2713else 2714 echo "configure: failed program was:" >&5 2715 cat conftest.$ac_ext >&5 2716 rm -rf conftest* 2717 eval "ac_cv_func_$ac_func=no" 2718fi 2719rm -f conftest* 2720fi 2721 2722if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2723 echo "$ac_t""yes" 1>&6 2724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2725 cat >> confdefs.h <<EOF 2726#define $ac_tr_func 1 2727EOF 2728 2729else 2730 echo "$ac_t""no" 1>&6 2731fi 2732done 2733 2734 2735if test "$ac_cv_func_uname" = 'yes' 2736then 2737 echo $ac_n "checking for field domainname in struct utsname""... $ac_c" 1>&6 2738echo "configure:2739: checking for field domainname in struct utsname" >&5 2739 if test "$cross_compiling" = yes; then 2740 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } 2741else 2742 cat > conftest.$ac_ext <<EOF 2743#line 2744 "configure" 2744#include "confdefs.h" 2745 2746 #include <sys/utsname.h> 2747 2748 main(int argc, char **argv) 2749 { 2750 struct utsname uts; 2751 uts.domainname[0] = '\0'; 2752 } 2753 2754EOF 2755if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 2756then 2757 echo "$ac_t""yes" 1>&6 2758 cat >> confdefs.h <<\EOF 2759#define HAVE_STRUCT_UTSNAME_DOMAINNAME 1 2760EOF 2761 2762else 2763 echo "configure: failed program was:" >&5 2764 cat conftest.$ac_ext >&5 2765 rm -fr conftest* 2766 echo "$ac_t""no" 1>&6 2767 2768fi 2769rm -fr conftest* 2770fi 2771 2772fi 2773 2774echo $ac_n "checking for /dev/urandom""... $ac_c" 1>&6 2775echo "configure:2776: checking for /dev/urandom" >&5 2776if test -c /dev/urandom 2777then 2778 echo "$ac_t""yes" 1>&6 2779 cat >> confdefs.h <<\EOF 2780#define HAVE_DEV_URANDOM 1 2781EOF 2782 2783else 2784 echo "$ac_t""no" 1>&6 2785fi 2786 2787echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6 2788# Check whether --with-secure-path or --without-secure-path was given. 2789if test "${with_secure_path+set}" = set; then 2790 withval="$with_secure_path" 2791 2792 echo "$ac_t""$withval" 1>&6 2793 RC_SECURE_PATH=$withval 2794 2795else 2796 2797 echo "$ac_t""/bin:/usr/bin:/usr/local/bin" 1>&6 2798 RC_SECURE_PATH=/bin:/usr/bin:/usr/local/bin 2799 2800 2801fi 2802 2803 2804echo $ac_n "checking which syslog facility to use""... $ac_c" 1>&6 2805echo "configure:2806: checking which syslog facility to use" >&5 2806# Check whether --with-facility or --without-facility was given. 2807if test "${with_facility+set}" = set; then 2808 withval="$with_facility" 2809 2810 echo "$ac_t""$withval" 1>&6 2811 RC_LOG_FACILITY=$withval 2812 2813else 2814 2815 echo "$ac_t""LOG_DAEMON" 1>&6 2816 RC_LOG_FACILITY=LOG_DAEMON 2817 2818 2819fi 2820 2821 2822echo $ac_n "checking whether to include Livingston's RADIUS server 1.16 kludge""... $ac_c" 1>&6 2823echo "configure:2824: checking whether to include Livingston's RADIUS server 1.16 kludge" >&5 2824# Check whether --enable-radius-116 or --disable-radius-116 was given. 2825if test "${enable_radius_116+set}" = set; then 2826 enableval="$enable_radius_116" 2827 2828 echo "$ac_t""yes" 1>&6 2829 cat >> confdefs.h <<\EOF 2830#define RADIUS_116 1 2831EOF 2832 2833 echo "configure: warning: !! This is a bug in Livingston's RADIUS server v1.16. There" 1>&2 2834 echo "configure: warning: !! is a patch included with radiusclient which fixes this" 1>&2 2835 echo "configure: warning: !! problem. See patches/radiusd-1.16.accounting.diff. With" 1>&2 2836 echo "configure: warning: !! the patched RADIUS server you no longer need to activate" 1>&2 2837 echo "configure: warning: !! this hack." 1>&2 2838 2839else 2840 2841 echo "$ac_t""no" 1>&6 2842 2843 2844fi 2845 2846 2847echo $ac_n "checking whether to add service type hints derived from username prefix""... $ac_c" 1>&6 2848echo "configure:2849: checking whether to add service type hints derived from username prefix" >&5 2849# Check whether --enable-scp or --disable-scp was given. 2850if test "${enable_scp+set}" = set; then 2851 enableval="$enable_scp" 2852 2853 echo "$ac_t""yes" 1>&6 2854 cat >> confdefs.h <<\EOF 2855#define SCP 1 2856EOF 2857 2858 2859else 2860 2861 echo "$ac_t""no" 1>&6 2862 2863 2864fi 2865 2866 2867 2868 2869 2870 2871 2872 2873LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'` 2874 2875trap '' 1 2 15 2876cat > confcache <<\EOF 2877# This file is a shell script that caches the results of configure 2878# tests run on this system so they can be shared between configure 2879# scripts and configure runs. It is not useful on other systems. 2880# If it contains results you don't want to keep, you may remove or edit it. 2881# 2882# By default, configure uses ./config.cache as the cache file, 2883# creating it if it does not exist already. You can give configure 2884# the --cache-file=FILE option to use a different cache file; that is 2885# what configure does when it calls configure scripts in 2886# subdirectories, so they share the cache. 2887# Giving --cache-file=/dev/null disables caching, for debugging configure. 2888# config.status only pays attention to the cache file if you give it the 2889# --recheck option to rerun configure. 2890# 2891EOF 2892# The following way of writing the cache mishandles newlines in values, 2893# but we know of no workaround that is simple, portable, and efficient. 2894# So, don't put newlines in cache variables' values. 2895# Ultrix sh set writes to stderr and can't be redirected directly, 2896# and sets the high bit in the cache file unless we assign to the vars. 2897(set) 2>&1 | 2898 case `(ac_space=' '; set) 2>&1` in 2899 *ac_space=\ *) 2900 # `set' does not quote correctly, so add quotes (double-quote substitution 2901 # turns \\\\ into \\, and sed turns \\ into \). 2902 sed -n \ 2903 -e "s/'/'\\\\''/g" \ 2904 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2905 ;; 2906 *) 2907 # `set' quotes correctly as required by POSIX, so do not add quotes. 2908 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2909 ;; 2910 esac >> confcache 2911if cmp -s $cache_file confcache; then 2912 : 2913else 2914 if test -w $cache_file; then 2915 echo "updating cache $cache_file" 2916 cat confcache > $cache_file 2917 else 2918 echo "not updating unwritable cache $cache_file" 2919 fi 2920fi 2921rm -f confcache 2922 2923trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2924 2925test "x$prefix" = xNONE && prefix=$ac_default_prefix 2926# Let make expand exec_prefix. 2927test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2928 2929# Any assignment to VPATH causes Sun make to only execute 2930# the first set of double-colon rules, so remove it if not needed. 2931# If there is a colon in the path, we need to keep it. 2932if test "x$srcdir" = x.; then 2933 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2934fi 2935 2936trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2937 2938DEFS=-DHAVE_CONFIG_H 2939 2940# Without the "./", some shells look in PATH for config.status. 2941: ${CONFIG_STATUS=./config.status} 2942 2943echo creating $CONFIG_STATUS 2944rm -f $CONFIG_STATUS 2945cat > $CONFIG_STATUS <<EOF 2946#! /bin/sh 2947# Generated automatically by configure. 2948# Run this file to recreate the current configuration. 2949# This directory was configured as follows, 2950# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2951# 2952# $0 $ac_configure_args 2953# 2954# Compiler output produced by configure, useful for debugging 2955# configure, is in ./config.log if it exists. 2956 2957ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2958for ac_option 2959do 2960 case "\$ac_option" in 2961 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2962 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2963 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2964 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2965 echo "$CONFIG_STATUS generated by autoconf version 2.12" 2966 exit 0 ;; 2967 -help | --help | --hel | --he | --h) 2968 echo "\$ac_cs_usage"; exit 0 ;; 2969 *) echo "\$ac_cs_usage"; exit 1 ;; 2970 esac 2971done 2972 2973ac_given_srcdir=$srcdir 2974ac_given_INSTALL="$INSTALL" 2975 2976trap 'rm -fr `echo " 2977Makefile 2978include/Makefile lib/Makefile src/Makefile man/Makefile etc/Makefile 2979doc/Makefile patches/Makefile 2980login.radius/Makefile login.radius/migs/Makefile 2981 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2982EOF 2983cat >> $CONFIG_STATUS <<EOF 2984 2985# Protect against being on the right side of a sed subst in config.status. 2986sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2987 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2988$ac_vpsub 2989$extrasub 2990s%@CFLAGS@%$CFLAGS%g 2991s%@CPPFLAGS@%$CPPFLAGS%g 2992s%@CXXFLAGS@%$CXXFLAGS%g 2993s%@DEFS@%$DEFS%g 2994s%@LDFLAGS@%$LDFLAGS%g 2995s%@LIBS@%$LIBS%g 2996s%@exec_prefix@%$exec_prefix%g 2997s%@prefix@%$prefix%g 2998s%@program_transform_name@%$program_transform_name%g 2999s%@bindir@%$bindir%g 3000s%@sbindir@%$sbindir%g 3001s%@libexecdir@%$libexecdir%g 3002s%@datadir@%$datadir%g 3003s%@sysconfdir@%$sysconfdir%g 3004s%@sharedstatedir@%$sharedstatedir%g 3005s%@localstatedir@%$localstatedir%g 3006s%@libdir@%$libdir%g 3007s%@includedir@%$includedir%g 3008s%@oldincludedir@%$oldincludedir%g 3009s%@infodir@%$infodir%g 3010s%@mandir@%$mandir%g 3011s%@host@%$host%g 3012s%@host_alias@%$host_alias%g 3013s%@host_cpu@%$host_cpu%g 3014s%@host_vendor@%$host_vendor%g 3015s%@host_os@%$host_os%g 3016s%@target@%$target%g 3017s%@target_alias@%$target_alias%g 3018s%@target_cpu@%$target_cpu%g 3019s%@target_vendor@%$target_vendor%g 3020s%@target_os@%$target_os%g 3021s%@build@%$build%g 3022s%@build_alias@%$build_alias%g 3023s%@build_cpu@%$build_cpu%g 3024s%@build_vendor@%$build_vendor%g 3025s%@build_os@%$build_os%g 3026s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3027s%@INSTALL_DATA@%$INSTALL_DATA%g 3028s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 3029s%@PACKAGE@%$PACKAGE%g 3030s%@VERSION@%$VERSION%g 3031s%@ACLOCAL@%$ACLOCAL%g 3032s%@AUTOCONF@%$AUTOCONF%g 3033s%@AUTOMAKE@%$AUTOMAKE%g 3034s%@AUTOHEADER@%$AUTOHEADER%g 3035s%@MAKEINFO@%$MAKEINFO%g 3036s%@SET_MAKE@%$SET_MAKE%g 3037s%@LIBVERSION@%$LIBVERSION%g 3038s%@pkgsysconfdir@%$pkgsysconfdir%g 3039s%@CC@%$CC%g 3040s%@AR@%$AR%g 3041s%@RANLIB@%$RANLIB%g 3042s%@LD@%$LD%g 3043s%@NM@%$NM%g 3044s%@LN_S@%$LN_S%g 3045s%@LIBTOOL@%$LIBTOOL%g 3046s%@CPP@%$CPP%g 3047s%@LIBOBJS@%$LIBOBJS%g 3048s%@RC_SECURE_PATH@%$RC_SECURE_PATH%g 3049s%@RC_LOG_FACILITY@%$RC_LOG_FACILITY%g 3050s%@LTLIBOBJS@%$LTLIBOBJS%g 3051 3052CEOF 3053EOF 3054 3055cat >> $CONFIG_STATUS <<\EOF 3056 3057# Split the substitutions into bite-sized pieces for seds with 3058# small command number limits, like on Digital OSF/1 and HP-UX. 3059ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 3060ac_file=1 # Number of current file. 3061ac_beg=1 # First line for current file. 3062ac_end=$ac_max_sed_cmds # Line after last line for current file. 3063ac_more_lines=: 3064ac_sed_cmds="" 3065while $ac_more_lines; do 3066 if test $ac_beg -gt 1; then 3067 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 3068 else 3069 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 3070 fi 3071 if test ! -s conftest.s$ac_file; then 3072 ac_more_lines=false 3073 rm -f conftest.s$ac_file 3074 else 3075 if test -z "$ac_sed_cmds"; then 3076 ac_sed_cmds="sed -f conftest.s$ac_file" 3077 else 3078 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 3079 fi 3080 ac_file=`expr $ac_file + 1` 3081 ac_beg=$ac_end 3082 ac_end=`expr $ac_end + $ac_max_sed_cmds` 3083 fi 3084done 3085if test -z "$ac_sed_cmds"; then 3086 ac_sed_cmds=cat 3087fi 3088EOF 3089 3090cat >> $CONFIG_STATUS <<EOF 3091 3092CONFIG_FILES=\${CONFIG_FILES-"Makefile 3093include/Makefile lib/Makefile src/Makefile man/Makefile etc/Makefile 3094doc/Makefile patches/Makefile 3095login.radius/Makefile login.radius/migs/Makefile 3096"} 3097EOF 3098cat >> $CONFIG_STATUS <<\EOF 3099for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 3100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3101 case "$ac_file" in 3102 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3103 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3104 *) ac_file_in="${ac_file}.in" ;; 3105 esac 3106 3107 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 3108 3109 # Remove last slash and all that follows it. Not all systems have dirname. 3110 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3111 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3112 # The file is in a subdirectory. 3113 test ! -d "$ac_dir" && mkdir "$ac_dir" 3114 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 3115 # A "../" for each directory in $ac_dir_suffix. 3116 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 3117 else 3118 ac_dir_suffix= ac_dots= 3119 fi 3120 3121 case "$ac_given_srcdir" in 3122 .) srcdir=. 3123 if test -z "$ac_dots"; then top_srcdir=. 3124 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 3125 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 3126 *) # Relative path. 3127 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 3128 top_srcdir="$ac_dots$ac_given_srcdir" ;; 3129 esac 3130 3131 case "$ac_given_INSTALL" in 3132 [/$]*) INSTALL="$ac_given_INSTALL" ;; 3133 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 3134 esac 3135 3136 echo creating "$ac_file" 3137 rm -f "$ac_file" 3138 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 3139 case "$ac_file" in 3140 *Makefile*) ac_comsub="1i\\ 3141# $configure_input" ;; 3142 *) ac_comsub= ;; 3143 esac 3144 3145 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3146 sed -e "$ac_comsub 3147s%@configure_input@%$configure_input%g 3148s%@srcdir@%$srcdir%g 3149s%@top_srcdir@%$top_srcdir%g 3150s%@INSTALL@%$INSTALL%g 3151" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 3152fi; done 3153rm -f conftest.s* 3154 3155# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 3156# NAME is the cpp macro being defined and VALUE is the value it is being given. 3157# 3158# ac_d sets the value in "#define NAME VALUE" lines. 3159ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 3160ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 3161ac_dC='\3' 3162ac_dD='%g' 3163# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 3164ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3165ac_uB='\([ ]\)%\1#\2define\3' 3166ac_uC=' ' 3167ac_uD='\4%g' 3168# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3169ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3170ac_eB='$%\1#\2define\3' 3171ac_eC=' ' 3172ac_eD='%g' 3173 3174if test "${CONFIG_HEADERS+set}" != set; then 3175EOF 3176cat >> $CONFIG_STATUS <<EOF 3177 CONFIG_HEADERS="config.h" 3178EOF 3179cat >> $CONFIG_STATUS <<\EOF 3180fi 3181for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 3182 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3183 case "$ac_file" in 3184 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 3185 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 3186 *) ac_file_in="${ac_file}.in" ;; 3187 esac 3188 3189 echo creating $ac_file 3190 3191 rm -f conftest.frag conftest.in conftest.out 3192 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 3193 cat $ac_file_inputs > conftest.in 3194 3195EOF 3196 3197# Transform confdefs.h into a sed script conftest.vals that substitutes 3198# the proper values into config.h.in to produce config.h. And first: 3199# Protect against being on the right side of a sed subst in config.status. 3200# Protect against being in an unquoted here document in config.status. 3201rm -f conftest.vals 3202cat > conftest.hdr <<\EOF 3203s/[\\&%]/\\&/g 3204s%[\\$`]%\\&%g 3205s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 3206s%ac_d%ac_u%gp 3207s%ac_u%ac_e%gp 3208EOF 3209sed -n -f conftest.hdr confdefs.h > conftest.vals 3210rm -f conftest.hdr 3211 3212# This sed command replaces #undef with comments. This is necessary, for 3213# example, in the case of _POSIX_SOURCE, which is predefined and required 3214# on some systems where configure will not decide to define it. 3215cat >> conftest.vals <<\EOF 3216s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 3217EOF 3218 3219# Break up conftest.vals because some shells have a limit on 3220# the size of here documents, and old seds have small limits too. 3221 3222rm -f conftest.tail 3223while : 3224do 3225 ac_lines=`grep -c . conftest.vals` 3226 # grep -c gives empty output for an empty file on some AIX systems. 3227 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 3228 # Write a limited-size here document to conftest.frag. 3229 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 3230 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 3231 echo 'CEOF 3232 sed -f conftest.frag conftest.in > conftest.out 3233 rm -f conftest.in 3234 mv conftest.out conftest.in 3235' >> $CONFIG_STATUS 3236 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 3237 rm -f conftest.vals 3238 mv conftest.tail conftest.vals 3239done 3240rm -f conftest.vals 3241 3242cat >> $CONFIG_STATUS <<\EOF 3243 rm -f conftest.frag conftest.h 3244 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 3245 cat conftest.in >> conftest.h 3246 rm -f conftest.in 3247 if cmp -s $ac_file conftest.h 2>/dev/null; then 3248 echo "$ac_file is unchanged" 3249 rm -f conftest.h 3250 else 3251 # Remove last slash and all that follows it. Not all systems have dirname. 3252 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 3253 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 3254 # The file is in a subdirectory. 3255 test ! -d "$ac_dir" && mkdir "$ac_dir" 3256 fi 3257 rm -f $ac_file 3258 mv conftest.h $ac_file 3259 fi 3260fi; done 3261 3262EOF 3263cat >> $CONFIG_STATUS <<EOF 3264 3265 3266EOF 3267cat >> $CONFIG_STATUS <<\EOF 3268test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3269test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3270exit 0 3271EOF 3272chmod +x $CONFIG_STATUS 3273rm -fr confdefs* $ac_clean_files 3274test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 3275 3276