1#! /bin/sh 2# $MCom: gone/configure,v 1.3 2010/08/01 05:53:03 marcus Exp $ 3 4# Guess values for system-dependent variables and create Makefiles. 5# Generated automatically using autoconf version 2.13 6# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 7# 8# This configure script is free software; the Free Software Foundation 9# gives unlimited permission to copy, distribute and modify it. 10 11# Defaults: 12ac_help= 13ac_default_prefix=/usr/local 14# Any additions from configure.in: 15 16# Initialize some variables set by options. 17# The variables have the same names as the options, with 18# dashes changed to underlines. 19build=NONE 20cache_file=./config.cache 21exec_prefix=NONE 22host=NONE 23no_create= 24nonopt=NONE 25no_recursion= 26prefix=NONE 27program_prefix=NONE 28program_suffix=NONE 29program_transform_name=s,x,x, 30silent= 31site= 32sitefile= 33srcdir= 34target=NONE 35verbose= 36x_includes=NONE 37x_libraries=NONE 38bindir='${exec_prefix}/bin' 39sbindir='${exec_prefix}/sbin' 40libexecdir='${exec_prefix}/libexec' 41datadir='${prefix}/share' 42sysconfdir='${prefix}/etc' 43sharedstatedir='${prefix}/com' 44localstatedir='${prefix}/var' 45libdir='${exec_prefix}/lib' 46includedir='${prefix}/include' 47oldincludedir='/usr/include' 48infodir='${prefix}/info' 49mandir='${prefix}/man' 50 51# Initialize some other variables. 52subdirs= 53MFLAGS= MAKEFLAGS= 54SHELL=${CONFIG_SHELL-/bin/sh} 55# Maximum number of lines to put in a shell here document. 56ac_max_here_lines=12 57 58ac_prev= 59for ac_option 60do 61 62 # If the previous option needs an argument, assign it. 63 if test -n "$ac_prev"; then 64 eval "$ac_prev=\$ac_option" 65 ac_prev= 66 continue 67 fi 68 69 case "$ac_option" in 70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 71 *) ac_optarg= ;; 72 esac 73 74 # Accept the important Cygnus configure options, so we can diagnose typos. 75 76 case "$ac_option" in 77 78 -bindir | --bindir | --bindi | --bind | --bin | --bi) 79 ac_prev=bindir ;; 80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 81 bindir="$ac_optarg" ;; 82 83 -build | --build | --buil | --bui | --bu) 84 ac_prev=build ;; 85 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 86 build="$ac_optarg" ;; 87 88 -cache-file | --cache-file | --cache-fil | --cache-fi \ 89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 90 ac_prev=cache_file ;; 91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 93 cache_file="$ac_optarg" ;; 94 95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 96 ac_prev=datadir ;; 97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 98 | --da=*) 99 datadir="$ac_optarg" ;; 100 101 -disable-* | --disable-*) 102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 103 # Reject names that are not valid shell variable names. 104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 106 fi 107 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 108 eval "enable_${ac_feature}=no" ;; 109 110 -enable-* | --enable-*) 111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 112 # Reject names that are not valid shell variable names. 113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 115 fi 116 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 117 case "$ac_option" in 118 *=*) ;; 119 *) ac_optarg=yes ;; 120 esac 121 eval "enable_${ac_feature}='$ac_optarg'" ;; 122 123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 125 | --exec | --exe | --ex) 126 ac_prev=exec_prefix ;; 127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 129 | --exec=* | --exe=* | --ex=*) 130 exec_prefix="$ac_optarg" ;; 131 132 -gas | --gas | --ga | --g) 133 # Obsolete; use --with-gas. 134 with_gas=yes ;; 135 136 -help | --help | --hel | --he) 137 # Omit some internal or obsolete options to make the list less imposing. 138 # This message is too long to be a string in the A/UX 3.1 sh. 139 cat << EOF 140Usage: configure [options] [host] 141Options: [defaults in brackets after descriptions] 142Configuration: 143 --cache-file=FILE cache test results in FILE 144 --help print this message 145 --no-create do not create output files 146 --quiet, --silent do not print \`checking...' messages 147 --site-file=FILE use FILE as the site file 148 --version print the version of autoconf that created configure 149Directory and file names: 150 --prefix=PREFIX install architecture-independent files in PREFIX 151 [$ac_default_prefix] 152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 153 [same as prefix] 154 --bindir=DIR user executables in DIR [EPREFIX/bin] 155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 157 --datadir=DIR read-only architecture-independent data in DIR 158 [PREFIX/share] 159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 160 --sharedstatedir=DIR modifiable architecture-independent data in DIR 161 [PREFIX/com] 162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 163 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 164 --includedir=DIR C header files in DIR [PREFIX/include] 165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 166 --infodir=DIR info documentation in DIR [PREFIX/info] 167 --mandir=DIR man documentation in DIR [PREFIX/man] 168 --srcdir=DIR find the sources in DIR [configure dir or ..] 169 --program-prefix=PREFIX prepend PREFIX to installed program names 170 --program-suffix=SUFFIX append SUFFIX to installed program names 171 --program-transform-name=PROGRAM 172 run sed PROGRAM on installed program names 173EOF 174 cat << EOF 175Host type: 176 --build=BUILD configure for building on BUILD [BUILD=HOST] 177 --host=HOST configure for HOST [guessed] 178 --target=TARGET configure for TARGET [TARGET=HOST] 179Features and packages: 180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 184 --x-includes=DIR X include files are in DIR 185 --x-libraries=DIR X library files are in DIR 186EOF 187 if test -n "$ac_help"; then 188 echo "--enable and --with options recognized:$ac_help" 189 fi 190 exit 0 ;; 191 192 -host | --host | --hos | --ho) 193 ac_prev=host ;; 194 -host=* | --host=* | --hos=* | --ho=*) 195 host="$ac_optarg" ;; 196 197 -includedir | --includedir | --includedi | --included | --include \ 198 | --includ | --inclu | --incl | --inc) 199 ac_prev=includedir ;; 200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 201 | --includ=* | --inclu=* | --incl=* | --inc=*) 202 includedir="$ac_optarg" ;; 203 204 -infodir | --infodir | --infodi | --infod | --info | --inf) 205 ac_prev=infodir ;; 206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 207 infodir="$ac_optarg" ;; 208 209 -libdir | --libdir | --libdi | --libd) 210 ac_prev=libdir ;; 211 -libdir=* | --libdir=* | --libdi=* | --libd=*) 212 libdir="$ac_optarg" ;; 213 214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 215 | --libexe | --libex | --libe) 216 ac_prev=libexecdir ;; 217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 218 | --libexe=* | --libex=* | --libe=*) 219 libexecdir="$ac_optarg" ;; 220 221 -localstatedir | --localstatedir | --localstatedi | --localstated \ 222 | --localstate | --localstat | --localsta | --localst \ 223 | --locals | --local | --loca | --loc | --lo) 224 ac_prev=localstatedir ;; 225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 228 localstatedir="$ac_optarg" ;; 229 230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 231 ac_prev=mandir ;; 232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 233 mandir="$ac_optarg" ;; 234 235 -nfp | --nfp | --nf) 236 # Obsolete; use --without-fp. 237 with_fp=no ;; 238 239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 240 | --no-cr | --no-c) 241 no_create=yes ;; 242 243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 245 no_recursion=yes ;; 246 247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 249 | --oldin | --oldi | --old | --ol | --o) 250 ac_prev=oldincludedir ;; 251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 254 oldincludedir="$ac_optarg" ;; 255 256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 257 ac_prev=prefix ;; 258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 259 prefix="$ac_optarg" ;; 260 261 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 262 | --program-pre | --program-pr | --program-p) 263 ac_prev=program_prefix ;; 264 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 266 program_prefix="$ac_optarg" ;; 267 268 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 269 | --program-suf | --program-su | --program-s) 270 ac_prev=program_suffix ;; 271 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 273 program_suffix="$ac_optarg" ;; 274 275 -program-transform-name | --program-transform-name \ 276 | --program-transform-nam | --program-transform-na \ 277 | --program-transform-n | --program-transform- \ 278 | --program-transform | --program-transfor \ 279 | --program-transfo | --program-transf \ 280 | --program-trans | --program-tran \ 281 | --progr-tra | --program-tr | --program-t) 282 ac_prev=program_transform_name ;; 283 -program-transform-name=* | --program-transform-name=* \ 284 | --program-transform-nam=* | --program-transform-na=* \ 285 | --program-transform-n=* | --program-transform-=* \ 286 | --program-transform=* | --program-transfor=* \ 287 | --program-transfo=* | --program-transf=* \ 288 | --program-trans=* | --program-tran=* \ 289 | --progr-tra=* | --program-tr=* | --program-t=*) 290 program_transform_name="$ac_optarg" ;; 291 292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 293 | -silent | --silent | --silen | --sile | --sil) 294 silent=yes ;; 295 296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 297 ac_prev=sbindir ;; 298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 299 | --sbi=* | --sb=*) 300 sbindir="$ac_optarg" ;; 301 302 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 304 | --sharedst | --shareds | --shared | --share | --shar \ 305 | --sha | --sh) 306 ac_prev=sharedstatedir ;; 307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 310 | --sha=* | --sh=*) 311 sharedstatedir="$ac_optarg" ;; 312 313 -site | --site | --sit) 314 ac_prev=site ;; 315 -site=* | --site=* | --sit=*) 316 site="$ac_optarg" ;; 317 318 -site-file | --site-file | --site-fil | --site-fi | --site-f) 319 ac_prev=sitefile ;; 320 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) 321 sitefile="$ac_optarg" ;; 322 323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 324 ac_prev=srcdir ;; 325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 326 srcdir="$ac_optarg" ;; 327 328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 329 | --syscon | --sysco | --sysc | --sys | --sy) 330 ac_prev=sysconfdir ;; 331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 333 sysconfdir="$ac_optarg" ;; 334 335 -target | --target | --targe | --targ | --tar | --ta | --t) 336 ac_prev=target ;; 337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 338 target="$ac_optarg" ;; 339 340 -v | -verbose | --verbose | --verbos | --verbo | --verb) 341 verbose=yes ;; 342 343 -version | --version | --versio | --versi | --vers) 344 echo "configure generated by autoconf version 2.13" 345 exit 0 ;; 346 347 -with-* | --with-*) 348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 349 # Reject names that are not valid shell variable names. 350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 352 fi 353 ac_package=`echo $ac_package| sed 's/-/_/g'` 354 case "$ac_option" in 355 *=*) ;; 356 *) ac_optarg=yes ;; 357 esac 358 eval "with_${ac_package}='$ac_optarg'" ;; 359 360 -without-* | --without-*) 361 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 362 # Reject names that are not valid shell variable names. 363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 365 fi 366 ac_package=`echo $ac_package| sed 's/-/_/g'` 367 eval "with_${ac_package}=no" ;; 368 369 --x) 370 # Obsolete; use --with-x. 371 with_x=yes ;; 372 373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 374 | --x-incl | --x-inc | --x-in | --x-i) 375 ac_prev=x_includes ;; 376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 378 x_includes="$ac_optarg" ;; 379 380 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 382 ac_prev=x_libraries ;; 383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 385 x_libraries="$ac_optarg" ;; 386 387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 388 ;; 389 390 *) 391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 392 echo "configure: warning: $ac_option: invalid host type" 1>&2 393 fi 394 if test "x$nonopt" != xNONE; then 395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 396 fi 397 nonopt="$ac_option" 398 ;; 399 400 esac 401done 402 403if test -n "$ac_prev"; then 404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 405fi 406 407trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 408 409# File descriptor usage: 410# 0 standard input 411# 1 file creation 412# 2 errors and warnings 413# 3 some systems may open it to /dev/tty 414# 4 used on the Kubota Titan 415# 6 checking for... messages and results 416# 5 compiler messages saved in config.log 417if test "$silent" = yes; then 418 exec 6>/dev/null 419else 420 exec 6>&1 421fi 422exec 5>./config.log 423 424echo "\ 425This file contains any messages produced by compilers while 426running configure, to aid debugging if configure makes a mistake. 427" 1>&5 428 429# Strip out --no-create and --no-recursion so they do not pile up. 430# Also quote any args containing shell metacharacters. 431ac_configure_args= 432for ac_arg 433do 434 case "$ac_arg" in 435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 436 | --no-cr | --no-c) ;; 437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 440 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 441 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 442 esac 443done 444 445# NLS nuisances. 446# Only set these to C if already set. These must not be set unconditionally 447# because not all systems understand e.g. LANG=C (notably SCO). 448# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 449# Non-C LC_CTYPE values break the ctype check. 450if test "${LANG+set}" = set; then LANG=C; export LANG; fi 451if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 452if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 453if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 454 455# confdefs.h avoids OS command line length limits that DEFS can exceed. 456rm -rf conftest* confdefs.h 457# AIX cpp loses on an empty file, so make sure it contains at least a newline. 458echo > confdefs.h 459 460# A filename unique to this package, relative to the directory that 461# configure is in, which we can look for to find out if srcdir is correct. 462ac_unique_file=gone.c 463 464# Find the source files, if location was not specified. 465if test -z "$srcdir"; then 466 ac_srcdir_defaulted=yes 467 # Try the directory containing this script, then its parent. 468 ac_prog=$0 469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 471 srcdir=$ac_confdir 472 if test ! -r $srcdir/$ac_unique_file; then 473 srcdir=.. 474 fi 475else 476 ac_srcdir_defaulted=no 477fi 478if test ! -r $srcdir/$ac_unique_file; then 479 if test "$ac_srcdir_defaulted" = yes; then 480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 481 else 482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 483 fi 484fi 485srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 486 487# Prefer explicitly selected file to automatically selected ones. 488if test -z "$sitefile"; then 489 if test -z "$CONFIG_SITE"; then 490 if test "x$prefix" != xNONE; then 491 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 492 else 493 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 494 fi 495 fi 496else 497 CONFIG_SITE="$sitefile" 498fi 499for ac_site_file in $CONFIG_SITE; do 500 if test -r "$ac_site_file"; then 501 echo "loading site script $ac_site_file" 502 . "$ac_site_file" 503 fi 504done 505 506if test -r "$cache_file"; then 507 echo "loading cache $cache_file" 508 . $cache_file 509else 510 echo "creating cache $cache_file" 511 > $cache_file 512fi 513 514ac_ext=c 515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 516ac_cpp='$CPP $CPPFLAGS' 517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 519cross_compiling=$ac_cv_prog_cc_cross 520 521ac_exeext= 522ac_objext=o 523if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 526 ac_n= ac_c=' 527' ac_t=' ' 528 else 529 ac_n=-n ac_c= ac_t= 530 fi 531else 532 ac_n= ac_c='\c' ac_t= 533fi 534 535 536 537 538if test "$program_transform_name" = s,x,x,; then 539 program_transform_name= 540else 541 # Double any \ or $. echo might interpret backslashes. 542 cat <<\EOF_SED > conftestsed 543s,\\,\\\\,g; s,\$,$$,g 544EOF_SED 545 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 546 rm -f conftestsed 547fi 548test "$program_prefix" != NONE && 549 program_transform_name="s,^,${program_prefix},; $program_transform_name" 550# Use a double $ so make ignores it. 551test "$program_suffix" != NONE && 552 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 553 554# sed with no file args requires a program. 555test "$program_transform_name" = "" && program_transform_name="s,x,x," 556 557 558PRODUCT=gone 559VERSION=1.3.6 560cat >> confdefs.h <<EOF 561#define PRODUCT "$PRODUCT" 562EOF 563 564cat >> confdefs.h <<EOF 565#define VERSION "$VERSION" 566EOF 567 568 569 570 571# Extract the first word of "gcc", so it can be a program name with args. 572set dummy gcc; ac_word=$2 573echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 574echo "configure:574: checking for $ac_word" >&5 575if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 576 echo $ac_n "(cached) $ac_c" 1>&6 577else 578 if test -n "$CC"; then 579 ac_cv_prog_CC="$CC" # Let the user override the test. 580else 581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 582 ac_dummy="$PATH" 583 for ac_dir in $ac_dummy; do 584 test -z "$ac_dir" && ac_dir=. 585 if test -f $ac_dir/$ac_word; then 586 ac_cv_prog_CC="gcc" 587 break 588 fi 589 done 590 IFS="$ac_save_ifs" 591fi 592fi 593CC="$ac_cv_prog_CC" 594if test -n "$CC"; then 595 echo "$ac_t""$CC" 1>&6 596else 597 echo "$ac_t""no" 1>&6 598fi 599 600if test -z "$CC"; then 601 # Extract the first word of "cc", so it can be a program name with args. 602set dummy cc; ac_word=$2 603echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 604echo "configure:604: checking for $ac_word" >&5 605if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 606 echo $ac_n "(cached) $ac_c" 1>&6 607else 608 if test -n "$CC"; then 609 ac_cv_prog_CC="$CC" # Let the user override the test. 610else 611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 612 ac_prog_rejected=no 613 ac_dummy="$PATH" 614 for ac_dir in $ac_dummy; do 615 test -z "$ac_dir" && ac_dir=. 616 if test -f $ac_dir/$ac_word; then 617 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 618 ac_prog_rejected=yes 619 continue 620 fi 621 ac_cv_prog_CC="cc" 622 break 623 fi 624 done 625 IFS="$ac_save_ifs" 626if test $ac_prog_rejected = yes; then 627 # We found a bogon in the path, so make sure we never use it. 628 set dummy $ac_cv_prog_CC 629 shift 630 if test $# -gt 0; then 631 # We chose a different compiler from the bogus one. 632 # However, it has the same basename, so the bogon will be chosen 633 # first if we set CC to just the basename; use the full file name. 634 shift 635 set dummy "$ac_dir/$ac_word" "$@" 636 shift 637 ac_cv_prog_CC="$@" 638 fi 639fi 640fi 641fi 642CC="$ac_cv_prog_CC" 643if test -n "$CC"; then 644 echo "$ac_t""$CC" 1>&6 645else 646 echo "$ac_t""no" 1>&6 647fi 648 649 if test -z "$CC"; then 650 case "`uname -s`" in 651 *win32* | *WIN32*) 652 # Extract the first word of "cl", so it can be a program name with args. 653set dummy cl; ac_word=$2 654echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 655echo "configure:655: checking for $ac_word" >&5 656if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 657 echo $ac_n "(cached) $ac_c" 1>&6 658else 659 if test -n "$CC"; then 660 ac_cv_prog_CC="$CC" # Let the user override the test. 661else 662 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 663 ac_dummy="$PATH" 664 for ac_dir in $ac_dummy; do 665 test -z "$ac_dir" && ac_dir=. 666 if test -f $ac_dir/$ac_word; then 667 ac_cv_prog_CC="cl" 668 break 669 fi 670 done 671 IFS="$ac_save_ifs" 672fi 673fi 674CC="$ac_cv_prog_CC" 675if test -n "$CC"; then 676 echo "$ac_t""$CC" 1>&6 677else 678 echo "$ac_t""no" 1>&6 679fi 680 ;; 681 esac 682 fi 683 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 684fi 685 686echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 687echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 688 689ac_ext=c 690# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 691ac_cpp='$CPP $CPPFLAGS' 692ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 693ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 694cross_compiling=$ac_cv_prog_cc_cross 695 696cat > conftest.$ac_ext << EOF 697 698#line 698 "configure" 699#include "confdefs.h" 700 701main(){return(0);} 702EOF 703if { (eval echo configure:703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 704 ac_cv_prog_cc_works=yes 705 # If we can't run a trivial program, we are probably using a cross compiler. 706 if (./conftest; exit) 2>/dev/null; then 707 ac_cv_prog_cc_cross=no 708 else 709 ac_cv_prog_cc_cross=yes 710 fi 711else 712 echo "configure: failed program was:" >&5 713 cat conftest.$ac_ext >&5 714 ac_cv_prog_cc_works=no 715fi 716rm -fr conftest* 717ac_ext=c 718# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 719ac_cpp='$CPP $CPPFLAGS' 720ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 721ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 722cross_compiling=$ac_cv_prog_cc_cross 723 724echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 725if test $ac_cv_prog_cc_works = no; then 726 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 727fi 728echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 729echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 730echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 731cross_compiling=$ac_cv_prog_cc_cross 732 733echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 734echo "configure:734: checking whether we are using GNU C" >&5 735if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 736 echo $ac_n "(cached) $ac_c" 1>&6 737else 738 cat > conftest.c <<EOF 739#ifdef __GNUC__ 740 yes; 741#endif 742EOF 743if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 744 ac_cv_prog_gcc=yes 745else 746 ac_cv_prog_gcc=no 747fi 748fi 749 750echo "$ac_t""$ac_cv_prog_gcc" 1>&6 751 752if test $ac_cv_prog_gcc = yes; then 753 GCC=yes 754else 755 GCC= 756fi 757 758ac_test_CFLAGS="${CFLAGS+set}" 759ac_save_CFLAGS="$CFLAGS" 760CFLAGS= 761echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 762echo "configure:762: checking whether ${CC-cc} accepts -g" >&5 763if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 764 echo $ac_n "(cached) $ac_c" 1>&6 765else 766 echo 'void f(){}' > conftest.c 767if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 768 ac_cv_prog_cc_g=yes 769else 770 ac_cv_prog_cc_g=no 771fi 772rm -f conftest* 773 774fi 775 776echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 777if test "$ac_test_CFLAGS" = set; then 778 CFLAGS="$ac_save_CFLAGS" 779elif test $ac_cv_prog_cc_g = yes; then 780 if test "$GCC" = yes; then 781 CFLAGS="-g -O2" 782 else 783 CFLAGS="-g" 784 fi 785else 786 if test "$GCC" = yes; then 787 CFLAGS="-O2" 788 else 789 CFLAGS= 790 fi 791fi 792 793echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 794echo "configure:794: checking how to run the C preprocessor" >&5 795# On Suns, sometimes $CPP names a directory. 796if test -n "$CPP" && test -d "$CPP"; then 797 CPP= 798fi 799if test -z "$CPP"; then 800if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 801 echo $ac_n "(cached) $ac_c" 1>&6 802else 803 # This must be in double quotes, not single quotes, because CPP may get 804 # substituted into the Makefile and "${CC-cc}" will confuse make. 805 CPP="${CC-cc} -E" 806 # On the NeXT, cc -E runs the code through the compiler's parser, 807 # not just through cpp. 808 cat > conftest.$ac_ext <<EOF 809#line 809 "configure" 810#include "confdefs.h" 811#include <assert.h> 812Syntax Error 813EOF 814ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 815{ (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 816ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 817if test -z "$ac_err"; then 818 : 819else 820 echo "$ac_err" >&5 821 echo "configure: failed program was:" >&5 822 cat conftest.$ac_ext >&5 823 rm -rf conftest* 824 CPP="${CC-cc} -E -traditional-cpp" 825 cat > conftest.$ac_ext <<EOF 826#line 826 "configure" 827#include "confdefs.h" 828#include <assert.h> 829Syntax Error 830EOF 831ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 832{ (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 833ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 834if test -z "$ac_err"; then 835 : 836else 837 echo "$ac_err" >&5 838 echo "configure: failed program was:" >&5 839 cat conftest.$ac_ext >&5 840 rm -rf conftest* 841 CPP="${CC-cc} -nologo -E" 842 cat > conftest.$ac_ext <<EOF 843#line 843 "configure" 844#include "confdefs.h" 845#include <assert.h> 846Syntax Error 847EOF 848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 849{ (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 850ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 851if test -z "$ac_err"; then 852 : 853else 854 echo "$ac_err" >&5 855 echo "configure: failed program was:" >&5 856 cat conftest.$ac_ext >&5 857 rm -rf conftest* 858 CPP=/lib/cpp 859fi 860rm -f conftest* 861fi 862rm -f conftest* 863fi 864rm -f conftest* 865 ac_cv_prog_CPP="$CPP" 866fi 867 CPP="$ac_cv_prog_CPP" 868else 869 ac_cv_prog_CPP="$CPP" 870fi 871echo "$ac_t""$CPP" 1>&6 872 873if test $ac_cv_prog_gcc = yes; then 874 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 875echo "configure:875: checking whether ${CC-cc} needs -traditional" >&5 876if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 877 echo $ac_n "(cached) $ac_c" 1>&6 878else 879 ac_pattern="Autoconf.*'x'" 880 cat > conftest.$ac_ext <<EOF 881#line 881 "configure" 882#include "confdefs.h" 883#include <sgtty.h> 884Autoconf TIOCGETP 885EOF 886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 887 egrep "$ac_pattern" >/dev/null 2>&1; then 888 rm -rf conftest* 889 ac_cv_prog_gcc_traditional=yes 890else 891 rm -rf conftest* 892 ac_cv_prog_gcc_traditional=no 893fi 894rm -f conftest* 895 896 897 if test $ac_cv_prog_gcc_traditional = no; then 898 cat > conftest.$ac_ext <<EOF 899#line 899 "configure" 900#include "confdefs.h" 901#include <termio.h> 902Autoconf TCGETA 903EOF 904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 905 egrep "$ac_pattern" >/dev/null 2>&1; then 906 rm -rf conftest* 907 ac_cv_prog_gcc_traditional=yes 908fi 909rm -f conftest* 910 911 fi 912fi 913 914echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 915 if test $ac_cv_prog_gcc_traditional = yes; then 916 CC="$CC -traditional" 917 fi 918fi 919 920ac_aux_dir= 921for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 922 if test -f $ac_dir/install-sh; then 923 ac_aux_dir=$ac_dir 924 ac_install_sh="$ac_aux_dir/install-sh -c" 925 break 926 elif test -f $ac_dir/install.sh; then 927 ac_aux_dir=$ac_dir 928 ac_install_sh="$ac_aux_dir/install.sh -c" 929 break 930 fi 931done 932if test -z "$ac_aux_dir"; then 933 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 934fi 935ac_config_guess=$ac_aux_dir/config.guess 936ac_config_sub=$ac_aux_dir/config.sub 937ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 938 939# Find a good install program. We prefer a C program (faster), 940# so one script is as good as another. But avoid the broken or 941# incompatible versions: 942# SysV /etc/install, /usr/sbin/install 943# SunOS /usr/etc/install 944# IRIX /sbin/install 945# AIX /bin/install 946# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 947# AFS /usr/afsws/bin/install, which mishandles nonexistent args 948# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 949# ./install, which can be erroneously created by make from ./install.sh. 950echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 951echo "configure:951: checking for a BSD compatible install" >&5 952if test -z "$INSTALL"; then 953if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 954 echo $ac_n "(cached) $ac_c" 1>&6 955else 956 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 957 for ac_dir in $PATH; do 958 # Account for people who put trailing slashes in PATH elements. 959 case "$ac_dir/" in 960 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 961 *) 962 # OSF1 and SCO ODT 3.0 have their own names for install. 963 # Don't use installbsd from OSF since it installs stuff as root 964 # by default. 965 for ac_prog in ginstall scoinst install; do 966 if test -f $ac_dir/$ac_prog; then 967 if test $ac_prog = install && 968 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 969 # AIX install. It has an incompatible calling convention. 970 : 971 else 972 ac_cv_path_install="$ac_dir/$ac_prog -c" 973 break 2 974 fi 975 fi 976 done 977 ;; 978 esac 979 done 980 IFS="$ac_save_IFS" 981 982fi 983 if test "${ac_cv_path_install+set}" = set; then 984 INSTALL="$ac_cv_path_install" 985 else 986 # As a last resort, use the slow shell script. We don't cache a 987 # path for INSTALL within a source directory, because that will 988 # break other packages using the cache if that directory is 989 # removed, or if the path is relative. 990 INSTALL="$ac_install_sh" 991 fi 992fi 993echo "$ac_t""$INSTALL" 1>&6 994 995# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 996# It thinks the first close brace ends the variable substitution. 997test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 998 999test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1000 1001test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1002 1003 1004for ac_hdr in crypt.h sys/stat.h sys/param.h sys/stat.h errno.h \ 1005termios.h sys/time.h time.h sys/termio.h string.h sys/ioctl.h sys/consio.h 1006do 1007ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1008echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1009echo "configure:1009: checking for $ac_hdr" >&5 1010if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1011 echo $ac_n "(cached) $ac_c" 1>&6 1012else 1013 cat > conftest.$ac_ext <<EOF 1014#line 1014 "configure" 1015#include "confdefs.h" 1016#include <$ac_hdr> 1017EOF 1018ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1019{ (eval echo configure:1019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1020ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1021if test -z "$ac_err"; then 1022 rm -rf conftest* 1023 eval "ac_cv_header_$ac_safe=yes" 1024else 1025 echo "$ac_err" >&5 1026 echo "configure: failed program was:" >&5 1027 cat conftest.$ac_ext >&5 1028 rm -rf conftest* 1029 eval "ac_cv_header_$ac_safe=no" 1030fi 1031rm -f conftest* 1032fi 1033if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1034 echo "$ac_t""yes" 1>&6 1035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1036 cat >> confdefs.h <<EOF 1037#define $ac_tr_hdr 1 1038EOF 1039 1040else 1041 echo "$ac_t""no" 1>&6 1042fi 1043done 1044 1045LIBS= 1046echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 1047echo "configure:1047: checking for crypt in -lcrypt" >&5 1048ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 1049if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1050 echo $ac_n "(cached) $ac_c" 1>&6 1051else 1052 ac_save_LIBS="$LIBS" 1053LIBS="-lcrypt $LIBS" 1054cat > conftest.$ac_ext <<EOF 1055#line 1055 "configure" 1056#include "confdefs.h" 1057/* Override any gcc2 internal prototype to avoid an error. */ 1058/* We use char because int might match the return type of a gcc2 1059 builtin and then its argument prototype would still apply. */ 1060char crypt(); 1061 1062int main() { 1063crypt() 1064; return 0; } 1065EOF 1066if { (eval echo configure:1066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1067 rm -rf conftest* 1068 eval "ac_cv_lib_$ac_lib_var=yes" 1069else 1070 echo "configure: failed program was:" >&5 1071 cat conftest.$ac_ext >&5 1072 rm -rf conftest* 1073 eval "ac_cv_lib_$ac_lib_var=no" 1074fi 1075rm -f conftest* 1076LIBS="$ac_save_LIBS" 1077 1078fi 1079if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1080 echo "$ac_t""yes" 1>&6 1081 LIBS="-lcrypt"; break 1082else 1083 echo "$ac_t""no" 1>&6 1084fi 1085 1086 1087if test "$with_setuid" = ""; then 1088 if test -x /usr/ucb/id ; then 1089 UID=`/usr/xpg4/bin/id -u -r` 1090 else 1091 UID=`id -u -r` 1092 fi 1093 if test "$UID" = 0; then 1094 echo " " 1095 echo "Gone gives you the option of installing itself setuid to root." 1096 echo "If you choose to install gone in this manner, you will be able" 1097 echo "to use your login password as your gone password by giving gone" 1098 echo -n "the -p option. Should I install gone setuid (enter 'yes' for setuid)?" 1099 1100 read with_setuid 1101 fi 1102fi 1103 1104echo $ac_n "checking for OS type""... $ac_c" 1>&6 1105echo "configure:1105: checking for OS type" >&5 1106OSTYPE=`uname -s` 1107cat >> confdefs.h <<EOF 1108#define OSTYPE "$OSTYPE" 1109EOF 1110 1111 1112if test "$OSTYPE" = "OSF1" && test "$SETUID_Q" = "yes"; then 1113 cat >> confdefs.h <<\EOF 1114#define OSF1 1 1115EOF 1116 1117 1118 echo "$ac_t""DEC UNIX" 1>&6 1119 SEC=`rcmgr get SECURITY` 1120 1121 echo $ac_n "checking for DU security type""... $ac_c" 1>&6 1122echo "configure:1122: checking for DU security type" >&5 1123 if test "$SEC" = "ENHANCED"; then 1124 echo "$ac_t""system using Enhanced Security" 1>&6 1125 echo $ac_n "checking for getespwent in -lsecurity""... $ac_c" 1>&6 1126echo "configure:1126: checking for getespwent in -lsecurity" >&5 1127ac_lib_var=`echo security'_'getespwent | sed 'y%./+-%__p_%'` 1128if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1129 echo $ac_n "(cached) $ac_c" 1>&6 1130else 1131 ac_save_LIBS="$LIBS" 1132LIBS="-lsecurity $LIBS" 1133cat > conftest.$ac_ext <<EOF 1134#line 1134 "configure" 1135#include "confdefs.h" 1136/* Override any gcc2 internal prototype to avoid an error. */ 1137/* We use char because int might match the return type of a gcc2 1138 builtin and then its argument prototype would still apply. */ 1139char getespwent(); 1140 1141int main() { 1142getespwent() 1143; return 0; } 1144EOF 1145if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1146 rm -rf conftest* 1147 eval "ac_cv_lib_$ac_lib_var=yes" 1148else 1149 echo "configure: failed program was:" >&5 1150 cat conftest.$ac_ext >&5 1151 rm -rf conftest* 1152 eval "ac_cv_lib_$ac_lib_var=no" 1153fi 1154rm -f conftest* 1155LIBS="$ac_save_LIBS" 1156 1157fi 1158if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1159 echo "$ac_t""yes" 1>&6 1160 LIBS="-lsecurity $LIBS"; break 1161else 1162 echo "$ac_t""no" 1>&6 1163fi 1164 1165 echo $ac_n "checking for set_auth_parameters in -ldb""... $ac_c" 1>&6 1166echo "configure:1166: checking for set_auth_parameters in -ldb" >&5 1167ac_lib_var=`echo db'_'set_auth_parameters | sed 'y%./+-%__p_%'` 1168if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1169 echo $ac_n "(cached) $ac_c" 1>&6 1170else 1171 ac_save_LIBS="$LIBS" 1172LIBS="-ldb $LIBS" 1173cat > conftest.$ac_ext <<EOF 1174#line 1174 "configure" 1175#include "confdefs.h" 1176/* Override any gcc2 internal prototype to avoid an error. */ 1177/* We use char because int might match the return type of a gcc2 1178 builtin and then its argument prototype would still apply. */ 1179char set_auth_parameters(); 1180 1181int main() { 1182set_auth_parameters() 1183; return 0; } 1184EOF 1185if { (eval echo configure:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1186 rm -rf conftest* 1187 eval "ac_cv_lib_$ac_lib_var=yes" 1188else 1189 echo "configure: failed program was:" >&5 1190 cat conftest.$ac_ext >&5 1191 rm -rf conftest* 1192 eval "ac_cv_lib_$ac_lib_var=no" 1193fi 1194rm -f conftest* 1195LIBS="$ac_save_LIBS" 1196 1197fi 1198if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1199 echo "$ac_t""yes" 1>&6 1200 LIBS="-ldb $LIBS"; break 1201else 1202 echo "$ac_t""no" 1>&6 1203fi 1204 1205 1206 cat >> confdefs.h <<\EOF 1207#define EN_SEC 1 1208EOF 1209 1210 1211 else 1212 echo "$ac_t""system using Base Security" 1>&6 1213 fi 1214elif test "$OSTYPE" = "ULTRIX"; then 1215 cat >> confdefs.h <<\EOF 1216#define ULTRIX 1 1217EOF 1218 1219 1220 echo "$ac_t""ULTRIX" 1>&6 1221elif test "$OSTYPE" = "IRIX"; then 1222 cat >> confdefs.h <<\EOF 1223#define IRIX 1 1224EOF 1225 1226 1227 echo "$ac_t""IRIX" 1>&6 1228else 1229 echo "$ac_t"""$OSTYPE"" 1>&6 1230fi 1231 1232if test "$with_setuid" = "yes"; then 1233 for ac_hdr in sys/types.h pwd.h 1234do 1235ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1236echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1237echo "configure:1237: checking for $ac_hdr" >&5 1238if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1239 echo $ac_n "(cached) $ac_c" 1>&6 1240else 1241 cat > conftest.$ac_ext <<EOF 1242#line 1242 "configure" 1243#include "confdefs.h" 1244#include <$ac_hdr> 1245EOF 1246ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1247{ (eval echo configure:1247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1248ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1249if test -z "$ac_err"; then 1250 rm -rf conftest* 1251 eval "ac_cv_header_$ac_safe=yes" 1252else 1253 echo "$ac_err" >&5 1254 echo "configure: failed program was:" >&5 1255 cat conftest.$ac_ext >&5 1256 rm -rf conftest* 1257 eval "ac_cv_header_$ac_safe=no" 1258fi 1259rm -f conftest* 1260fi 1261if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1262 echo "$ac_t""yes" 1>&6 1263 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 1264 cat >> confdefs.h <<EOF 1265#define $ac_tr_hdr 1 1266EOF 1267 1268else 1269 echo "$ac_t""no" 1>&6 1270fi 1271done 1272 1273 cat >> confdefs.h <<\EOF 1274#define SETUID 1 1275EOF 1276 1277 1278 INSTALL_PROGRAM="$INSTALL -o root -m 4755" 1279 1280fi 1281 1282trap '' 1 2 15 1283cat > confcache <<\EOF 1284# This file is a shell script that caches the results of configure 1285# tests run on this system so they can be shared between configure 1286# scripts and configure runs. It is not useful on other systems. 1287# If it contains results you don't want to keep, you may remove or edit it. 1288# 1289# By default, configure uses ./config.cache as the cache file, 1290# creating it if it does not exist already. You can give configure 1291# the --cache-file=FILE option to use a different cache file; that is 1292# what configure does when it calls configure scripts in 1293# subdirectories, so they share the cache. 1294# Giving --cache-file=/dev/null disables caching, for debugging configure. 1295# config.status only pays attention to the cache file if you give it the 1296# --recheck option to rerun configure. 1297# 1298EOF 1299# The following way of writing the cache mishandles newlines in values, 1300# but we know of no workaround that is simple, portable, and efficient. 1301# So, don't put newlines in cache variables' values. 1302# Ultrix sh set writes to stderr and can't be redirected directly, 1303# and sets the high bit in the cache file unless we assign to the vars. 1304(set) 2>&1 | 1305 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1306 *ac_space=\ *) 1307 # `set' does not quote correctly, so add quotes (double-quote substitution 1308 # turns \\\\ into \\, and sed turns \\ into \). 1309 sed -n \ 1310 -e "s/'/'\\\\''/g" \ 1311 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1312 ;; 1313 *) 1314 # `set' quotes correctly as required by POSIX, so do not add quotes. 1315 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1316 ;; 1317 esac >> confcache 1318if cmp -s $cache_file confcache; then 1319 : 1320else 1321 if test -w $cache_file; then 1322 echo "updating cache $cache_file" 1323 cat confcache > $cache_file 1324 else 1325 echo "not updating unwritable cache $cache_file" 1326 fi 1327fi 1328rm -f confcache 1329 1330trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 1331 1332test "x$prefix" = xNONE && prefix=$ac_default_prefix 1333# Let make expand exec_prefix. 1334test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 1335 1336# Any assignment to VPATH causes Sun make to only execute 1337# the first set of double-colon rules, so remove it if not needed. 1338# If there is a colon in the path, we need to keep it. 1339if test "x$srcdir" = x.; then 1340 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 1341fi 1342 1343trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 1344 1345DEFS=-DHAVE_CONFIG_H 1346 1347# Without the "./", some shells look in PATH for config.status. 1348: ${CONFIG_STATUS=./config.status} 1349 1350echo creating $CONFIG_STATUS 1351rm -f $CONFIG_STATUS 1352cat > $CONFIG_STATUS <<EOF 1353#! /bin/sh 1354# Generated automatically by configure. 1355# Run this file to recreate the current configuration. 1356# This directory was configured as follows, 1357# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 1358# 1359# $0 $ac_configure_args 1360# 1361# Compiler output produced by configure, useful for debugging 1362# configure, is in ./config.log if it exists. 1363 1364ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 1365for ac_option 1366do 1367 case "\$ac_option" in 1368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 1369 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 1370 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 1371 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 1372 echo "$CONFIG_STATUS generated by autoconf version 2.13" 1373 exit 0 ;; 1374 -help | --help | --hel | --he | --h) 1375 echo "\$ac_cs_usage"; exit 0 ;; 1376 *) echo "\$ac_cs_usage"; exit 1 ;; 1377 esac 1378done 1379 1380ac_given_srcdir=$srcdir 1381ac_given_INSTALL="$INSTALL" 1382 1383trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 1384EOF 1385cat >> $CONFIG_STATUS <<EOF 1386 1387# Protect against being on the right side of a sed subst in config.status. 1388sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 1389 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 1390$ac_vpsub 1391$extrasub 1392s%@SHELL@%$SHELL%g 1393s%@CFLAGS@%$CFLAGS%g 1394s%@CPPFLAGS@%$CPPFLAGS%g 1395s%@CXXFLAGS@%$CXXFLAGS%g 1396s%@FFLAGS@%$FFLAGS%g 1397s%@DEFS@%$DEFS%g 1398s%@LDFLAGS@%$LDFLAGS%g 1399s%@LIBS@%$LIBS%g 1400s%@exec_prefix@%$exec_prefix%g 1401s%@prefix@%$prefix%g 1402s%@program_transform_name@%$program_transform_name%g 1403s%@bindir@%$bindir%g 1404s%@sbindir@%$sbindir%g 1405s%@libexecdir@%$libexecdir%g 1406s%@datadir@%$datadir%g 1407s%@sysconfdir@%$sysconfdir%g 1408s%@sharedstatedir@%$sharedstatedir%g 1409s%@localstatedir@%$localstatedir%g 1410s%@libdir@%$libdir%g 1411s%@includedir@%$includedir%g 1412s%@oldincludedir@%$oldincludedir%g 1413s%@infodir@%$infodir%g 1414s%@mandir@%$mandir%g 1415s%@PRODUCT@%$PRODUCT%g 1416s%@VERSION@%$VERSION%g 1417s%@CC@%$CC%g 1418s%@CPP@%$CPP%g 1419s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 1420s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 1421s%@INSTALL_DATA@%$INSTALL_DATA%g 1422s%@OSTYPE@%$OSTYPE%g 1423s%@OSF1@%$OSF1%g 1424s%@SEC@%$SEC%g 1425s%@EN_SEC@%$EN_SEC%g 1426s%@ULTRIX@%$ULTRIX%g 1427s%@IRIX@%$IRIX%g 1428s%@SETUID@%$SETUID%g 1429 1430CEOF 1431EOF 1432 1433cat >> $CONFIG_STATUS <<\EOF 1434 1435# Split the substitutions into bite-sized pieces for seds with 1436# small command number limits, like on Digital OSF/1 and HP-UX. 1437ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 1438ac_file=1 # Number of current file. 1439ac_beg=1 # First line for current file. 1440ac_end=$ac_max_sed_cmds # Line after last line for current file. 1441ac_more_lines=: 1442ac_sed_cmds="" 1443while $ac_more_lines; do 1444 if test $ac_beg -gt 1; then 1445 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 1446 else 1447 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 1448 fi 1449 if test ! -s conftest.s$ac_file; then 1450 ac_more_lines=false 1451 rm -f conftest.s$ac_file 1452 else 1453 if test -z "$ac_sed_cmds"; then 1454 ac_sed_cmds="sed -f conftest.s$ac_file" 1455 else 1456 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 1457 fi 1458 ac_file=`expr $ac_file + 1` 1459 ac_beg=$ac_end 1460 ac_end=`expr $ac_end + $ac_max_sed_cmds` 1461 fi 1462done 1463if test -z "$ac_sed_cmds"; then 1464 ac_sed_cmds=cat 1465fi 1466EOF 1467 1468cat >> $CONFIG_STATUS <<EOF 1469 1470CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 1471EOF 1472cat >> $CONFIG_STATUS <<\EOF 1473for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 1474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1475 case "$ac_file" in 1476 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1477 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1478 *) ac_file_in="${ac_file}.in" ;; 1479 esac 1480 1481 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 1482 1483 # Remove last slash and all that follows it. Not all systems have dirname. 1484 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1485 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1486 # The file is in a subdirectory. 1487 test ! -d "$ac_dir" && mkdir "$ac_dir" 1488 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 1489 # A "../" for each directory in $ac_dir_suffix. 1490 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 1491 else 1492 ac_dir_suffix= ac_dots= 1493 fi 1494 1495 case "$ac_given_srcdir" in 1496 .) srcdir=. 1497 if test -z "$ac_dots"; then top_srcdir=. 1498 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 1499 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 1500 *) # Relative path. 1501 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 1502 top_srcdir="$ac_dots$ac_given_srcdir" ;; 1503 esac 1504 1505 case "$ac_given_INSTALL" in 1506 [/$]*) INSTALL="$ac_given_INSTALL" ;; 1507 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 1508 esac 1509 1510 echo creating "$ac_file" 1511 rm -f "$ac_file" 1512 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 1513 case "$ac_file" in 1514 *Makefile*) ac_comsub="1i\\ 1515# $configure_input" ;; 1516 *) ac_comsub= ;; 1517 esac 1518 1519 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1520 sed -e "$ac_comsub 1521s%@configure_input@%$configure_input%g 1522s%@srcdir@%$srcdir%g 1523s%@top_srcdir@%$top_srcdir%g 1524s%@INSTALL@%$INSTALL%g 1525" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 1526fi; done 1527rm -f conftest.s* 1528 1529# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1530# NAME is the cpp macro being defined and VALUE is the value it is being given. 1531# 1532# ac_d sets the value in "#define NAME VALUE" lines. 1533ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1534ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1535ac_dC='\3' 1536ac_dD='%g' 1537# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1538ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1539ac_uB='\([ ]\)%\1#\2define\3' 1540ac_uC=' ' 1541ac_uD='\4%g' 1542# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1543ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1544ac_eB='$%\1#\2define\3' 1545ac_eC=' ' 1546ac_eD='%g' 1547 1548if test "${CONFIG_HEADERS+set}" != set; then 1549EOF 1550cat >> $CONFIG_STATUS <<EOF 1551 CONFIG_HEADERS="config.h" 1552EOF 1553cat >> $CONFIG_STATUS <<\EOF 1554fi 1555for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1556 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 1557 case "$ac_file" in 1558 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 1559 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1560 *) ac_file_in="${ac_file}.in" ;; 1561 esac 1562 1563 echo creating $ac_file 1564 1565 rm -f conftest.frag conftest.in conftest.out 1566 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 1567 cat $ac_file_inputs > conftest.in 1568 1569EOF 1570 1571# Transform confdefs.h into a sed script conftest.vals that substitutes 1572# the proper values into config.h.in to produce config.h. And first: 1573# Protect against being on the right side of a sed subst in config.status. 1574# Protect against being in an unquoted here document in config.status. 1575rm -f conftest.vals 1576cat > conftest.hdr <<\EOF 1577s/[\\&%]/\\&/g 1578s%[\\$`]%\\&%g 1579s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1580s%ac_d%ac_u%gp 1581s%ac_u%ac_e%gp 1582EOF 1583sed -n -f conftest.hdr confdefs.h > conftest.vals 1584rm -f conftest.hdr 1585 1586# This sed command replaces #undef with comments. This is necessary, for 1587# example, in the case of _POSIX_SOURCE, which is predefined and required 1588# on some systems where configure will not decide to define it. 1589cat >> conftest.vals <<\EOF 1590s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1591EOF 1592 1593# Break up conftest.vals because some shells have a limit on 1594# the size of here documents, and old seds have small limits too. 1595 1596rm -f conftest.tail 1597while : 1598do 1599 ac_lines=`grep -c . conftest.vals` 1600 # grep -c gives empty output for an empty file on some AIX systems. 1601 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1602 # Write a limited-size here document to conftest.frag. 1603 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1604 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1605 echo 'CEOF 1606 sed -f conftest.frag conftest.in > conftest.out 1607 rm -f conftest.in 1608 mv conftest.out conftest.in 1609' >> $CONFIG_STATUS 1610 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 1611 rm -f conftest.vals 1612 mv conftest.tail conftest.vals 1613done 1614rm -f conftest.vals 1615 1616cat >> $CONFIG_STATUS <<\EOF 1617 rm -f conftest.frag conftest.h 1618 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 1619 cat conftest.in >> conftest.h 1620 rm -f conftest.in 1621 if cmp -s $ac_file conftest.h 2>/dev/null; then 1622 echo "$ac_file is unchanged" 1623 rm -f conftest.h 1624 else 1625 # Remove last slash and all that follows it. Not all systems have dirname. 1626 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 1627 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 1628 # The file is in a subdirectory. 1629 test ! -d "$ac_dir" && mkdir "$ac_dir" 1630 fi 1631 rm -f $ac_file 1632 mv conftest.h $ac_file 1633 fi 1634fi; done 1635 1636EOF 1637cat >> $CONFIG_STATUS <<EOF 1638 1639EOF 1640cat >> $CONFIG_STATUS <<\EOF 1641 1642exit 0 1643EOF 1644chmod +x $CONFIG_STATUS 1645rm -fr confdefs* $ac_clean_files 1646test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1647 1648