diff options
Diffstat (limited to 'other/ssharp/configure')
| -rwxr-xr-x | other/ssharp/configure | 9189 |
1 files changed, 9189 insertions, 0 deletions
diff --git a/other/ssharp/configure b/other/ssharp/configure new file mode 100755 index 0000000..24a4ed2 --- /dev/null +++ b/other/ssharp/configure | |||
| @@ -0,0 +1,9189 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | # Guess values for system-dependent variables and create Makefiles. | ||
| 4 | # Generated automatically using autoconf version 2.13 | ||
| 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: | ||
| 11 | ac_help= | ||
| 12 | ac_default_prefix=/usr/local | ||
| 13 | # Any additions from configure.in: | ||
| 14 | ac_help="$ac_help | ||
| 15 | --with-cflags Specify additional flags to pass to compiler" | ||
| 16 | ac_help="$ac_help | ||
| 17 | --with-cppflags Specify additional flags to pass to preprocessor " | ||
| 18 | ac_help="$ac_help | ||
| 19 | --with-ldflags Specify additional flags to pass to linker" | ||
| 20 | ac_help="$ac_help | ||
| 21 | --with-libs Specify additional libraries to link with" | ||
| 22 | ac_help="$ac_help | ||
| 23 | --with-pcre Override built in regex library with pcre" | ||
| 24 | ac_help="$ac_help | ||
| 25 | --with-skey=PATH Enable S/Key support" | ||
| 26 | ac_help="$ac_help | ||
| 27 | --with-tcp-wrappers Enable tcpwrappers support" | ||
| 28 | ac_help="$ac_help | ||
| 29 | --with-pam Enable PAM support " | ||
| 30 | ac_help="$ac_help | ||
| 31 | --with-ssl-dir=PATH Specify path to OpenSSL installation " | ||
| 32 | ac_help="$ac_help | ||
| 33 | --with-kerberos4=PATH Enable Kerberos 4 support" | ||
| 34 | ac_help="$ac_help | ||
| 35 | --with-afs=PATH Enable AFS support" | ||
| 36 | ac_help="$ac_help | ||
| 37 | --with-rsh=PATH Specify path to remote shell program " | ||
| 38 | ac_help="$ac_help | ||
| 39 | --with-xauth=PATH Specify path to xauth program " | ||
| 40 | ac_help="$ac_help | ||
| 41 | --with-random=FILE read entropy from FILE (default=/dev/urandom)" | ||
| 42 | ac_help="$ac_help | ||
| 43 | --with-prngd-port=PORT read entropy from PRNGD/EGD localhost:PORT" | ||
| 44 | ac_help="$ac_help | ||
| 45 | --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)" | ||
| 46 | ac_help="$ac_help | ||
| 47 | --with-mantype=man|cat|doc Set man page type" | ||
| 48 | ac_help="$ac_help | ||
| 49 | --with-md5-passwords Enable use of MD5 passwords" | ||
| 50 | ac_help="$ac_help | ||
| 51 | --without-shadow Disable shadow password support" | ||
| 52 | ac_help="$ac_help | ||
| 53 | --with-ipaddr-display Use ip address instead of hostname in \$DISPLAY" | ||
| 54 | ac_help="$ac_help | ||
| 55 | --with-default-path=PATH Specify default \$PATH environment for server" | ||
| 56 | ac_help="$ac_help | ||
| 57 | --with-ipv4-default Use IPv4 by connections unless '-6' specified" | ||
| 58 | ac_help="$ac_help | ||
| 59 | --with-4in6 Check for and convert IPv4 in IPv6 mapped addresses" | ||
| 60 | ac_help="$ac_help | ||
| 61 | --with-bsd-auth Enable BSD auth support" | ||
| 62 | ac_help="$ac_help | ||
| 63 | --enable-suid-ssh Install ssh as suid root (default) | ||
| 64 | --disable-suid-ssh Install ssh without suid bit" | ||
| 65 | ac_help="$ac_help | ||
| 66 | --with-pid-dir=PATH Specify location of ssh.pid file" | ||
| 67 | ac_help="$ac_help | ||
| 68 | --disable-lastlog disable use of lastlog even if detected [no]" | ||
| 69 | ac_help="$ac_help | ||
| 70 | --disable-utmp disable use of utmp even if detected [no]" | ||
| 71 | ac_help="$ac_help | ||
| 72 | --disable-utmpx disable use of utmpx even if detected [no]" | ||
| 73 | ac_help="$ac_help | ||
| 74 | --disable-wtmp disable use of wtmp even if detected [no]" | ||
| 75 | ac_help="$ac_help | ||
| 76 | --disable-wtmpx disable use of wtmpx even if detected [no]" | ||
| 77 | ac_help="$ac_help | ||
| 78 | --disable-libutil disable use of libutil (login() etc.) [no]" | ||
| 79 | ac_help="$ac_help | ||
| 80 | --disable-pututline disable use of pututline() etc. ([uw]tmp) [no]" | ||
| 81 | ac_help="$ac_help | ||
| 82 | --disable-pututxline disable use of pututxline() etc. ([uw]tmpx) [no]" | ||
| 83 | ac_help="$ac_help | ||
| 84 | --with-lastlog=FILE|DIR specify lastlog location [common locations]" | ||
| 85 | ac_help="$ac_help | ||
| 86 | --with-entropy-timeout Specify entropy gathering command timeout (msec)" | ||
| 87 | |||
| 88 | # Initialize some variables set by options. | ||
| 89 | # The variables have the same names as the options, with | ||
| 90 | # dashes changed to underlines. | ||
| 91 | build=NONE | ||
| 92 | cache_file=./config.cache | ||
| 93 | exec_prefix=NONE | ||
| 94 | host=NONE | ||
| 95 | no_create= | ||
| 96 | nonopt=NONE | ||
| 97 | no_recursion= | ||
| 98 | prefix=NONE | ||
| 99 | program_prefix=NONE | ||
| 100 | program_suffix=NONE | ||
| 101 | program_transform_name=s,x,x, | ||
| 102 | silent= | ||
| 103 | site= | ||
| 104 | srcdir= | ||
| 105 | target=NONE | ||
| 106 | verbose= | ||
| 107 | x_includes=NONE | ||
| 108 | x_libraries=NONE | ||
| 109 | bindir='${exec_prefix}/bin' | ||
| 110 | sbindir='${exec_prefix}/sbin' | ||
| 111 | libexecdir='${exec_prefix}/libexec' | ||
| 112 | datadir='${prefix}/share' | ||
| 113 | sysconfdir='${prefix}/etc' | ||
| 114 | sharedstatedir='${prefix}/com' | ||
| 115 | localstatedir='${prefix}/var' | ||
| 116 | libdir='${exec_prefix}/lib' | ||
| 117 | includedir='${prefix}/include' | ||
| 118 | oldincludedir='/usr/include' | ||
| 119 | infodir='${prefix}/info' | ||
| 120 | mandir='${prefix}/man' | ||
| 121 | |||
| 122 | # Initialize some other variables. | ||
| 123 | subdirs= | ||
| 124 | MFLAGS= MAKEFLAGS= | ||
| 125 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
| 126 | # Maximum number of lines to put in a shell here document. | ||
| 127 | ac_max_here_lines=12 | ||
| 128 | |||
| 129 | ac_prev= | ||
| 130 | for ac_option | ||
| 131 | do | ||
| 132 | |||
| 133 | # If the previous option needs an argument, assign it. | ||
| 134 | if test -n "$ac_prev"; then | ||
| 135 | eval "$ac_prev=\$ac_option" | ||
| 136 | ac_prev= | ||
| 137 | continue | ||
| 138 | fi | ||
| 139 | |||
| 140 | case "$ac_option" in | ||
| 141 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
| 142 | *) ac_optarg= ;; | ||
| 143 | esac | ||
| 144 | |||
| 145 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
| 146 | |||
| 147 | case "$ac_option" in | ||
| 148 | |||
| 149 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
| 150 | ac_prev=bindir ;; | ||
| 151 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
| 152 | bindir="$ac_optarg" ;; | ||
| 153 | |||
| 154 | -build | --build | --buil | --bui | --bu) | ||
| 155 | ac_prev=build ;; | ||
| 156 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
| 157 | build="$ac_optarg" ;; | ||
| 158 | |||
| 159 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
| 160 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
| 161 | ac_prev=cache_file ;; | ||
| 162 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
| 163 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
| 164 | cache_file="$ac_optarg" ;; | ||
| 165 | |||
| 166 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
| 167 | ac_prev=datadir ;; | ||
| 168 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
| 169 | | --da=*) | ||
| 170 | datadir="$ac_optarg" ;; | ||
| 171 | |||
| 172 | -disable-* | --disable-*) | ||
| 173 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | ||
| 174 | # Reject names that are not valid shell variable names. | ||
| 175 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
| 176 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
| 177 | fi | ||
| 178 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
| 179 | eval "enable_${ac_feature}=no" ;; | ||
| 180 | |||
| 181 | -enable-* | --enable-*) | ||
| 182 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | ||
| 183 | # Reject names that are not valid shell variable names. | ||
| 184 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
| 185 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | ||
| 186 | fi | ||
| 187 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | ||
| 188 | case "$ac_option" in | ||
| 189 | *=*) ;; | ||
| 190 | *) ac_optarg=yes ;; | ||
| 191 | esac | ||
| 192 | eval "enable_${ac_feature}='$ac_optarg'" ;; | ||
| 193 | |||
| 194 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
| 195 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
| 196 | | --exec | --exe | --ex) | ||
| 197 | ac_prev=exec_prefix ;; | ||
| 198 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
| 199 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
| 200 | | --exec=* | --exe=* | --ex=*) | ||
| 201 | exec_prefix="$ac_optarg" ;; | ||
| 202 | |||
| 203 | -gas | --gas | --ga | --g) | ||
| 204 | # Obsolete; use --with-gas. | ||
| 205 | with_gas=yes ;; | ||
| 206 | |||
| 207 | -help | --help | --hel | --he) | ||
| 208 | # Omit some internal or obsolete options to make the list less imposing. | ||
| 209 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
| 210 | cat << EOF | ||
| 211 | Usage: configure [options] [host] | ||
| 212 | Options: [defaults in brackets after descriptions] | ||
| 213 | Configuration: | ||
| 214 | --cache-file=FILE cache test results in FILE | ||
| 215 | --help print this message | ||
| 216 | --no-create do not create output files | ||
| 217 | --quiet, --silent do not print \`checking...' messages | ||
| 218 | --version print the version of autoconf that created configure | ||
| 219 | Directory and file names: | ||
| 220 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
| 221 | [$ac_default_prefix] | ||
| 222 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
| 223 | [same as prefix] | ||
| 224 | --bindir=DIR user executables in DIR [EPREFIX/bin] | ||
| 225 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | ||
| 226 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | ||
| 227 | --datadir=DIR read-only architecture-independent data in DIR | ||
| 228 | [PREFIX/share] | ||
| 229 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | ||
| 230 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | ||
| 231 | [PREFIX/com] | ||
| 232 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | ||
| 233 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | ||
| 234 | --includedir=DIR C header files in DIR [PREFIX/include] | ||
| 235 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | ||
| 236 | --infodir=DIR info documentation in DIR [PREFIX/info] | ||
| 237 | --mandir=DIR man documentation in DIR [PREFIX/man] | ||
| 238 | --srcdir=DIR find the sources in DIR [configure dir or ..] | ||
| 239 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
| 240 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
| 241 | --program-transform-name=PROGRAM | ||
| 242 | run sed PROGRAM on installed program names | ||
| 243 | EOF | ||
| 244 | cat << EOF | ||
| 245 | Host type: | ||
| 246 | --build=BUILD configure for building on BUILD [BUILD=HOST] | ||
| 247 | --host=HOST configure for HOST [guessed] | ||
| 248 | --target=TARGET configure for TARGET [TARGET=HOST] | ||
| 249 | Features and packages: | ||
| 250 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
| 251 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
| 252 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
| 253 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
| 254 | --x-includes=DIR X include files are in DIR | ||
| 255 | --x-libraries=DIR X library files are in DIR | ||
| 256 | EOF | ||
| 257 | if test -n "$ac_help"; then | ||
| 258 | echo "--enable and --with options recognized:$ac_help" | ||
| 259 | fi | ||
| 260 | exit 0 ;; | ||
| 261 | |||
| 262 | -host | --host | --hos | --ho) | ||
| 263 | ac_prev=host ;; | ||
| 264 | -host=* | --host=* | --hos=* | --ho=*) | ||
| 265 | host="$ac_optarg" ;; | ||
| 266 | |||
| 267 | -includedir | --includedir | --includedi | --included | --include \ | ||
| 268 | | --includ | --inclu | --incl | --inc) | ||
| 269 | ac_prev=includedir ;; | ||
| 270 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
| 271 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
| 272 | includedir="$ac_optarg" ;; | ||
| 273 | |||
| 274 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
| 275 | ac_prev=infodir ;; | ||
| 276 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
| 277 | infodir="$ac_optarg" ;; | ||
| 278 | |||
| 279 | -libdir | --libdir | --libdi | --libd) | ||
| 280 | ac_prev=libdir ;; | ||
| 281 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
| 282 | libdir="$ac_optarg" ;; | ||
| 283 | |||
| 284 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
| 285 | | --libexe | --libex | --libe) | ||
| 286 | ac_prev=libexecdir ;; | ||
| 287 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
| 288 | | --libexe=* | --libex=* | --libe=*) | ||
| 289 | libexecdir="$ac_optarg" ;; | ||
| 290 | |||
| 291 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
| 292 | | --localstate | --localstat | --localsta | --localst \ | ||
| 293 | | --locals | --local | --loca | --loc | --lo) | ||
| 294 | ac_prev=localstatedir ;; | ||
| 295 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
| 296 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
| 297 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
| 298 | localstatedir="$ac_optarg" ;; | ||
| 299 | |||
| 300 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
| 301 | ac_prev=mandir ;; | ||
| 302 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
| 303 | mandir="$ac_optarg" ;; | ||
| 304 | |||
| 305 | -nfp | --nfp | --nf) | ||
| 306 | # Obsolete; use --without-fp. | ||
| 307 | with_fp=no ;; | ||
| 308 | |||
| 309 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 310 | | --no-cr | --no-c) | ||
| 311 | no_create=yes ;; | ||
| 312 | |||
| 313 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 314 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
| 315 | no_recursion=yes ;; | ||
| 316 | |||
| 317 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
| 318 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
| 319 | | --oldin | --oldi | --old | --ol | --o) | ||
| 320 | ac_prev=oldincludedir ;; | ||
| 321 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
| 322 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
| 323 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
| 324 | oldincludedir="$ac_optarg" ;; | ||
| 325 | |||
| 326 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
| 327 | ac_prev=prefix ;; | ||
| 328 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
| 329 | prefix="$ac_optarg" ;; | ||
| 330 | |||
| 331 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
| 332 | | --program-pre | --program-pr | --program-p) | ||
| 333 | ac_prev=program_prefix ;; | ||
| 334 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
| 335 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
| 336 | program_prefix="$ac_optarg" ;; | ||
| 337 | |||
| 338 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
| 339 | | --program-suf | --program-su | --program-s) | ||
| 340 | ac_prev=program_suffix ;; | ||
| 341 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
| 342 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
| 343 | program_suffix="$ac_optarg" ;; | ||
| 344 | |||
| 345 | -program-transform-name | --program-transform-name \ | ||
| 346 | | --program-transform-nam | --program-transform-na \ | ||
| 347 | | --program-transform-n | --program-transform- \ | ||
| 348 | | --program-transform | --program-transfor \ | ||
| 349 | | --program-transfo | --program-transf \ | ||
| 350 | | --program-trans | --program-tran \ | ||
| 351 | | --progr-tra | --program-tr | --program-t) | ||
| 352 | ac_prev=program_transform_name ;; | ||
| 353 | -program-transform-name=* | --program-transform-name=* \ | ||
| 354 | | --program-transform-nam=* | --program-transform-na=* \ | ||
| 355 | | --program-transform-n=* | --program-transform-=* \ | ||
| 356 | | --program-transform=* | --program-transfor=* \ | ||
| 357 | | --program-transfo=* | --program-transf=* \ | ||
| 358 | | --program-trans=* | --program-tran=* \ | ||
| 359 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
| 360 | program_transform_name="$ac_optarg" ;; | ||
| 361 | |||
| 362 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
| 363 | | -silent | --silent | --silen | --sile | --sil) | ||
| 364 | silent=yes ;; | ||
| 365 | |||
| 366 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
| 367 | ac_prev=sbindir ;; | ||
| 368 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
| 369 | | --sbi=* | --sb=*) | ||
| 370 | sbindir="$ac_optarg" ;; | ||
| 371 | |||
| 372 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
| 373 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
| 374 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
| 375 | | --sha | --sh) | ||
| 376 | ac_prev=sharedstatedir ;; | ||
| 377 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
| 378 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
| 379 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
| 380 | | --sha=* | --sh=*) | ||
| 381 | sharedstatedir="$ac_optarg" ;; | ||
| 382 | |||
| 383 | -site | --site | --sit) | ||
| 384 | ac_prev=site ;; | ||
| 385 | -site=* | --site=* | --sit=*) | ||
| 386 | site="$ac_optarg" ;; | ||
| 387 | |||
| 388 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
| 389 | ac_prev=srcdir ;; | ||
| 390 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
| 391 | srcdir="$ac_optarg" ;; | ||
| 392 | |||
| 393 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
| 394 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
| 395 | ac_prev=sysconfdir ;; | ||
| 396 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
| 397 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
| 398 | sysconfdir="$ac_optarg" ;; | ||
| 399 | |||
| 400 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
| 401 | ac_prev=target ;; | ||
| 402 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
| 403 | target="$ac_optarg" ;; | ||
| 404 | |||
| 405 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
| 406 | verbose=yes ;; | ||
| 407 | |||
| 408 | -version | --version | --versio | --versi | --vers) | ||
| 409 | echo "configure generated by autoconf version 2.13" | ||
| 410 | exit 0 ;; | ||
| 411 | |||
| 412 | -with-* | --with-*) | ||
| 413 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | ||
| 414 | # Reject names that are not valid shell variable names. | ||
| 415 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | ||
| 416 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
| 417 | fi | ||
| 418 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
| 419 | case "$ac_option" in | ||
| 420 | *=*) ;; | ||
| 421 | *) ac_optarg=yes ;; | ||
| 422 | esac | ||
| 423 | eval "with_${ac_package}='$ac_optarg'" ;; | ||
| 424 | |||
| 425 | -without-* | --without-*) | ||
| 426 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | ||
| 427 | # Reject names that are not valid shell variable names. | ||
| 428 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | ||
| 429 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | ||
| 430 | fi | ||
| 431 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
| 432 | eval "with_${ac_package}=no" ;; | ||
| 433 | |||
| 434 | --x) | ||
| 435 | # Obsolete; use --with-x. | ||
| 436 | with_x=yes ;; | ||
| 437 | |||
| 438 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
| 439 | | --x-incl | --x-inc | --x-in | --x-i) | ||
| 440 | ac_prev=x_includes ;; | ||
| 441 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
| 442 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
| 443 | x_includes="$ac_optarg" ;; | ||
| 444 | |||
| 445 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
| 446 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
| 447 | ac_prev=x_libraries ;; | ||
| 448 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
| 449 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
| 450 | x_libraries="$ac_optarg" ;; | ||
| 451 | |||
| 452 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | ||
| 453 | ;; | ||
| 454 | |||
| 455 | *) | ||
| 456 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | ||
| 457 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | ||
| 458 | fi | ||
| 459 | if test "x$nonopt" != xNONE; then | ||
| 460 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | ||
| 461 | fi | ||
| 462 | nonopt="$ac_option" | ||
| 463 | ;; | ||
| 464 | |||
| 465 | esac | ||
| 466 | done | ||
| 467 | |||
| 468 | if test -n "$ac_prev"; then | ||
| 469 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | ||
| 470 | fi | ||
| 471 | |||
| 472 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
| 473 | |||
| 474 | # File descriptor usage: | ||
| 475 | # 0 standard input | ||
| 476 | # 1 file creation | ||
| 477 | # 2 errors and warnings | ||
| 478 | # 3 some systems may open it to /dev/tty | ||
| 479 | # 4 used on the Kubota Titan | ||
| 480 | # 6 checking for... messages and results | ||
| 481 | # 5 compiler messages saved in config.log | ||
| 482 | if test "$silent" = yes; then | ||
| 483 | exec 6>/dev/null | ||
| 484 | else | ||
| 485 | exec 6>&1 | ||
| 486 | fi | ||
| 487 | exec 5>./config.log | ||
| 488 | |||
| 489 | echo "\ | ||
| 490 | This file contains any messages produced by compilers while | ||
| 491 | running configure, to aid debugging if configure makes a mistake. | ||
| 492 | " 1>&5 | ||
| 493 | |||
| 494 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
| 495 | # Also quote any args containing shell metacharacters. | ||
| 496 | ac_configure_args= | ||
| 497 | for ac_arg | ||
| 498 | do | ||
| 499 | case "$ac_arg" in | ||
| 500 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
| 501 | | --no-cr | --no-c) ;; | ||
| 502 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
| 503 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | ||
| 504 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | ||
| 505 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
| 506 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | ||
| 507 | esac | ||
| 508 | done | ||
| 509 | |||
| 510 | # NLS nuisances. | ||
| 511 | # Only set these to C if already set. These must not be set unconditionally | ||
| 512 | # because not all systems understand e.g. LANG=C (notably SCO). | ||
| 513 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | ||
| 514 | # Non-C LC_CTYPE values break the ctype check. | ||
| 515 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | ||
| 516 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | ||
| 517 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | ||
| 518 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | ||
| 519 | |||
| 520 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
| 521 | rm -rf conftest* confdefs.h | ||
| 522 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
| 523 | echo > confdefs.h | ||
| 524 | |||
| 525 | # A filename unique to this package, relative to the directory that | ||
| 526 | # configure is in, which we can look for to find out if srcdir is correct. | ||
| 527 | ac_unique_file=ssh.c | ||
| 528 | |||
| 529 | # Find the source files, if location was not specified. | ||
| 530 | if test -z "$srcdir"; then | ||
| 531 | ac_srcdir_defaulted=yes | ||
| 532 | # Try the directory containing this script, then its parent. | ||
| 533 | ac_prog=$0 | ||
| 534 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | ||
| 535 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | ||
| 536 | srcdir=$ac_confdir | ||
| 537 | if test ! -r $srcdir/$ac_unique_file; then | ||
| 538 | srcdir=.. | ||
| 539 | fi | ||
| 540 | else | ||
| 541 | ac_srcdir_defaulted=no | ||
| 542 | fi | ||
| 543 | if test ! -r $srcdir/$ac_unique_file; then | ||
| 544 | if test "$ac_srcdir_defaulted" = yes; then | ||
| 545 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | ||
| 546 | else | ||
| 547 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | ||
| 548 | fi | ||
| 549 | fi | ||
| 550 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | ||
| 551 | |||
| 552 | # Prefer explicitly selected file to automatically selected ones. | ||
| 553 | if test -z "$CONFIG_SITE"; then | ||
| 554 | if test "x$prefix" != xNONE; then | ||
| 555 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
| 556 | else | ||
| 557 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
| 558 | fi | ||
| 559 | fi | ||
| 560 | for ac_site_file in $CONFIG_SITE; do | ||
| 561 | if test -r "$ac_site_file"; then | ||
| 562 | echo "loading site script $ac_site_file" | ||
| 563 | . "$ac_site_file" | ||
| 564 | fi | ||
| 565 | done | ||
| 566 | |||
| 567 | if test -r "$cache_file"; then | ||
| 568 | echo "loading cache $cache_file" | ||
| 569 | . $cache_file | ||
| 570 | else | ||
| 571 | echo "creating cache $cache_file" | ||
| 572 | > $cache_file | ||
| 573 | fi | ||
| 574 | |||
| 575 | ac_ext=c | ||
| 576 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 577 | ac_cpp='$CPP $CPPFLAGS' | ||
| 578 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 579 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 580 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 581 | |||
| 582 | ac_exeext= | ||
| 583 | ac_objext=o | ||
| 584 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | ||
| 585 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | ||
| 586 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | ||
| 587 | ac_n= ac_c=' | ||
| 588 | ' ac_t=' ' | ||
| 589 | else | ||
| 590 | ac_n=-n ac_c= ac_t= | ||
| 591 | fi | ||
| 592 | else | ||
| 593 | ac_n= ac_c='\c' ac_t= | ||
| 594 | fi | ||
| 595 | |||
| 596 | |||
| 597 | |||
| 598 | |||
| 599 | # Extract the first word of "gcc", so it can be a program name with args. | ||
| 600 | set dummy gcc; ac_word=$2 | ||
| 601 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 602 | echo "configure:603: checking for $ac_word" >&5 | ||
| 603 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
| 604 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 605 | else | ||
| 606 | if test -n "$CC"; then | ||
| 607 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 608 | else | ||
| 609 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 610 | ac_dummy="$PATH" | ||
| 611 | for ac_dir in $ac_dummy; do | ||
| 612 | test -z "$ac_dir" && ac_dir=. | ||
| 613 | if test -f $ac_dir/$ac_word; then | ||
| 614 | ac_cv_prog_CC="gcc" | ||
| 615 | break | ||
| 616 | fi | ||
| 617 | done | ||
| 618 | IFS="$ac_save_ifs" | ||
| 619 | fi | ||
| 620 | fi | ||
| 621 | CC="$ac_cv_prog_CC" | ||
| 622 | if test -n "$CC"; then | ||
| 623 | echo "$ac_t""$CC" 1>&6 | ||
| 624 | else | ||
| 625 | echo "$ac_t""no" 1>&6 | ||
| 626 | fi | ||
| 627 | |||
| 628 | if test -z "$CC"; then | ||
| 629 | # Extract the first word of "cc", so it can be a program name with args. | ||
| 630 | set dummy cc; ac_word=$2 | ||
| 631 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 632 | echo "configure:633: checking for $ac_word" >&5 | ||
| 633 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
| 634 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 635 | else | ||
| 636 | if test -n "$CC"; then | ||
| 637 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 638 | else | ||
| 639 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 640 | ac_prog_rejected=no | ||
| 641 | ac_dummy="$PATH" | ||
| 642 | for ac_dir in $ac_dummy; do | ||
| 643 | test -z "$ac_dir" && ac_dir=. | ||
| 644 | if test -f $ac_dir/$ac_word; then | ||
| 645 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | ||
| 646 | ac_prog_rejected=yes | ||
| 647 | continue | ||
| 648 | fi | ||
| 649 | ac_cv_prog_CC="cc" | ||
| 650 | break | ||
| 651 | fi | ||
| 652 | done | ||
| 653 | IFS="$ac_save_ifs" | ||
| 654 | if test $ac_prog_rejected = yes; then | ||
| 655 | # We found a bogon in the path, so make sure we never use it. | ||
| 656 | set dummy $ac_cv_prog_CC | ||
| 657 | shift | ||
| 658 | if test $# -gt 0; then | ||
| 659 | # We chose a different compiler from the bogus one. | ||
| 660 | # However, it has the same basename, so the bogon will be chosen | ||
| 661 | # first if we set CC to just the basename; use the full file name. | ||
| 662 | shift | ||
| 663 | set dummy "$ac_dir/$ac_word" "$@" | ||
| 664 | shift | ||
| 665 | ac_cv_prog_CC="$@" | ||
| 666 | fi | ||
| 667 | fi | ||
| 668 | fi | ||
| 669 | fi | ||
| 670 | CC="$ac_cv_prog_CC" | ||
| 671 | if test -n "$CC"; then | ||
| 672 | echo "$ac_t""$CC" 1>&6 | ||
| 673 | else | ||
| 674 | echo "$ac_t""no" 1>&6 | ||
| 675 | fi | ||
| 676 | |||
| 677 | if test -z "$CC"; then | ||
| 678 | case "`uname -s`" in | ||
| 679 | *win32* | *WIN32*) | ||
| 680 | # Extract the first word of "cl", so it can be a program name with args. | ||
| 681 | set dummy cl; ac_word=$2 | ||
| 682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 683 | echo "configure:684: checking for $ac_word" >&5 | ||
| 684 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | ||
| 685 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 686 | else | ||
| 687 | if test -n "$CC"; then | ||
| 688 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
| 689 | else | ||
| 690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 691 | ac_dummy="$PATH" | ||
| 692 | for ac_dir in $ac_dummy; do | ||
| 693 | test -z "$ac_dir" && ac_dir=. | ||
| 694 | if test -f $ac_dir/$ac_word; then | ||
| 695 | ac_cv_prog_CC="cl" | ||
| 696 | break | ||
| 697 | fi | ||
| 698 | done | ||
| 699 | IFS="$ac_save_ifs" | ||
| 700 | fi | ||
| 701 | fi | ||
| 702 | CC="$ac_cv_prog_CC" | ||
| 703 | if test -n "$CC"; then | ||
| 704 | echo "$ac_t""$CC" 1>&6 | ||
| 705 | else | ||
| 706 | echo "$ac_t""no" 1>&6 | ||
| 707 | fi | ||
| 708 | ;; | ||
| 709 | esac | ||
| 710 | fi | ||
| 711 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | ||
| 712 | fi | ||
| 713 | |||
| 714 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | ||
| 715 | echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | ||
| 716 | |||
| 717 | ac_ext=c | ||
| 718 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 719 | ac_cpp='$CPP $CPPFLAGS' | ||
| 720 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 721 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 722 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 723 | |||
| 724 | cat > conftest.$ac_ext << EOF | ||
| 725 | |||
| 726 | #line 727 "configure" | ||
| 727 | #include "confdefs.h" | ||
| 728 | |||
| 729 | main(){return(0);} | ||
| 730 | EOF | ||
| 731 | if { (eval echo configure:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 732 | ac_cv_prog_cc_works=yes | ||
| 733 | # If we can't run a trivial program, we are probably using a cross compiler. | ||
| 734 | if (./conftest; exit) 2>/dev/null; then | ||
| 735 | ac_cv_prog_cc_cross=no | ||
| 736 | else | ||
| 737 | ac_cv_prog_cc_cross=yes | ||
| 738 | fi | ||
| 739 | else | ||
| 740 | echo "configure: failed program was:" >&5 | ||
| 741 | cat conftest.$ac_ext >&5 | ||
| 742 | ac_cv_prog_cc_works=no | ||
| 743 | fi | ||
| 744 | rm -fr conftest* | ||
| 745 | ac_ext=c | ||
| 746 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | ||
| 747 | ac_cpp='$CPP $CPPFLAGS' | ||
| 748 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | ||
| 749 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | ||
| 750 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 751 | |||
| 752 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | ||
| 753 | if test $ac_cv_prog_cc_works = no; then | ||
| 754 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | ||
| 755 | fi | ||
| 756 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | ||
| 757 | echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | ||
| 758 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | ||
| 759 | cross_compiling=$ac_cv_prog_cc_cross | ||
| 760 | |||
| 761 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | ||
| 762 | echo "configure:763: checking whether we are using GNU C" >&5 | ||
| 763 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | ||
| 764 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 765 | else | ||
| 766 | cat > conftest.c <<EOF | ||
| 767 | #ifdef __GNUC__ | ||
| 768 | yes; | ||
| 769 | #endif | ||
| 770 | EOF | ||
| 771 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | ||
| 772 | ac_cv_prog_gcc=yes | ||
| 773 | else | ||
| 774 | ac_cv_prog_gcc=no | ||
| 775 | fi | ||
| 776 | fi | ||
| 777 | |||
| 778 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | ||
| 779 | |||
| 780 | if test $ac_cv_prog_gcc = yes; then | ||
| 781 | GCC=yes | ||
| 782 | else | ||
| 783 | GCC= | ||
| 784 | fi | ||
| 785 | |||
| 786 | ac_test_CFLAGS="${CFLAGS+set}" | ||
| 787 | ac_save_CFLAGS="$CFLAGS" | ||
| 788 | CFLAGS= | ||
| 789 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | ||
| 790 | echo "configure:791: checking whether ${CC-cc} accepts -g" >&5 | ||
| 791 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | ||
| 792 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 793 | else | ||
| 794 | echo 'void f(){}' > conftest.c | ||
| 795 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | ||
| 796 | ac_cv_prog_cc_g=yes | ||
| 797 | else | ||
| 798 | ac_cv_prog_cc_g=no | ||
| 799 | fi | ||
| 800 | rm -f conftest* | ||
| 801 | |||
| 802 | fi | ||
| 803 | |||
| 804 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | ||
| 805 | if test "$ac_test_CFLAGS" = set; then | ||
| 806 | CFLAGS="$ac_save_CFLAGS" | ||
| 807 | elif test $ac_cv_prog_cc_g = yes; then | ||
| 808 | if test "$GCC" = yes; then | ||
| 809 | CFLAGS="-g -O2" | ||
| 810 | else | ||
| 811 | CFLAGS="-g" | ||
| 812 | fi | ||
| 813 | else | ||
| 814 | if test "$GCC" = yes; then | ||
| 815 | CFLAGS="-O2" | ||
| 816 | else | ||
| 817 | CFLAGS= | ||
| 818 | fi | ||
| 819 | fi | ||
| 820 | |||
| 821 | ac_aux_dir= | ||
| 822 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | ||
| 823 | if test -f $ac_dir/install-sh; then | ||
| 824 | ac_aux_dir=$ac_dir | ||
| 825 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
| 826 | break | ||
| 827 | elif test -f $ac_dir/install.sh; then | ||
| 828 | ac_aux_dir=$ac_dir | ||
| 829 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
| 830 | break | ||
| 831 | fi | ||
| 832 | done | ||
| 833 | if test -z "$ac_aux_dir"; then | ||
| 834 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | ||
| 835 | fi | ||
| 836 | ac_config_guess=$ac_aux_dir/config.guess | ||
| 837 | ac_config_sub=$ac_aux_dir/config.sub | ||
| 838 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | ||
| 839 | |||
| 840 | |||
| 841 | # Make sure we can run config.sub. | ||
| 842 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | ||
| 843 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | ||
| 844 | fi | ||
| 845 | |||
| 846 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | ||
| 847 | echo "configure:848: checking host system type" >&5 | ||
| 848 | |||
| 849 | host_alias=$host | ||
| 850 | case "$host_alias" in | ||
| 851 | NONE) | ||
| 852 | case $nonopt in | ||
| 853 | NONE) | ||
| 854 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | ||
| 855 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | ||
| 856 | fi ;; | ||
| 857 | *) host_alias=$nonopt ;; | ||
| 858 | esac ;; | ||
| 859 | esac | ||
| 860 | |||
| 861 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | ||
| 862 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
| 863 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
| 864 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
| 865 | echo "$ac_t""$host" 1>&6 | ||
| 866 | |||
| 867 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | ||
| 868 | echo "configure:869: checking whether byte ordering is bigendian" >&5 | ||
| 869 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | ||
| 870 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 871 | else | ||
| 872 | ac_cv_c_bigendian=unknown | ||
| 873 | # See if sys/param.h defines the BYTE_ORDER macro. | ||
| 874 | cat > conftest.$ac_ext <<EOF | ||
| 875 | #line 876 "configure" | ||
| 876 | #include "confdefs.h" | ||
| 877 | #include <sys/types.h> | ||
| 878 | #include <sys/param.h> | ||
| 879 | int main() { | ||
| 880 | |||
| 881 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | ||
| 882 | bogus endian macros | ||
| 883 | #endif | ||
| 884 | ; return 0; } | ||
| 885 | EOF | ||
| 886 | if { (eval echo configure:887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 887 | rm -rf conftest* | ||
| 888 | # It does; now see whether it defined to BIG_ENDIAN or not. | ||
| 889 | cat > conftest.$ac_ext <<EOF | ||
| 890 | #line 891 "configure" | ||
| 891 | #include "confdefs.h" | ||
| 892 | #include <sys/types.h> | ||
| 893 | #include <sys/param.h> | ||
| 894 | int main() { | ||
| 895 | |||
| 896 | #if BYTE_ORDER != BIG_ENDIAN | ||
| 897 | not big endian | ||
| 898 | #endif | ||
| 899 | ; return 0; } | ||
| 900 | EOF | ||
| 901 | if { (eval echo configure:902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 902 | rm -rf conftest* | ||
| 903 | ac_cv_c_bigendian=yes | ||
| 904 | else | ||
| 905 | echo "configure: failed program was:" >&5 | ||
| 906 | cat conftest.$ac_ext >&5 | ||
| 907 | rm -rf conftest* | ||
| 908 | ac_cv_c_bigendian=no | ||
| 909 | fi | ||
| 910 | rm -f conftest* | ||
| 911 | else | ||
| 912 | echo "configure: failed program was:" >&5 | ||
| 913 | cat conftest.$ac_ext >&5 | ||
| 914 | fi | ||
| 915 | rm -f conftest* | ||
| 916 | if test $ac_cv_c_bigendian = unknown; then | ||
| 917 | if test "$cross_compiling" = yes; then | ||
| 918 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 919 | else | ||
| 920 | cat > conftest.$ac_ext <<EOF | ||
| 921 | #line 922 "configure" | ||
| 922 | #include "confdefs.h" | ||
| 923 | main () { | ||
| 924 | /* Are we little or big endian? From Harbison&Steele. */ | ||
| 925 | union | ||
| 926 | { | ||
| 927 | long l; | ||
| 928 | char c[sizeof (long)]; | ||
| 929 | } u; | ||
| 930 | u.l = 1; | ||
| 931 | exit (u.c[sizeof (long) - 1] == 1); | ||
| 932 | } | ||
| 933 | EOF | ||
| 934 | if { (eval echo configure:935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 935 | then | ||
| 936 | ac_cv_c_bigendian=no | ||
| 937 | else | ||
| 938 | echo "configure: failed program was:" >&5 | ||
| 939 | cat conftest.$ac_ext >&5 | ||
| 940 | rm -fr conftest* | ||
| 941 | ac_cv_c_bigendian=yes | ||
| 942 | fi | ||
| 943 | rm -fr conftest* | ||
| 944 | fi | ||
| 945 | |||
| 946 | fi | ||
| 947 | fi | ||
| 948 | |||
| 949 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | ||
| 950 | if test $ac_cv_c_bigendian = yes; then | ||
| 951 | cat >> confdefs.h <<\EOF | ||
| 952 | #define WORDS_BIGENDIAN 1 | ||
| 953 | EOF | ||
| 954 | |||
| 955 | fi | ||
| 956 | |||
| 957 | |||
| 958 | # Checks for programs. | ||
| 959 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | ||
| 960 | echo "configure:961: checking how to run the C preprocessor" >&5 | ||
| 961 | # On Suns, sometimes $CPP names a directory. | ||
| 962 | if test -n "$CPP" && test -d "$CPP"; then | ||
| 963 | CPP= | ||
| 964 | fi | ||
| 965 | if test -z "$CPP"; then | ||
| 966 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | ||
| 967 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 968 | else | ||
| 969 | # This must be in double quotes, not single quotes, because CPP may get | ||
| 970 | # substituted into the Makefile and "${CC-cc}" will confuse make. | ||
| 971 | CPP="${CC-cc} -E" | ||
| 972 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
| 973 | # not just through cpp. | ||
| 974 | cat > conftest.$ac_ext <<EOF | ||
| 975 | #line 976 "configure" | ||
| 976 | #include "confdefs.h" | ||
| 977 | #include <assert.h> | ||
| 978 | Syntax Error | ||
| 979 | EOF | ||
| 980 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 981 | { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 982 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 983 | if test -z "$ac_err"; then | ||
| 984 | : | ||
| 985 | else | ||
| 986 | echo "$ac_err" >&5 | ||
| 987 | echo "configure: failed program was:" >&5 | ||
| 988 | cat conftest.$ac_ext >&5 | ||
| 989 | rm -rf conftest* | ||
| 990 | CPP="${CC-cc} -E -traditional-cpp" | ||
| 991 | cat > conftest.$ac_ext <<EOF | ||
| 992 | #line 993 "configure" | ||
| 993 | #include "confdefs.h" | ||
| 994 | #include <assert.h> | ||
| 995 | Syntax Error | ||
| 996 | EOF | ||
| 997 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 998 | { (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 999 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 1000 | if test -z "$ac_err"; then | ||
| 1001 | : | ||
| 1002 | else | ||
| 1003 | echo "$ac_err" >&5 | ||
| 1004 | echo "configure: failed program was:" >&5 | ||
| 1005 | cat conftest.$ac_ext >&5 | ||
| 1006 | rm -rf conftest* | ||
| 1007 | CPP="${CC-cc} -nologo -E" | ||
| 1008 | cat > conftest.$ac_ext <<EOF | ||
| 1009 | #line 1010 "configure" | ||
| 1010 | #include "confdefs.h" | ||
| 1011 | #include <assert.h> | ||
| 1012 | Syntax Error | ||
| 1013 | EOF | ||
| 1014 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 1015 | { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 1016 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 1017 | if test -z "$ac_err"; then | ||
| 1018 | : | ||
| 1019 | else | ||
| 1020 | echo "$ac_err" >&5 | ||
| 1021 | echo "configure: failed program was:" >&5 | ||
| 1022 | cat conftest.$ac_ext >&5 | ||
| 1023 | rm -rf conftest* | ||
| 1024 | CPP=/lib/cpp | ||
| 1025 | fi | ||
| 1026 | rm -f conftest* | ||
| 1027 | fi | ||
| 1028 | rm -f conftest* | ||
| 1029 | fi | ||
| 1030 | rm -f conftest* | ||
| 1031 | ac_cv_prog_CPP="$CPP" | ||
| 1032 | fi | ||
| 1033 | CPP="$ac_cv_prog_CPP" | ||
| 1034 | else | ||
| 1035 | ac_cv_prog_CPP="$CPP" | ||
| 1036 | fi | ||
| 1037 | echo "$ac_t""$CPP" 1>&6 | ||
| 1038 | |||
| 1039 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
| 1040 | set dummy ranlib; ac_word=$2 | ||
| 1041 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1042 | echo "configure:1043: checking for $ac_word" >&5 | ||
| 1043 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | ||
| 1044 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1045 | else | ||
| 1046 | if test -n "$RANLIB"; then | ||
| 1047 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
| 1048 | else | ||
| 1049 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1050 | ac_dummy="$PATH" | ||
| 1051 | for ac_dir in $ac_dummy; do | ||
| 1052 | test -z "$ac_dir" && ac_dir=. | ||
| 1053 | if test -f $ac_dir/$ac_word; then | ||
| 1054 | ac_cv_prog_RANLIB="ranlib" | ||
| 1055 | break | ||
| 1056 | fi | ||
| 1057 | done | ||
| 1058 | IFS="$ac_save_ifs" | ||
| 1059 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | ||
| 1060 | fi | ||
| 1061 | fi | ||
| 1062 | RANLIB="$ac_cv_prog_RANLIB" | ||
| 1063 | if test -n "$RANLIB"; then | ||
| 1064 | echo "$ac_t""$RANLIB" 1>&6 | ||
| 1065 | else | ||
| 1066 | echo "$ac_t""no" 1>&6 | ||
| 1067 | fi | ||
| 1068 | |||
| 1069 | # Find a good install program. We prefer a C program (faster), | ||
| 1070 | # so one script is as good as another. But avoid the broken or | ||
| 1071 | # incompatible versions: | ||
| 1072 | # SysV /etc/install, /usr/sbin/install | ||
| 1073 | # SunOS /usr/etc/install | ||
| 1074 | # IRIX /sbin/install | ||
| 1075 | # AIX /bin/install | ||
| 1076 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
| 1077 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
| 1078 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
| 1079 | # ./install, which can be erroneously created by make from ./install.sh. | ||
| 1080 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | ||
| 1081 | echo "configure:1082: checking for a BSD compatible install" >&5 | ||
| 1082 | if test -z "$INSTALL"; then | ||
| 1083 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | ||
| 1084 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1085 | else | ||
| 1086 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | ||
| 1087 | for ac_dir in $PATH; do | ||
| 1088 | # Account for people who put trailing slashes in PATH elements. | ||
| 1089 | case "$ac_dir/" in | ||
| 1090 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | ||
| 1091 | *) | ||
| 1092 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
| 1093 | # Don't use installbsd from OSF since it installs stuff as root | ||
| 1094 | # by default. | ||
| 1095 | for ac_prog in ginstall scoinst install; do | ||
| 1096 | if test -f $ac_dir/$ac_prog; then | ||
| 1097 | if test $ac_prog = install && | ||
| 1098 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | ||
| 1099 | # AIX install. It has an incompatible calling convention. | ||
| 1100 | : | ||
| 1101 | else | ||
| 1102 | ac_cv_path_install="$ac_dir/$ac_prog -c" | ||
| 1103 | break 2 | ||
| 1104 | fi | ||
| 1105 | fi | ||
| 1106 | done | ||
| 1107 | ;; | ||
| 1108 | esac | ||
| 1109 | done | ||
| 1110 | IFS="$ac_save_IFS" | ||
| 1111 | |||
| 1112 | fi | ||
| 1113 | if test "${ac_cv_path_install+set}" = set; then | ||
| 1114 | INSTALL="$ac_cv_path_install" | ||
| 1115 | else | ||
| 1116 | # As a last resort, use the slow shell script. We don't cache a | ||
| 1117 | # path for INSTALL within a source directory, because that will | ||
| 1118 | # break other packages using the cache if that directory is | ||
| 1119 | # removed, or if the path is relative. | ||
| 1120 | INSTALL="$ac_install_sh" | ||
| 1121 | fi | ||
| 1122 | fi | ||
| 1123 | echo "$ac_t""$INSTALL" 1>&6 | ||
| 1124 | |||
| 1125 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
| 1126 | # It thinks the first close brace ends the variable substitution. | ||
| 1127 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
| 1128 | |||
| 1129 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | ||
| 1130 | |||
| 1131 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
| 1132 | |||
| 1133 | # Extract the first word of "ar", so it can be a program name with args. | ||
| 1134 | set dummy ar; ac_word=$2 | ||
| 1135 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1136 | echo "configure:1137: checking for $ac_word" >&5 | ||
| 1137 | if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then | ||
| 1138 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1139 | else | ||
| 1140 | case "$AR" in | ||
| 1141 | /*) | ||
| 1142 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | ||
| 1143 | ;; | ||
| 1144 | ?:/*) | ||
| 1145 | ac_cv_path_AR="$AR" # Let the user override the test with a dos path. | ||
| 1146 | ;; | ||
| 1147 | *) | ||
| 1148 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1149 | ac_dummy="$PATH" | ||
| 1150 | for ac_dir in $ac_dummy; do | ||
| 1151 | test -z "$ac_dir" && ac_dir=. | ||
| 1152 | if test -f $ac_dir/$ac_word; then | ||
| 1153 | ac_cv_path_AR="$ac_dir/$ac_word" | ||
| 1154 | break | ||
| 1155 | fi | ||
| 1156 | done | ||
| 1157 | IFS="$ac_save_ifs" | ||
| 1158 | ;; | ||
| 1159 | esac | ||
| 1160 | fi | ||
| 1161 | AR="$ac_cv_path_AR" | ||
| 1162 | if test -n "$AR"; then | ||
| 1163 | echo "$ac_t""$AR" 1>&6 | ||
| 1164 | else | ||
| 1165 | echo "$ac_t""no" 1>&6 | ||
| 1166 | fi | ||
| 1167 | |||
| 1168 | for ac_prog in perl5 perl | ||
| 1169 | do | ||
| 1170 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 1171 | set dummy $ac_prog; ac_word=$2 | ||
| 1172 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1173 | echo "configure:1174: checking for $ac_word" >&5 | ||
| 1174 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then | ||
| 1175 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1176 | else | ||
| 1177 | case "$PERL" in | ||
| 1178 | /*) | ||
| 1179 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | ||
| 1180 | ;; | ||
| 1181 | ?:/*) | ||
| 1182 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | ||
| 1183 | ;; | ||
| 1184 | *) | ||
| 1185 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1186 | ac_dummy="$PATH" | ||
| 1187 | for ac_dir in $ac_dummy; do | ||
| 1188 | test -z "$ac_dir" && ac_dir=. | ||
| 1189 | if test -f $ac_dir/$ac_word; then | ||
| 1190 | ac_cv_path_PERL="$ac_dir/$ac_word" | ||
| 1191 | break | ||
| 1192 | fi | ||
| 1193 | done | ||
| 1194 | IFS="$ac_save_ifs" | ||
| 1195 | ;; | ||
| 1196 | esac | ||
| 1197 | fi | ||
| 1198 | PERL="$ac_cv_path_PERL" | ||
| 1199 | if test -n "$PERL"; then | ||
| 1200 | echo "$ac_t""$PERL" 1>&6 | ||
| 1201 | else | ||
| 1202 | echo "$ac_t""no" 1>&6 | ||
| 1203 | fi | ||
| 1204 | |||
| 1205 | test -n "$PERL" && break | ||
| 1206 | done | ||
| 1207 | |||
| 1208 | |||
| 1209 | # Extract the first word of "ent", so it can be a program name with args. | ||
| 1210 | set dummy ent; ac_word=$2 | ||
| 1211 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1212 | echo "configure:1213: checking for $ac_word" >&5 | ||
| 1213 | if eval "test \"`echo '$''{'ac_cv_path_ENT'+set}'`\" = set"; then | ||
| 1214 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1215 | else | ||
| 1216 | case "$ENT" in | ||
| 1217 | /*) | ||
| 1218 | ac_cv_path_ENT="$ENT" # Let the user override the test with a path. | ||
| 1219 | ;; | ||
| 1220 | ?:/*) | ||
| 1221 | ac_cv_path_ENT="$ENT" # Let the user override the test with a dos path. | ||
| 1222 | ;; | ||
| 1223 | *) | ||
| 1224 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1225 | ac_dummy="$PATH" | ||
| 1226 | for ac_dir in $ac_dummy; do | ||
| 1227 | test -z "$ac_dir" && ac_dir=. | ||
| 1228 | if test -f $ac_dir/$ac_word; then | ||
| 1229 | ac_cv_path_ENT="$ac_dir/$ac_word" | ||
| 1230 | break | ||
| 1231 | fi | ||
| 1232 | done | ||
| 1233 | IFS="$ac_save_ifs" | ||
| 1234 | ;; | ||
| 1235 | esac | ||
| 1236 | fi | ||
| 1237 | ENT="$ac_cv_path_ENT" | ||
| 1238 | if test -n "$ENT"; then | ||
| 1239 | echo "$ac_t""$ENT" 1>&6 | ||
| 1240 | else | ||
| 1241 | echo "$ac_t""no" 1>&6 | ||
| 1242 | fi | ||
| 1243 | |||
| 1244 | |||
| 1245 | for ac_prog in filepriv | ||
| 1246 | do | ||
| 1247 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 1248 | set dummy $ac_prog; ac_word=$2 | ||
| 1249 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1250 | echo "configure:1251: checking for $ac_word" >&5 | ||
| 1251 | if eval "test \"`echo '$''{'ac_cv_path_FILEPRIV'+set}'`\" = set"; then | ||
| 1252 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1253 | else | ||
| 1254 | case "$FILEPRIV" in | ||
| 1255 | /*) | ||
| 1256 | ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a path. | ||
| 1257 | ;; | ||
| 1258 | ?:/*) | ||
| 1259 | ac_cv_path_FILEPRIV="$FILEPRIV" # Let the user override the test with a dos path. | ||
| 1260 | ;; | ||
| 1261 | *) | ||
| 1262 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1263 | ac_dummy="/sbin:/usr/sbin" | ||
| 1264 | for ac_dir in $ac_dummy; do | ||
| 1265 | test -z "$ac_dir" && ac_dir=. | ||
| 1266 | if test -f $ac_dir/$ac_word; then | ||
| 1267 | ac_cv_path_FILEPRIV="$ac_dir/$ac_word" | ||
| 1268 | break | ||
| 1269 | fi | ||
| 1270 | done | ||
| 1271 | IFS="$ac_save_ifs" | ||
| 1272 | ;; | ||
| 1273 | esac | ||
| 1274 | fi | ||
| 1275 | FILEPRIV="$ac_cv_path_FILEPRIV" | ||
| 1276 | if test -n "$FILEPRIV"; then | ||
| 1277 | echo "$ac_t""$FILEPRIV" 1>&6 | ||
| 1278 | else | ||
| 1279 | echo "$ac_t""no" 1>&6 | ||
| 1280 | fi | ||
| 1281 | |||
| 1282 | test -n "$FILEPRIV" && break | ||
| 1283 | done | ||
| 1284 | test -n "$FILEPRIV" || FILEPRIV="true" | ||
| 1285 | |||
| 1286 | # Extract the first word of "bash", so it can be a program name with args. | ||
| 1287 | set dummy bash; ac_word=$2 | ||
| 1288 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1289 | echo "configure:1290: checking for $ac_word" >&5 | ||
| 1290 | if eval "test \"`echo '$''{'ac_cv_path_TEST_MINUS_S_SH'+set}'`\" = set"; then | ||
| 1291 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1292 | else | ||
| 1293 | case "$TEST_MINUS_S_SH" in | ||
| 1294 | /*) | ||
| 1295 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
| 1296 | ;; | ||
| 1297 | ?:/*) | ||
| 1298 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a dos path. | ||
| 1299 | ;; | ||
| 1300 | *) | ||
| 1301 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1302 | ac_dummy="$PATH" | ||
| 1303 | for ac_dir in $ac_dummy; do | ||
| 1304 | test -z "$ac_dir" && ac_dir=. | ||
| 1305 | if test -f $ac_dir/$ac_word; then | ||
| 1306 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
| 1307 | break | ||
| 1308 | fi | ||
| 1309 | done | ||
| 1310 | IFS="$ac_save_ifs" | ||
| 1311 | ;; | ||
| 1312 | esac | ||
| 1313 | fi | ||
| 1314 | TEST_MINUS_S_SH="$ac_cv_path_TEST_MINUS_S_SH" | ||
| 1315 | if test -n "$TEST_MINUS_S_SH"; then | ||
| 1316 | echo "$ac_t""$TEST_MINUS_S_SH" 1>&6 | ||
| 1317 | else | ||
| 1318 | echo "$ac_t""no" 1>&6 | ||
| 1319 | fi | ||
| 1320 | |||
| 1321 | # Extract the first word of "ksh", so it can be a program name with args. | ||
| 1322 | set dummy ksh; ac_word=$2 | ||
| 1323 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1324 | echo "configure:1325: checking for $ac_word" >&5 | ||
| 1325 | if eval "test \"`echo '$''{'ac_cv_path_TEST_MINUS_S_SH'+set}'`\" = set"; then | ||
| 1326 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1327 | else | ||
| 1328 | case "$TEST_MINUS_S_SH" in | ||
| 1329 | /*) | ||
| 1330 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
| 1331 | ;; | ||
| 1332 | ?:/*) | ||
| 1333 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a dos path. | ||
| 1334 | ;; | ||
| 1335 | *) | ||
| 1336 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1337 | ac_dummy="$PATH" | ||
| 1338 | for ac_dir in $ac_dummy; do | ||
| 1339 | test -z "$ac_dir" && ac_dir=. | ||
| 1340 | if test -f $ac_dir/$ac_word; then | ||
| 1341 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
| 1342 | break | ||
| 1343 | fi | ||
| 1344 | done | ||
| 1345 | IFS="$ac_save_ifs" | ||
| 1346 | ;; | ||
| 1347 | esac | ||
| 1348 | fi | ||
| 1349 | TEST_MINUS_S_SH="$ac_cv_path_TEST_MINUS_S_SH" | ||
| 1350 | if test -n "$TEST_MINUS_S_SH"; then | ||
| 1351 | echo "$ac_t""$TEST_MINUS_S_SH" 1>&6 | ||
| 1352 | else | ||
| 1353 | echo "$ac_t""no" 1>&6 | ||
| 1354 | fi | ||
| 1355 | |||
| 1356 | # Extract the first word of "sh", so it can be a program name with args. | ||
| 1357 | set dummy sh; ac_word=$2 | ||
| 1358 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1359 | echo "configure:1360: checking for $ac_word" >&5 | ||
| 1360 | if eval "test \"`echo '$''{'ac_cv_path_TEST_MINUS_S_SH'+set}'`\" = set"; then | ||
| 1361 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1362 | else | ||
| 1363 | case "$TEST_MINUS_S_SH" in | ||
| 1364 | /*) | ||
| 1365 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a path. | ||
| 1366 | ;; | ||
| 1367 | ?:/*) | ||
| 1368 | ac_cv_path_TEST_MINUS_S_SH="$TEST_MINUS_S_SH" # Let the user override the test with a dos path. | ||
| 1369 | ;; | ||
| 1370 | *) | ||
| 1371 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1372 | ac_dummy="$PATH" | ||
| 1373 | for ac_dir in $ac_dummy; do | ||
| 1374 | test -z "$ac_dir" && ac_dir=. | ||
| 1375 | if test -f $ac_dir/$ac_word; then | ||
| 1376 | ac_cv_path_TEST_MINUS_S_SH="$ac_dir/$ac_word" | ||
| 1377 | break | ||
| 1378 | fi | ||
| 1379 | done | ||
| 1380 | IFS="$ac_save_ifs" | ||
| 1381 | ;; | ||
| 1382 | esac | ||
| 1383 | fi | ||
| 1384 | TEST_MINUS_S_SH="$ac_cv_path_TEST_MINUS_S_SH" | ||
| 1385 | if test -n "$TEST_MINUS_S_SH"; then | ||
| 1386 | echo "$ac_t""$TEST_MINUS_S_SH" 1>&6 | ||
| 1387 | else | ||
| 1388 | echo "$ac_t""no" 1>&6 | ||
| 1389 | fi | ||
| 1390 | |||
| 1391 | |||
| 1392 | if test -z "$AR" ; then | ||
| 1393 | { echo "configure: error: *** 'ar' missing, please install or fix your \$PATH ***" 1>&2; exit 1; } | ||
| 1394 | fi | ||
| 1395 | |||
| 1396 | # Use LOGIN_PROGRAM from environment if possible | ||
| 1397 | if test ! -z "$LOGIN_PROGRAM" ; then | ||
| 1398 | cat >> confdefs.h <<EOF | ||
| 1399 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM" | ||
| 1400 | EOF | ||
| 1401 | |||
| 1402 | else | ||
| 1403 | # Search for login | ||
| 1404 | # Extract the first word of "login", so it can be a program name with args. | ||
| 1405 | set dummy login; ac_word=$2 | ||
| 1406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 1407 | echo "configure:1408: checking for $ac_word" >&5 | ||
| 1408 | if eval "test \"`echo '$''{'ac_cv_path_LOGIN_PROGRAM_FALLBACK'+set}'`\" = set"; then | ||
| 1409 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1410 | else | ||
| 1411 | case "$LOGIN_PROGRAM_FALLBACK" in | ||
| 1412 | /*) | ||
| 1413 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a path. | ||
| 1414 | ;; | ||
| 1415 | ?:/*) | ||
| 1416 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$LOGIN_PROGRAM_FALLBACK" # Let the user override the test with a dos path. | ||
| 1417 | ;; | ||
| 1418 | *) | ||
| 1419 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 1420 | ac_dummy="$PATH" | ||
| 1421 | for ac_dir in $ac_dummy; do | ||
| 1422 | test -z "$ac_dir" && ac_dir=. | ||
| 1423 | if test -f $ac_dir/$ac_word; then | ||
| 1424 | ac_cv_path_LOGIN_PROGRAM_FALLBACK="$ac_dir/$ac_word" | ||
| 1425 | break | ||
| 1426 | fi | ||
| 1427 | done | ||
| 1428 | IFS="$ac_save_ifs" | ||
| 1429 | ;; | ||
| 1430 | esac | ||
| 1431 | fi | ||
| 1432 | LOGIN_PROGRAM_FALLBACK="$ac_cv_path_LOGIN_PROGRAM_FALLBACK" | ||
| 1433 | if test -n "$LOGIN_PROGRAM_FALLBACK"; then | ||
| 1434 | echo "$ac_t""$LOGIN_PROGRAM_FALLBACK" 1>&6 | ||
| 1435 | else | ||
| 1436 | echo "$ac_t""no" 1>&6 | ||
| 1437 | fi | ||
| 1438 | |||
| 1439 | if test ! -z "$LOGIN_PROGRAM_FALLBACK" ; then | ||
| 1440 | cat >> confdefs.h <<EOF | ||
| 1441 | #define LOGIN_PROGRAM_FALLBACK "$LOGIN_PROGRAM_FALLBACK" | ||
| 1442 | EOF | ||
| 1443 | |||
| 1444 | fi | ||
| 1445 | fi | ||
| 1446 | |||
| 1447 | if test -z "$LD" ; then | ||
| 1448 | LD=$CC | ||
| 1449 | fi | ||
| 1450 | |||
| 1451 | |||
| 1452 | # C Compiler features | ||
| 1453 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | ||
| 1454 | echo "configure:1455: checking for inline" >&5 | ||
| 1455 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | ||
| 1456 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1457 | else | ||
| 1458 | ac_cv_c_inline=no | ||
| 1459 | for ac_kw in inline __inline__ __inline; do | ||
| 1460 | cat > conftest.$ac_ext <<EOF | ||
| 1461 | #line 1462 "configure" | ||
| 1462 | #include "confdefs.h" | ||
| 1463 | |||
| 1464 | int main() { | ||
| 1465 | } $ac_kw foo() { | ||
| 1466 | ; return 0; } | ||
| 1467 | EOF | ||
| 1468 | if { (eval echo configure:1469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 1469 | rm -rf conftest* | ||
| 1470 | ac_cv_c_inline=$ac_kw; break | ||
| 1471 | else | ||
| 1472 | echo "configure: failed program was:" >&5 | ||
| 1473 | cat conftest.$ac_ext >&5 | ||
| 1474 | fi | ||
| 1475 | rm -f conftest* | ||
| 1476 | done | ||
| 1477 | |||
| 1478 | fi | ||
| 1479 | |||
| 1480 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | ||
| 1481 | case "$ac_cv_c_inline" in | ||
| 1482 | inline | yes) ;; | ||
| 1483 | no) cat >> confdefs.h <<\EOF | ||
| 1484 | #define inline | ||
| 1485 | EOF | ||
| 1486 | ;; | ||
| 1487 | *) cat >> confdefs.h <<EOF | ||
| 1488 | #define inline $ac_cv_c_inline | ||
| 1489 | EOF | ||
| 1490 | ;; | ||
| 1491 | esac | ||
| 1492 | |||
| 1493 | if test "$GCC" = "yes"; then | ||
| 1494 | CFLAGS="$CFLAGS -Wall" | ||
| 1495 | fi | ||
| 1496 | |||
| 1497 | # Check for some target-specific stuff | ||
| 1498 | case "$host" in | ||
| 1499 | *-*-aix*) | ||
| 1500 | AFS_LIBS="-lld" | ||
| 1501 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1502 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1503 | if (test "$LD" != "gcc" && test -z "$blibpath"); then | ||
| 1504 | blibpath="/usr/lib:/lib:/usr/local/lib" | ||
| 1505 | fi | ||
| 1506 | echo $ac_n "checking for authenticate""... $ac_c" 1>&6 | ||
| 1507 | echo "configure:1508: checking for authenticate" >&5 | ||
| 1508 | if eval "test \"`echo '$''{'ac_cv_func_authenticate'+set}'`\" = set"; then | ||
| 1509 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1510 | else | ||
| 1511 | cat > conftest.$ac_ext <<EOF | ||
| 1512 | #line 1513 "configure" | ||
| 1513 | #include "confdefs.h" | ||
| 1514 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1515 | which can conflict with char authenticate(); below. */ | ||
| 1516 | #include <assert.h> | ||
| 1517 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1518 | /* We use char because int might match the return type of a gcc2 | ||
| 1519 | builtin and then its argument prototype would still apply. */ | ||
| 1520 | char authenticate(); | ||
| 1521 | |||
| 1522 | int main() { | ||
| 1523 | |||
| 1524 | /* The GNU C library defines this for functions which it implements | ||
| 1525 | to always fail with ENOSYS. Some functions are actually named | ||
| 1526 | something starting with __ and the normal name is an alias. */ | ||
| 1527 | #if defined (__stub_authenticate) || defined (__stub___authenticate) | ||
| 1528 | choke me | ||
| 1529 | #else | ||
| 1530 | authenticate(); | ||
| 1531 | #endif | ||
| 1532 | |||
| 1533 | ; return 0; } | ||
| 1534 | EOF | ||
| 1535 | if { (eval echo configure:1536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1536 | rm -rf conftest* | ||
| 1537 | eval "ac_cv_func_authenticate=yes" | ||
| 1538 | else | ||
| 1539 | echo "configure: failed program was:" >&5 | ||
| 1540 | cat conftest.$ac_ext >&5 | ||
| 1541 | rm -rf conftest* | ||
| 1542 | eval "ac_cv_func_authenticate=no" | ||
| 1543 | fi | ||
| 1544 | rm -f conftest* | ||
| 1545 | fi | ||
| 1546 | |||
| 1547 | if eval "test \"`echo '$ac_cv_func_'authenticate`\" = yes"; then | ||
| 1548 | echo "$ac_t""yes" 1>&6 | ||
| 1549 | cat >> confdefs.h <<\EOF | ||
| 1550 | #define WITH_AIXAUTHENTICATE 1 | ||
| 1551 | EOF | ||
| 1552 | |||
| 1553 | else | ||
| 1554 | echo "$ac_t""no" 1>&6 | ||
| 1555 | fi | ||
| 1556 | |||
| 1557 | cat >> confdefs.h <<\EOF | ||
| 1558 | #define BROKEN_GETADDRINFO 1 | ||
| 1559 | EOF | ||
| 1560 | |||
| 1561 | cat >> confdefs.h <<\EOF | ||
| 1562 | #define DISABLE_LASTLOG 1 | ||
| 1563 | EOF | ||
| 1564 | |||
| 1565 | ;; | ||
| 1566 | *-*-cygwin*) | ||
| 1567 | LIBS="$LIBS -lregex /usr/lib/textmode.o" | ||
| 1568 | cat >> confdefs.h <<\EOF | ||
| 1569 | #define HAVE_CYGWIN 1 | ||
| 1570 | EOF | ||
| 1571 | |||
| 1572 | cat >> confdefs.h <<\EOF | ||
| 1573 | #define DISABLE_SHADOW 1 | ||
| 1574 | EOF | ||
| 1575 | |||
| 1576 | cat >> confdefs.h <<\EOF | ||
| 1577 | #define IPV4_DEFAULT 1 | ||
| 1578 | EOF | ||
| 1579 | |||
| 1580 | cat >> confdefs.h <<\EOF | ||
| 1581 | #define IP_TOS_IS_BROKEN 1 | ||
| 1582 | EOF | ||
| 1583 | |||
| 1584 | cat >> confdefs.h <<\EOF | ||
| 1585 | #define NO_X11_UNIX_SOCKETS 1 | ||
| 1586 | EOF | ||
| 1587 | |||
| 1588 | no_libsocket=1 | ||
| 1589 | no_libnsl=1 | ||
| 1590 | ;; | ||
| 1591 | *-*-dgux*) | ||
| 1592 | cat >> confdefs.h <<\EOF | ||
| 1593 | #define IP_TOS_IS_BROKEN 1 | ||
| 1594 | EOF | ||
| 1595 | |||
| 1596 | ;; | ||
| 1597 | *-*-hpux10*) | ||
| 1598 | if test -z "$GCC"; then | ||
| 1599 | CFLAGS="$CFLAGS -Ae" | ||
| 1600 | fi | ||
| 1601 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" | ||
| 1602 | IPADDR_IN_DISPLAY=yes | ||
| 1603 | cat >> confdefs.h <<\EOF | ||
| 1604 | #define USE_PIPES 1 | ||
| 1605 | EOF | ||
| 1606 | |||
| 1607 | cat >> confdefs.h <<\EOF | ||
| 1608 | #define DISABLE_SHADOW 1 | ||
| 1609 | EOF | ||
| 1610 | |||
| 1611 | cat >> confdefs.h <<\EOF | ||
| 1612 | #define DISABLE_UTMP 1 | ||
| 1613 | EOF | ||
| 1614 | |||
| 1615 | cat >> confdefs.h <<\EOF | ||
| 1616 | #define SPT_TYPE SPT_PSTAT | ||
| 1617 | EOF | ||
| 1618 | |||
| 1619 | LIBS="$LIBS -lsec" | ||
| 1620 | ;; | ||
| 1621 | *-*-hpux11*) | ||
| 1622 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" | ||
| 1623 | IPADDR_IN_DISPLAY=yes | ||
| 1624 | cat >> confdefs.h <<\EOF | ||
| 1625 | #define PAM_SUN_CODEBASE 1 | ||
| 1626 | EOF | ||
| 1627 | |||
| 1628 | cat >> confdefs.h <<\EOF | ||
| 1629 | #define USE_PIPES 1 | ||
| 1630 | EOF | ||
| 1631 | |||
| 1632 | cat >> confdefs.h <<\EOF | ||
| 1633 | #define DISABLE_SHADOW 1 | ||
| 1634 | EOF | ||
| 1635 | |||
| 1636 | cat >> confdefs.h <<\EOF | ||
| 1637 | #define DISABLE_UTMP 1 | ||
| 1638 | EOF | ||
| 1639 | |||
| 1640 | cat >> confdefs.h <<\EOF | ||
| 1641 | #define SPT_TYPE SPT_PSTAT | ||
| 1642 | EOF | ||
| 1643 | |||
| 1644 | LIBS="$LIBS -lsec" | ||
| 1645 | ;; | ||
| 1646 | *-*-irix5*) | ||
| 1647 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1648 | LDFLAGS="$LDFLAGS" | ||
| 1649 | PATH="$PATH:/usr/etc" | ||
| 1650 | no_libsocket=1 | ||
| 1651 | no_libnsl=1 | ||
| 1652 | cat >> confdefs.h <<\EOF | ||
| 1653 | #define BROKEN_INET_NTOA 1 | ||
| 1654 | EOF | ||
| 1655 | |||
| 1656 | ;; | ||
| 1657 | *-*-irix6*) | ||
| 1658 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1659 | LDFLAGS="$LDFLAGS" | ||
| 1660 | PATH="$PATH:/usr/etc" | ||
| 1661 | cat >> confdefs.h <<\EOF | ||
| 1662 | #define WITH_IRIX_ARRAY 1 | ||
| 1663 | EOF | ||
| 1664 | |||
| 1665 | cat >> confdefs.h <<\EOF | ||
| 1666 | #define WITH_IRIX_PROJECT 1 | ||
| 1667 | EOF | ||
| 1668 | |||
| 1669 | cat >> confdefs.h <<\EOF | ||
| 1670 | #define WITH_IRIX_AUDIT 1 | ||
| 1671 | EOF | ||
| 1672 | |||
| 1673 | echo $ac_n "checking for jlimit_startjob""... $ac_c" 1>&6 | ||
| 1674 | echo "configure:1675: checking for jlimit_startjob" >&5 | ||
| 1675 | if eval "test \"`echo '$''{'ac_cv_func_jlimit_startjob'+set}'`\" = set"; then | ||
| 1676 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1677 | else | ||
| 1678 | cat > conftest.$ac_ext <<EOF | ||
| 1679 | #line 1680 "configure" | ||
| 1680 | #include "confdefs.h" | ||
| 1681 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1682 | which can conflict with char jlimit_startjob(); below. */ | ||
| 1683 | #include <assert.h> | ||
| 1684 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1685 | /* We use char because int might match the return type of a gcc2 | ||
| 1686 | builtin and then its argument prototype would still apply. */ | ||
| 1687 | char jlimit_startjob(); | ||
| 1688 | |||
| 1689 | int main() { | ||
| 1690 | |||
| 1691 | /* The GNU C library defines this for functions which it implements | ||
| 1692 | to always fail with ENOSYS. Some functions are actually named | ||
| 1693 | something starting with __ and the normal name is an alias. */ | ||
| 1694 | #if defined (__stub_jlimit_startjob) || defined (__stub___jlimit_startjob) | ||
| 1695 | choke me | ||
| 1696 | #else | ||
| 1697 | jlimit_startjob(); | ||
| 1698 | #endif | ||
| 1699 | |||
| 1700 | ; return 0; } | ||
| 1701 | EOF | ||
| 1702 | if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1703 | rm -rf conftest* | ||
| 1704 | eval "ac_cv_func_jlimit_startjob=yes" | ||
| 1705 | else | ||
| 1706 | echo "configure: failed program was:" >&5 | ||
| 1707 | cat conftest.$ac_ext >&5 | ||
| 1708 | rm -rf conftest* | ||
| 1709 | eval "ac_cv_func_jlimit_startjob=no" | ||
| 1710 | fi | ||
| 1711 | rm -f conftest* | ||
| 1712 | fi | ||
| 1713 | |||
| 1714 | if eval "test \"`echo '$ac_cv_func_'jlimit_startjob`\" = yes"; then | ||
| 1715 | echo "$ac_t""yes" 1>&6 | ||
| 1716 | cat >> confdefs.h <<\EOF | ||
| 1717 | #define WITH_IRIX_JOBS 1 | ||
| 1718 | EOF | ||
| 1719 | |||
| 1720 | else | ||
| 1721 | echo "$ac_t""no" 1>&6 | ||
| 1722 | fi | ||
| 1723 | |||
| 1724 | no_libsocket=1 | ||
| 1725 | no_libnsl=1 | ||
| 1726 | cat >> confdefs.h <<\EOF | ||
| 1727 | #define BROKEN_INET_NTOA 1 | ||
| 1728 | EOF | ||
| 1729 | |||
| 1730 | ;; | ||
| 1731 | *-*-linux*) | ||
| 1732 | no_dev_ptmx=1 | ||
| 1733 | check_for_libcrypt_later=1 | ||
| 1734 | cat >> confdefs.h <<\EOF | ||
| 1735 | #define DONT_TRY_OTHER_AF 1 | ||
| 1736 | EOF | ||
| 1737 | |||
| 1738 | cat >> confdefs.h <<\EOF | ||
| 1739 | #define PAM_TTY_KLUDGE 1 | ||
| 1740 | EOF | ||
| 1741 | |||
| 1742 | inet6_default_4in6=yes | ||
| 1743 | ;; | ||
| 1744 | mips-sony-bsd|mips-sony-newsos4) | ||
| 1745 | cat >> confdefs.h <<\EOF | ||
| 1746 | #define HAVE_NEWS4 1 | ||
| 1747 | EOF | ||
| 1748 | |||
| 1749 | SONY=1 | ||
| 1750 | echo $ac_n "checking for xatexit in -liberty""... $ac_c" 1>&6 | ||
| 1751 | echo "configure:1752: checking for xatexit in -liberty" >&5 | ||
| 1752 | ac_lib_var=`echo iberty'_'xatexit | sed 'y%./+-%__p_%'` | ||
| 1753 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 1754 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1755 | else | ||
| 1756 | ac_save_LIBS="$LIBS" | ||
| 1757 | LIBS="-liberty $LIBS" | ||
| 1758 | cat > conftest.$ac_ext <<EOF | ||
| 1759 | #line 1760 "configure" | ||
| 1760 | #include "confdefs.h" | ||
| 1761 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1762 | /* We use char because int might match the return type of a gcc2 | ||
| 1763 | builtin and then its argument prototype would still apply. */ | ||
| 1764 | char xatexit(); | ||
| 1765 | |||
| 1766 | int main() { | ||
| 1767 | xatexit() | ||
| 1768 | ; return 0; } | ||
| 1769 | EOF | ||
| 1770 | if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1771 | rm -rf conftest* | ||
| 1772 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 1773 | else | ||
| 1774 | echo "configure: failed program was:" >&5 | ||
| 1775 | cat conftest.$ac_ext >&5 | ||
| 1776 | rm -rf conftest* | ||
| 1777 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 1778 | fi | ||
| 1779 | rm -f conftest* | ||
| 1780 | LIBS="$ac_save_LIBS" | ||
| 1781 | |||
| 1782 | fi | ||
| 1783 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 1784 | echo "$ac_t""yes" 1>&6 | ||
| 1785 | cat >> confdefs.h <<\EOF | ||
| 1786 | #define HAVE_XATEXIT 1 | ||
| 1787 | EOF | ||
| 1788 | |||
| 1789 | else | ||
| 1790 | echo "$ac_t""no" 1>&6 | ||
| 1791 | { echo "configure: error: *** libiberty missing - please install first or check config.log ***" 1>&2; exit 1; } | ||
| 1792 | |||
| 1793 | fi | ||
| 1794 | |||
| 1795 | ;; | ||
| 1796 | *-*-netbsd*) | ||
| 1797 | need_dash_r=1 | ||
| 1798 | ;; | ||
| 1799 | *-*-freebsd*) | ||
| 1800 | check_for_libcrypt_later=1 | ||
| 1801 | ;; | ||
| 1802 | *-next-*) | ||
| 1803 | conf_lastlog_location="/usr/adm/lastlog" | ||
| 1804 | conf_utmp_location=/etc/utmp | ||
| 1805 | conf_wtmp_location=/usr/adm/wtmp | ||
| 1806 | MAIL=/usr/spool/mail | ||
| 1807 | cat >> confdefs.h <<\EOF | ||
| 1808 | #define HAVE_NEXT 1 | ||
| 1809 | EOF | ||
| 1810 | |||
| 1811 | cat >> confdefs.h <<\EOF | ||
| 1812 | #define BROKEN_REALPATH 1 | ||
| 1813 | EOF | ||
| 1814 | |||
| 1815 | cat >> confdefs.h <<\EOF | ||
| 1816 | #define USE_PIPES 1 | ||
| 1817 | EOF | ||
| 1818 | |||
| 1819 | cat >> confdefs.h <<\EOF | ||
| 1820 | #define BROKEN_SAVED_UIDS 1 | ||
| 1821 | EOF | ||
| 1822 | |||
| 1823 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1824 | CFLAGS="$CFLAGS" | ||
| 1825 | ;; | ||
| 1826 | *-*-solaris*) | ||
| 1827 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1828 | LDFLAGS="$LDFLAGS -L/usr/local/lib -R/usr/local/lib" | ||
| 1829 | need_dash_r=1 | ||
| 1830 | cat >> confdefs.h <<\EOF | ||
| 1831 | #define PAM_SUN_CODEBASE 1 | ||
| 1832 | EOF | ||
| 1833 | |||
| 1834 | # hardwire lastlog location (can't detect it on some versions) | ||
| 1835 | conf_lastlog_location="/var/adm/lastlog" | ||
| 1836 | echo $ac_n "checking for obsolete utmp and wtmp in solaris2.x""... $ac_c" 1>&6 | ||
| 1837 | echo "configure:1838: checking for obsolete utmp and wtmp in solaris2.x" >&5 | ||
| 1838 | sol2ver=`echo "$host"| sed -e 's/.*[0-9]\.//'` | ||
| 1839 | if test "$sol2ver" -ge 8; then | ||
| 1840 | echo "$ac_t""yes" 1>&6 | ||
| 1841 | cat >> confdefs.h <<\EOF | ||
| 1842 | #define DISABLE_UTMP 1 | ||
| 1843 | EOF | ||
| 1844 | |||
| 1845 | cat >> confdefs.h <<\EOF | ||
| 1846 | #define DISABLE_WTMP 1 | ||
| 1847 | EOF | ||
| 1848 | |||
| 1849 | else | ||
| 1850 | echo "$ac_t""no" 1>&6 | ||
| 1851 | fi | ||
| 1852 | ;; | ||
| 1853 | *-*-sunos4*) | ||
| 1854 | CPPFLAGS="$CPPFLAGS -DSUNOS4" | ||
| 1855 | for ac_func in getpwanam | ||
| 1856 | do | ||
| 1857 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 1858 | echo "configure:1859: checking for $ac_func" >&5 | ||
| 1859 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 1860 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 1861 | else | ||
| 1862 | cat > conftest.$ac_ext <<EOF | ||
| 1863 | #line 1864 "configure" | ||
| 1864 | #include "confdefs.h" | ||
| 1865 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 1866 | which can conflict with char $ac_func(); below. */ | ||
| 1867 | #include <assert.h> | ||
| 1868 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 1869 | /* We use char because int might match the return type of a gcc2 | ||
| 1870 | builtin and then its argument prototype would still apply. */ | ||
| 1871 | char $ac_func(); | ||
| 1872 | |||
| 1873 | int main() { | ||
| 1874 | |||
| 1875 | /* The GNU C library defines this for functions which it implements | ||
| 1876 | to always fail with ENOSYS. Some functions are actually named | ||
| 1877 | something starting with __ and the normal name is an alias. */ | ||
| 1878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 1879 | choke me | ||
| 1880 | #else | ||
| 1881 | $ac_func(); | ||
| 1882 | #endif | ||
| 1883 | |||
| 1884 | ; return 0; } | ||
| 1885 | EOF | ||
| 1886 | if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 1887 | rm -rf conftest* | ||
| 1888 | eval "ac_cv_func_$ac_func=yes" | ||
| 1889 | else | ||
| 1890 | echo "configure: failed program was:" >&5 | ||
| 1891 | cat conftest.$ac_ext >&5 | ||
| 1892 | rm -rf conftest* | ||
| 1893 | eval "ac_cv_func_$ac_func=no" | ||
| 1894 | fi | ||
| 1895 | rm -f conftest* | ||
| 1896 | fi | ||
| 1897 | |||
| 1898 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 1899 | echo "$ac_t""yes" 1>&6 | ||
| 1900 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 1901 | cat >> confdefs.h <<EOF | ||
| 1902 | #define $ac_tr_func 1 | ||
| 1903 | EOF | ||
| 1904 | |||
| 1905 | else | ||
| 1906 | echo "$ac_t""no" 1>&6 | ||
| 1907 | fi | ||
| 1908 | done | ||
| 1909 | |||
| 1910 | cat >> confdefs.h <<\EOF | ||
| 1911 | #define PAM_SUN_CODEBASE 1 | ||
| 1912 | EOF | ||
| 1913 | |||
| 1914 | cat >> confdefs.h <<\EOF | ||
| 1915 | #define HAVE_BOGUS_SYS_QUEUE_H 1 | ||
| 1916 | EOF | ||
| 1917 | |||
| 1918 | conf_utmp_location=/etc/utmp | ||
| 1919 | conf_wtmp_location=/var/adm/wtmp | ||
| 1920 | conf_lastlog_location=/var/adm/lastlog | ||
| 1921 | cat >> confdefs.h <<\EOF | ||
| 1922 | #define USE_PIPES 1 | ||
| 1923 | EOF | ||
| 1924 | |||
| 1925 | ;; | ||
| 1926 | *-ncr-sysv*) | ||
| 1927 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1928 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1929 | LIBS="$LIBS -lc89 -lnsl -lgen -lsocket" | ||
| 1930 | cat >> confdefs.h <<\EOF | ||
| 1931 | #define HAVE_BOGUS_SYS_QUEUE_H 1 | ||
| 1932 | EOF | ||
| 1933 | |||
| 1934 | ;; | ||
| 1935 | *-sni-sysv*) | ||
| 1936 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1937 | LDFLAGS="$LDFLAGS -L/usr/local/lib -L/usr/ucblib" | ||
| 1938 | IPADDR_IN_DISPLAY=yes | ||
| 1939 | cat >> confdefs.h <<\EOF | ||
| 1940 | #define USE_PIPES 1 | ||
| 1941 | EOF | ||
| 1942 | |||
| 1943 | cat >> confdefs.h <<\EOF | ||
| 1944 | #define IP_TOS_IS_BROKEN 1 | ||
| 1945 | EOF | ||
| 1946 | |||
| 1947 | cat >> confdefs.h <<\EOF | ||
| 1948 | #define HAVE_BOGUS_SYS_QUEUE_H 1 | ||
| 1949 | EOF | ||
| 1950 | |||
| 1951 | LIBS="$LIBS -lgen -lnsl -lucb" | ||
| 1952 | ;; | ||
| 1953 | *-*-sysv4.2*) | ||
| 1954 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1955 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1956 | enable_suid_ssh=no | ||
| 1957 | cat >> confdefs.h <<\EOF | ||
| 1958 | #define USE_PIPES 1 | ||
| 1959 | EOF | ||
| 1960 | |||
| 1961 | ;; | ||
| 1962 | *-*-sysv5*) | ||
| 1963 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1964 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1965 | enable_suid_ssh=no | ||
| 1966 | cat >> confdefs.h <<\EOF | ||
| 1967 | #define USE_PIPES 1 | ||
| 1968 | EOF | ||
| 1969 | |||
| 1970 | ;; | ||
| 1971 | *-*-sysv*) | ||
| 1972 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 1973 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1974 | LIBS="$LIBS -lgen -lsocket" | ||
| 1975 | ;; | ||
| 1976 | *-*-sco3.2v4*) | ||
| 1977 | CPPFLAGS="$CPPFLAGS -Dftruncate=chsize -I/usr/local/include" | ||
| 1978 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 1979 | LIBS="$LIBS -lgen -lsocket -los -lprot -lx -ltinfo -lm" | ||
| 1980 | rsh_path="/usr/bin/rcmd" | ||
| 1981 | RANLIB=true | ||
| 1982 | no_dev_ptmx=1 | ||
| 1983 | cat >> confdefs.h <<\EOF | ||
| 1984 | #define BROKEN_SYS_TERMIO_H 1 | ||
| 1985 | EOF | ||
| 1986 | |||
| 1987 | cat >> confdefs.h <<\EOF | ||
| 1988 | #define USE_PIPES 1 | ||
| 1989 | EOF | ||
| 1990 | |||
| 1991 | cat >> confdefs.h <<\EOF | ||
| 1992 | #define HAVE_SCO_PROTECTED_PW 1 | ||
| 1993 | EOF | ||
| 1994 | |||
| 1995 | cat >> confdefs.h <<\EOF | ||
| 1996 | #define DISABLE_SHADOW 1 | ||
| 1997 | EOF | ||
| 1998 | |||
| 1999 | cat >> confdefs.h <<\EOF | ||
| 2000 | #define HAVE_BOGUS_SYS_QUEUE_H 1 | ||
| 2001 | EOF | ||
| 2002 | |||
| 2003 | cat >> confdefs.h <<\EOF | ||
| 2004 | #define BROKEN_SAVED_UIDS 1 | ||
| 2005 | EOF | ||
| 2006 | |||
| 2007 | for ac_func in getluid setluid | ||
| 2008 | do | ||
| 2009 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 2010 | echo "configure:2011: checking for $ac_func" >&5 | ||
| 2011 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 2012 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2013 | else | ||
| 2014 | cat > conftest.$ac_ext <<EOF | ||
| 2015 | #line 2016 "configure" | ||
| 2016 | #include "confdefs.h" | ||
| 2017 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2018 | which can conflict with char $ac_func(); below. */ | ||
| 2019 | #include <assert.h> | ||
| 2020 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2021 | /* We use char because int might match the return type of a gcc2 | ||
| 2022 | builtin and then its argument prototype would still apply. */ | ||
| 2023 | char $ac_func(); | ||
| 2024 | |||
| 2025 | int main() { | ||
| 2026 | |||
| 2027 | /* The GNU C library defines this for functions which it implements | ||
| 2028 | to always fail with ENOSYS. Some functions are actually named | ||
| 2029 | something starting with __ and the normal name is an alias. */ | ||
| 2030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 2031 | choke me | ||
| 2032 | #else | ||
| 2033 | $ac_func(); | ||
| 2034 | #endif | ||
| 2035 | |||
| 2036 | ; return 0; } | ||
| 2037 | EOF | ||
| 2038 | if { (eval echo configure:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2039 | rm -rf conftest* | ||
| 2040 | eval "ac_cv_func_$ac_func=yes" | ||
| 2041 | else | ||
| 2042 | echo "configure: failed program was:" >&5 | ||
| 2043 | cat conftest.$ac_ext >&5 | ||
| 2044 | rm -rf conftest* | ||
| 2045 | eval "ac_cv_func_$ac_func=no" | ||
| 2046 | fi | ||
| 2047 | rm -f conftest* | ||
| 2048 | fi | ||
| 2049 | |||
| 2050 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 2051 | echo "$ac_t""yes" 1>&6 | ||
| 2052 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 2053 | cat >> confdefs.h <<EOF | ||
| 2054 | #define $ac_tr_func 1 | ||
| 2055 | EOF | ||
| 2056 | |||
| 2057 | else | ||
| 2058 | echo "$ac_t""no" 1>&6 | ||
| 2059 | fi | ||
| 2060 | done | ||
| 2061 | |||
| 2062 | MANTYPE=man | ||
| 2063 | ;; | ||
| 2064 | *-*-sco3.2v5*) | ||
| 2065 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | ||
| 2066 | LDFLAGS="$LDFLAGS -L/usr/local/lib" | ||
| 2067 | LIBS="$LIBS -lprot -lx -ltinfo -lm" | ||
| 2068 | no_dev_ptmx=1 | ||
| 2069 | rsh_path="/usr/bin/rcmd" | ||
| 2070 | cat >> confdefs.h <<\EOF | ||
| 2071 | #define USE_PIPES 1 | ||
| 2072 | EOF | ||
| 2073 | |||
| 2074 | cat >> confdefs.h <<\EOF | ||
| 2075 | #define HAVE_SCO_PROTECTED_PW 1 | ||
| 2076 | EOF | ||
| 2077 | |||
| 2078 | cat >> confdefs.h <<\EOF | ||
| 2079 | #define DISABLE_SHADOW 1 | ||
| 2080 | EOF | ||
| 2081 | |||
| 2082 | cat >> confdefs.h <<\EOF | ||
| 2083 | #define HAVE_BOGUS_SYS_QUEUE_H 1 | ||
| 2084 | EOF | ||
| 2085 | |||
| 2086 | for ac_func in getluid setluid | ||
| 2087 | do | ||
| 2088 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 2089 | echo "configure:2090: checking for $ac_func" >&5 | ||
| 2090 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 2091 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2092 | else | ||
| 2093 | cat > conftest.$ac_ext <<EOF | ||
| 2094 | #line 2095 "configure" | ||
| 2095 | #include "confdefs.h" | ||
| 2096 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2097 | which can conflict with char $ac_func(); below. */ | ||
| 2098 | #include <assert.h> | ||
| 2099 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2100 | /* We use char because int might match the return type of a gcc2 | ||
| 2101 | builtin and then its argument prototype would still apply. */ | ||
| 2102 | char $ac_func(); | ||
| 2103 | |||
| 2104 | int main() { | ||
| 2105 | |||
| 2106 | /* The GNU C library defines this for functions which it implements | ||
| 2107 | to always fail with ENOSYS. Some functions are actually named | ||
| 2108 | something starting with __ and the normal name is an alias. */ | ||
| 2109 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 2110 | choke me | ||
| 2111 | #else | ||
| 2112 | $ac_func(); | ||
| 2113 | #endif | ||
| 2114 | |||
| 2115 | ; return 0; } | ||
| 2116 | EOF | ||
| 2117 | if { (eval echo configure:2118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2118 | rm -rf conftest* | ||
| 2119 | eval "ac_cv_func_$ac_func=yes" | ||
| 2120 | else | ||
| 2121 | echo "configure: failed program was:" >&5 | ||
| 2122 | cat conftest.$ac_ext >&5 | ||
| 2123 | rm -rf conftest* | ||
| 2124 | eval "ac_cv_func_$ac_func=no" | ||
| 2125 | fi | ||
| 2126 | rm -f conftest* | ||
| 2127 | fi | ||
| 2128 | |||
| 2129 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 2130 | echo "$ac_t""yes" 1>&6 | ||
| 2131 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 2132 | cat >> confdefs.h <<EOF | ||
| 2133 | #define $ac_tr_func 1 | ||
| 2134 | EOF | ||
| 2135 | |||
| 2136 | else | ||
| 2137 | echo "$ac_t""no" 1>&6 | ||
| 2138 | fi | ||
| 2139 | done | ||
| 2140 | |||
| 2141 | MANTYPE=man | ||
| 2142 | ;; | ||
| 2143 | *-dec-osf*) | ||
| 2144 | if test ! -z "USE_SIA" ; then | ||
| 2145 | echo $ac_n "checking for Digital Unix Security Integration Architecture""... $ac_c" 1>&6 | ||
| 2146 | echo "configure:2147: checking for Digital Unix Security Integration Architecture" >&5 | ||
| 2147 | if test -f /etc/sia/matrix.conf; then | ||
| 2148 | echo "$ac_t""yes" 1>&6 | ||
| 2149 | cat >> confdefs.h <<\EOF | ||
| 2150 | #define HAVE_OSF_SIA 1 | ||
| 2151 | EOF | ||
| 2152 | |||
| 2153 | cat >> confdefs.h <<\EOF | ||
| 2154 | #define DISABLE_LOGIN 1 | ||
| 2155 | EOF | ||
| 2156 | |||
| 2157 | LIBS="$LIBS -lsecurity -ldb -lm -laud" | ||
| 2158 | else | ||
| 2159 | echo "$ac_t""no" 1>&6 | ||
| 2160 | fi | ||
| 2161 | fi | ||
| 2162 | ;; | ||
| 2163 | esac | ||
| 2164 | |||
| 2165 | # Allow user to specify flags | ||
| 2166 | # Check whether --with-cflags or --without-cflags was given. | ||
| 2167 | if test "${with_cflags+set}" = set; then | ||
| 2168 | withval="$with_cflags" | ||
| 2169 | |||
| 2170 | if test "x$withval" != "xno" ; then | ||
| 2171 | CFLAGS="$CFLAGS $withval" | ||
| 2172 | fi | ||
| 2173 | |||
| 2174 | |||
| 2175 | fi | ||
| 2176 | |||
| 2177 | # Check whether --with-cppflags or --without-cppflags was given. | ||
| 2178 | if test "${with_cppflags+set}" = set; then | ||
| 2179 | withval="$with_cppflags" | ||
| 2180 | |||
| 2181 | if test "x$withval" != "xno"; then | ||
| 2182 | CPPFLAGS="$CPPFLAGS $withval" | ||
| 2183 | fi | ||
| 2184 | |||
| 2185 | |||
| 2186 | fi | ||
| 2187 | |||
| 2188 | # Check whether --with-ldflags or --without-ldflags was given. | ||
| 2189 | if test "${with_ldflags+set}" = set; then | ||
| 2190 | withval="$with_ldflags" | ||
| 2191 | |||
| 2192 | if test "x$withval" != "xno" ; then | ||
| 2193 | LDFLAGS="$LDFLAGS $withval" | ||
| 2194 | fi | ||
| 2195 | |||
| 2196 | |||
| 2197 | fi | ||
| 2198 | |||
| 2199 | # Check whether --with-libs or --without-libs was given. | ||
| 2200 | if test "${with_libs+set}" = set; then | ||
| 2201 | withval="$with_libs" | ||
| 2202 | |||
| 2203 | if test "x$withval" != "xno" ; then | ||
| 2204 | LIBS="$LIBS $withval" | ||
| 2205 | fi | ||
| 2206 | |||
| 2207 | |||
| 2208 | fi | ||
| 2209 | |||
| 2210 | |||
| 2211 | # Check whether --with-pcre or --without-pcre was given. | ||
| 2212 | if test "${with_pcre+set}" = set; then | ||
| 2213 | withval="$with_pcre" | ||
| 2214 | |||
| 2215 | |||
| 2216 | echo $ac_n "checking for pcre_info in -lpcre""... $ac_c" 1>&6 | ||
| 2217 | echo "configure:2218: checking for pcre_info in -lpcre" >&5 | ||
| 2218 | ac_lib_var=`echo pcre'_'pcre_info | sed 'y%./+-%__p_%'` | ||
| 2219 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2220 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2221 | else | ||
| 2222 | ac_save_LIBS="$LIBS" | ||
| 2223 | LIBS="-lpcre $LIBS" | ||
| 2224 | cat > conftest.$ac_ext <<EOF | ||
| 2225 | #line 2226 "configure" | ||
| 2226 | #include "confdefs.h" | ||
| 2227 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2228 | /* We use char because int might match the return type of a gcc2 | ||
| 2229 | builtin and then its argument prototype would still apply. */ | ||
| 2230 | char pcre_info(); | ||
| 2231 | |||
| 2232 | int main() { | ||
| 2233 | pcre_info() | ||
| 2234 | ; return 0; } | ||
| 2235 | EOF | ||
| 2236 | if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2237 | rm -rf conftest* | ||
| 2238 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2239 | else | ||
| 2240 | echo "configure: failed program was:" >&5 | ||
| 2241 | cat conftest.$ac_ext >&5 | ||
| 2242 | rm -rf conftest* | ||
| 2243 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2244 | fi | ||
| 2245 | rm -f conftest* | ||
| 2246 | LIBS="$ac_save_LIBS" | ||
| 2247 | |||
| 2248 | fi | ||
| 2249 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2250 | echo "$ac_t""yes" 1>&6 | ||
| 2251 | |||
| 2252 | cat >> confdefs.h <<\EOF | ||
| 2253 | #define HAVE_LIBPCRE 1 | ||
| 2254 | EOF | ||
| 2255 | |||
| 2256 | LIBS="$LIBS -lpcreposix -lpcre" | ||
| 2257 | no_comp_check="yes" | ||
| 2258 | |||
| 2259 | else | ||
| 2260 | echo "$ac_t""no" 1>&6 | ||
| 2261 | { echo "configure: error: *** Can not locate pcre libraries." 1>&2; exit 1; } | ||
| 2262 | |||
| 2263 | fi | ||
| 2264 | |||
| 2265 | |||
| 2266 | |||
| 2267 | fi | ||
| 2268 | |||
| 2269 | |||
| 2270 | # Checks for libraries. | ||
| 2271 | if test -z "$no_libnsl" ; then | ||
| 2272 | echo $ac_n "checking for yp_match in -lnsl""... $ac_c" 1>&6 | ||
| 2273 | echo "configure:2274: checking for yp_match in -lnsl" >&5 | ||
| 2274 | ac_lib_var=`echo nsl'_'yp_match | sed 'y%./+-%__p_%'` | ||
| 2275 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2276 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2277 | else | ||
| 2278 | ac_save_LIBS="$LIBS" | ||
| 2279 | LIBS="-lnsl $LIBS" | ||
| 2280 | cat > conftest.$ac_ext <<EOF | ||
| 2281 | #line 2282 "configure" | ||
| 2282 | #include "confdefs.h" | ||
| 2283 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2284 | /* We use char because int might match the return type of a gcc2 | ||
| 2285 | builtin and then its argument prototype would still apply. */ | ||
| 2286 | char yp_match(); | ||
| 2287 | |||
| 2288 | int main() { | ||
| 2289 | yp_match() | ||
| 2290 | ; return 0; } | ||
| 2291 | EOF | ||
| 2292 | if { (eval echo configure:2293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2293 | rm -rf conftest* | ||
| 2294 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2295 | else | ||
| 2296 | echo "configure: failed program was:" >&5 | ||
| 2297 | cat conftest.$ac_ext >&5 | ||
| 2298 | rm -rf conftest* | ||
| 2299 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2300 | fi | ||
| 2301 | rm -f conftest* | ||
| 2302 | LIBS="$ac_save_LIBS" | ||
| 2303 | |||
| 2304 | fi | ||
| 2305 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2306 | echo "$ac_t""yes" 1>&6 | ||
| 2307 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 2308 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 2309 | cat >> confdefs.h <<EOF | ||
| 2310 | #define $ac_tr_lib 1 | ||
| 2311 | EOF | ||
| 2312 | |||
| 2313 | LIBS="-lnsl $LIBS" | ||
| 2314 | |||
| 2315 | else | ||
| 2316 | echo "$ac_t""no" 1>&6 | ||
| 2317 | fi | ||
| 2318 | |||
| 2319 | fi | ||
| 2320 | if test -z "$no_libsocket" ; then | ||
| 2321 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 | ||
| 2322 | echo "configure:2323: checking for main in -lsocket" >&5 | ||
| 2323 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` | ||
| 2324 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2325 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2326 | else | ||
| 2327 | ac_save_LIBS="$LIBS" | ||
| 2328 | LIBS="-lsocket $LIBS" | ||
| 2329 | cat > conftest.$ac_ext <<EOF | ||
| 2330 | #line 2331 "configure" | ||
| 2331 | #include "confdefs.h" | ||
| 2332 | |||
| 2333 | int main() { | ||
| 2334 | main() | ||
| 2335 | ; return 0; } | ||
| 2336 | EOF | ||
| 2337 | if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2338 | rm -rf conftest* | ||
| 2339 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2340 | else | ||
| 2341 | echo "configure: failed program was:" >&5 | ||
| 2342 | cat conftest.$ac_ext >&5 | ||
| 2343 | rm -rf conftest* | ||
| 2344 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2345 | fi | ||
| 2346 | rm -f conftest* | ||
| 2347 | LIBS="$ac_save_LIBS" | ||
| 2348 | |||
| 2349 | fi | ||
| 2350 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2351 | echo "$ac_t""yes" 1>&6 | ||
| 2352 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 2353 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 2354 | cat >> confdefs.h <<EOF | ||
| 2355 | #define $ac_tr_lib 1 | ||
| 2356 | EOF | ||
| 2357 | |||
| 2358 | LIBS="-lsocket $LIBS" | ||
| 2359 | |||
| 2360 | else | ||
| 2361 | echo "$ac_t""no" 1>&6 | ||
| 2362 | fi | ||
| 2363 | |||
| 2364 | fi | ||
| 2365 | |||
| 2366 | echo $ac_n "checking for innetgr in -lrpc""... $ac_c" 1>&6 | ||
| 2367 | echo "configure:2368: checking for innetgr in -lrpc" >&5 | ||
| 2368 | ac_lib_var=`echo rpc'_'innetgr | sed 'y%./+-%__p_%'` | ||
| 2369 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2370 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2371 | else | ||
| 2372 | ac_save_LIBS="$LIBS" | ||
| 2373 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
| 2374 | cat > conftest.$ac_ext <<EOF | ||
| 2375 | #line 2376 "configure" | ||
| 2376 | #include "confdefs.h" | ||
| 2377 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2378 | /* We use char because int might match the return type of a gcc2 | ||
| 2379 | builtin and then its argument prototype would still apply. */ | ||
| 2380 | char innetgr(); | ||
| 2381 | |||
| 2382 | int main() { | ||
| 2383 | innetgr() | ||
| 2384 | ; return 0; } | ||
| 2385 | EOF | ||
| 2386 | if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2387 | rm -rf conftest* | ||
| 2388 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2389 | else | ||
| 2390 | echo "configure: failed program was:" >&5 | ||
| 2391 | cat conftest.$ac_ext >&5 | ||
| 2392 | rm -rf conftest* | ||
| 2393 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2394 | fi | ||
| 2395 | rm -f conftest* | ||
| 2396 | LIBS="$ac_save_LIBS" | ||
| 2397 | |||
| 2398 | fi | ||
| 2399 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2400 | echo "$ac_t""yes" 1>&6 | ||
| 2401 | LIBS="-lrpc -lyp -lrpc $LIBS" | ||
| 2402 | else | ||
| 2403 | echo "$ac_t""no" 1>&6 | ||
| 2404 | fi | ||
| 2405 | |||
| 2406 | |||
| 2407 | echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6 | ||
| 2408 | echo "configure:2409: checking for getspnam in -lgen" >&5 | ||
| 2409 | ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'` | ||
| 2410 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2411 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2412 | else | ||
| 2413 | ac_save_LIBS="$LIBS" | ||
| 2414 | LIBS="-lgen $LIBS" | ||
| 2415 | cat > conftest.$ac_ext <<EOF | ||
| 2416 | #line 2417 "configure" | ||
| 2417 | #include "confdefs.h" | ||
| 2418 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2419 | /* We use char because int might match the return type of a gcc2 | ||
| 2420 | builtin and then its argument prototype would still apply. */ | ||
| 2421 | char getspnam(); | ||
| 2422 | |||
| 2423 | int main() { | ||
| 2424 | getspnam() | ||
| 2425 | ; return 0; } | ||
| 2426 | EOF | ||
| 2427 | if { (eval echo configure:2428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2428 | rm -rf conftest* | ||
| 2429 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2430 | else | ||
| 2431 | echo "configure: failed program was:" >&5 | ||
| 2432 | cat conftest.$ac_ext >&5 | ||
| 2433 | rm -rf conftest* | ||
| 2434 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2435 | fi | ||
| 2436 | rm -f conftest* | ||
| 2437 | LIBS="$ac_save_LIBS" | ||
| 2438 | |||
| 2439 | fi | ||
| 2440 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2441 | echo "$ac_t""yes" 1>&6 | ||
| 2442 | LIBS="$LIBS -lgen" | ||
| 2443 | else | ||
| 2444 | echo "$ac_t""no" 1>&6 | ||
| 2445 | fi | ||
| 2446 | |||
| 2447 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | ||
| 2448 | echo "configure:2449: checking for deflate in -lz" >&5 | ||
| 2449 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | ||
| 2450 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2451 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2452 | else | ||
| 2453 | ac_save_LIBS="$LIBS" | ||
| 2454 | LIBS="-lz $LIBS" | ||
| 2455 | cat > conftest.$ac_ext <<EOF | ||
| 2456 | #line 2457 "configure" | ||
| 2457 | #include "confdefs.h" | ||
| 2458 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2459 | /* We use char because int might match the return type of a gcc2 | ||
| 2460 | builtin and then its argument prototype would still apply. */ | ||
| 2461 | char deflate(); | ||
| 2462 | |||
| 2463 | int main() { | ||
| 2464 | deflate() | ||
| 2465 | ; return 0; } | ||
| 2466 | EOF | ||
| 2467 | if { (eval echo configure:2468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2468 | rm -rf conftest* | ||
| 2469 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2470 | else | ||
| 2471 | echo "configure: failed program was:" >&5 | ||
| 2472 | cat conftest.$ac_ext >&5 | ||
| 2473 | rm -rf conftest* | ||
| 2474 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2475 | fi | ||
| 2476 | rm -f conftest* | ||
| 2477 | LIBS="$ac_save_LIBS" | ||
| 2478 | |||
| 2479 | fi | ||
| 2480 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2481 | echo "$ac_t""yes" 1>&6 | ||
| 2482 | ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 2483 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 2484 | cat >> confdefs.h <<EOF | ||
| 2485 | #define $ac_tr_lib 1 | ||
| 2486 | EOF | ||
| 2487 | |||
| 2488 | LIBS="-lz $LIBS" | ||
| 2489 | |||
| 2490 | else | ||
| 2491 | echo "$ac_t""no" 1>&6 | ||
| 2492 | { echo "configure: error: *** zlib missing - please install first or check config.log ***" 1>&2; exit 1; } | ||
| 2493 | fi | ||
| 2494 | |||
| 2495 | echo $ac_n "checking for login in -lutil""... $ac_c" 1>&6 | ||
| 2496 | echo "configure:2497: checking for login in -lutil" >&5 | ||
| 2497 | ac_lib_var=`echo util'_'login | sed 'y%./+-%__p_%'` | ||
| 2498 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2499 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2500 | else | ||
| 2501 | ac_save_LIBS="$LIBS" | ||
| 2502 | LIBS="-lutil $LIBS" | ||
| 2503 | cat > conftest.$ac_ext <<EOF | ||
| 2504 | #line 2505 "configure" | ||
| 2505 | #include "confdefs.h" | ||
| 2506 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2507 | /* We use char because int might match the return type of a gcc2 | ||
| 2508 | builtin and then its argument prototype would still apply. */ | ||
| 2509 | char login(); | ||
| 2510 | |||
| 2511 | int main() { | ||
| 2512 | login() | ||
| 2513 | ; return 0; } | ||
| 2514 | EOF | ||
| 2515 | if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2516 | rm -rf conftest* | ||
| 2517 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2518 | else | ||
| 2519 | echo "configure: failed program was:" >&5 | ||
| 2520 | cat conftest.$ac_ext >&5 | ||
| 2521 | rm -rf conftest* | ||
| 2522 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2523 | fi | ||
| 2524 | rm -f conftest* | ||
| 2525 | LIBS="$ac_save_LIBS" | ||
| 2526 | |||
| 2527 | fi | ||
| 2528 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2529 | echo "$ac_t""yes" 1>&6 | ||
| 2530 | cat >> confdefs.h <<\EOF | ||
| 2531 | #define HAVE_LIBUTIL_LOGIN 1 | ||
| 2532 | EOF | ||
| 2533 | LIBS="$LIBS -lutil" | ||
| 2534 | else | ||
| 2535 | echo "$ac_t""no" 1>&6 | ||
| 2536 | fi | ||
| 2537 | |||
| 2538 | |||
| 2539 | # We don't want to check if we did an pcre override. | ||
| 2540 | if test -z "$no_comp_check" ; then | ||
| 2541 | echo $ac_n "checking for regcomp""... $ac_c" 1>&6 | ||
| 2542 | echo "configure:2543: checking for regcomp" >&5 | ||
| 2543 | if eval "test \"`echo '$''{'ac_cv_func_regcomp'+set}'`\" = set"; then | ||
| 2544 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2545 | else | ||
| 2546 | cat > conftest.$ac_ext <<EOF | ||
| 2547 | #line 2548 "configure" | ||
| 2548 | #include "confdefs.h" | ||
| 2549 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2550 | which can conflict with char regcomp(); below. */ | ||
| 2551 | #include <assert.h> | ||
| 2552 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2553 | /* We use char because int might match the return type of a gcc2 | ||
| 2554 | builtin and then its argument prototype would still apply. */ | ||
| 2555 | char regcomp(); | ||
| 2556 | |||
| 2557 | int main() { | ||
| 2558 | |||
| 2559 | /* The GNU C library defines this for functions which it implements | ||
| 2560 | to always fail with ENOSYS. Some functions are actually named | ||
| 2561 | something starting with __ and the normal name is an alias. */ | ||
| 2562 | #if defined (__stub_regcomp) || defined (__stub___regcomp) | ||
| 2563 | choke me | ||
| 2564 | #else | ||
| 2565 | regcomp(); | ||
| 2566 | #endif | ||
| 2567 | |||
| 2568 | ; return 0; } | ||
| 2569 | EOF | ||
| 2570 | if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2571 | rm -rf conftest* | ||
| 2572 | eval "ac_cv_func_regcomp=yes" | ||
| 2573 | else | ||
| 2574 | echo "configure: failed program was:" >&5 | ||
| 2575 | cat conftest.$ac_ext >&5 | ||
| 2576 | rm -rf conftest* | ||
| 2577 | eval "ac_cv_func_regcomp=no" | ||
| 2578 | fi | ||
| 2579 | rm -f conftest* | ||
| 2580 | fi | ||
| 2581 | |||
| 2582 | if eval "test \"`echo '$ac_cv_func_'regcomp`\" = yes"; then | ||
| 2583 | echo "$ac_t""yes" 1>&6 | ||
| 2584 | cat >> confdefs.h <<\EOF | ||
| 2585 | #define HAVE_REGCOMP 1 | ||
| 2586 | EOF | ||
| 2587 | |||
| 2588 | else | ||
| 2589 | echo "$ac_t""no" 1>&6 | ||
| 2590 | |||
| 2591 | echo $ac_n "checking for pcre_info in -lpcre""... $ac_c" 1>&6 | ||
| 2592 | echo "configure:2593: checking for pcre_info in -lpcre" >&5 | ||
| 2593 | ac_lib_var=`echo pcre'_'pcre_info | sed 'y%./+-%__p_%'` | ||
| 2594 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2595 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2596 | else | ||
| 2597 | ac_save_LIBS="$LIBS" | ||
| 2598 | LIBS="-lpcre $LIBS" | ||
| 2599 | cat > conftest.$ac_ext <<EOF | ||
| 2600 | #line 2601 "configure" | ||
| 2601 | #include "confdefs.h" | ||
| 2602 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2603 | /* We use char because int might match the return type of a gcc2 | ||
| 2604 | builtin and then its argument prototype would still apply. */ | ||
| 2605 | char pcre_info(); | ||
| 2606 | |||
| 2607 | int main() { | ||
| 2608 | pcre_info() | ||
| 2609 | ; return 0; } | ||
| 2610 | EOF | ||
| 2611 | if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2612 | rm -rf conftest* | ||
| 2613 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2614 | else | ||
| 2615 | echo "configure: failed program was:" >&5 | ||
| 2616 | cat conftest.$ac_ext >&5 | ||
| 2617 | rm -rf conftest* | ||
| 2618 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2619 | fi | ||
| 2620 | rm -f conftest* | ||
| 2621 | LIBS="$ac_save_LIBS" | ||
| 2622 | |||
| 2623 | fi | ||
| 2624 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2625 | echo "$ac_t""yes" 1>&6 | ||
| 2626 | |||
| 2627 | cat >> confdefs.h <<\EOF | ||
| 2628 | #define HAVE_LIBPCRE 1 | ||
| 2629 | EOF | ||
| 2630 | |||
| 2631 | LIBS="$LIBS -lpcreposix -lpcre" | ||
| 2632 | |||
| 2633 | else | ||
| 2634 | echo "$ac_t""no" 1>&6 | ||
| 2635 | |||
| 2636 | { echo "configure: error: *** No regex library found." 1>&2; exit 1; } | ||
| 2637 | |||
| 2638 | fi | ||
| 2639 | |||
| 2640 | |||
| 2641 | |||
| 2642 | fi | ||
| 2643 | |||
| 2644 | fi | ||
| 2645 | |||
| 2646 | echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6 | ||
| 2647 | echo "configure:2648: checking for strcasecmp" >&5 | ||
| 2648 | if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then | ||
| 2649 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2650 | else | ||
| 2651 | cat > conftest.$ac_ext <<EOF | ||
| 2652 | #line 2653 "configure" | ||
| 2653 | #include "confdefs.h" | ||
| 2654 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2655 | which can conflict with char strcasecmp(); below. */ | ||
| 2656 | #include <assert.h> | ||
| 2657 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2658 | /* We use char because int might match the return type of a gcc2 | ||
| 2659 | builtin and then its argument prototype would still apply. */ | ||
| 2660 | char strcasecmp(); | ||
| 2661 | |||
| 2662 | int main() { | ||
| 2663 | |||
| 2664 | /* The GNU C library defines this for functions which it implements | ||
| 2665 | to always fail with ENOSYS. Some functions are actually named | ||
| 2666 | something starting with __ and the normal name is an alias. */ | ||
| 2667 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) | ||
| 2668 | choke me | ||
| 2669 | #else | ||
| 2670 | strcasecmp(); | ||
| 2671 | #endif | ||
| 2672 | |||
| 2673 | ; return 0; } | ||
| 2674 | EOF | ||
| 2675 | if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2676 | rm -rf conftest* | ||
| 2677 | eval "ac_cv_func_strcasecmp=yes" | ||
| 2678 | else | ||
| 2679 | echo "configure: failed program was:" >&5 | ||
| 2680 | cat conftest.$ac_ext >&5 | ||
| 2681 | rm -rf conftest* | ||
| 2682 | eval "ac_cv_func_strcasecmp=no" | ||
| 2683 | fi | ||
| 2684 | rm -f conftest* | ||
| 2685 | fi | ||
| 2686 | |||
| 2687 | if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then | ||
| 2688 | echo "$ac_t""yes" 1>&6 | ||
| 2689 | : | ||
| 2690 | else | ||
| 2691 | echo "$ac_t""no" 1>&6 | ||
| 2692 | echo $ac_n "checking for strcasecmp in -lresolv""... $ac_c" 1>&6 | ||
| 2693 | echo "configure:2694: checking for strcasecmp in -lresolv" >&5 | ||
| 2694 | ac_lib_var=`echo resolv'_'strcasecmp | sed 'y%./+-%__p_%'` | ||
| 2695 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2696 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2697 | else | ||
| 2698 | ac_save_LIBS="$LIBS" | ||
| 2699 | LIBS="-lresolv $LIBS" | ||
| 2700 | cat > conftest.$ac_ext <<EOF | ||
| 2701 | #line 2702 "configure" | ||
| 2702 | #include "confdefs.h" | ||
| 2703 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2704 | /* We use char because int might match the return type of a gcc2 | ||
| 2705 | builtin and then its argument prototype would still apply. */ | ||
| 2706 | char strcasecmp(); | ||
| 2707 | |||
| 2708 | int main() { | ||
| 2709 | strcasecmp() | ||
| 2710 | ; return 0; } | ||
| 2711 | EOF | ||
| 2712 | if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2713 | rm -rf conftest* | ||
| 2714 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2715 | else | ||
| 2716 | echo "configure: failed program was:" >&5 | ||
| 2717 | cat conftest.$ac_ext >&5 | ||
| 2718 | rm -rf conftest* | ||
| 2719 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2720 | fi | ||
| 2721 | rm -f conftest* | ||
| 2722 | LIBS="$ac_save_LIBS" | ||
| 2723 | |||
| 2724 | fi | ||
| 2725 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2726 | echo "$ac_t""yes" 1>&6 | ||
| 2727 | LIBS="$LIBS -lresolv" | ||
| 2728 | else | ||
| 2729 | echo "$ac_t""no" 1>&6 | ||
| 2730 | fi | ||
| 2731 | |||
| 2732 | |||
| 2733 | fi | ||
| 2734 | |||
| 2735 | echo $ac_n "checking for utimes""... $ac_c" 1>&6 | ||
| 2736 | echo "configure:2737: checking for utimes" >&5 | ||
| 2737 | if eval "test \"`echo '$''{'ac_cv_func_utimes'+set}'`\" = set"; then | ||
| 2738 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2739 | else | ||
| 2740 | cat > conftest.$ac_ext <<EOF | ||
| 2741 | #line 2742 "configure" | ||
| 2742 | #include "confdefs.h" | ||
| 2743 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2744 | which can conflict with char utimes(); below. */ | ||
| 2745 | #include <assert.h> | ||
| 2746 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2747 | /* We use char because int might match the return type of a gcc2 | ||
| 2748 | builtin and then its argument prototype would still apply. */ | ||
| 2749 | char utimes(); | ||
| 2750 | |||
| 2751 | int main() { | ||
| 2752 | |||
| 2753 | /* The GNU C library defines this for functions which it implements | ||
| 2754 | to always fail with ENOSYS. Some functions are actually named | ||
| 2755 | something starting with __ and the normal name is an alias. */ | ||
| 2756 | #if defined (__stub_utimes) || defined (__stub___utimes) | ||
| 2757 | choke me | ||
| 2758 | #else | ||
| 2759 | utimes(); | ||
| 2760 | #endif | ||
| 2761 | |||
| 2762 | ; return 0; } | ||
| 2763 | EOF | ||
| 2764 | if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2765 | rm -rf conftest* | ||
| 2766 | eval "ac_cv_func_utimes=yes" | ||
| 2767 | else | ||
| 2768 | echo "configure: failed program was:" >&5 | ||
| 2769 | cat conftest.$ac_ext >&5 | ||
| 2770 | rm -rf conftest* | ||
| 2771 | eval "ac_cv_func_utimes=no" | ||
| 2772 | fi | ||
| 2773 | rm -f conftest* | ||
| 2774 | fi | ||
| 2775 | |||
| 2776 | if eval "test \"`echo '$ac_cv_func_'utimes`\" = yes"; then | ||
| 2777 | echo "$ac_t""yes" 1>&6 | ||
| 2778 | : | ||
| 2779 | else | ||
| 2780 | echo "$ac_t""no" 1>&6 | ||
| 2781 | echo $ac_n "checking for utimes in -lc89""... $ac_c" 1>&6 | ||
| 2782 | echo "configure:2783: checking for utimes in -lc89" >&5 | ||
| 2783 | ac_lib_var=`echo c89'_'utimes | sed 'y%./+-%__p_%'` | ||
| 2784 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2785 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2786 | else | ||
| 2787 | ac_save_LIBS="$LIBS" | ||
| 2788 | LIBS="-lc89 $LIBS" | ||
| 2789 | cat > conftest.$ac_ext <<EOF | ||
| 2790 | #line 2791 "configure" | ||
| 2791 | #include "confdefs.h" | ||
| 2792 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2793 | /* We use char because int might match the return type of a gcc2 | ||
| 2794 | builtin and then its argument prototype would still apply. */ | ||
| 2795 | char utimes(); | ||
| 2796 | |||
| 2797 | int main() { | ||
| 2798 | utimes() | ||
| 2799 | ; return 0; } | ||
| 2800 | EOF | ||
| 2801 | if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2802 | rm -rf conftest* | ||
| 2803 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2804 | else | ||
| 2805 | echo "configure: failed program was:" >&5 | ||
| 2806 | cat conftest.$ac_ext >&5 | ||
| 2807 | rm -rf conftest* | ||
| 2808 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2809 | fi | ||
| 2810 | rm -f conftest* | ||
| 2811 | LIBS="$ac_save_LIBS" | ||
| 2812 | |||
| 2813 | fi | ||
| 2814 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2815 | echo "$ac_t""yes" 1>&6 | ||
| 2816 | LIBS="$LIBS -lc89" | ||
| 2817 | else | ||
| 2818 | echo "$ac_t""no" 1>&6 | ||
| 2819 | fi | ||
| 2820 | |||
| 2821 | |||
| 2822 | fi | ||
| 2823 | |||
| 2824 | |||
| 2825 | echo $ac_n "checking for strftime""... $ac_c" 1>&6 | ||
| 2826 | echo "configure:2827: checking for strftime" >&5 | ||
| 2827 | if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then | ||
| 2828 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2829 | else | ||
| 2830 | cat > conftest.$ac_ext <<EOF | ||
| 2831 | #line 2832 "configure" | ||
| 2832 | #include "confdefs.h" | ||
| 2833 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 2834 | which can conflict with char strftime(); below. */ | ||
| 2835 | #include <assert.h> | ||
| 2836 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2837 | /* We use char because int might match the return type of a gcc2 | ||
| 2838 | builtin and then its argument prototype would still apply. */ | ||
| 2839 | char strftime(); | ||
| 2840 | |||
| 2841 | int main() { | ||
| 2842 | |||
| 2843 | /* The GNU C library defines this for functions which it implements | ||
| 2844 | to always fail with ENOSYS. Some functions are actually named | ||
| 2845 | something starting with __ and the normal name is an alias. */ | ||
| 2846 | #if defined (__stub_strftime) || defined (__stub___strftime) | ||
| 2847 | choke me | ||
| 2848 | #else | ||
| 2849 | strftime(); | ||
| 2850 | #endif | ||
| 2851 | |||
| 2852 | ; return 0; } | ||
| 2853 | EOF | ||
| 2854 | if { (eval echo configure:2855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2855 | rm -rf conftest* | ||
| 2856 | eval "ac_cv_func_strftime=yes" | ||
| 2857 | else | ||
| 2858 | echo "configure: failed program was:" >&5 | ||
| 2859 | cat conftest.$ac_ext >&5 | ||
| 2860 | rm -rf conftest* | ||
| 2861 | eval "ac_cv_func_strftime=no" | ||
| 2862 | fi | ||
| 2863 | rm -f conftest* | ||
| 2864 | fi | ||
| 2865 | |||
| 2866 | if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then | ||
| 2867 | echo "$ac_t""yes" 1>&6 | ||
| 2868 | cat >> confdefs.h <<\EOF | ||
| 2869 | #define HAVE_STRFTIME 1 | ||
| 2870 | EOF | ||
| 2871 | |||
| 2872 | else | ||
| 2873 | echo "$ac_t""no" 1>&6 | ||
| 2874 | # strftime is in -lintl on SCO UNIX. | ||
| 2875 | echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6 | ||
| 2876 | echo "configure:2877: checking for strftime in -lintl" >&5 | ||
| 2877 | ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'` | ||
| 2878 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 2879 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2880 | else | ||
| 2881 | ac_save_LIBS="$LIBS" | ||
| 2882 | LIBS="-lintl $LIBS" | ||
| 2883 | cat > conftest.$ac_ext <<EOF | ||
| 2884 | #line 2885 "configure" | ||
| 2885 | #include "confdefs.h" | ||
| 2886 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 2887 | /* We use char because int might match the return type of a gcc2 | ||
| 2888 | builtin and then its argument prototype would still apply. */ | ||
| 2889 | char strftime(); | ||
| 2890 | |||
| 2891 | int main() { | ||
| 2892 | strftime() | ||
| 2893 | ; return 0; } | ||
| 2894 | EOF | ||
| 2895 | if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 2896 | rm -rf conftest* | ||
| 2897 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 2898 | else | ||
| 2899 | echo "configure: failed program was:" >&5 | ||
| 2900 | cat conftest.$ac_ext >&5 | ||
| 2901 | rm -rf conftest* | ||
| 2902 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 2903 | fi | ||
| 2904 | rm -f conftest* | ||
| 2905 | LIBS="$ac_save_LIBS" | ||
| 2906 | |||
| 2907 | fi | ||
| 2908 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 2909 | echo "$ac_t""yes" 1>&6 | ||
| 2910 | cat >> confdefs.h <<\EOF | ||
| 2911 | #define HAVE_STRFTIME 1 | ||
| 2912 | EOF | ||
| 2913 | |||
| 2914 | LIBS="-lintl $LIBS" | ||
| 2915 | else | ||
| 2916 | echo "$ac_t""no" 1>&6 | ||
| 2917 | fi | ||
| 2918 | |||
| 2919 | fi | ||
| 2920 | |||
| 2921 | |||
| 2922 | # Checks for header files. | ||
| 2923 | for ac_hdr in bstring.h crypt.h endian.h floatingpoint.h getopt.h glob.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.h paths.h poll.h pty.h regex.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utime.h utmp.h utmpx.h vis.h | ||
| 2924 | do | ||
| 2925 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | ||
| 2926 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | ||
| 2927 | echo "configure:2928: checking for $ac_hdr" >&5 | ||
| 2928 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
| 2929 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 2930 | else | ||
| 2931 | cat > conftest.$ac_ext <<EOF | ||
| 2932 | #line 2933 "configure" | ||
| 2933 | #include "confdefs.h" | ||
| 2934 | #include <$ac_hdr> | ||
| 2935 | EOF | ||
| 2936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 2937 | { (eval echo configure:2938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 2938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 2939 | if test -z "$ac_err"; then | ||
| 2940 | rm -rf conftest* | ||
| 2941 | eval "ac_cv_header_$ac_safe=yes" | ||
| 2942 | else | ||
| 2943 | echo "$ac_err" >&5 | ||
| 2944 | echo "configure: failed program was:" >&5 | ||
| 2945 | cat conftest.$ac_ext >&5 | ||
| 2946 | rm -rf conftest* | ||
| 2947 | eval "ac_cv_header_$ac_safe=no" | ||
| 2948 | fi | ||
| 2949 | rm -f conftest* | ||
| 2950 | fi | ||
| 2951 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
| 2952 | echo "$ac_t""yes" 1>&6 | ||
| 2953 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
| 2954 | cat >> confdefs.h <<EOF | ||
| 2955 | #define $ac_tr_hdr 1 | ||
| 2956 | EOF | ||
| 2957 | |||
| 2958 | else | ||
| 2959 | echo "$ac_t""no" 1>&6 | ||
| 2960 | fi | ||
| 2961 | done | ||
| 2962 | |||
| 2963 | |||
| 2964 | # Check for ALTDIRFUNC glob() extension | ||
| 2965 | echo $ac_n "checking for GLOB_ALTDIRFUNC support""... $ac_c" 1>&6 | ||
| 2966 | echo "configure:2967: checking for GLOB_ALTDIRFUNC support" >&5 | ||
| 2967 | cat > conftest.$ac_ext <<EOF | ||
| 2968 | #line 2969 "configure" | ||
| 2969 | #include "confdefs.h" | ||
| 2970 | |||
| 2971 | #include <glob.h> | ||
| 2972 | #ifdef GLOB_ALTDIRFUNC | ||
| 2973 | FOUNDIT | ||
| 2974 | #endif | ||
| 2975 | |||
| 2976 | EOF | ||
| 2977 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 2978 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
| 2979 | rm -rf conftest* | ||
| 2980 | |||
| 2981 | cat >> confdefs.h <<\EOF | ||
| 2982 | #define GLOB_HAS_ALTDIRFUNC 1 | ||
| 2983 | EOF | ||
| 2984 | |||
| 2985 | echo "$ac_t""yes" 1>&6 | ||
| 2986 | |||
| 2987 | else | ||
| 2988 | rm -rf conftest* | ||
| 2989 | |||
| 2990 | echo "$ac_t""no" 1>&6 | ||
| 2991 | |||
| 2992 | |||
| 2993 | fi | ||
| 2994 | rm -f conftest* | ||
| 2995 | |||
| 2996 | |||
| 2997 | # Check for g.gl_matchc glob() extension | ||
| 2998 | echo $ac_n "checking for gl_matchc field in glob_t""... $ac_c" 1>&6 | ||
| 2999 | echo "configure:3000: checking for gl_matchc field in glob_t" >&5 | ||
| 3000 | cat > conftest.$ac_ext <<EOF | ||
| 3001 | #line 3002 "configure" | ||
| 3002 | #include "confdefs.h" | ||
| 3003 | |||
| 3004 | #include <glob.h> | ||
| 3005 | int main(void){glob_t g; g.gl_matchc = 1;} | ||
| 3006 | |||
| 3007 | EOF | ||
| 3008 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 3009 | egrep "FOUNDIT" >/dev/null 2>&1; then | ||
| 3010 | rm -rf conftest* | ||
| 3011 | |||
| 3012 | cat >> confdefs.h <<\EOF | ||
| 3013 | #define GLOB_HAS_GL_MATCHC 1 | ||
| 3014 | EOF | ||
| 3015 | |||
| 3016 | echo "$ac_t""yes" 1>&6 | ||
| 3017 | |||
| 3018 | else | ||
| 3019 | rm -rf conftest* | ||
| 3020 | |||
| 3021 | echo "$ac_t""no" 1>&6 | ||
| 3022 | |||
| 3023 | |||
| 3024 | fi | ||
| 3025 | rm -f conftest* | ||
| 3026 | |||
| 3027 | |||
| 3028 | echo $ac_n "checking whether struct dirent allocates space for d_name""... $ac_c" 1>&6 | ||
| 3029 | echo "configure:3030: checking whether struct dirent allocates space for d_name" >&5 | ||
| 3030 | if test "$cross_compiling" = yes; then | ||
| 3031 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 3032 | else | ||
| 3033 | cat > conftest.$ac_ext <<EOF | ||
| 3034 | #line 3035 "configure" | ||
| 3035 | #include "confdefs.h" | ||
| 3036 | |||
| 3037 | #include <sys/types.h> | ||
| 3038 | #include <dirent.h> | ||
| 3039 | int main(void){struct dirent d;return(sizeof(d.d_name)<=sizeof(char));} | ||
| 3040 | |||
| 3041 | EOF | ||
| 3042 | if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 3043 | then | ||
| 3044 | echo "$ac_t""yes" 1>&6 | ||
| 3045 | else | ||
| 3046 | echo "configure: failed program was:" >&5 | ||
| 3047 | cat conftest.$ac_ext >&5 | ||
| 3048 | rm -fr conftest* | ||
| 3049 | |||
| 3050 | echo "$ac_t""no" 1>&6 | ||
| 3051 | cat >> confdefs.h <<\EOF | ||
| 3052 | #define BROKEN_ONE_BYTE_DIRENT_D_NAME 1 | ||
| 3053 | EOF | ||
| 3054 | |||
| 3055 | |||
| 3056 | |||
| 3057 | fi | ||
| 3058 | rm -fr conftest* | ||
| 3059 | fi | ||
| 3060 | |||
| 3061 | |||
| 3062 | # Check whether user wants S/Key support | ||
| 3063 | SKEY_MSG="no" | ||
| 3064 | # Check whether --with-skey or --without-skey was given. | ||
| 3065 | if test "${with_skey+set}" = set; then | ||
| 3066 | withval="$with_skey" | ||
| 3067 | |||
| 3068 | if test "x$withval" != "xno" ; then | ||
| 3069 | |||
| 3070 | if test "x$withval" != "xyes" ; then | ||
| 3071 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
| 3072 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
| 3073 | fi | ||
| 3074 | |||
| 3075 | cat >> confdefs.h <<\EOF | ||
| 3076 | #define SKEY 1 | ||
| 3077 | EOF | ||
| 3078 | |||
| 3079 | LIBS="-lskey $LIBS" | ||
| 3080 | SKEY_MSG="yes" | ||
| 3081 | |||
| 3082 | echo $ac_n "checking for skey_keyinfo""... $ac_c" 1>&6 | ||
| 3083 | echo "configure:3084: checking for skey_keyinfo" >&5 | ||
| 3084 | if eval "test \"`echo '$''{'ac_cv_func_skey_keyinfo'+set}'`\" = set"; then | ||
| 3085 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3086 | else | ||
| 3087 | cat > conftest.$ac_ext <<EOF | ||
| 3088 | #line 3089 "configure" | ||
| 3089 | #include "confdefs.h" | ||
| 3090 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3091 | which can conflict with char skey_keyinfo(); below. */ | ||
| 3092 | #include <assert.h> | ||
| 3093 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3094 | /* We use char because int might match the return type of a gcc2 | ||
| 3095 | builtin and then its argument prototype would still apply. */ | ||
| 3096 | char skey_keyinfo(); | ||
| 3097 | |||
| 3098 | int main() { | ||
| 3099 | |||
| 3100 | /* The GNU C library defines this for functions which it implements | ||
| 3101 | to always fail with ENOSYS. Some functions are actually named | ||
| 3102 | something starting with __ and the normal name is an alias. */ | ||
| 3103 | #if defined (__stub_skey_keyinfo) || defined (__stub___skey_keyinfo) | ||
| 3104 | choke me | ||
| 3105 | #else | ||
| 3106 | skey_keyinfo(); | ||
| 3107 | #endif | ||
| 3108 | |||
| 3109 | ; return 0; } | ||
| 3110 | EOF | ||
| 3111 | if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3112 | rm -rf conftest* | ||
| 3113 | eval "ac_cv_func_skey_keyinfo=yes" | ||
| 3114 | else | ||
| 3115 | echo "configure: failed program was:" >&5 | ||
| 3116 | cat conftest.$ac_ext >&5 | ||
| 3117 | rm -rf conftest* | ||
| 3118 | eval "ac_cv_func_skey_keyinfo=no" | ||
| 3119 | fi | ||
| 3120 | rm -f conftest* | ||
| 3121 | fi | ||
| 3122 | |||
| 3123 | if eval "test \"`echo '$ac_cv_func_'skey_keyinfo`\" = yes"; then | ||
| 3124 | echo "$ac_t""yes" 1>&6 | ||
| 3125 | : | ||
| 3126 | else | ||
| 3127 | echo "$ac_t""no" 1>&6 | ||
| 3128 | |||
| 3129 | { echo "configure: error: ** Incomplete or missing s/key libraries." 1>&2; exit 1; } | ||
| 3130 | |||
| 3131 | fi | ||
| 3132 | |||
| 3133 | fi | ||
| 3134 | |||
| 3135 | |||
| 3136 | fi | ||
| 3137 | |||
| 3138 | |||
| 3139 | # Check whether user wants TCP wrappers support | ||
| 3140 | TCPW_MSG="no" | ||
| 3141 | # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. | ||
| 3142 | if test "${with_tcp_wrappers+set}" = set; then | ||
| 3143 | withval="$with_tcp_wrappers" | ||
| 3144 | |||
| 3145 | if test "x$withval" != "xno" ; then | ||
| 3146 | saved_LIBS="$LIBS" | ||
| 3147 | LIBS="-lwrap $LIBS" | ||
| 3148 | echo $ac_n "checking for libwrap""... $ac_c" 1>&6 | ||
| 3149 | echo "configure:3150: checking for libwrap" >&5 | ||
| 3150 | cat > conftest.$ac_ext <<EOF | ||
| 3151 | #line 3152 "configure" | ||
| 3152 | #include "confdefs.h" | ||
| 3153 | |||
| 3154 | #include <tcpd.h> | ||
| 3155 | int deny_severity = 0, allow_severity = 0; | ||
| 3156 | |||
| 3157 | int main() { | ||
| 3158 | hosts_access(0); | ||
| 3159 | ; return 0; } | ||
| 3160 | EOF | ||
| 3161 | if { (eval echo configure:3162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3162 | rm -rf conftest* | ||
| 3163 | |||
| 3164 | echo "$ac_t""yes" 1>&6 | ||
| 3165 | cat >> confdefs.h <<\EOF | ||
| 3166 | #define LIBWRAP 1 | ||
| 3167 | EOF | ||
| 3168 | |||
| 3169 | TCPW_MSG="yes" | ||
| 3170 | |||
| 3171 | else | ||
| 3172 | echo "configure: failed program was:" >&5 | ||
| 3173 | cat conftest.$ac_ext >&5 | ||
| 3174 | rm -rf conftest* | ||
| 3175 | |||
| 3176 | { echo "configure: error: *** libwrap missing" 1>&2; exit 1; } | ||
| 3177 | |||
| 3178 | |||
| 3179 | fi | ||
| 3180 | rm -f conftest* | ||
| 3181 | fi | ||
| 3182 | |||
| 3183 | |||
| 3184 | fi | ||
| 3185 | |||
| 3186 | |||
| 3187 | for ac_func in arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmode strsep strtok_r sysconf tcgetpgrp utimes vsnprintf vhangup vis waitpid _getpty __b64_ntop | ||
| 3188 | do | ||
| 3189 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 3190 | echo "configure:3191: checking for $ac_func" >&5 | ||
| 3191 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 3192 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3193 | else | ||
| 3194 | cat > conftest.$ac_ext <<EOF | ||
| 3195 | #line 3196 "configure" | ||
| 3196 | #include "confdefs.h" | ||
| 3197 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3198 | which can conflict with char $ac_func(); below. */ | ||
| 3199 | #include <assert.h> | ||
| 3200 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3201 | /* We use char because int might match the return type of a gcc2 | ||
| 3202 | builtin and then its argument prototype would still apply. */ | ||
| 3203 | char $ac_func(); | ||
| 3204 | |||
| 3205 | int main() { | ||
| 3206 | |||
| 3207 | /* The GNU C library defines this for functions which it implements | ||
| 3208 | to always fail with ENOSYS. Some functions are actually named | ||
| 3209 | something starting with __ and the normal name is an alias. */ | ||
| 3210 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 3211 | choke me | ||
| 3212 | #else | ||
| 3213 | $ac_func(); | ||
| 3214 | #endif | ||
| 3215 | |||
| 3216 | ; return 0; } | ||
| 3217 | EOF | ||
| 3218 | if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3219 | rm -rf conftest* | ||
| 3220 | eval "ac_cv_func_$ac_func=yes" | ||
| 3221 | else | ||
| 3222 | echo "configure: failed program was:" >&5 | ||
| 3223 | cat conftest.$ac_ext >&5 | ||
| 3224 | rm -rf conftest* | ||
| 3225 | eval "ac_cv_func_$ac_func=no" | ||
| 3226 | fi | ||
| 3227 | rm -f conftest* | ||
| 3228 | fi | ||
| 3229 | |||
| 3230 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 3231 | echo "$ac_t""yes" 1>&6 | ||
| 3232 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 3233 | cat >> confdefs.h <<EOF | ||
| 3234 | #define $ac_tr_func 1 | ||
| 3235 | EOF | ||
| 3236 | |||
| 3237 | else | ||
| 3238 | echo "$ac_t""no" 1>&6 | ||
| 3239 | fi | ||
| 3240 | done | ||
| 3241 | |||
| 3242 | for ac_func in gettimeofday time | ||
| 3243 | do | ||
| 3244 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 3245 | echo "configure:3246: checking for $ac_func" >&5 | ||
| 3246 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 3247 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3248 | else | ||
| 3249 | cat > conftest.$ac_ext <<EOF | ||
| 3250 | #line 3251 "configure" | ||
| 3251 | #include "confdefs.h" | ||
| 3252 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3253 | which can conflict with char $ac_func(); below. */ | ||
| 3254 | #include <assert.h> | ||
| 3255 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3256 | /* We use char because int might match the return type of a gcc2 | ||
| 3257 | builtin and then its argument prototype would still apply. */ | ||
| 3258 | char $ac_func(); | ||
| 3259 | |||
| 3260 | int main() { | ||
| 3261 | |||
| 3262 | /* The GNU C library defines this for functions which it implements | ||
| 3263 | to always fail with ENOSYS. Some functions are actually named | ||
| 3264 | something starting with __ and the normal name is an alias. */ | ||
| 3265 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 3266 | choke me | ||
| 3267 | #else | ||
| 3268 | $ac_func(); | ||
| 3269 | #endif | ||
| 3270 | |||
| 3271 | ; return 0; } | ||
| 3272 | EOF | ||
| 3273 | if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3274 | rm -rf conftest* | ||
| 3275 | eval "ac_cv_func_$ac_func=yes" | ||
| 3276 | else | ||
| 3277 | echo "configure: failed program was:" >&5 | ||
| 3278 | cat conftest.$ac_ext >&5 | ||
| 3279 | rm -rf conftest* | ||
| 3280 | eval "ac_cv_func_$ac_func=no" | ||
| 3281 | fi | ||
| 3282 | rm -f conftest* | ||
| 3283 | fi | ||
| 3284 | |||
| 3285 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 3286 | echo "$ac_t""yes" 1>&6 | ||
| 3287 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 3288 | cat >> confdefs.h <<EOF | ||
| 3289 | #define $ac_tr_func 1 | ||
| 3290 | EOF | ||
| 3291 | |||
| 3292 | else | ||
| 3293 | echo "$ac_t""no" 1>&6 | ||
| 3294 | fi | ||
| 3295 | done | ||
| 3296 | |||
| 3297 | for ac_hdr in libutil.h | ||
| 3298 | do | ||
| 3299 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | ||
| 3300 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | ||
| 3301 | echo "configure:3302: checking for $ac_hdr" >&5 | ||
| 3302 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
| 3303 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3304 | else | ||
| 3305 | cat > conftest.$ac_ext <<EOF | ||
| 3306 | #line 3307 "configure" | ||
| 3307 | #include "confdefs.h" | ||
| 3308 | #include <$ac_hdr> | ||
| 3309 | EOF | ||
| 3310 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 3311 | { (eval echo configure:3312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 3312 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 3313 | if test -z "$ac_err"; then | ||
| 3314 | rm -rf conftest* | ||
| 3315 | eval "ac_cv_header_$ac_safe=yes" | ||
| 3316 | else | ||
| 3317 | echo "$ac_err" >&5 | ||
| 3318 | echo "configure: failed program was:" >&5 | ||
| 3319 | cat conftest.$ac_ext >&5 | ||
| 3320 | rm -rf conftest* | ||
| 3321 | eval "ac_cv_header_$ac_safe=no" | ||
| 3322 | fi | ||
| 3323 | rm -f conftest* | ||
| 3324 | fi | ||
| 3325 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
| 3326 | echo "$ac_t""yes" 1>&6 | ||
| 3327 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
| 3328 | cat >> confdefs.h <<EOF | ||
| 3329 | #define $ac_tr_hdr 1 | ||
| 3330 | EOF | ||
| 3331 | |||
| 3332 | else | ||
| 3333 | echo "$ac_t""no" 1>&6 | ||
| 3334 | fi | ||
| 3335 | done | ||
| 3336 | |||
| 3337 | for ac_func in login logout updwtmp logwtmp | ||
| 3338 | do | ||
| 3339 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 3340 | echo "configure:3341: checking for $ac_func" >&5 | ||
| 3341 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 3342 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3343 | else | ||
| 3344 | cat > conftest.$ac_ext <<EOF | ||
| 3345 | #line 3346 "configure" | ||
| 3346 | #include "confdefs.h" | ||
| 3347 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3348 | which can conflict with char $ac_func(); below. */ | ||
| 3349 | #include <assert.h> | ||
| 3350 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3351 | /* We use char because int might match the return type of a gcc2 | ||
| 3352 | builtin and then its argument prototype would still apply. */ | ||
| 3353 | char $ac_func(); | ||
| 3354 | |||
| 3355 | int main() { | ||
| 3356 | |||
| 3357 | /* The GNU C library defines this for functions which it implements | ||
| 3358 | to always fail with ENOSYS. Some functions are actually named | ||
| 3359 | something starting with __ and the normal name is an alias. */ | ||
| 3360 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 3361 | choke me | ||
| 3362 | #else | ||
| 3363 | $ac_func(); | ||
| 3364 | #endif | ||
| 3365 | |||
| 3366 | ; return 0; } | ||
| 3367 | EOF | ||
| 3368 | if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3369 | rm -rf conftest* | ||
| 3370 | eval "ac_cv_func_$ac_func=yes" | ||
| 3371 | else | ||
| 3372 | echo "configure: failed program was:" >&5 | ||
| 3373 | cat conftest.$ac_ext >&5 | ||
| 3374 | rm -rf conftest* | ||
| 3375 | eval "ac_cv_func_$ac_func=no" | ||
| 3376 | fi | ||
| 3377 | rm -f conftest* | ||
| 3378 | fi | ||
| 3379 | |||
| 3380 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 3381 | echo "$ac_t""yes" 1>&6 | ||
| 3382 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 3383 | cat >> confdefs.h <<EOF | ||
| 3384 | #define $ac_tr_func 1 | ||
| 3385 | EOF | ||
| 3386 | |||
| 3387 | else | ||
| 3388 | echo "$ac_t""no" 1>&6 | ||
| 3389 | fi | ||
| 3390 | done | ||
| 3391 | |||
| 3392 | for ac_func in endutent getutent getutid getutline pututline setutent | ||
| 3393 | do | ||
| 3394 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 3395 | echo "configure:3396: checking for $ac_func" >&5 | ||
| 3396 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 3397 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3398 | else | ||
| 3399 | cat > conftest.$ac_ext <<EOF | ||
| 3400 | #line 3401 "configure" | ||
| 3401 | #include "confdefs.h" | ||
| 3402 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3403 | which can conflict with char $ac_func(); below. */ | ||
| 3404 | #include <assert.h> | ||
| 3405 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3406 | /* We use char because int might match the return type of a gcc2 | ||
| 3407 | builtin and then its argument prototype would still apply. */ | ||
| 3408 | char $ac_func(); | ||
| 3409 | |||
| 3410 | int main() { | ||
| 3411 | |||
| 3412 | /* The GNU C library defines this for functions which it implements | ||
| 3413 | to always fail with ENOSYS. Some functions are actually named | ||
| 3414 | something starting with __ and the normal name is an alias. */ | ||
| 3415 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 3416 | choke me | ||
| 3417 | #else | ||
| 3418 | $ac_func(); | ||
| 3419 | #endif | ||
| 3420 | |||
| 3421 | ; return 0; } | ||
| 3422 | EOF | ||
| 3423 | if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3424 | rm -rf conftest* | ||
| 3425 | eval "ac_cv_func_$ac_func=yes" | ||
| 3426 | else | ||
| 3427 | echo "configure: failed program was:" >&5 | ||
| 3428 | cat conftest.$ac_ext >&5 | ||
| 3429 | rm -rf conftest* | ||
| 3430 | eval "ac_cv_func_$ac_func=no" | ||
| 3431 | fi | ||
| 3432 | rm -f conftest* | ||
| 3433 | fi | ||
| 3434 | |||
| 3435 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 3436 | echo "$ac_t""yes" 1>&6 | ||
| 3437 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 3438 | cat >> confdefs.h <<EOF | ||
| 3439 | #define $ac_tr_func 1 | ||
| 3440 | EOF | ||
| 3441 | |||
| 3442 | else | ||
| 3443 | echo "$ac_t""no" 1>&6 | ||
| 3444 | fi | ||
| 3445 | done | ||
| 3446 | |||
| 3447 | for ac_func in utmpname | ||
| 3448 | do | ||
| 3449 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 3450 | echo "configure:3451: checking for $ac_func" >&5 | ||
| 3451 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 3452 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3453 | else | ||
| 3454 | cat > conftest.$ac_ext <<EOF | ||
| 3455 | #line 3456 "configure" | ||
| 3456 | #include "confdefs.h" | ||
| 3457 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3458 | which can conflict with char $ac_func(); below. */ | ||
| 3459 | #include <assert.h> | ||
| 3460 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3461 | /* We use char because int might match the return type of a gcc2 | ||
| 3462 | builtin and then its argument prototype would still apply. */ | ||
| 3463 | char $ac_func(); | ||
| 3464 | |||
| 3465 | int main() { | ||
| 3466 | |||
| 3467 | /* The GNU C library defines this for functions which it implements | ||
| 3468 | to always fail with ENOSYS. Some functions are actually named | ||
| 3469 | something starting with __ and the normal name is an alias. */ | ||
| 3470 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 3471 | choke me | ||
| 3472 | #else | ||
| 3473 | $ac_func(); | ||
| 3474 | #endif | ||
| 3475 | |||
| 3476 | ; return 0; } | ||
| 3477 | EOF | ||
| 3478 | if { (eval echo configure:3479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3479 | rm -rf conftest* | ||
| 3480 | eval "ac_cv_func_$ac_func=yes" | ||
| 3481 | else | ||
| 3482 | echo "configure: failed program was:" >&5 | ||
| 3483 | cat conftest.$ac_ext >&5 | ||
| 3484 | rm -rf conftest* | ||
| 3485 | eval "ac_cv_func_$ac_func=no" | ||
| 3486 | fi | ||
| 3487 | rm -f conftest* | ||
| 3488 | fi | ||
| 3489 | |||
| 3490 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 3491 | echo "$ac_t""yes" 1>&6 | ||
| 3492 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 3493 | cat >> confdefs.h <<EOF | ||
| 3494 | #define $ac_tr_func 1 | ||
| 3495 | EOF | ||
| 3496 | |||
| 3497 | else | ||
| 3498 | echo "$ac_t""no" 1>&6 | ||
| 3499 | fi | ||
| 3500 | done | ||
| 3501 | |||
| 3502 | for ac_func in endutxent getutxent getutxid getutxline pututxline | ||
| 3503 | do | ||
| 3504 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 3505 | echo "configure:3506: checking for $ac_func" >&5 | ||
| 3506 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 3507 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3508 | else | ||
| 3509 | cat > conftest.$ac_ext <<EOF | ||
| 3510 | #line 3511 "configure" | ||
| 3511 | #include "confdefs.h" | ||
| 3512 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3513 | which can conflict with char $ac_func(); below. */ | ||
| 3514 | #include <assert.h> | ||
| 3515 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3516 | /* We use char because int might match the return type of a gcc2 | ||
| 3517 | builtin and then its argument prototype would still apply. */ | ||
| 3518 | char $ac_func(); | ||
| 3519 | |||
| 3520 | int main() { | ||
| 3521 | |||
| 3522 | /* The GNU C library defines this for functions which it implements | ||
| 3523 | to always fail with ENOSYS. Some functions are actually named | ||
| 3524 | something starting with __ and the normal name is an alias. */ | ||
| 3525 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 3526 | choke me | ||
| 3527 | #else | ||
| 3528 | $ac_func(); | ||
| 3529 | #endif | ||
| 3530 | |||
| 3531 | ; return 0; } | ||
| 3532 | EOF | ||
| 3533 | if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3534 | rm -rf conftest* | ||
| 3535 | eval "ac_cv_func_$ac_func=yes" | ||
| 3536 | else | ||
| 3537 | echo "configure: failed program was:" >&5 | ||
| 3538 | cat conftest.$ac_ext >&5 | ||
| 3539 | rm -rf conftest* | ||
| 3540 | eval "ac_cv_func_$ac_func=no" | ||
| 3541 | fi | ||
| 3542 | rm -f conftest* | ||
| 3543 | fi | ||
| 3544 | |||
| 3545 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 3546 | echo "$ac_t""yes" 1>&6 | ||
| 3547 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 3548 | cat >> confdefs.h <<EOF | ||
| 3549 | #define $ac_tr_func 1 | ||
| 3550 | EOF | ||
| 3551 | |||
| 3552 | else | ||
| 3553 | echo "$ac_t""no" 1>&6 | ||
| 3554 | fi | ||
| 3555 | done | ||
| 3556 | |||
| 3557 | for ac_func in setutxent utmpxname | ||
| 3558 | do | ||
| 3559 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 3560 | echo "configure:3561: checking for $ac_func" >&5 | ||
| 3561 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 3562 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3563 | else | ||
| 3564 | cat > conftest.$ac_ext <<EOF | ||
| 3565 | #line 3566 "configure" | ||
| 3566 | #include "confdefs.h" | ||
| 3567 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3568 | which can conflict with char $ac_func(); below. */ | ||
| 3569 | #include <assert.h> | ||
| 3570 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3571 | /* We use char because int might match the return type of a gcc2 | ||
| 3572 | builtin and then its argument prototype would still apply. */ | ||
| 3573 | char $ac_func(); | ||
| 3574 | |||
| 3575 | int main() { | ||
| 3576 | |||
| 3577 | /* The GNU C library defines this for functions which it implements | ||
| 3578 | to always fail with ENOSYS. Some functions are actually named | ||
| 3579 | something starting with __ and the normal name is an alias. */ | ||
| 3580 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 3581 | choke me | ||
| 3582 | #else | ||
| 3583 | $ac_func(); | ||
| 3584 | #endif | ||
| 3585 | |||
| 3586 | ; return 0; } | ||
| 3587 | EOF | ||
| 3588 | if { (eval echo configure:3589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3589 | rm -rf conftest* | ||
| 3590 | eval "ac_cv_func_$ac_func=yes" | ||
| 3591 | else | ||
| 3592 | echo "configure: failed program was:" >&5 | ||
| 3593 | cat conftest.$ac_ext >&5 | ||
| 3594 | rm -rf conftest* | ||
| 3595 | eval "ac_cv_func_$ac_func=no" | ||
| 3596 | fi | ||
| 3597 | rm -f conftest* | ||
| 3598 | fi | ||
| 3599 | |||
| 3600 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 3601 | echo "$ac_t""yes" 1>&6 | ||
| 3602 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 3603 | cat >> confdefs.h <<EOF | ||
| 3604 | #define $ac_tr_func 1 | ||
| 3605 | EOF | ||
| 3606 | |||
| 3607 | else | ||
| 3608 | echo "$ac_t""no" 1>&6 | ||
| 3609 | fi | ||
| 3610 | done | ||
| 3611 | |||
| 3612 | |||
| 3613 | echo $ac_n "checking for getuserattr""... $ac_c" 1>&6 | ||
| 3614 | echo "configure:3615: checking for getuserattr" >&5 | ||
| 3615 | if eval "test \"`echo '$''{'ac_cv_func_getuserattr'+set}'`\" = set"; then | ||
| 3616 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3617 | else | ||
| 3618 | cat > conftest.$ac_ext <<EOF | ||
| 3619 | #line 3620 "configure" | ||
| 3620 | #include "confdefs.h" | ||
| 3621 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3622 | which can conflict with char getuserattr(); below. */ | ||
| 3623 | #include <assert.h> | ||
| 3624 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3625 | /* We use char because int might match the return type of a gcc2 | ||
| 3626 | builtin and then its argument prototype would still apply. */ | ||
| 3627 | char getuserattr(); | ||
| 3628 | |||
| 3629 | int main() { | ||
| 3630 | |||
| 3631 | /* The GNU C library defines this for functions which it implements | ||
| 3632 | to always fail with ENOSYS. Some functions are actually named | ||
| 3633 | something starting with __ and the normal name is an alias. */ | ||
| 3634 | #if defined (__stub_getuserattr) || defined (__stub___getuserattr) | ||
| 3635 | choke me | ||
| 3636 | #else | ||
| 3637 | getuserattr(); | ||
| 3638 | #endif | ||
| 3639 | |||
| 3640 | ; return 0; } | ||
| 3641 | EOF | ||
| 3642 | if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3643 | rm -rf conftest* | ||
| 3644 | eval "ac_cv_func_getuserattr=yes" | ||
| 3645 | else | ||
| 3646 | echo "configure: failed program was:" >&5 | ||
| 3647 | cat conftest.$ac_ext >&5 | ||
| 3648 | rm -rf conftest* | ||
| 3649 | eval "ac_cv_func_getuserattr=no" | ||
| 3650 | fi | ||
| 3651 | rm -f conftest* | ||
| 3652 | fi | ||
| 3653 | |||
| 3654 | if eval "test \"`echo '$ac_cv_func_'getuserattr`\" = yes"; then | ||
| 3655 | echo "$ac_t""yes" 1>&6 | ||
| 3656 | cat >> confdefs.h <<\EOF | ||
| 3657 | #define HAVE_GETUSERATTR 1 | ||
| 3658 | EOF | ||
| 3659 | |||
| 3660 | else | ||
| 3661 | echo "$ac_t""no" 1>&6 | ||
| 3662 | echo $ac_n "checking for getuserattr in -ls""... $ac_c" 1>&6 | ||
| 3663 | echo "configure:3664: checking for getuserattr in -ls" >&5 | ||
| 3664 | ac_lib_var=`echo s'_'getuserattr | sed 'y%./+-%__p_%'` | ||
| 3665 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 3666 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3667 | else | ||
| 3668 | ac_save_LIBS="$LIBS" | ||
| 3669 | LIBS="-ls $LIBS" | ||
| 3670 | cat > conftest.$ac_ext <<EOF | ||
| 3671 | #line 3672 "configure" | ||
| 3672 | #include "confdefs.h" | ||
| 3673 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3674 | /* We use char because int might match the return type of a gcc2 | ||
| 3675 | builtin and then its argument prototype would still apply. */ | ||
| 3676 | char getuserattr(); | ||
| 3677 | |||
| 3678 | int main() { | ||
| 3679 | getuserattr() | ||
| 3680 | ; return 0; } | ||
| 3681 | EOF | ||
| 3682 | if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3683 | rm -rf conftest* | ||
| 3684 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 3685 | else | ||
| 3686 | echo "configure: failed program was:" >&5 | ||
| 3687 | cat conftest.$ac_ext >&5 | ||
| 3688 | rm -rf conftest* | ||
| 3689 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 3690 | fi | ||
| 3691 | rm -f conftest* | ||
| 3692 | LIBS="$ac_save_LIBS" | ||
| 3693 | |||
| 3694 | fi | ||
| 3695 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 3696 | echo "$ac_t""yes" 1>&6 | ||
| 3697 | LIBS="$LIBS -ls"; cat >> confdefs.h <<\EOF | ||
| 3698 | #define HAVE_GETUSERATTR 1 | ||
| 3699 | EOF | ||
| 3700 | |||
| 3701 | else | ||
| 3702 | echo "$ac_t""no" 1>&6 | ||
| 3703 | fi | ||
| 3704 | |||
| 3705 | |||
| 3706 | fi | ||
| 3707 | |||
| 3708 | |||
| 3709 | echo $ac_n "checking for login""... $ac_c" 1>&6 | ||
| 3710 | echo "configure:3711: checking for login" >&5 | ||
| 3711 | if eval "test \"`echo '$''{'ac_cv_func_login'+set}'`\" = set"; then | ||
| 3712 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3713 | else | ||
| 3714 | cat > conftest.$ac_ext <<EOF | ||
| 3715 | #line 3716 "configure" | ||
| 3716 | #include "confdefs.h" | ||
| 3717 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3718 | which can conflict with char login(); below. */ | ||
| 3719 | #include <assert.h> | ||
| 3720 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3721 | /* We use char because int might match the return type of a gcc2 | ||
| 3722 | builtin and then its argument prototype would still apply. */ | ||
| 3723 | char login(); | ||
| 3724 | |||
| 3725 | int main() { | ||
| 3726 | |||
| 3727 | /* The GNU C library defines this for functions which it implements | ||
| 3728 | to always fail with ENOSYS. Some functions are actually named | ||
| 3729 | something starting with __ and the normal name is an alias. */ | ||
| 3730 | #if defined (__stub_login) || defined (__stub___login) | ||
| 3731 | choke me | ||
| 3732 | #else | ||
| 3733 | login(); | ||
| 3734 | #endif | ||
| 3735 | |||
| 3736 | ; return 0; } | ||
| 3737 | EOF | ||
| 3738 | if { (eval echo configure:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3739 | rm -rf conftest* | ||
| 3740 | eval "ac_cv_func_login=yes" | ||
| 3741 | else | ||
| 3742 | echo "configure: failed program was:" >&5 | ||
| 3743 | cat conftest.$ac_ext >&5 | ||
| 3744 | rm -rf conftest* | ||
| 3745 | eval "ac_cv_func_login=no" | ||
| 3746 | fi | ||
| 3747 | rm -f conftest* | ||
| 3748 | fi | ||
| 3749 | |||
| 3750 | if eval "test \"`echo '$ac_cv_func_'login`\" = yes"; then | ||
| 3751 | echo "$ac_t""yes" 1>&6 | ||
| 3752 | cat >> confdefs.h <<\EOF | ||
| 3753 | #define HAVE_LOGIN 1 | ||
| 3754 | EOF | ||
| 3755 | |||
| 3756 | else | ||
| 3757 | echo "$ac_t""no" 1>&6 | ||
| 3758 | echo $ac_n "checking for login in -lbsd""... $ac_c" 1>&6 | ||
| 3759 | echo "configure:3760: checking for login in -lbsd" >&5 | ||
| 3760 | ac_lib_var=`echo bsd'_'login | sed 'y%./+-%__p_%'` | ||
| 3761 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 3762 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3763 | else | ||
| 3764 | ac_save_LIBS="$LIBS" | ||
| 3765 | LIBS="-lbsd $LIBS" | ||
| 3766 | cat > conftest.$ac_ext <<EOF | ||
| 3767 | #line 3768 "configure" | ||
| 3768 | #include "confdefs.h" | ||
| 3769 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3770 | /* We use char because int might match the return type of a gcc2 | ||
| 3771 | builtin and then its argument prototype would still apply. */ | ||
| 3772 | char login(); | ||
| 3773 | |||
| 3774 | int main() { | ||
| 3775 | login() | ||
| 3776 | ; return 0; } | ||
| 3777 | EOF | ||
| 3778 | if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3779 | rm -rf conftest* | ||
| 3780 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 3781 | else | ||
| 3782 | echo "configure: failed program was:" >&5 | ||
| 3783 | cat conftest.$ac_ext >&5 | ||
| 3784 | rm -rf conftest* | ||
| 3785 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 3786 | fi | ||
| 3787 | rm -f conftest* | ||
| 3788 | LIBS="$ac_save_LIBS" | ||
| 3789 | |||
| 3790 | fi | ||
| 3791 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 3792 | echo "$ac_t""yes" 1>&6 | ||
| 3793 | LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF | ||
| 3794 | #define HAVE_LOGIN 1 | ||
| 3795 | EOF | ||
| 3796 | |||
| 3797 | else | ||
| 3798 | echo "$ac_t""no" 1>&6 | ||
| 3799 | fi | ||
| 3800 | |||
| 3801 | |||
| 3802 | fi | ||
| 3803 | |||
| 3804 | |||
| 3805 | echo $ac_n "checking for daemon""... $ac_c" 1>&6 | ||
| 3806 | echo "configure:3807: checking for daemon" >&5 | ||
| 3807 | if eval "test \"`echo '$''{'ac_cv_func_daemon'+set}'`\" = set"; then | ||
| 3808 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3809 | else | ||
| 3810 | cat > conftest.$ac_ext <<EOF | ||
| 3811 | #line 3812 "configure" | ||
| 3812 | #include "confdefs.h" | ||
| 3813 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3814 | which can conflict with char daemon(); below. */ | ||
| 3815 | #include <assert.h> | ||
| 3816 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3817 | /* We use char because int might match the return type of a gcc2 | ||
| 3818 | builtin and then its argument prototype would still apply. */ | ||
| 3819 | char daemon(); | ||
| 3820 | |||
| 3821 | int main() { | ||
| 3822 | |||
| 3823 | /* The GNU C library defines this for functions which it implements | ||
| 3824 | to always fail with ENOSYS. Some functions are actually named | ||
| 3825 | something starting with __ and the normal name is an alias. */ | ||
| 3826 | #if defined (__stub_daemon) || defined (__stub___daemon) | ||
| 3827 | choke me | ||
| 3828 | #else | ||
| 3829 | daemon(); | ||
| 3830 | #endif | ||
| 3831 | |||
| 3832 | ; return 0; } | ||
| 3833 | EOF | ||
| 3834 | if { (eval echo configure:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3835 | rm -rf conftest* | ||
| 3836 | eval "ac_cv_func_daemon=yes" | ||
| 3837 | else | ||
| 3838 | echo "configure: failed program was:" >&5 | ||
| 3839 | cat conftest.$ac_ext >&5 | ||
| 3840 | rm -rf conftest* | ||
| 3841 | eval "ac_cv_func_daemon=no" | ||
| 3842 | fi | ||
| 3843 | rm -f conftest* | ||
| 3844 | fi | ||
| 3845 | |||
| 3846 | if eval "test \"`echo '$ac_cv_func_'daemon`\" = yes"; then | ||
| 3847 | echo "$ac_t""yes" 1>&6 | ||
| 3848 | cat >> confdefs.h <<\EOF | ||
| 3849 | #define HAVE_DAEMON 1 | ||
| 3850 | EOF | ||
| 3851 | |||
| 3852 | else | ||
| 3853 | echo "$ac_t""no" 1>&6 | ||
| 3854 | echo $ac_n "checking for daemon in -lbsd""... $ac_c" 1>&6 | ||
| 3855 | echo "configure:3856: checking for daemon in -lbsd" >&5 | ||
| 3856 | ac_lib_var=`echo bsd'_'daemon | sed 'y%./+-%__p_%'` | ||
| 3857 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 3858 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3859 | else | ||
| 3860 | ac_save_LIBS="$LIBS" | ||
| 3861 | LIBS="-lbsd $LIBS" | ||
| 3862 | cat > conftest.$ac_ext <<EOF | ||
| 3863 | #line 3864 "configure" | ||
| 3864 | #include "confdefs.h" | ||
| 3865 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3866 | /* We use char because int might match the return type of a gcc2 | ||
| 3867 | builtin and then its argument prototype would still apply. */ | ||
| 3868 | char daemon(); | ||
| 3869 | |||
| 3870 | int main() { | ||
| 3871 | daemon() | ||
| 3872 | ; return 0; } | ||
| 3873 | EOF | ||
| 3874 | if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3875 | rm -rf conftest* | ||
| 3876 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 3877 | else | ||
| 3878 | echo "configure: failed program was:" >&5 | ||
| 3879 | cat conftest.$ac_ext >&5 | ||
| 3880 | rm -rf conftest* | ||
| 3881 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 3882 | fi | ||
| 3883 | rm -f conftest* | ||
| 3884 | LIBS="$ac_save_LIBS" | ||
| 3885 | |||
| 3886 | fi | ||
| 3887 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 3888 | echo "$ac_t""yes" 1>&6 | ||
| 3889 | LIBS="$LIBS -lbsd"; cat >> confdefs.h <<\EOF | ||
| 3890 | #define HAVE_DAEMON 1 | ||
| 3891 | EOF | ||
| 3892 | |||
| 3893 | else | ||
| 3894 | echo "$ac_t""no" 1>&6 | ||
| 3895 | fi | ||
| 3896 | |||
| 3897 | |||
| 3898 | fi | ||
| 3899 | |||
| 3900 | |||
| 3901 | echo $ac_n "checking for getpagesize""... $ac_c" 1>&6 | ||
| 3902 | echo "configure:3903: checking for getpagesize" >&5 | ||
| 3903 | if eval "test \"`echo '$''{'ac_cv_func_getpagesize'+set}'`\" = set"; then | ||
| 3904 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3905 | else | ||
| 3906 | cat > conftest.$ac_ext <<EOF | ||
| 3907 | #line 3908 "configure" | ||
| 3908 | #include "confdefs.h" | ||
| 3909 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 3910 | which can conflict with char getpagesize(); below. */ | ||
| 3911 | #include <assert.h> | ||
| 3912 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3913 | /* We use char because int might match the return type of a gcc2 | ||
| 3914 | builtin and then its argument prototype would still apply. */ | ||
| 3915 | char getpagesize(); | ||
| 3916 | |||
| 3917 | int main() { | ||
| 3918 | |||
| 3919 | /* The GNU C library defines this for functions which it implements | ||
| 3920 | to always fail with ENOSYS. Some functions are actually named | ||
| 3921 | something starting with __ and the normal name is an alias. */ | ||
| 3922 | #if defined (__stub_getpagesize) || defined (__stub___getpagesize) | ||
| 3923 | choke me | ||
| 3924 | #else | ||
| 3925 | getpagesize(); | ||
| 3926 | #endif | ||
| 3927 | |||
| 3928 | ; return 0; } | ||
| 3929 | EOF | ||
| 3930 | if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3931 | rm -rf conftest* | ||
| 3932 | eval "ac_cv_func_getpagesize=yes" | ||
| 3933 | else | ||
| 3934 | echo "configure: failed program was:" >&5 | ||
| 3935 | cat conftest.$ac_ext >&5 | ||
| 3936 | rm -rf conftest* | ||
| 3937 | eval "ac_cv_func_getpagesize=no" | ||
| 3938 | fi | ||
| 3939 | rm -f conftest* | ||
| 3940 | fi | ||
| 3941 | |||
| 3942 | if eval "test \"`echo '$ac_cv_func_'getpagesize`\" = yes"; then | ||
| 3943 | echo "$ac_t""yes" 1>&6 | ||
| 3944 | cat >> confdefs.h <<\EOF | ||
| 3945 | #define HAVE_GETPAGESIZE 1 | ||
| 3946 | EOF | ||
| 3947 | |||
| 3948 | else | ||
| 3949 | echo "$ac_t""no" 1>&6 | ||
| 3950 | echo $ac_n "checking for getpagesize in -lucb""... $ac_c" 1>&6 | ||
| 3951 | echo "configure:3952: checking for getpagesize in -lucb" >&5 | ||
| 3952 | ac_lib_var=`echo ucb'_'getpagesize | sed 'y%./+-%__p_%'` | ||
| 3953 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 3954 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 3955 | else | ||
| 3956 | ac_save_LIBS="$LIBS" | ||
| 3957 | LIBS="-lucb $LIBS" | ||
| 3958 | cat > conftest.$ac_ext <<EOF | ||
| 3959 | #line 3960 "configure" | ||
| 3960 | #include "confdefs.h" | ||
| 3961 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 3962 | /* We use char because int might match the return type of a gcc2 | ||
| 3963 | builtin and then its argument prototype would still apply. */ | ||
| 3964 | char getpagesize(); | ||
| 3965 | |||
| 3966 | int main() { | ||
| 3967 | getpagesize() | ||
| 3968 | ; return 0; } | ||
| 3969 | EOF | ||
| 3970 | if { (eval echo configure:3971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 3971 | rm -rf conftest* | ||
| 3972 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 3973 | else | ||
| 3974 | echo "configure: failed program was:" >&5 | ||
| 3975 | cat conftest.$ac_ext >&5 | ||
| 3976 | rm -rf conftest* | ||
| 3977 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 3978 | fi | ||
| 3979 | rm -f conftest* | ||
| 3980 | LIBS="$ac_save_LIBS" | ||
| 3981 | |||
| 3982 | fi | ||
| 3983 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 3984 | echo "$ac_t""yes" 1>&6 | ||
| 3985 | LIBS="$LIBS -lucb"; cat >> confdefs.h <<\EOF | ||
| 3986 | #define HAVE_GETPAGESIZE 1 | ||
| 3987 | EOF | ||
| 3988 | |||
| 3989 | else | ||
| 3990 | echo "$ac_t""no" 1>&6 | ||
| 3991 | fi | ||
| 3992 | |||
| 3993 | |||
| 3994 | fi | ||
| 3995 | |||
| 3996 | |||
| 3997 | # Check for broken snprintf | ||
| 3998 | if test "x$ac_cv_func_snprintf" = "xyes" ; then | ||
| 3999 | echo $ac_n "checking whether snprintf correctly terminates long strings""... $ac_c" 1>&6 | ||
| 4000 | echo "configure:4001: checking whether snprintf correctly terminates long strings" >&5 | ||
| 4001 | if test "$cross_compiling" = yes; then | ||
| 4002 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 4003 | else | ||
| 4004 | cat > conftest.$ac_ext <<EOF | ||
| 4005 | #line 4006 "configure" | ||
| 4006 | #include "confdefs.h" | ||
| 4007 | |||
| 4008 | #include <stdio.h> | ||
| 4009 | int main(void){char b[5];snprintf(b,5,"123456789");return(b[4]!='\0');} | ||
| 4010 | |||
| 4011 | EOF | ||
| 4012 | if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4013 | then | ||
| 4014 | echo "$ac_t""yes" 1>&6 | ||
| 4015 | else | ||
| 4016 | echo "configure: failed program was:" >&5 | ||
| 4017 | cat conftest.$ac_ext >&5 | ||
| 4018 | rm -fr conftest* | ||
| 4019 | |||
| 4020 | echo "$ac_t""no" 1>&6 | ||
| 4021 | cat >> confdefs.h <<\EOF | ||
| 4022 | #define BROKEN_SNPRINTF 1 | ||
| 4023 | EOF | ||
| 4024 | |||
| 4025 | echo "configure: warning: ****** Your snprintf() function is broken, complain to your vendor" 1>&2 | ||
| 4026 | |||
| 4027 | |||
| 4028 | fi | ||
| 4029 | rm -fr conftest* | ||
| 4030 | fi | ||
| 4031 | |||
| 4032 | fi | ||
| 4033 | |||
| 4034 | echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 | ||
| 4035 | echo "configure:4036: checking whether getpgrp takes no argument" >&5 | ||
| 4036 | if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then | ||
| 4037 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4038 | else | ||
| 4039 | if test "$cross_compiling" = yes; then | ||
| 4040 | { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; } | ||
| 4041 | else | ||
| 4042 | cat > conftest.$ac_ext <<EOF | ||
| 4043 | #line 4044 "configure" | ||
| 4044 | #include "confdefs.h" | ||
| 4045 | |||
| 4046 | /* | ||
| 4047 | * If this system has a BSD-style getpgrp(), | ||
| 4048 | * which takes a pid argument, exit unsuccessfully. | ||
| 4049 | * | ||
| 4050 | * Snarfed from Chet Ramey's bash pgrp.c test program | ||
| 4051 | */ | ||
| 4052 | #include <stdio.h> | ||
| 4053 | #include <sys/types.h> | ||
| 4054 | |||
| 4055 | int pid; | ||
| 4056 | int pg1, pg2, pg3, pg4; | ||
| 4057 | int ng, np, s, child; | ||
| 4058 | |||
| 4059 | main() | ||
| 4060 | { | ||
| 4061 | pid = getpid(); | ||
| 4062 | pg1 = getpgrp(0); | ||
| 4063 | pg2 = getpgrp(); | ||
| 4064 | pg3 = getpgrp(pid); | ||
| 4065 | pg4 = getpgrp(1); | ||
| 4066 | |||
| 4067 | /* | ||
| 4068 | * If all of these values are the same, it's pretty sure that | ||
| 4069 | * we're on a system that ignores getpgrp's first argument. | ||
| 4070 | */ | ||
| 4071 | if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3) | ||
| 4072 | exit(0); | ||
| 4073 | |||
| 4074 | child = fork(); | ||
| 4075 | if (child < 0) | ||
| 4076 | exit(1); | ||
| 4077 | else if (child == 0) { | ||
| 4078 | np = getpid(); | ||
| 4079 | /* | ||
| 4080 | * If this is Sys V, this will not work; pgrp will be | ||
| 4081 | * set to np because setpgrp just changes a pgrp to be | ||
| 4082 | * the same as the pid. | ||
| 4083 | */ | ||
| 4084 | setpgrp(np, pg1); | ||
| 4085 | ng = getpgrp(0); /* Same result for Sys V and BSD */ | ||
| 4086 | if (ng == pg1) { | ||
| 4087 | exit(1); | ||
| 4088 | } else { | ||
| 4089 | exit(0); | ||
| 4090 | } | ||
| 4091 | } else { | ||
| 4092 | wait(&s); | ||
| 4093 | exit(s>>8); | ||
| 4094 | } | ||
| 4095 | } | ||
| 4096 | |||
| 4097 | EOF | ||
| 4098 | if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4099 | then | ||
| 4100 | ac_cv_func_getpgrp_void=yes | ||
| 4101 | else | ||
| 4102 | echo "configure: failed program was:" >&5 | ||
| 4103 | cat conftest.$ac_ext >&5 | ||
| 4104 | rm -fr conftest* | ||
| 4105 | ac_cv_func_getpgrp_void=no | ||
| 4106 | fi | ||
| 4107 | rm -fr conftest* | ||
| 4108 | fi | ||
| 4109 | |||
| 4110 | |||
| 4111 | fi | ||
| 4112 | |||
| 4113 | echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6 | ||
| 4114 | if test $ac_cv_func_getpgrp_void = yes; then | ||
| 4115 | cat >> confdefs.h <<\EOF | ||
| 4116 | #define GETPGRP_VOID 1 | ||
| 4117 | EOF | ||
| 4118 | |||
| 4119 | fi | ||
| 4120 | |||
| 4121 | |||
| 4122 | # Check for PAM libs | ||
| 4123 | PAM_MSG="no" | ||
| 4124 | # Check whether --with-pam or --without-pam was given. | ||
| 4125 | if test "${with_pam+set}" = set; then | ||
| 4126 | withval="$with_pam" | ||
| 4127 | |||
| 4128 | if test "x$withval" != "xno" ; then | ||
| 4129 | if test "x$ac_cv_header_security_pam_appl_h" != "xyes" ; then | ||
| 4130 | { echo "configure: error: PAM headers not found" 1>&2; exit 1; } | ||
| 4131 | fi | ||
| 4132 | |||
| 4133 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | ||
| 4134 | echo "configure:4135: checking for dlopen in -ldl" >&5 | ||
| 4135 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | ||
| 4136 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 4137 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4138 | else | ||
| 4139 | ac_save_LIBS="$LIBS" | ||
| 4140 | LIBS="-ldl $LIBS" | ||
| 4141 | cat > conftest.$ac_ext <<EOF | ||
| 4142 | #line 4143 "configure" | ||
| 4143 | #include "confdefs.h" | ||
| 4144 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 4145 | /* We use char because int might match the return type of a gcc2 | ||
| 4146 | builtin and then its argument prototype would still apply. */ | ||
| 4147 | char dlopen(); | ||
| 4148 | |||
| 4149 | int main() { | ||
| 4150 | dlopen() | ||
| 4151 | ; return 0; } | ||
| 4152 | EOF | ||
| 4153 | if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4154 | rm -rf conftest* | ||
| 4155 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 4156 | else | ||
| 4157 | echo "configure: failed program was:" >&5 | ||
| 4158 | cat conftest.$ac_ext >&5 | ||
| 4159 | rm -rf conftest* | ||
| 4160 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 4161 | fi | ||
| 4162 | rm -f conftest* | ||
| 4163 | LIBS="$ac_save_LIBS" | ||
| 4164 | |||
| 4165 | fi | ||
| 4166 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 4167 | echo "$ac_t""yes" 1>&6 | ||
| 4168 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 4169 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 4170 | cat >> confdefs.h <<EOF | ||
| 4171 | #define $ac_tr_lib 1 | ||
| 4172 | EOF | ||
| 4173 | |||
| 4174 | LIBS="-ldl $LIBS" | ||
| 4175 | |||
| 4176 | else | ||
| 4177 | echo "$ac_t""no" 1>&6 | ||
| 4178 | fi | ||
| 4179 | |||
| 4180 | echo $ac_n "checking for pam_set_item in -lpam""... $ac_c" 1>&6 | ||
| 4181 | echo "configure:4182: checking for pam_set_item in -lpam" >&5 | ||
| 4182 | ac_lib_var=`echo pam'_'pam_set_item | sed 'y%./+-%__p_%'` | ||
| 4183 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 4184 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4185 | else | ||
| 4186 | ac_save_LIBS="$LIBS" | ||
| 4187 | LIBS="-lpam $LIBS" | ||
| 4188 | cat > conftest.$ac_ext <<EOF | ||
| 4189 | #line 4190 "configure" | ||
| 4190 | #include "confdefs.h" | ||
| 4191 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 4192 | /* We use char because int might match the return type of a gcc2 | ||
| 4193 | builtin and then its argument prototype would still apply. */ | ||
| 4194 | char pam_set_item(); | ||
| 4195 | |||
| 4196 | int main() { | ||
| 4197 | pam_set_item() | ||
| 4198 | ; return 0; } | ||
| 4199 | EOF | ||
| 4200 | if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4201 | rm -rf conftest* | ||
| 4202 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 4203 | else | ||
| 4204 | echo "configure: failed program was:" >&5 | ||
| 4205 | cat conftest.$ac_ext >&5 | ||
| 4206 | rm -rf conftest* | ||
| 4207 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 4208 | fi | ||
| 4209 | rm -f conftest* | ||
| 4210 | LIBS="$ac_save_LIBS" | ||
| 4211 | |||
| 4212 | fi | ||
| 4213 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 4214 | echo "$ac_t""yes" 1>&6 | ||
| 4215 | ac_tr_lib=HAVE_LIB`echo pam | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 4216 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 4217 | cat >> confdefs.h <<EOF | ||
| 4218 | #define $ac_tr_lib 1 | ||
| 4219 | EOF | ||
| 4220 | |||
| 4221 | LIBS="-lpam $LIBS" | ||
| 4222 | |||
| 4223 | else | ||
| 4224 | echo "$ac_t""no" 1>&6 | ||
| 4225 | { echo "configure: error: *** libpam missing" 1>&2; exit 1; } | ||
| 4226 | fi | ||
| 4227 | |||
| 4228 | for ac_func in pam_getenvlist | ||
| 4229 | do | ||
| 4230 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | ||
| 4231 | echo "configure:4232: checking for $ac_func" >&5 | ||
| 4232 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | ||
| 4233 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4234 | else | ||
| 4235 | cat > conftest.$ac_ext <<EOF | ||
| 4236 | #line 4237 "configure" | ||
| 4237 | #include "confdefs.h" | ||
| 4238 | /* System header to define __stub macros and hopefully few prototypes, | ||
| 4239 | which can conflict with char $ac_func(); below. */ | ||
| 4240 | #include <assert.h> | ||
| 4241 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 4242 | /* We use char because int might match the return type of a gcc2 | ||
| 4243 | builtin and then its argument prototype would still apply. */ | ||
| 4244 | char $ac_func(); | ||
| 4245 | |||
| 4246 | int main() { | ||
| 4247 | |||
| 4248 | /* The GNU C library defines this for functions which it implements | ||
| 4249 | to always fail with ENOSYS. Some functions are actually named | ||
| 4250 | something starting with __ and the normal name is an alias. */ | ||
| 4251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
| 4252 | choke me | ||
| 4253 | #else | ||
| 4254 | $ac_func(); | ||
| 4255 | #endif | ||
| 4256 | |||
| 4257 | ; return 0; } | ||
| 4258 | EOF | ||
| 4259 | if { (eval echo configure:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4260 | rm -rf conftest* | ||
| 4261 | eval "ac_cv_func_$ac_func=yes" | ||
| 4262 | else | ||
| 4263 | echo "configure: failed program was:" >&5 | ||
| 4264 | cat conftest.$ac_ext >&5 | ||
| 4265 | rm -rf conftest* | ||
| 4266 | eval "ac_cv_func_$ac_func=no" | ||
| 4267 | fi | ||
| 4268 | rm -f conftest* | ||
| 4269 | fi | ||
| 4270 | |||
| 4271 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | ||
| 4272 | echo "$ac_t""yes" 1>&6 | ||
| 4273 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | ||
| 4274 | cat >> confdefs.h <<EOF | ||
| 4275 | #define $ac_tr_func 1 | ||
| 4276 | EOF | ||
| 4277 | |||
| 4278 | else | ||
| 4279 | echo "$ac_t""no" 1>&6 | ||
| 4280 | fi | ||
| 4281 | done | ||
| 4282 | |||
| 4283 | |||
| 4284 | disable_shadow=yes | ||
| 4285 | PAM_MSG="yes" | ||
| 4286 | |||
| 4287 | cat >> confdefs.h <<\EOF | ||
| 4288 | #define USE_PAM 1 | ||
| 4289 | EOF | ||
| 4290 | |||
| 4291 | fi | ||
| 4292 | |||
| 4293 | |||
| 4294 | fi | ||
| 4295 | |||
| 4296 | |||
| 4297 | # Check for older PAM | ||
| 4298 | if test "x$PAM_MSG" = "xyes" ; then | ||
| 4299 | # Check PAM strerror arguments (old PAM) | ||
| 4300 | echo $ac_n "checking whether pam_strerror takes only one argument""... $ac_c" 1>&6 | ||
| 4301 | echo "configure:4302: checking whether pam_strerror takes only one argument" >&5 | ||
| 4302 | cat > conftest.$ac_ext <<EOF | ||
| 4303 | #line 4304 "configure" | ||
| 4304 | #include "confdefs.h" | ||
| 4305 | |||
| 4306 | #include <stdlib.h> | ||
| 4307 | #include <security/pam_appl.h> | ||
| 4308 | |||
| 4309 | int main() { | ||
| 4310 | (void)pam_strerror((pam_handle_t *)NULL, -1); | ||
| 4311 | ; return 0; } | ||
| 4312 | EOF | ||
| 4313 | if { (eval echo configure:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4314 | rm -rf conftest* | ||
| 4315 | echo "$ac_t""no" 1>&6 | ||
| 4316 | else | ||
| 4317 | echo "configure: failed program was:" >&5 | ||
| 4318 | cat conftest.$ac_ext >&5 | ||
| 4319 | rm -rf conftest* | ||
| 4320 | |||
| 4321 | cat >> confdefs.h <<\EOF | ||
| 4322 | #define HAVE_OLD_PAM 1 | ||
| 4323 | EOF | ||
| 4324 | |||
| 4325 | echo "$ac_t""yes" 1>&6 | ||
| 4326 | PAM_MSG="yes (old library)" | ||
| 4327 | |||
| 4328 | |||
| 4329 | fi | ||
| 4330 | rm -f conftest* | ||
| 4331 | fi | ||
| 4332 | |||
| 4333 | # The big search for OpenSSL | ||
| 4334 | # Check whether --with-ssl-dir or --without-ssl-dir was given. | ||
| 4335 | if test "${with_ssl_dir+set}" = set; then | ||
| 4336 | withval="$with_ssl_dir" | ||
| 4337 | |||
| 4338 | if test "x$withval" != "xno" ; then | ||
| 4339 | tryssldir=$withval | ||
| 4340 | fi | ||
| 4341 | |||
| 4342 | |||
| 4343 | fi | ||
| 4344 | |||
| 4345 | |||
| 4346 | saved_LIBS="$LIBS" | ||
| 4347 | saved_LDFLAGS="$LDFLAGS" | ||
| 4348 | saved_CPPFLAGS="$CPPFLAGS" | ||
| 4349 | if test "x$prefix" != "xNONE" ; then | ||
| 4350 | tryssldir="$tryssldir $prefix" | ||
| 4351 | fi | ||
| 4352 | echo $ac_n "checking for OpenSSL directory""... $ac_c" 1>&6 | ||
| 4353 | echo "configure:4354: checking for OpenSSL directory" >&5 | ||
| 4354 | if eval "test \"`echo '$''{'ac_cv_openssldir'+set}'`\" = set"; then | ||
| 4355 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4356 | else | ||
| 4357 | |||
| 4358 | for ssldir in $tryssldir "" /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl ; do | ||
| 4359 | CPPFLAGS="$saved_CPPFLAGS" | ||
| 4360 | LDFLAGS="$saved_LDFLAGS" | ||
| 4361 | LIBS="$saved_LIBS -lcrypto" | ||
| 4362 | |||
| 4363 | # Skip directories if they don't exist | ||
| 4364 | if test ! -z "$ssldir" -a ! -d "$ssldir" ; then | ||
| 4365 | continue; | ||
| 4366 | fi | ||
| 4367 | if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then | ||
| 4368 | # Try to use $ssldir/lib if it exists, otherwise | ||
| 4369 | # $ssldir | ||
| 4370 | if test -d "$ssldir/lib" ; then | ||
| 4371 | LDFLAGS="-L$ssldir/lib $saved_LDFLAGS" | ||
| 4372 | if test ! -z "$need_dash_r" ; then | ||
| 4373 | LDFLAGS="-R$ssldir/lib $LDFLAGS" | ||
| 4374 | fi | ||
| 4375 | else | ||
| 4376 | LDFLAGS="-L$ssldir $saved_LDFLAGS" | ||
| 4377 | if test ! -z "$need_dash_r" ; then | ||
| 4378 | LDFLAGS="-R$ssldir $LDFLAGS" | ||
| 4379 | fi | ||
| 4380 | fi | ||
| 4381 | # Try to use $ssldir/include if it exists, otherwise | ||
| 4382 | # $ssldir | ||
| 4383 | if test -d "$ssldir/include" ; then | ||
| 4384 | CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS" | ||
| 4385 | else | ||
| 4386 | CPPFLAGS="-I$ssldir $saved_CPPFLAGS" | ||
| 4387 | fi | ||
| 4388 | fi | ||
| 4389 | |||
| 4390 | # Basic test to check for compatible version and correct linking | ||
| 4391 | # *does not* test for RSA - that comes later. | ||
| 4392 | if test "$cross_compiling" = yes; then | ||
| 4393 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 4394 | else | ||
| 4395 | cat > conftest.$ac_ext <<EOF | ||
| 4396 | #line 4397 "configure" | ||
| 4397 | #include "confdefs.h" | ||
| 4398 | |||
| 4399 | #include <string.h> | ||
| 4400 | #include <openssl/rand.h> | ||
| 4401 | int main(void) | ||
| 4402 | { | ||
| 4403 | char a[2048]; | ||
| 4404 | memset(a, 0, sizeof(a)); | ||
| 4405 | RAND_add(a, sizeof(a), sizeof(a)); | ||
| 4406 | return(RAND_status() <= 0); | ||
| 4407 | } | ||
| 4408 | |||
| 4409 | EOF | ||
| 4410 | if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4411 | then | ||
| 4412 | |||
| 4413 | found_crypto=1 | ||
| 4414 | break; | ||
| 4415 | |||
| 4416 | else | ||
| 4417 | echo "configure: failed program was:" >&5 | ||
| 4418 | cat conftest.$ac_ext >&5 | ||
| 4419 | rm -fr conftest* | ||
| 4420 | |||
| 4421 | |||
| 4422 | fi | ||
| 4423 | rm -fr conftest* | ||
| 4424 | fi | ||
| 4425 | |||
| 4426 | |||
| 4427 | if test ! -z "$found_crypto" ; then | ||
| 4428 | break; | ||
| 4429 | fi | ||
| 4430 | done | ||
| 4431 | |||
| 4432 | if test -z "$found_crypto" ; then | ||
| 4433 | { echo "configure: error: Could not find working OpenSSL library, please install or check config.log" 1>&2; exit 1; } | ||
| 4434 | fi | ||
| 4435 | if test -z "$ssldir" ; then | ||
| 4436 | ssldir="(system)" | ||
| 4437 | fi | ||
| 4438 | |||
| 4439 | ac_cv_openssldir=$ssldir | ||
| 4440 | |||
| 4441 | fi | ||
| 4442 | |||
| 4443 | echo "$ac_t""$ac_cv_openssldir" 1>&6 | ||
| 4444 | |||
| 4445 | if (test ! -z "$ac_cv_openssldir" && test "x$ac_cv_openssldir" != "x(system)") ; then | ||
| 4446 | cat >> confdefs.h <<\EOF | ||
| 4447 | #define HAVE_OPENSSL 1 | ||
| 4448 | EOF | ||
| 4449 | |||
| 4450 | ssldir=$ac_cv_openssldir | ||
| 4451 | if test ! -z "$ssldir" -a "x$ssldir" != "x/usr"; then | ||
| 4452 | # Try to use $ssldir/lib if it exists, otherwise | ||
| 4453 | # $ssldir | ||
| 4454 | if test -d "$ssldir/lib" ; then | ||
| 4455 | LDFLAGS="-L$ssldir/lib $saved_LDFLAGS" | ||
| 4456 | if test ! -z "$need_dash_r" ; then | ||
| 4457 | LDFLAGS="-R$ssldir/lib $LDFLAGS" | ||
| 4458 | fi | ||
| 4459 | else | ||
| 4460 | LDFLAGS="-L$ssldir $saved_LDFLAGS" | ||
| 4461 | if test ! -z "$need_dash_r" ; then | ||
| 4462 | LDFLAGS="-R$ssldir $LDFLAGS" | ||
| 4463 | fi | ||
| 4464 | fi | ||
| 4465 | # Try to use $ssldir/include if it exists, otherwise | ||
| 4466 | # $ssldir | ||
| 4467 | if test -d "$ssldir/include" ; then | ||
| 4468 | CPPFLAGS="-I$ssldir/include $saved_CPPFLAGS" | ||
| 4469 | else | ||
| 4470 | CPPFLAGS="-I$ssldir $saved_CPPFLAGS" | ||
| 4471 | fi | ||
| 4472 | fi | ||
| 4473 | fi | ||
| 4474 | LIBS="$saved_LIBS -lcrypto" | ||
| 4475 | |||
| 4476 | # Now test RSA support | ||
| 4477 | saved_LIBS="$LIBS" | ||
| 4478 | echo $ac_n "checking for RSA support""... $ac_c" 1>&6 | ||
| 4479 | echo "configure:4480: checking for RSA support" >&5 | ||
| 4480 | for WANTS_RSAREF in "" 1 ; do | ||
| 4481 | if test -z "$WANTS_RSAREF" ; then | ||
| 4482 | LIBS="$saved_LIBS" | ||
| 4483 | else | ||
| 4484 | LIBS="$saved_LIBS -lRSAglue -lrsaref" | ||
| 4485 | fi | ||
| 4486 | if test "$cross_compiling" = yes; then | ||
| 4487 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 4488 | else | ||
| 4489 | cat > conftest.$ac_ext <<EOF | ||
| 4490 | #line 4491 "configure" | ||
| 4491 | #include "confdefs.h" | ||
| 4492 | |||
| 4493 | #include <string.h> | ||
| 4494 | #include <openssl/rand.h> | ||
| 4495 | #include <openssl/rsa.h> | ||
| 4496 | #include <openssl/bn.h> | ||
| 4497 | #include <openssl/sha.h> | ||
| 4498 | int main(void) | ||
| 4499 | { | ||
| 4500 | int num; RSA *key; static unsigned char p_in[] = "blahblah"; | ||
| 4501 | unsigned char c[256], p[256]; | ||
| 4502 | memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c)); | ||
| 4503 | if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1); | ||
| 4504 | num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING); | ||
| 4505 | return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING)); | ||
| 4506 | } | ||
| 4507 | |||
| 4508 | EOF | ||
| 4509 | if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4510 | then | ||
| 4511 | |||
| 4512 | rsa_works=1 | ||
| 4513 | break; | ||
| 4514 | |||
| 4515 | else | ||
| 4516 | echo "configure: failed program was:" >&5 | ||
| 4517 | cat conftest.$ac_ext >&5 | ||
| 4518 | fi | ||
| 4519 | rm -fr conftest* | ||
| 4520 | fi | ||
| 4521 | |||
| 4522 | done | ||
| 4523 | |||
| 4524 | if test ! -z "$no_rsa" ; then | ||
| 4525 | echo "$ac_t""disabled" 1>&6 | ||
| 4526 | RSA_MSG="disabled" | ||
| 4527 | else | ||
| 4528 | if test -z "$rsa_works" ; then | ||
| 4529 | echo "configure: warning: *** No RSA support found *** " 1>&2 | ||
| 4530 | RSA_MSG="no" | ||
| 4531 | else | ||
| 4532 | if test -z "$WANTS_RSAREF" ; then | ||
| 4533 | echo "$ac_t""yes" 1>&6 | ||
| 4534 | RSA_MSG="yes" | ||
| 4535 | else | ||
| 4536 | RSA_MSG="yes (using RSAref)" | ||
| 4537 | echo "$ac_t""using RSAref" 1>&6 | ||
| 4538 | LIBS="$saved_LIBS -lcrypto -lRSAglue -lrsaref" | ||
| 4539 | fi | ||
| 4540 | fi | ||
| 4541 | fi | ||
| 4542 | |||
| 4543 | # Some Linux systems (Slackware) need crypt() from libcrypt, *not* the | ||
| 4544 | # version in OpenSSL. Skip this for PAM | ||
| 4545 | if test "x$PAM_MSG" = "xno" -a "x$check_for_libcrypt_later" = "x1"; then | ||
| 4546 | echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 | ||
| 4547 | echo "configure:4548: checking for crypt in -lcrypt" >&5 | ||
| 4548 | ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` | ||
| 4549 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 4550 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4551 | else | ||
| 4552 | ac_save_LIBS="$LIBS" | ||
| 4553 | LIBS="-lcrypt $LIBS" | ||
| 4554 | cat > conftest.$ac_ext <<EOF | ||
| 4555 | #line 4556 "configure" | ||
| 4556 | #include "confdefs.h" | ||
| 4557 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 4558 | /* We use char because int might match the return type of a gcc2 | ||
| 4559 | builtin and then its argument prototype would still apply. */ | ||
| 4560 | char crypt(); | ||
| 4561 | |||
| 4562 | int main() { | ||
| 4563 | crypt() | ||
| 4564 | ; return 0; } | ||
| 4565 | EOF | ||
| 4566 | if { (eval echo configure:4567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 4567 | rm -rf conftest* | ||
| 4568 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 4569 | else | ||
| 4570 | echo "configure: failed program was:" >&5 | ||
| 4571 | cat conftest.$ac_ext >&5 | ||
| 4572 | rm -rf conftest* | ||
| 4573 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 4574 | fi | ||
| 4575 | rm -f conftest* | ||
| 4576 | LIBS="$ac_save_LIBS" | ||
| 4577 | |||
| 4578 | fi | ||
| 4579 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 4580 | echo "$ac_t""yes" 1>&6 | ||
| 4581 | LIBS="$LIBS -lcrypt" | ||
| 4582 | else | ||
| 4583 | echo "$ac_t""no" 1>&6 | ||
| 4584 | fi | ||
| 4585 | |||
| 4586 | fi | ||
| 4587 | |||
| 4588 | # Cheap hack to ensure NEWS-OS libraries are arranged right. | ||
| 4589 | if test ! -z "$SONY" ; then | ||
| 4590 | LIBS="$LIBS -liberty"; | ||
| 4591 | fi | ||
| 4592 | |||
| 4593 | # Checks for data types | ||
| 4594 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | ||
| 4595 | echo "configure:4596: checking size of char" >&5 | ||
| 4596 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | ||
| 4597 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4598 | else | ||
| 4599 | if test "$cross_compiling" = yes; then | ||
| 4600 | ac_cv_sizeof_char=1 | ||
| 4601 | else | ||
| 4602 | cat > conftest.$ac_ext <<EOF | ||
| 4603 | #line 4604 "configure" | ||
| 4604 | #include "confdefs.h" | ||
| 4605 | #include <stdio.h> | ||
| 4606 | main() | ||
| 4607 | { | ||
| 4608 | FILE *f=fopen("conftestval", "w"); | ||
| 4609 | if (!f) exit(1); | ||
| 4610 | fprintf(f, "%d\n", sizeof(char)); | ||
| 4611 | exit(0); | ||
| 4612 | } | ||
| 4613 | EOF | ||
| 4614 | if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4615 | then | ||
| 4616 | ac_cv_sizeof_char=`cat conftestval` | ||
| 4617 | else | ||
| 4618 | echo "configure: failed program was:" >&5 | ||
| 4619 | cat conftest.$ac_ext >&5 | ||
| 4620 | rm -fr conftest* | ||
| 4621 | ac_cv_sizeof_char=0 | ||
| 4622 | fi | ||
| 4623 | rm -fr conftest* | ||
| 4624 | fi | ||
| 4625 | |||
| 4626 | fi | ||
| 4627 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | ||
| 4628 | cat >> confdefs.h <<EOF | ||
| 4629 | #define SIZEOF_CHAR $ac_cv_sizeof_char | ||
| 4630 | EOF | ||
| 4631 | |||
| 4632 | |||
| 4633 | echo $ac_n "checking size of short int""... $ac_c" 1>&6 | ||
| 4634 | echo "configure:4635: checking size of short int" >&5 | ||
| 4635 | if eval "test \"`echo '$''{'ac_cv_sizeof_short_int'+set}'`\" = set"; then | ||
| 4636 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4637 | else | ||
| 4638 | if test "$cross_compiling" = yes; then | ||
| 4639 | ac_cv_sizeof_short_int=2 | ||
| 4640 | else | ||
| 4641 | cat > conftest.$ac_ext <<EOF | ||
| 4642 | #line 4643 "configure" | ||
| 4643 | #include "confdefs.h" | ||
| 4644 | #include <stdio.h> | ||
| 4645 | main() | ||
| 4646 | { | ||
| 4647 | FILE *f=fopen("conftestval", "w"); | ||
| 4648 | if (!f) exit(1); | ||
| 4649 | fprintf(f, "%d\n", sizeof(short int)); | ||
| 4650 | exit(0); | ||
| 4651 | } | ||
| 4652 | EOF | ||
| 4653 | if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4654 | then | ||
| 4655 | ac_cv_sizeof_short_int=`cat conftestval` | ||
| 4656 | else | ||
| 4657 | echo "configure: failed program was:" >&5 | ||
| 4658 | cat conftest.$ac_ext >&5 | ||
| 4659 | rm -fr conftest* | ||
| 4660 | ac_cv_sizeof_short_int=0 | ||
| 4661 | fi | ||
| 4662 | rm -fr conftest* | ||
| 4663 | fi | ||
| 4664 | |||
| 4665 | fi | ||
| 4666 | echo "$ac_t""$ac_cv_sizeof_short_int" 1>&6 | ||
| 4667 | cat >> confdefs.h <<EOF | ||
| 4668 | #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int | ||
| 4669 | EOF | ||
| 4670 | |||
| 4671 | |||
| 4672 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | ||
| 4673 | echo "configure:4674: checking size of int" >&5 | ||
| 4674 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | ||
| 4675 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4676 | else | ||
| 4677 | if test "$cross_compiling" = yes; then | ||
| 4678 | ac_cv_sizeof_int=4 | ||
| 4679 | else | ||
| 4680 | cat > conftest.$ac_ext <<EOF | ||
| 4681 | #line 4682 "configure" | ||
| 4682 | #include "confdefs.h" | ||
| 4683 | #include <stdio.h> | ||
| 4684 | main() | ||
| 4685 | { | ||
| 4686 | FILE *f=fopen("conftestval", "w"); | ||
| 4687 | if (!f) exit(1); | ||
| 4688 | fprintf(f, "%d\n", sizeof(int)); | ||
| 4689 | exit(0); | ||
| 4690 | } | ||
| 4691 | EOF | ||
| 4692 | if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4693 | then | ||
| 4694 | ac_cv_sizeof_int=`cat conftestval` | ||
| 4695 | else | ||
| 4696 | echo "configure: failed program was:" >&5 | ||
| 4697 | cat conftest.$ac_ext >&5 | ||
| 4698 | rm -fr conftest* | ||
| 4699 | ac_cv_sizeof_int=0 | ||
| 4700 | fi | ||
| 4701 | rm -fr conftest* | ||
| 4702 | fi | ||
| 4703 | |||
| 4704 | fi | ||
| 4705 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | ||
| 4706 | cat >> confdefs.h <<EOF | ||
| 4707 | #define SIZEOF_INT $ac_cv_sizeof_int | ||
| 4708 | EOF | ||
| 4709 | |||
| 4710 | |||
| 4711 | echo $ac_n "checking size of long int""... $ac_c" 1>&6 | ||
| 4712 | echo "configure:4713: checking size of long int" >&5 | ||
| 4713 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_int'+set}'`\" = set"; then | ||
| 4714 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4715 | else | ||
| 4716 | if test "$cross_compiling" = yes; then | ||
| 4717 | ac_cv_sizeof_long_int=4 | ||
| 4718 | else | ||
| 4719 | cat > conftest.$ac_ext <<EOF | ||
| 4720 | #line 4721 "configure" | ||
| 4721 | #include "confdefs.h" | ||
| 4722 | #include <stdio.h> | ||
| 4723 | main() | ||
| 4724 | { | ||
| 4725 | FILE *f=fopen("conftestval", "w"); | ||
| 4726 | if (!f) exit(1); | ||
| 4727 | fprintf(f, "%d\n", sizeof(long int)); | ||
| 4728 | exit(0); | ||
| 4729 | } | ||
| 4730 | EOF | ||
| 4731 | if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4732 | then | ||
| 4733 | ac_cv_sizeof_long_int=`cat conftestval` | ||
| 4734 | else | ||
| 4735 | echo "configure: failed program was:" >&5 | ||
| 4736 | cat conftest.$ac_ext >&5 | ||
| 4737 | rm -fr conftest* | ||
| 4738 | ac_cv_sizeof_long_int=0 | ||
| 4739 | fi | ||
| 4740 | rm -fr conftest* | ||
| 4741 | fi | ||
| 4742 | |||
| 4743 | fi | ||
| 4744 | echo "$ac_t""$ac_cv_sizeof_long_int" 1>&6 | ||
| 4745 | cat >> confdefs.h <<EOF | ||
| 4746 | #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int | ||
| 4747 | EOF | ||
| 4748 | |||
| 4749 | |||
| 4750 | echo $ac_n "checking size of long long int""... $ac_c" 1>&6 | ||
| 4751 | echo "configure:4752: checking size of long long int" >&5 | ||
| 4752 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long_int'+set}'`\" = set"; then | ||
| 4753 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4754 | else | ||
| 4755 | if test "$cross_compiling" = yes; then | ||
| 4756 | ac_cv_sizeof_long_long_int=8 | ||
| 4757 | else | ||
| 4758 | cat > conftest.$ac_ext <<EOF | ||
| 4759 | #line 4760 "configure" | ||
| 4760 | #include "confdefs.h" | ||
| 4761 | #include <stdio.h> | ||
| 4762 | main() | ||
| 4763 | { | ||
| 4764 | FILE *f=fopen("conftestval", "w"); | ||
| 4765 | if (!f) exit(1); | ||
| 4766 | fprintf(f, "%d\n", sizeof(long long int)); | ||
| 4767 | exit(0); | ||
| 4768 | } | ||
| 4769 | EOF | ||
| 4770 | if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 4771 | then | ||
| 4772 | ac_cv_sizeof_long_long_int=`cat conftestval` | ||
| 4773 | else | ||
| 4774 | echo "configure: failed program was:" >&5 | ||
| 4775 | cat conftest.$ac_ext >&5 | ||
| 4776 | rm -fr conftest* | ||
| 4777 | ac_cv_sizeof_long_long_int=0 | ||
| 4778 | fi | ||
| 4779 | rm -fr conftest* | ||
| 4780 | fi | ||
| 4781 | |||
| 4782 | fi | ||
| 4783 | echo "$ac_t""$ac_cv_sizeof_long_long_int" 1>&6 | ||
| 4784 | cat >> confdefs.h <<EOF | ||
| 4785 | #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int | ||
| 4786 | EOF | ||
| 4787 | |||
| 4788 | |||
| 4789 | |||
| 4790 | # More checks for data types | ||
| 4791 | echo $ac_n "checking for u_int type""... $ac_c" 1>&6 | ||
| 4792 | echo "configure:4793: checking for u_int type" >&5 | ||
| 4793 | if eval "test \"`echo '$''{'ac_cv_have_u_int'+set}'`\" = set"; then | ||
| 4794 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4795 | else | ||
| 4796 | |||
| 4797 | cat > conftest.$ac_ext <<EOF | ||
| 4798 | #line 4799 "configure" | ||
| 4799 | #include "confdefs.h" | ||
| 4800 | #include <sys/types.h> | ||
| 4801 | int main() { | ||
| 4802 | u_int a; a = 1; | ||
| 4803 | ; return 0; } | ||
| 4804 | EOF | ||
| 4805 | if { (eval echo configure:4806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4806 | rm -rf conftest* | ||
| 4807 | ac_cv_have_u_int="yes" | ||
| 4808 | else | ||
| 4809 | echo "configure: failed program was:" >&5 | ||
| 4810 | cat conftest.$ac_ext >&5 | ||
| 4811 | rm -rf conftest* | ||
| 4812 | ac_cv_have_u_int="no" | ||
| 4813 | |||
| 4814 | fi | ||
| 4815 | rm -f conftest* | ||
| 4816 | |||
| 4817 | fi | ||
| 4818 | |||
| 4819 | echo "$ac_t""$ac_cv_have_u_int" 1>&6 | ||
| 4820 | if test "x$ac_cv_have_u_int" = "xyes" ; then | ||
| 4821 | cat >> confdefs.h <<\EOF | ||
| 4822 | #define HAVE_U_INT 1 | ||
| 4823 | EOF | ||
| 4824 | |||
| 4825 | have_u_int=1 | ||
| 4826 | fi | ||
| 4827 | |||
| 4828 | echo $ac_n "checking for intXX_t types""... $ac_c" 1>&6 | ||
| 4829 | echo "configure:4830: checking for intXX_t types" >&5 | ||
| 4830 | if eval "test \"`echo '$''{'ac_cv_have_intxx_t'+set}'`\" = set"; then | ||
| 4831 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4832 | else | ||
| 4833 | |||
| 4834 | cat > conftest.$ac_ext <<EOF | ||
| 4835 | #line 4836 "configure" | ||
| 4836 | #include "confdefs.h" | ||
| 4837 | #include <sys/types.h> | ||
| 4838 | int main() { | ||
| 4839 | int8_t a; int16_t b; int32_t c; a = b = c = 1; | ||
| 4840 | ; return 0; } | ||
| 4841 | EOF | ||
| 4842 | if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4843 | rm -rf conftest* | ||
| 4844 | ac_cv_have_intxx_t="yes" | ||
| 4845 | else | ||
| 4846 | echo "configure: failed program was:" >&5 | ||
| 4847 | cat conftest.$ac_ext >&5 | ||
| 4848 | rm -rf conftest* | ||
| 4849 | ac_cv_have_intxx_t="no" | ||
| 4850 | |||
| 4851 | fi | ||
| 4852 | rm -f conftest* | ||
| 4853 | |||
| 4854 | fi | ||
| 4855 | |||
| 4856 | echo "$ac_t""$ac_cv_have_intxx_t" 1>&6 | ||
| 4857 | if test "x$ac_cv_have_intxx_t" = "xyes" ; then | ||
| 4858 | cat >> confdefs.h <<\EOF | ||
| 4859 | #define HAVE_INTXX_T 1 | ||
| 4860 | EOF | ||
| 4861 | |||
| 4862 | have_intxx_t=1 | ||
| 4863 | fi | ||
| 4864 | |||
| 4865 | echo $ac_n "checking for int64_t type""... $ac_c" 1>&6 | ||
| 4866 | echo "configure:4867: checking for int64_t type" >&5 | ||
| 4867 | if eval "test \"`echo '$''{'ac_cv_have_int64_t'+set}'`\" = set"; then | ||
| 4868 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4869 | else | ||
| 4870 | |||
| 4871 | cat > conftest.$ac_ext <<EOF | ||
| 4872 | #line 4873 "configure" | ||
| 4873 | #include "confdefs.h" | ||
| 4874 | #include <sys/types.h> | ||
| 4875 | int main() { | ||
| 4876 | int64_t a; a = 1; | ||
| 4877 | ; return 0; } | ||
| 4878 | EOF | ||
| 4879 | if { (eval echo configure:4880: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4880 | rm -rf conftest* | ||
| 4881 | ac_cv_have_int64_t="yes" | ||
| 4882 | else | ||
| 4883 | echo "configure: failed program was:" >&5 | ||
| 4884 | cat conftest.$ac_ext >&5 | ||
| 4885 | rm -rf conftest* | ||
| 4886 | ac_cv_have_int64_t="no" | ||
| 4887 | |||
| 4888 | fi | ||
| 4889 | rm -f conftest* | ||
| 4890 | |||
| 4891 | fi | ||
| 4892 | |||
| 4893 | echo "$ac_t""$ac_cv_have_int64_t" 1>&6 | ||
| 4894 | if test "x$ac_cv_have_int64_t" = "xyes" ; then | ||
| 4895 | cat >> confdefs.h <<\EOF | ||
| 4896 | #define HAVE_INT64_T 1 | ||
| 4897 | EOF | ||
| 4898 | |||
| 4899 | have_int64_t=1 | ||
| 4900 | fi | ||
| 4901 | |||
| 4902 | echo $ac_n "checking for u_intXX_t types""... $ac_c" 1>&6 | ||
| 4903 | echo "configure:4904: checking for u_intXX_t types" >&5 | ||
| 4904 | if eval "test \"`echo '$''{'ac_cv_have_u_intxx_t'+set}'`\" = set"; then | ||
| 4905 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4906 | else | ||
| 4907 | |||
| 4908 | cat > conftest.$ac_ext <<EOF | ||
| 4909 | #line 4910 "configure" | ||
| 4910 | #include "confdefs.h" | ||
| 4911 | #include <sys/types.h> | ||
| 4912 | int main() { | ||
| 4913 | u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1; | ||
| 4914 | ; return 0; } | ||
| 4915 | EOF | ||
| 4916 | if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4917 | rm -rf conftest* | ||
| 4918 | ac_cv_have_u_intxx_t="yes" | ||
| 4919 | else | ||
| 4920 | echo "configure: failed program was:" >&5 | ||
| 4921 | cat conftest.$ac_ext >&5 | ||
| 4922 | rm -rf conftest* | ||
| 4923 | ac_cv_have_u_intxx_t="no" | ||
| 4924 | |||
| 4925 | fi | ||
| 4926 | rm -f conftest* | ||
| 4927 | |||
| 4928 | fi | ||
| 4929 | |||
| 4930 | echo "$ac_t""$ac_cv_have_u_intxx_t" 1>&6 | ||
| 4931 | if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then | ||
| 4932 | cat >> confdefs.h <<\EOF | ||
| 4933 | #define HAVE_U_INTXX_T 1 | ||
| 4934 | EOF | ||
| 4935 | |||
| 4936 | have_u_intxx_t=1 | ||
| 4937 | fi | ||
| 4938 | |||
| 4939 | echo $ac_n "checking for u_int64_t types""... $ac_c" 1>&6 | ||
| 4940 | echo "configure:4941: checking for u_int64_t types" >&5 | ||
| 4941 | if eval "test \"`echo '$''{'ac_cv_have_u_int64_t'+set}'`\" = set"; then | ||
| 4942 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 4943 | else | ||
| 4944 | |||
| 4945 | cat > conftest.$ac_ext <<EOF | ||
| 4946 | #line 4947 "configure" | ||
| 4947 | #include "confdefs.h" | ||
| 4948 | #include <sys/types.h> | ||
| 4949 | int main() { | ||
| 4950 | u_int64_t a; a = 1; | ||
| 4951 | ; return 0; } | ||
| 4952 | EOF | ||
| 4953 | if { (eval echo configure:4954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4954 | rm -rf conftest* | ||
| 4955 | ac_cv_have_u_int64_t="yes" | ||
| 4956 | else | ||
| 4957 | echo "configure: failed program was:" >&5 | ||
| 4958 | cat conftest.$ac_ext >&5 | ||
| 4959 | rm -rf conftest* | ||
| 4960 | ac_cv_have_u_int64_t="no" | ||
| 4961 | |||
| 4962 | fi | ||
| 4963 | rm -f conftest* | ||
| 4964 | |||
| 4965 | fi | ||
| 4966 | |||
| 4967 | echo "$ac_t""$ac_cv_have_u_int64_t" 1>&6 | ||
| 4968 | if test "x$ac_cv_have_u_int64_t" = "xyes" ; then | ||
| 4969 | cat >> confdefs.h <<\EOF | ||
| 4970 | #define HAVE_U_INT64_T 1 | ||
| 4971 | EOF | ||
| 4972 | |||
| 4973 | have_u_int64_t=1 | ||
| 4974 | fi | ||
| 4975 | |||
| 4976 | if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \ | ||
| 4977 | test "x$ac_cv_header_sys_bitypes_h" = "xyes") | ||
| 4978 | then | ||
| 4979 | echo $ac_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h""... $ac_c" 1>&6 | ||
| 4980 | echo "configure:4981: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5 | ||
| 4981 | cat > conftest.$ac_ext <<EOF | ||
| 4982 | #line 4983 "configure" | ||
| 4983 | #include "confdefs.h" | ||
| 4984 | |||
| 4985 | #include <sys/bitypes.h> | ||
| 4986 | |||
| 4987 | int main() { | ||
| 4988 | |||
| 4989 | int8_t a; int16_t b; int32_t c; | ||
| 4990 | u_int8_t e; u_int16_t f; u_int32_t g; | ||
| 4991 | a = b = c = e = f = g = 1; | ||
| 4992 | |||
| 4993 | ; return 0; } | ||
| 4994 | EOF | ||
| 4995 | if { (eval echo configure:4996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 4996 | rm -rf conftest* | ||
| 4997 | |||
| 4998 | cat >> confdefs.h <<\EOF | ||
| 4999 | #define HAVE_U_INTXX_T 1 | ||
| 5000 | EOF | ||
| 5001 | |||
| 5002 | cat >> confdefs.h <<\EOF | ||
| 5003 | #define HAVE_INTXX_T 1 | ||
| 5004 | EOF | ||
| 5005 | |||
| 5006 | echo "$ac_t""yes" 1>&6 | ||
| 5007 | |||
| 5008 | else | ||
| 5009 | echo "configure: failed program was:" >&5 | ||
| 5010 | cat conftest.$ac_ext >&5 | ||
| 5011 | rm -rf conftest* | ||
| 5012 | echo "$ac_t""no" 1>&6 | ||
| 5013 | |||
| 5014 | fi | ||
| 5015 | rm -f conftest* | ||
| 5016 | fi | ||
| 5017 | |||
| 5018 | if test -z "$have_u_intxx_t" ; then | ||
| 5019 | echo $ac_n "checking for uintXX_t types""... $ac_c" 1>&6 | ||
| 5020 | echo "configure:5021: checking for uintXX_t types" >&5 | ||
| 5021 | if eval "test \"`echo '$''{'ac_cv_have_uintxx_t'+set}'`\" = set"; then | ||
| 5022 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5023 | else | ||
| 5024 | |||
| 5025 | cat > conftest.$ac_ext <<EOF | ||
| 5026 | #line 5027 "configure" | ||
| 5027 | #include "confdefs.h" | ||
| 5028 | |||
| 5029 | #include <sys/types.h> | ||
| 5030 | |||
| 5031 | int main() { | ||
| 5032 | uint8_t a; uint16_t b; uint32_t c; a = b = c = 1; | ||
| 5033 | ; return 0; } | ||
| 5034 | EOF | ||
| 5035 | if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5036 | rm -rf conftest* | ||
| 5037 | ac_cv_have_uintxx_t="yes" | ||
| 5038 | else | ||
| 5039 | echo "configure: failed program was:" >&5 | ||
| 5040 | cat conftest.$ac_ext >&5 | ||
| 5041 | rm -rf conftest* | ||
| 5042 | ac_cv_have_uintxx_t="no" | ||
| 5043 | |||
| 5044 | fi | ||
| 5045 | rm -f conftest* | ||
| 5046 | |||
| 5047 | fi | ||
| 5048 | |||
| 5049 | echo "$ac_t""$ac_cv_have_uintxx_t" 1>&6 | ||
| 5050 | if test "x$ac_cv_have_uintxx_t" = "xyes" ; then | ||
| 5051 | cat >> confdefs.h <<\EOF | ||
| 5052 | #define HAVE_UINTXX_T 1 | ||
| 5053 | EOF | ||
| 5054 | |||
| 5055 | fi | ||
| 5056 | fi | ||
| 5057 | |||
| 5058 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 | ||
| 5059 | echo "configure:5060: checking for socklen_t" >&5 | ||
| 5060 | if eval "test \"`echo '$''{'ac_cv_have_socklen_t'+set}'`\" = set"; then | ||
| 5061 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5062 | else | ||
| 5063 | |||
| 5064 | cat > conftest.$ac_ext <<EOF | ||
| 5065 | #line 5066 "configure" | ||
| 5066 | #include "confdefs.h" | ||
| 5067 | |||
| 5068 | #include <sys/types.h> | ||
| 5069 | #include <sys/socket.h> | ||
| 5070 | |||
| 5071 | int main() { | ||
| 5072 | socklen_t foo; foo = 1235; | ||
| 5073 | ; return 0; } | ||
| 5074 | EOF | ||
| 5075 | if { (eval echo configure:5076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5076 | rm -rf conftest* | ||
| 5077 | ac_cv_have_socklen_t="yes" | ||
| 5078 | else | ||
| 5079 | echo "configure: failed program was:" >&5 | ||
| 5080 | cat conftest.$ac_ext >&5 | ||
| 5081 | rm -rf conftest* | ||
| 5082 | ac_cv_have_socklen_t="no" | ||
| 5083 | |||
| 5084 | fi | ||
| 5085 | rm -f conftest* | ||
| 5086 | |||
| 5087 | fi | ||
| 5088 | |||
| 5089 | echo "$ac_t""$ac_cv_have_socklen_t" 1>&6 | ||
| 5090 | if test "x$ac_cv_have_socklen_t" = "xyes" ; then | ||
| 5091 | cat >> confdefs.h <<\EOF | ||
| 5092 | #define HAVE_SOCKLEN_T 1 | ||
| 5093 | EOF | ||
| 5094 | |||
| 5095 | fi | ||
| 5096 | |||
| 5097 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | ||
| 5098 | echo "configure:5099: checking for size_t" >&5 | ||
| 5099 | if eval "test \"`echo '$''{'ac_cv_have_size_t'+set}'`\" = set"; then | ||
| 5100 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5101 | else | ||
| 5102 | |||
| 5103 | cat > conftest.$ac_ext <<EOF | ||
| 5104 | #line 5105 "configure" | ||
| 5105 | #include "confdefs.h" | ||
| 5106 | |||
| 5107 | #include <sys/types.h> | ||
| 5108 | |||
| 5109 | int main() { | ||
| 5110 | size_t foo; foo = 1235; | ||
| 5111 | ; return 0; } | ||
| 5112 | EOF | ||
| 5113 | if { (eval echo configure:5114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5114 | rm -rf conftest* | ||
| 5115 | ac_cv_have_size_t="yes" | ||
| 5116 | else | ||
| 5117 | echo "configure: failed program was:" >&5 | ||
| 5118 | cat conftest.$ac_ext >&5 | ||
| 5119 | rm -rf conftest* | ||
| 5120 | ac_cv_have_size_t="no" | ||
| 5121 | |||
| 5122 | fi | ||
| 5123 | rm -f conftest* | ||
| 5124 | |||
| 5125 | fi | ||
| 5126 | |||
| 5127 | echo "$ac_t""$ac_cv_have_size_t" 1>&6 | ||
| 5128 | if test "x$ac_cv_have_size_t" = "xyes" ; then | ||
| 5129 | cat >> confdefs.h <<\EOF | ||
| 5130 | #define HAVE_SIZE_T 1 | ||
| 5131 | EOF | ||
| 5132 | |||
| 5133 | fi | ||
| 5134 | |||
| 5135 | echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 | ||
| 5136 | echo "configure:5137: checking for ssize_t" >&5 | ||
| 5137 | if eval "test \"`echo '$''{'ac_cv_have_ssize_t'+set}'`\" = set"; then | ||
| 5138 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5139 | else | ||
| 5140 | |||
| 5141 | cat > conftest.$ac_ext <<EOF | ||
| 5142 | #line 5143 "configure" | ||
| 5143 | #include "confdefs.h" | ||
| 5144 | |||
| 5145 | #include <sys/types.h> | ||
| 5146 | |||
| 5147 | int main() { | ||
| 5148 | ssize_t foo; foo = 1235; | ||
| 5149 | ; return 0; } | ||
| 5150 | EOF | ||
| 5151 | if { (eval echo configure:5152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5152 | rm -rf conftest* | ||
| 5153 | ac_cv_have_ssize_t="yes" | ||
| 5154 | else | ||
| 5155 | echo "configure: failed program was:" >&5 | ||
| 5156 | cat conftest.$ac_ext >&5 | ||
| 5157 | rm -rf conftest* | ||
| 5158 | ac_cv_have_ssize_t="no" | ||
| 5159 | |||
| 5160 | fi | ||
| 5161 | rm -f conftest* | ||
| 5162 | |||
| 5163 | fi | ||
| 5164 | |||
| 5165 | echo "$ac_t""$ac_cv_have_ssize_t" 1>&6 | ||
| 5166 | if test "x$ac_cv_have_ssize_t" = "xyes" ; then | ||
| 5167 | cat >> confdefs.h <<\EOF | ||
| 5168 | #define HAVE_SSIZE_T 1 | ||
| 5169 | EOF | ||
| 5170 | |||
| 5171 | fi | ||
| 5172 | |||
| 5173 | echo $ac_n "checking for clock_t""... $ac_c" 1>&6 | ||
| 5174 | echo "configure:5175: checking for clock_t" >&5 | ||
| 5175 | if eval "test \"`echo '$''{'ac_cv_have_clock_t'+set}'`\" = set"; then | ||
| 5176 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5177 | else | ||
| 5178 | |||
| 5179 | cat > conftest.$ac_ext <<EOF | ||
| 5180 | #line 5181 "configure" | ||
| 5181 | #include "confdefs.h" | ||
| 5182 | |||
| 5183 | #include <time.h> | ||
| 5184 | |||
| 5185 | int main() { | ||
| 5186 | clock_t foo; foo = 1235; | ||
| 5187 | ; return 0; } | ||
| 5188 | EOF | ||
| 5189 | if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5190 | rm -rf conftest* | ||
| 5191 | ac_cv_have_clock_t="yes" | ||
| 5192 | else | ||
| 5193 | echo "configure: failed program was:" >&5 | ||
| 5194 | cat conftest.$ac_ext >&5 | ||
| 5195 | rm -rf conftest* | ||
| 5196 | ac_cv_have_clock_t="no" | ||
| 5197 | |||
| 5198 | fi | ||
| 5199 | rm -f conftest* | ||
| 5200 | |||
| 5201 | fi | ||
| 5202 | |||
| 5203 | echo "$ac_t""$ac_cv_have_clock_t" 1>&6 | ||
| 5204 | if test "x$ac_cv_have_clock_t" = "xyes" ; then | ||
| 5205 | cat >> confdefs.h <<\EOF | ||
| 5206 | #define HAVE_CLOCK_T 1 | ||
| 5207 | EOF | ||
| 5208 | |||
| 5209 | fi | ||
| 5210 | |||
| 5211 | echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6 | ||
| 5212 | echo "configure:5213: checking for sa_family_t" >&5 | ||
| 5213 | if eval "test \"`echo '$''{'ac_cv_have_sa_family_t'+set}'`\" = set"; then | ||
| 5214 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5215 | else | ||
| 5216 | |||
| 5217 | cat > conftest.$ac_ext <<EOF | ||
| 5218 | #line 5219 "configure" | ||
| 5219 | #include "confdefs.h" | ||
| 5220 | |||
| 5221 | #include <sys/types.h> | ||
| 5222 | #include <sys/socket.h> | ||
| 5223 | |||
| 5224 | int main() { | ||
| 5225 | sa_family_t foo; foo = 1235; | ||
| 5226 | ; return 0; } | ||
| 5227 | EOF | ||
| 5228 | if { (eval echo configure:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5229 | rm -rf conftest* | ||
| 5230 | ac_cv_have_sa_family_t="yes" | ||
| 5231 | else | ||
| 5232 | echo "configure: failed program was:" >&5 | ||
| 5233 | cat conftest.$ac_ext >&5 | ||
| 5234 | rm -rf conftest* | ||
| 5235 | cat > conftest.$ac_ext <<EOF | ||
| 5236 | #line 5237 "configure" | ||
| 5237 | #include "confdefs.h" | ||
| 5238 | |||
| 5239 | #include <sys/types.h> | ||
| 5240 | #include <sys/socket.h> | ||
| 5241 | #include <netinet/in.h> | ||
| 5242 | |||
| 5243 | int main() { | ||
| 5244 | sa_family_t foo; foo = 1235; | ||
| 5245 | ; return 0; } | ||
| 5246 | EOF | ||
| 5247 | if { (eval echo configure:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5248 | rm -rf conftest* | ||
| 5249 | ac_cv_have_sa_family_t="yes" | ||
| 5250 | else | ||
| 5251 | echo "configure: failed program was:" >&5 | ||
| 5252 | cat conftest.$ac_ext >&5 | ||
| 5253 | rm -rf conftest* | ||
| 5254 | ac_cv_have_sa_family_t="no" | ||
| 5255 | |||
| 5256 | fi | ||
| 5257 | rm -f conftest* | ||
| 5258 | |||
| 5259 | fi | ||
| 5260 | rm -f conftest* | ||
| 5261 | |||
| 5262 | fi | ||
| 5263 | |||
| 5264 | echo "$ac_t""$ac_cv_have_sa_family_t" 1>&6 | ||
| 5265 | if test "x$ac_cv_have_sa_family_t" = "xyes" ; then | ||
| 5266 | cat >> confdefs.h <<\EOF | ||
| 5267 | #define HAVE_SA_FAMILY_T 1 | ||
| 5268 | EOF | ||
| 5269 | |||
| 5270 | fi | ||
| 5271 | |||
| 5272 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | ||
| 5273 | echo "configure:5274: checking for pid_t" >&5 | ||
| 5274 | if eval "test \"`echo '$''{'ac_cv_have_pid_t'+set}'`\" = set"; then | ||
| 5275 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5276 | else | ||
| 5277 | |||
| 5278 | cat > conftest.$ac_ext <<EOF | ||
| 5279 | #line 5280 "configure" | ||
| 5280 | #include "confdefs.h" | ||
| 5281 | |||
| 5282 | #include <sys/types.h> | ||
| 5283 | |||
| 5284 | int main() { | ||
| 5285 | pid_t foo; foo = 1235; | ||
| 5286 | ; return 0; } | ||
| 5287 | EOF | ||
| 5288 | if { (eval echo configure:5289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5289 | rm -rf conftest* | ||
| 5290 | ac_cv_have_pid_t="yes" | ||
| 5291 | else | ||
| 5292 | echo "configure: failed program was:" >&5 | ||
| 5293 | cat conftest.$ac_ext >&5 | ||
| 5294 | rm -rf conftest* | ||
| 5295 | ac_cv_have_pid_t="no" | ||
| 5296 | |||
| 5297 | fi | ||
| 5298 | rm -f conftest* | ||
| 5299 | |||
| 5300 | fi | ||
| 5301 | |||
| 5302 | echo "$ac_t""$ac_cv_have_pid_t" 1>&6 | ||
| 5303 | if test "x$ac_cv_have_pid_t" = "xyes" ; then | ||
| 5304 | cat >> confdefs.h <<\EOF | ||
| 5305 | #define HAVE_PID_T 1 | ||
| 5306 | EOF | ||
| 5307 | |||
| 5308 | fi | ||
| 5309 | |||
| 5310 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | ||
| 5311 | echo "configure:5312: checking for mode_t" >&5 | ||
| 5312 | if eval "test \"`echo '$''{'ac_cv_have_mode_t'+set}'`\" = set"; then | ||
| 5313 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5314 | else | ||
| 5315 | |||
| 5316 | cat > conftest.$ac_ext <<EOF | ||
| 5317 | #line 5318 "configure" | ||
| 5318 | #include "confdefs.h" | ||
| 5319 | |||
| 5320 | #include <sys/types.h> | ||
| 5321 | |||
| 5322 | int main() { | ||
| 5323 | mode_t foo; foo = 1235; | ||
| 5324 | ; return 0; } | ||
| 5325 | EOF | ||
| 5326 | if { (eval echo configure:5327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5327 | rm -rf conftest* | ||
| 5328 | ac_cv_have_mode_t="yes" | ||
| 5329 | else | ||
| 5330 | echo "configure: failed program was:" >&5 | ||
| 5331 | cat conftest.$ac_ext >&5 | ||
| 5332 | rm -rf conftest* | ||
| 5333 | ac_cv_have_mode_t="no" | ||
| 5334 | |||
| 5335 | fi | ||
| 5336 | rm -f conftest* | ||
| 5337 | |||
| 5338 | fi | ||
| 5339 | |||
| 5340 | echo "$ac_t""$ac_cv_have_mode_t" 1>&6 | ||
| 5341 | if test "x$ac_cv_have_mode_t" = "xyes" ; then | ||
| 5342 | cat >> confdefs.h <<\EOF | ||
| 5343 | #define HAVE_MODE_T 1 | ||
| 5344 | EOF | ||
| 5345 | |||
| 5346 | fi | ||
| 5347 | |||
| 5348 | |||
| 5349 | echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6 | ||
| 5350 | echo "configure:5351: checking for struct sockaddr_storage" >&5 | ||
| 5351 | if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_storage'+set}'`\" = set"; then | ||
| 5352 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5353 | else | ||
| 5354 | |||
| 5355 | cat > conftest.$ac_ext <<EOF | ||
| 5356 | #line 5357 "configure" | ||
| 5357 | #include "confdefs.h" | ||
| 5358 | |||
| 5359 | #include <sys/types.h> | ||
| 5360 | #include <sys/socket.h> | ||
| 5361 | |||
| 5362 | int main() { | ||
| 5363 | struct sockaddr_storage s; | ||
| 5364 | ; return 0; } | ||
| 5365 | EOF | ||
| 5366 | if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5367 | rm -rf conftest* | ||
| 5368 | ac_cv_have_struct_sockaddr_storage="yes" | ||
| 5369 | else | ||
| 5370 | echo "configure: failed program was:" >&5 | ||
| 5371 | cat conftest.$ac_ext >&5 | ||
| 5372 | rm -rf conftest* | ||
| 5373 | ac_cv_have_struct_sockaddr_storage="no" | ||
| 5374 | |||
| 5375 | fi | ||
| 5376 | rm -f conftest* | ||
| 5377 | |||
| 5378 | fi | ||
| 5379 | |||
| 5380 | echo "$ac_t""$ac_cv_have_struct_sockaddr_storage" 1>&6 | ||
| 5381 | if test "x$ac_cv_have_struct_sockaddr_storage" = "xyes" ; then | ||
| 5382 | cat >> confdefs.h <<\EOF | ||
| 5383 | #define HAVE_STRUCT_SOCKADDR_STORAGE 1 | ||
| 5384 | EOF | ||
| 5385 | |||
| 5386 | fi | ||
| 5387 | |||
| 5388 | echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6 | ||
| 5389 | echo "configure:5390: checking for struct sockaddr_in6" >&5 | ||
| 5390 | if eval "test \"`echo '$''{'ac_cv_have_struct_sockaddr_in6'+set}'`\" = set"; then | ||
| 5391 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5392 | else | ||
| 5393 | |||
| 5394 | cat > conftest.$ac_ext <<EOF | ||
| 5395 | #line 5396 "configure" | ||
| 5396 | #include "confdefs.h" | ||
| 5397 | |||
| 5398 | #include <sys/types.h> | ||
| 5399 | #include <netinet/in.h> | ||
| 5400 | |||
| 5401 | int main() { | ||
| 5402 | struct sockaddr_in6 s; s.sin6_family = 0; | ||
| 5403 | ; return 0; } | ||
| 5404 | EOF | ||
| 5405 | if { (eval echo configure:5406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5406 | rm -rf conftest* | ||
| 5407 | ac_cv_have_struct_sockaddr_in6="yes" | ||
| 5408 | else | ||
| 5409 | echo "configure: failed program was:" >&5 | ||
| 5410 | cat conftest.$ac_ext >&5 | ||
| 5411 | rm -rf conftest* | ||
| 5412 | ac_cv_have_struct_sockaddr_in6="no" | ||
| 5413 | |||
| 5414 | fi | ||
| 5415 | rm -f conftest* | ||
| 5416 | |||
| 5417 | fi | ||
| 5418 | |||
| 5419 | echo "$ac_t""$ac_cv_have_struct_sockaddr_in6" 1>&6 | ||
| 5420 | if test "x$ac_cv_have_struct_sockaddr_in6" = "xyes" ; then | ||
| 5421 | cat >> confdefs.h <<\EOF | ||
| 5422 | #define HAVE_STRUCT_SOCKADDR_IN6 1 | ||
| 5423 | EOF | ||
| 5424 | |||
| 5425 | fi | ||
| 5426 | |||
| 5427 | echo $ac_n "checking for struct in6_addr""... $ac_c" 1>&6 | ||
| 5428 | echo "configure:5429: checking for struct in6_addr" >&5 | ||
| 5429 | if eval "test \"`echo '$''{'ac_cv_have_struct_in6_addr'+set}'`\" = set"; then | ||
| 5430 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5431 | else | ||
| 5432 | |||
| 5433 | cat > conftest.$ac_ext <<EOF | ||
| 5434 | #line 5435 "configure" | ||
| 5435 | #include "confdefs.h" | ||
| 5436 | |||
| 5437 | #include <sys/types.h> | ||
| 5438 | #include <netinet/in.h> | ||
| 5439 | |||
| 5440 | int main() { | ||
| 5441 | struct in6_addr s; s.s6_addr[0] = 0; | ||
| 5442 | ; return 0; } | ||
| 5443 | EOF | ||
| 5444 | if { (eval echo configure:5445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5445 | rm -rf conftest* | ||
| 5446 | ac_cv_have_struct_in6_addr="yes" | ||
| 5447 | else | ||
| 5448 | echo "configure: failed program was:" >&5 | ||
| 5449 | cat conftest.$ac_ext >&5 | ||
| 5450 | rm -rf conftest* | ||
| 5451 | ac_cv_have_struct_in6_addr="no" | ||
| 5452 | |||
| 5453 | fi | ||
| 5454 | rm -f conftest* | ||
| 5455 | |||
| 5456 | fi | ||
| 5457 | |||
| 5458 | echo "$ac_t""$ac_cv_have_struct_in6_addr" 1>&6 | ||
| 5459 | if test "x$ac_cv_have_struct_in6_addr" = "xyes" ; then | ||
| 5460 | cat >> confdefs.h <<\EOF | ||
| 5461 | #define HAVE_STRUCT_IN6_ADDR 1 | ||
| 5462 | EOF | ||
| 5463 | |||
| 5464 | fi | ||
| 5465 | |||
| 5466 | echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6 | ||
| 5467 | echo "configure:5468: checking for struct addrinfo" >&5 | ||
| 5468 | if eval "test \"`echo '$''{'ac_cv_have_struct_addrinfo'+set}'`\" = set"; then | ||
| 5469 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5470 | else | ||
| 5471 | |||
| 5472 | cat > conftest.$ac_ext <<EOF | ||
| 5473 | #line 5474 "configure" | ||
| 5474 | #include "confdefs.h" | ||
| 5475 | |||
| 5476 | #include <sys/types.h> | ||
| 5477 | #include <sys/socket.h> | ||
| 5478 | #include <netdb.h> | ||
| 5479 | |||
| 5480 | int main() { | ||
| 5481 | struct addrinfo s; s.ai_flags = AI_PASSIVE; | ||
| 5482 | ; return 0; } | ||
| 5483 | EOF | ||
| 5484 | if { (eval echo configure:5485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5485 | rm -rf conftest* | ||
| 5486 | ac_cv_have_struct_addrinfo="yes" | ||
| 5487 | else | ||
| 5488 | echo "configure: failed program was:" >&5 | ||
| 5489 | cat conftest.$ac_ext >&5 | ||
| 5490 | rm -rf conftest* | ||
| 5491 | ac_cv_have_struct_addrinfo="no" | ||
| 5492 | |||
| 5493 | fi | ||
| 5494 | rm -f conftest* | ||
| 5495 | |||
| 5496 | fi | ||
| 5497 | |||
| 5498 | echo "$ac_t""$ac_cv_have_struct_addrinfo" 1>&6 | ||
| 5499 | if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then | ||
| 5500 | cat >> confdefs.h <<\EOF | ||
| 5501 | #define HAVE_STRUCT_ADDRINFO 1 | ||
| 5502 | EOF | ||
| 5503 | |||
| 5504 | fi | ||
| 5505 | |||
| 5506 | echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | ||
| 5507 | echo "configure:5508: checking for struct timeval" >&5 | ||
| 5508 | if eval "test \"`echo '$''{'ac_cv_have_struct_timeval'+set}'`\" = set"; then | ||
| 5509 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5510 | else | ||
| 5511 | |||
| 5512 | cat > conftest.$ac_ext <<EOF | ||
| 5513 | #line 5514 "configure" | ||
| 5514 | #include "confdefs.h" | ||
| 5515 | #include <sys/time.h> | ||
| 5516 | int main() { | ||
| 5517 | struct timeval tv; tv.tv_sec = 1; | ||
| 5518 | ; return 0; } | ||
| 5519 | EOF | ||
| 5520 | if { (eval echo configure:5521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 5521 | rm -rf conftest* | ||
| 5522 | ac_cv_have_struct_timeval="yes" | ||
| 5523 | else | ||
| 5524 | echo "configure: failed program was:" >&5 | ||
| 5525 | cat conftest.$ac_ext >&5 | ||
| 5526 | rm -rf conftest* | ||
| 5527 | ac_cv_have_struct_timeval="no" | ||
| 5528 | |||
| 5529 | fi | ||
| 5530 | rm -f conftest* | ||
| 5531 | |||
| 5532 | fi | ||
| 5533 | |||
| 5534 | echo "$ac_t""$ac_cv_have_struct_timeval" 1>&6 | ||
| 5535 | if test "x$ac_cv_have_struct_timeval" = "xyes" ; then | ||
| 5536 | cat >> confdefs.h <<\EOF | ||
| 5537 | #define HAVE_STRUCT_TIMEVAL 1 | ||
| 5538 | EOF | ||
| 5539 | |||
| 5540 | have_struct_timeval=1 | ||
| 5541 | fi | ||
| 5542 | |||
| 5543 | # If we don't have int64_t then we can't compile sftp-server. So don't | ||
| 5544 | # even attempt to do it. | ||
| 5545 | if test "x$ac_cv_have_int64_t" = "xno" -a \ | ||
| 5546 | "x$ac_cv_sizeof_long_int" != "x8" -a \ | ||
| 5547 | "x$ac_cv_sizeof_long_long_int" = "x0" ; then | ||
| 5548 | NO_SFTP='#' | ||
| 5549 | else | ||
| 5550 | if test "$cross_compiling" = yes; then | ||
| 5551 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | ||
| 5552 | else | ||
| 5553 | cat > conftest.$ac_ext <<EOF | ||
| 5554 | #line 5555 "configure" | ||
| 5555 | #include "confdefs.h" | ||
| 5556 | |||
| 5557 | #include <stdio.h> | ||
| 5558 | #include <string.h> | ||
| 5559 | #ifdef HAVE_SNPRINTF | ||
| 5560 | main() | ||
| 5561 | { | ||
| 5562 | char buf[50]; | ||
| 5563 | char expected_out[50]; | ||
| 5564 | int mazsize = 50 ; | ||
| 5565 | #if (SIZEOF_LONG_INT == 8) | ||
| 5566 | long int num = 0x7fffffffffffffff; | ||
| 5567 | #else | ||
| 5568 | long long num = 0x7fffffffffffffff; | ||
| 5569 | #endif | ||
| 5570 | strcpy(expected_out, "9223372036854775807"); | ||
| 5571 | snprintf(buf, mazsize, "%lld", num); | ||
| 5572 | if(strcmp(buf, expected_out) != 0) | ||
| 5573 | exit(1); | ||
| 5574 | exit(0); | ||
| 5575 | } | ||
| 5576 | #else | ||
| 5577 | main() { exit(0); } | ||
| 5578 | #endif | ||
| 5579 | |||
| 5580 | EOF | ||
| 5581 | if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 5582 | then | ||
| 5583 | true | ||
| 5584 | else | ||
| 5585 | echo "configure: failed program was:" >&5 | ||
| 5586 | cat conftest.$ac_ext >&5 | ||
| 5587 | rm -fr conftest* | ||
| 5588 | cat >> confdefs.h <<\EOF | ||
| 5589 | #define BROKEN_SNPRINTF 1 | ||
| 5590 | EOF | ||
| 5591 | |||
| 5592 | |||
| 5593 | fi | ||
| 5594 | rm -fr conftest* | ||
| 5595 | fi | ||
| 5596 | |||
| 5597 | fi | ||
| 5598 | |||
| 5599 | |||
| 5600 | |||
| 5601 | # look for field 'ut_host' in header 'utmp.h' | ||
| 5602 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 5603 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
| 5604 | echo $ac_n "checking for ut_host field in utmp.h""... $ac_c" 1>&6 | ||
| 5605 | echo "configure:5606: checking for ut_host field in utmp.h" >&5 | ||
| 5606 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5607 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5608 | else | ||
| 5609 | |||
| 5610 | cat > conftest.$ac_ext <<EOF | ||
| 5611 | #line 5612 "configure" | ||
| 5612 | #include "confdefs.h" | ||
| 5613 | #include <utmp.h> | ||
| 5614 | EOF | ||
| 5615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5616 | egrep "ut_host" >/dev/null 2>&1; then | ||
| 5617 | rm -rf conftest* | ||
| 5618 | eval "$ossh_varname=yes" | ||
| 5619 | else | ||
| 5620 | rm -rf conftest* | ||
| 5621 | eval "$ossh_varname=no" | ||
| 5622 | fi | ||
| 5623 | rm -f conftest* | ||
| 5624 | |||
| 5625 | fi | ||
| 5626 | |||
| 5627 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5628 | if test -n "`echo $ossh_varname`"; then | ||
| 5629 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5630 | if test "x$ossh_result" = "xyes"; then | ||
| 5631 | cat >> confdefs.h <<\EOF | ||
| 5632 | #define HAVE_HOST_IN_UTMP 1 | ||
| 5633 | EOF | ||
| 5634 | |||
| 5635 | fi | ||
| 5636 | else | ||
| 5637 | echo "$ac_t""no" 1>&6 | ||
| 5638 | fi | ||
| 5639 | |||
| 5640 | |||
| 5641 | # look for field 'ut_host' in header 'utmpx.h' | ||
| 5642 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 5643 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_host | ||
| 5644 | echo $ac_n "checking for ut_host field in utmpx.h""... $ac_c" 1>&6 | ||
| 5645 | echo "configure:5646: checking for ut_host field in utmpx.h" >&5 | ||
| 5646 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5647 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5648 | else | ||
| 5649 | |||
| 5650 | cat > conftest.$ac_ext <<EOF | ||
| 5651 | #line 5652 "configure" | ||
| 5652 | #include "confdefs.h" | ||
| 5653 | #include <utmpx.h> | ||
| 5654 | EOF | ||
| 5655 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5656 | egrep "ut_host" >/dev/null 2>&1; then | ||
| 5657 | rm -rf conftest* | ||
| 5658 | eval "$ossh_varname=yes" | ||
| 5659 | else | ||
| 5660 | rm -rf conftest* | ||
| 5661 | eval "$ossh_varname=no" | ||
| 5662 | fi | ||
| 5663 | rm -f conftest* | ||
| 5664 | |||
| 5665 | fi | ||
| 5666 | |||
| 5667 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5668 | if test -n "`echo $ossh_varname`"; then | ||
| 5669 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5670 | if test "x$ossh_result" = "xyes"; then | ||
| 5671 | cat >> confdefs.h <<\EOF | ||
| 5672 | #define HAVE_HOST_IN_UTMPX 1 | ||
| 5673 | EOF | ||
| 5674 | |||
| 5675 | fi | ||
| 5676 | else | ||
| 5677 | echo "$ac_t""no" 1>&6 | ||
| 5678 | fi | ||
| 5679 | |||
| 5680 | |||
| 5681 | # look for field 'syslen' in header 'utmpx.h' | ||
| 5682 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 5683 | ossh_varname="ossh_cv_$ossh_safe""_has_"syslen | ||
| 5684 | echo $ac_n "checking for syslen field in utmpx.h""... $ac_c" 1>&6 | ||
| 5685 | echo "configure:5686: checking for syslen field in utmpx.h" >&5 | ||
| 5686 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5687 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5688 | else | ||
| 5689 | |||
| 5690 | cat > conftest.$ac_ext <<EOF | ||
| 5691 | #line 5692 "configure" | ||
| 5692 | #include "confdefs.h" | ||
| 5693 | #include <utmpx.h> | ||
| 5694 | EOF | ||
| 5695 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5696 | egrep "syslen" >/dev/null 2>&1; then | ||
| 5697 | rm -rf conftest* | ||
| 5698 | eval "$ossh_varname=yes" | ||
| 5699 | else | ||
| 5700 | rm -rf conftest* | ||
| 5701 | eval "$ossh_varname=no" | ||
| 5702 | fi | ||
| 5703 | rm -f conftest* | ||
| 5704 | |||
| 5705 | fi | ||
| 5706 | |||
| 5707 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5708 | if test -n "`echo $ossh_varname`"; then | ||
| 5709 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5710 | if test "x$ossh_result" = "xyes"; then | ||
| 5711 | cat >> confdefs.h <<\EOF | ||
| 5712 | #define HAVE_SYSLEN_IN_UTMPX 1 | ||
| 5713 | EOF | ||
| 5714 | |||
| 5715 | fi | ||
| 5716 | else | ||
| 5717 | echo "$ac_t""no" 1>&6 | ||
| 5718 | fi | ||
| 5719 | |||
| 5720 | |||
| 5721 | # look for field 'ut_pid' in header 'utmp.h' | ||
| 5722 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 5723 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_pid | ||
| 5724 | echo $ac_n "checking for ut_pid field in utmp.h""... $ac_c" 1>&6 | ||
| 5725 | echo "configure:5726: checking for ut_pid field in utmp.h" >&5 | ||
| 5726 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5727 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5728 | else | ||
| 5729 | |||
| 5730 | cat > conftest.$ac_ext <<EOF | ||
| 5731 | #line 5732 "configure" | ||
| 5732 | #include "confdefs.h" | ||
| 5733 | #include <utmp.h> | ||
| 5734 | EOF | ||
| 5735 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5736 | egrep "ut_pid" >/dev/null 2>&1; then | ||
| 5737 | rm -rf conftest* | ||
| 5738 | eval "$ossh_varname=yes" | ||
| 5739 | else | ||
| 5740 | rm -rf conftest* | ||
| 5741 | eval "$ossh_varname=no" | ||
| 5742 | fi | ||
| 5743 | rm -f conftest* | ||
| 5744 | |||
| 5745 | fi | ||
| 5746 | |||
| 5747 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5748 | if test -n "`echo $ossh_varname`"; then | ||
| 5749 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5750 | if test "x$ossh_result" = "xyes"; then | ||
| 5751 | cat >> confdefs.h <<\EOF | ||
| 5752 | #define HAVE_PID_IN_UTMP 1 | ||
| 5753 | EOF | ||
| 5754 | |||
| 5755 | fi | ||
| 5756 | else | ||
| 5757 | echo "$ac_t""no" 1>&6 | ||
| 5758 | fi | ||
| 5759 | |||
| 5760 | |||
| 5761 | # look for field 'ut_type' in header 'utmp.h' | ||
| 5762 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 5763 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
| 5764 | echo $ac_n "checking for ut_type field in utmp.h""... $ac_c" 1>&6 | ||
| 5765 | echo "configure:5766: checking for ut_type field in utmp.h" >&5 | ||
| 5766 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5767 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5768 | else | ||
| 5769 | |||
| 5770 | cat > conftest.$ac_ext <<EOF | ||
| 5771 | #line 5772 "configure" | ||
| 5772 | #include "confdefs.h" | ||
| 5773 | #include <utmp.h> | ||
| 5774 | EOF | ||
| 5775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5776 | egrep "ut_type" >/dev/null 2>&1; then | ||
| 5777 | rm -rf conftest* | ||
| 5778 | eval "$ossh_varname=yes" | ||
| 5779 | else | ||
| 5780 | rm -rf conftest* | ||
| 5781 | eval "$ossh_varname=no" | ||
| 5782 | fi | ||
| 5783 | rm -f conftest* | ||
| 5784 | |||
| 5785 | fi | ||
| 5786 | |||
| 5787 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5788 | if test -n "`echo $ossh_varname`"; then | ||
| 5789 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5790 | if test "x$ossh_result" = "xyes"; then | ||
| 5791 | cat >> confdefs.h <<\EOF | ||
| 5792 | #define HAVE_TYPE_IN_UTMP 1 | ||
| 5793 | EOF | ||
| 5794 | |||
| 5795 | fi | ||
| 5796 | else | ||
| 5797 | echo "$ac_t""no" 1>&6 | ||
| 5798 | fi | ||
| 5799 | |||
| 5800 | |||
| 5801 | # look for field 'ut_type' in header 'utmpx.h' | ||
| 5802 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 5803 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_type | ||
| 5804 | echo $ac_n "checking for ut_type field in utmpx.h""... $ac_c" 1>&6 | ||
| 5805 | echo "configure:5806: checking for ut_type field in utmpx.h" >&5 | ||
| 5806 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5807 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5808 | else | ||
| 5809 | |||
| 5810 | cat > conftest.$ac_ext <<EOF | ||
| 5811 | #line 5812 "configure" | ||
| 5812 | #include "confdefs.h" | ||
| 5813 | #include <utmpx.h> | ||
| 5814 | EOF | ||
| 5815 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5816 | egrep "ut_type" >/dev/null 2>&1; then | ||
| 5817 | rm -rf conftest* | ||
| 5818 | eval "$ossh_varname=yes" | ||
| 5819 | else | ||
| 5820 | rm -rf conftest* | ||
| 5821 | eval "$ossh_varname=no" | ||
| 5822 | fi | ||
| 5823 | rm -f conftest* | ||
| 5824 | |||
| 5825 | fi | ||
| 5826 | |||
| 5827 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5828 | if test -n "`echo $ossh_varname`"; then | ||
| 5829 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5830 | if test "x$ossh_result" = "xyes"; then | ||
| 5831 | cat >> confdefs.h <<\EOF | ||
| 5832 | #define HAVE_TYPE_IN_UTMPX 1 | ||
| 5833 | EOF | ||
| 5834 | |||
| 5835 | fi | ||
| 5836 | else | ||
| 5837 | echo "$ac_t""no" 1>&6 | ||
| 5838 | fi | ||
| 5839 | |||
| 5840 | |||
| 5841 | # look for field 'ut_tv' in header 'utmp.h' | ||
| 5842 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 5843 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
| 5844 | echo $ac_n "checking for ut_tv field in utmp.h""... $ac_c" 1>&6 | ||
| 5845 | echo "configure:5846: checking for ut_tv field in utmp.h" >&5 | ||
| 5846 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5847 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5848 | else | ||
| 5849 | |||
| 5850 | cat > conftest.$ac_ext <<EOF | ||
| 5851 | #line 5852 "configure" | ||
| 5852 | #include "confdefs.h" | ||
| 5853 | #include <utmp.h> | ||
| 5854 | EOF | ||
| 5855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5856 | egrep "ut_tv" >/dev/null 2>&1; then | ||
| 5857 | rm -rf conftest* | ||
| 5858 | eval "$ossh_varname=yes" | ||
| 5859 | else | ||
| 5860 | rm -rf conftest* | ||
| 5861 | eval "$ossh_varname=no" | ||
| 5862 | fi | ||
| 5863 | rm -f conftest* | ||
| 5864 | |||
| 5865 | fi | ||
| 5866 | |||
| 5867 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5868 | if test -n "`echo $ossh_varname`"; then | ||
| 5869 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5870 | if test "x$ossh_result" = "xyes"; then | ||
| 5871 | cat >> confdefs.h <<\EOF | ||
| 5872 | #define HAVE_TV_IN_UTMP 1 | ||
| 5873 | EOF | ||
| 5874 | |||
| 5875 | fi | ||
| 5876 | else | ||
| 5877 | echo "$ac_t""no" 1>&6 | ||
| 5878 | fi | ||
| 5879 | |||
| 5880 | |||
| 5881 | # look for field 'ut_id' in header 'utmp.h' | ||
| 5882 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 5883 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
| 5884 | echo $ac_n "checking for ut_id field in utmp.h""... $ac_c" 1>&6 | ||
| 5885 | echo "configure:5886: checking for ut_id field in utmp.h" >&5 | ||
| 5886 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5887 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5888 | else | ||
| 5889 | |||
| 5890 | cat > conftest.$ac_ext <<EOF | ||
| 5891 | #line 5892 "configure" | ||
| 5892 | #include "confdefs.h" | ||
| 5893 | #include <utmp.h> | ||
| 5894 | EOF | ||
| 5895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5896 | egrep "ut_id" >/dev/null 2>&1; then | ||
| 5897 | rm -rf conftest* | ||
| 5898 | eval "$ossh_varname=yes" | ||
| 5899 | else | ||
| 5900 | rm -rf conftest* | ||
| 5901 | eval "$ossh_varname=no" | ||
| 5902 | fi | ||
| 5903 | rm -f conftest* | ||
| 5904 | |||
| 5905 | fi | ||
| 5906 | |||
| 5907 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5908 | if test -n "`echo $ossh_varname`"; then | ||
| 5909 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5910 | if test "x$ossh_result" = "xyes"; then | ||
| 5911 | cat >> confdefs.h <<\EOF | ||
| 5912 | #define HAVE_ID_IN_UTMP 1 | ||
| 5913 | EOF | ||
| 5914 | |||
| 5915 | fi | ||
| 5916 | else | ||
| 5917 | echo "$ac_t""no" 1>&6 | ||
| 5918 | fi | ||
| 5919 | |||
| 5920 | |||
| 5921 | # look for field 'ut_id' in header 'utmpx.h' | ||
| 5922 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 5923 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_id | ||
| 5924 | echo $ac_n "checking for ut_id field in utmpx.h""... $ac_c" 1>&6 | ||
| 5925 | echo "configure:5926: checking for ut_id field in utmpx.h" >&5 | ||
| 5926 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5927 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5928 | else | ||
| 5929 | |||
| 5930 | cat > conftest.$ac_ext <<EOF | ||
| 5931 | #line 5932 "configure" | ||
| 5932 | #include "confdefs.h" | ||
| 5933 | #include <utmpx.h> | ||
| 5934 | EOF | ||
| 5935 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5936 | egrep "ut_id" >/dev/null 2>&1; then | ||
| 5937 | rm -rf conftest* | ||
| 5938 | eval "$ossh_varname=yes" | ||
| 5939 | else | ||
| 5940 | rm -rf conftest* | ||
| 5941 | eval "$ossh_varname=no" | ||
| 5942 | fi | ||
| 5943 | rm -f conftest* | ||
| 5944 | |||
| 5945 | fi | ||
| 5946 | |||
| 5947 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5948 | if test -n "`echo $ossh_varname`"; then | ||
| 5949 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5950 | if test "x$ossh_result" = "xyes"; then | ||
| 5951 | cat >> confdefs.h <<\EOF | ||
| 5952 | #define HAVE_ID_IN_UTMPX 1 | ||
| 5953 | EOF | ||
| 5954 | |||
| 5955 | fi | ||
| 5956 | else | ||
| 5957 | echo "$ac_t""no" 1>&6 | ||
| 5958 | fi | ||
| 5959 | |||
| 5960 | |||
| 5961 | # look for field 'ut_addr' in header 'utmp.h' | ||
| 5962 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 5963 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
| 5964 | echo $ac_n "checking for ut_addr field in utmp.h""... $ac_c" 1>&6 | ||
| 5965 | echo "configure:5966: checking for ut_addr field in utmp.h" >&5 | ||
| 5966 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 5967 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 5968 | else | ||
| 5969 | |||
| 5970 | cat > conftest.$ac_ext <<EOF | ||
| 5971 | #line 5972 "configure" | ||
| 5972 | #include "confdefs.h" | ||
| 5973 | #include <utmp.h> | ||
| 5974 | EOF | ||
| 5975 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 5976 | egrep "ut_addr" >/dev/null 2>&1; then | ||
| 5977 | rm -rf conftest* | ||
| 5978 | eval "$ossh_varname=yes" | ||
| 5979 | else | ||
| 5980 | rm -rf conftest* | ||
| 5981 | eval "$ossh_varname=no" | ||
| 5982 | fi | ||
| 5983 | rm -f conftest* | ||
| 5984 | |||
| 5985 | fi | ||
| 5986 | |||
| 5987 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 5988 | if test -n "`echo $ossh_varname`"; then | ||
| 5989 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 5990 | if test "x$ossh_result" = "xyes"; then | ||
| 5991 | cat >> confdefs.h <<\EOF | ||
| 5992 | #define HAVE_ADDR_IN_UTMP 1 | ||
| 5993 | EOF | ||
| 5994 | |||
| 5995 | fi | ||
| 5996 | else | ||
| 5997 | echo "$ac_t""no" 1>&6 | ||
| 5998 | fi | ||
| 5999 | |||
| 6000 | |||
| 6001 | # look for field 'ut_addr' in header 'utmpx.h' | ||
| 6002 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 6003 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr | ||
| 6004 | echo $ac_n "checking for ut_addr field in utmpx.h""... $ac_c" 1>&6 | ||
| 6005 | echo "configure:6006: checking for ut_addr field in utmpx.h" >&5 | ||
| 6006 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 6007 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6008 | else | ||
| 6009 | |||
| 6010 | cat > conftest.$ac_ext <<EOF | ||
| 6011 | #line 6012 "configure" | ||
| 6012 | #include "confdefs.h" | ||
| 6013 | #include <utmpx.h> | ||
| 6014 | EOF | ||
| 6015 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 6016 | egrep "ut_addr" >/dev/null 2>&1; then | ||
| 6017 | rm -rf conftest* | ||
| 6018 | eval "$ossh_varname=yes" | ||
| 6019 | else | ||
| 6020 | rm -rf conftest* | ||
| 6021 | eval "$ossh_varname=no" | ||
| 6022 | fi | ||
| 6023 | rm -f conftest* | ||
| 6024 | |||
| 6025 | fi | ||
| 6026 | |||
| 6027 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 6028 | if test -n "`echo $ossh_varname`"; then | ||
| 6029 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 6030 | if test "x$ossh_result" = "xyes"; then | ||
| 6031 | cat >> confdefs.h <<\EOF | ||
| 6032 | #define HAVE_ADDR_IN_UTMPX 1 | ||
| 6033 | EOF | ||
| 6034 | |||
| 6035 | fi | ||
| 6036 | else | ||
| 6037 | echo "$ac_t""no" 1>&6 | ||
| 6038 | fi | ||
| 6039 | |||
| 6040 | |||
| 6041 | # look for field 'ut_addr_v6' in header 'utmp.h' | ||
| 6042 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 6043 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
| 6044 | echo $ac_n "checking for ut_addr_v6 field in utmp.h""... $ac_c" 1>&6 | ||
| 6045 | echo "configure:6046: checking for ut_addr_v6 field in utmp.h" >&5 | ||
| 6046 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 6047 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6048 | else | ||
| 6049 | |||
| 6050 | cat > conftest.$ac_ext <<EOF | ||
| 6051 | #line 6052 "configure" | ||
| 6052 | #include "confdefs.h" | ||
| 6053 | #include <utmp.h> | ||
| 6054 | EOF | ||
| 6055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 6056 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
| 6057 | rm -rf conftest* | ||
| 6058 | eval "$ossh_varname=yes" | ||
| 6059 | else | ||
| 6060 | rm -rf conftest* | ||
| 6061 | eval "$ossh_varname=no" | ||
| 6062 | fi | ||
| 6063 | rm -f conftest* | ||
| 6064 | |||
| 6065 | fi | ||
| 6066 | |||
| 6067 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 6068 | if test -n "`echo $ossh_varname`"; then | ||
| 6069 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 6070 | if test "x$ossh_result" = "xyes"; then | ||
| 6071 | cat >> confdefs.h <<\EOF | ||
| 6072 | #define HAVE_ADDR_V6_IN_UTMP 1 | ||
| 6073 | EOF | ||
| 6074 | |||
| 6075 | fi | ||
| 6076 | else | ||
| 6077 | echo "$ac_t""no" 1>&6 | ||
| 6078 | fi | ||
| 6079 | |||
| 6080 | |||
| 6081 | # look for field 'ut_addr_v6' in header 'utmpx.h' | ||
| 6082 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 6083 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_addr_v6 | ||
| 6084 | echo $ac_n "checking for ut_addr_v6 field in utmpx.h""... $ac_c" 1>&6 | ||
| 6085 | echo "configure:6086: checking for ut_addr_v6 field in utmpx.h" >&5 | ||
| 6086 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 6087 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6088 | else | ||
| 6089 | |||
| 6090 | cat > conftest.$ac_ext <<EOF | ||
| 6091 | #line 6092 "configure" | ||
| 6092 | #include "confdefs.h" | ||
| 6093 | #include <utmpx.h> | ||
| 6094 | EOF | ||
| 6095 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 6096 | egrep "ut_addr_v6" >/dev/null 2>&1; then | ||
| 6097 | rm -rf conftest* | ||
| 6098 | eval "$ossh_varname=yes" | ||
| 6099 | else | ||
| 6100 | rm -rf conftest* | ||
| 6101 | eval "$ossh_varname=no" | ||
| 6102 | fi | ||
| 6103 | rm -f conftest* | ||
| 6104 | |||
| 6105 | fi | ||
| 6106 | |||
| 6107 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 6108 | if test -n "`echo $ossh_varname`"; then | ||
| 6109 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 6110 | if test "x$ossh_result" = "xyes"; then | ||
| 6111 | cat >> confdefs.h <<\EOF | ||
| 6112 | #define HAVE_ADDR_V6_IN_UTMPX 1 | ||
| 6113 | EOF | ||
| 6114 | |||
| 6115 | fi | ||
| 6116 | else | ||
| 6117 | echo "$ac_t""no" 1>&6 | ||
| 6118 | fi | ||
| 6119 | |||
| 6120 | |||
| 6121 | # look for field 'ut_exit' in header 'utmp.h' | ||
| 6122 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 6123 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_exit | ||
| 6124 | echo $ac_n "checking for ut_exit field in utmp.h""... $ac_c" 1>&6 | ||
| 6125 | echo "configure:6126: checking for ut_exit field in utmp.h" >&5 | ||
| 6126 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 6127 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6128 | else | ||
| 6129 | |||
| 6130 | cat > conftest.$ac_ext <<EOF | ||
| 6131 | #line 6132 "configure" | ||
| 6132 | #include "confdefs.h" | ||
| 6133 | #include <utmp.h> | ||
| 6134 | EOF | ||
| 6135 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 6136 | egrep "ut_exit" >/dev/null 2>&1; then | ||
| 6137 | rm -rf conftest* | ||
| 6138 | eval "$ossh_varname=yes" | ||
| 6139 | else | ||
| 6140 | rm -rf conftest* | ||
| 6141 | eval "$ossh_varname=no" | ||
| 6142 | fi | ||
| 6143 | rm -f conftest* | ||
| 6144 | |||
| 6145 | fi | ||
| 6146 | |||
| 6147 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 6148 | if test -n "`echo $ossh_varname`"; then | ||
| 6149 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 6150 | if test "x$ossh_result" = "xyes"; then | ||
| 6151 | cat >> confdefs.h <<\EOF | ||
| 6152 | #define HAVE_EXIT_IN_UTMP 1 | ||
| 6153 | EOF | ||
| 6154 | |||
| 6155 | fi | ||
| 6156 | else | ||
| 6157 | echo "$ac_t""no" 1>&6 | ||
| 6158 | fi | ||
| 6159 | |||
| 6160 | |||
| 6161 | # look for field 'ut_time' in header 'utmp.h' | ||
| 6162 | ossh_safe=`echo "utmp.h" | sed 'y%./+-%__p_%'` | ||
| 6163 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
| 6164 | echo $ac_n "checking for ut_time field in utmp.h""... $ac_c" 1>&6 | ||
| 6165 | echo "configure:6166: checking for ut_time field in utmp.h" >&5 | ||
| 6166 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 6167 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6168 | else | ||
| 6169 | |||
| 6170 | cat > conftest.$ac_ext <<EOF | ||
| 6171 | #line 6172 "configure" | ||
| 6172 | #include "confdefs.h" | ||
| 6173 | #include <utmp.h> | ||
| 6174 | EOF | ||
| 6175 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 6176 | egrep "ut_time" >/dev/null 2>&1; then | ||
| 6177 | rm -rf conftest* | ||
| 6178 | eval "$ossh_varname=yes" | ||
| 6179 | else | ||
| 6180 | rm -rf conftest* | ||
| 6181 | eval "$ossh_varname=no" | ||
| 6182 | fi | ||
| 6183 | rm -f conftest* | ||
| 6184 | |||
| 6185 | fi | ||
| 6186 | |||
| 6187 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 6188 | if test -n "`echo $ossh_varname`"; then | ||
| 6189 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 6190 | if test "x$ossh_result" = "xyes"; then | ||
| 6191 | cat >> confdefs.h <<\EOF | ||
| 6192 | #define HAVE_TIME_IN_UTMP 1 | ||
| 6193 | EOF | ||
| 6194 | |||
| 6195 | fi | ||
| 6196 | else | ||
| 6197 | echo "$ac_t""no" 1>&6 | ||
| 6198 | fi | ||
| 6199 | |||
| 6200 | |||
| 6201 | # look for field 'ut_time' in header 'utmpx.h' | ||
| 6202 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 6203 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_time | ||
| 6204 | echo $ac_n "checking for ut_time field in utmpx.h""... $ac_c" 1>&6 | ||
| 6205 | echo "configure:6206: checking for ut_time field in utmpx.h" >&5 | ||
| 6206 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 6207 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6208 | else | ||
| 6209 | |||
| 6210 | cat > conftest.$ac_ext <<EOF | ||
| 6211 | #line 6212 "configure" | ||
| 6212 | #include "confdefs.h" | ||
| 6213 | #include <utmpx.h> | ||
| 6214 | EOF | ||
| 6215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 6216 | egrep "ut_time" >/dev/null 2>&1; then | ||
| 6217 | rm -rf conftest* | ||
| 6218 | eval "$ossh_varname=yes" | ||
| 6219 | else | ||
| 6220 | rm -rf conftest* | ||
| 6221 | eval "$ossh_varname=no" | ||
| 6222 | fi | ||
| 6223 | rm -f conftest* | ||
| 6224 | |||
| 6225 | fi | ||
| 6226 | |||
| 6227 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 6228 | if test -n "`echo $ossh_varname`"; then | ||
| 6229 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 6230 | if test "x$ossh_result" = "xyes"; then | ||
| 6231 | cat >> confdefs.h <<\EOF | ||
| 6232 | #define HAVE_TIME_IN_UTMPX 1 | ||
| 6233 | EOF | ||
| 6234 | |||
| 6235 | fi | ||
| 6236 | else | ||
| 6237 | echo "$ac_t""no" 1>&6 | ||
| 6238 | fi | ||
| 6239 | |||
| 6240 | |||
| 6241 | # look for field 'ut_tv' in header 'utmpx.h' | ||
| 6242 | ossh_safe=`echo "utmpx.h" | sed 'y%./+-%__p_%'` | ||
| 6243 | ossh_varname="ossh_cv_$ossh_safe""_has_"ut_tv | ||
| 6244 | echo $ac_n "checking for ut_tv field in utmpx.h""... $ac_c" 1>&6 | ||
| 6245 | echo "configure:6246: checking for ut_tv field in utmpx.h" >&5 | ||
| 6246 | if eval "test \"`echo '$''{'$ossh_varname'+set}'`\" = set"; then | ||
| 6247 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6248 | else | ||
| 6249 | |||
| 6250 | cat > conftest.$ac_ext <<EOF | ||
| 6251 | #line 6252 "configure" | ||
| 6252 | #include "confdefs.h" | ||
| 6253 | #include <utmpx.h> | ||
| 6254 | EOF | ||
| 6255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
| 6256 | egrep "ut_tv" >/dev/null 2>&1; then | ||
| 6257 | rm -rf conftest* | ||
| 6258 | eval "$ossh_varname=yes" | ||
| 6259 | else | ||
| 6260 | rm -rf conftest* | ||
| 6261 | eval "$ossh_varname=no" | ||
| 6262 | fi | ||
| 6263 | rm -f conftest* | ||
| 6264 | |||
| 6265 | fi | ||
| 6266 | |||
| 6267 | ossh_result=`eval 'echo $'"$ossh_varname"` | ||
| 6268 | if test -n "`echo $ossh_varname`"; then | ||
| 6269 | echo "$ac_t""$ossh_result" 1>&6 | ||
| 6270 | if test "x$ossh_result" = "xyes"; then | ||
| 6271 | cat >> confdefs.h <<\EOF | ||
| 6272 | #define HAVE_TV_IN_UTMPX 1 | ||
| 6273 | EOF | ||
| 6274 | |||
| 6275 | fi | ||
| 6276 | else | ||
| 6277 | echo "$ac_t""no" 1>&6 | ||
| 6278 | fi | ||
| 6279 | |||
| 6280 | echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6 | ||
| 6281 | echo "configure:6282: checking for st_blksize in struct stat" >&5 | ||
| 6282 | if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then | ||
| 6283 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6284 | else | ||
| 6285 | cat > conftest.$ac_ext <<EOF | ||
| 6286 | #line 6287 "configure" | ||
| 6287 | #include "confdefs.h" | ||
| 6288 | #include <sys/types.h> | ||
| 6289 | #include <sys/stat.h> | ||
| 6290 | int main() { | ||
| 6291 | struct stat s; s.st_blksize; | ||
| 6292 | ; return 0; } | ||
| 6293 | EOF | ||
| 6294 | if { (eval echo configure:6295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6295 | rm -rf conftest* | ||
| 6296 | ac_cv_struct_st_blksize=yes | ||
| 6297 | else | ||
| 6298 | echo "configure: failed program was:" >&5 | ||
| 6299 | cat conftest.$ac_ext >&5 | ||
| 6300 | rm -rf conftest* | ||
| 6301 | ac_cv_struct_st_blksize=no | ||
| 6302 | fi | ||
| 6303 | rm -f conftest* | ||
| 6304 | fi | ||
| 6305 | |||
| 6306 | echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6 | ||
| 6307 | if test $ac_cv_struct_st_blksize = yes; then | ||
| 6308 | cat >> confdefs.h <<\EOF | ||
| 6309 | #define HAVE_ST_BLKSIZE 1 | ||
| 6310 | EOF | ||
| 6311 | |||
| 6312 | fi | ||
| 6313 | |||
| 6314 | |||
| 6315 | echo $ac_n "checking for sun_len field in struct sockaddr_un""... $ac_c" 1>&6 | ||
| 6316 | echo "configure:6317: checking for sun_len field in struct sockaddr_un" >&5 | ||
| 6317 | if eval "test \"`echo '$''{'ac_cv_have_sun_len_in_struct_sockaddr_un'+set}'`\" = set"; then | ||
| 6318 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6319 | else | ||
| 6320 | |||
| 6321 | cat > conftest.$ac_ext <<EOF | ||
| 6322 | #line 6323 "configure" | ||
| 6323 | #include "confdefs.h" | ||
| 6324 | |||
| 6325 | #include <sys/types.h> | ||
| 6326 | #include <sys/socket.h> | ||
| 6327 | |||
| 6328 | int main() { | ||
| 6329 | struct sockaddr_un s; s.sun_len = 1; | ||
| 6330 | ; return 0; } | ||
| 6331 | EOF | ||
| 6332 | if { (eval echo configure:6333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6333 | rm -rf conftest* | ||
| 6334 | ac_cv_have_sun_len_in_struct_sockaddr_un="yes" | ||
| 6335 | else | ||
| 6336 | echo "configure: failed program was:" >&5 | ||
| 6337 | cat conftest.$ac_ext >&5 | ||
| 6338 | rm -rf conftest* | ||
| 6339 | ac_cv_have_sun_len_in_struct_sockaddr_un="no" | ||
| 6340 | fi | ||
| 6341 | rm -f conftest* | ||
| 6342 | |||
| 6343 | fi | ||
| 6344 | |||
| 6345 | echo "$ac_t""$ac_cv_have_sun_len_in_struct_sockaddr_un" 1>&6 | ||
| 6346 | if test "x$ac_cv_have_sun_len_in_struct_sockaddr_un" = "xyes" ; then | ||
| 6347 | cat >> confdefs.h <<\EOF | ||
| 6348 | #define HAVE_SUN_LEN_IN_SOCKADDR_UN 1 | ||
| 6349 | EOF | ||
| 6350 | |||
| 6351 | fi | ||
| 6352 | |||
| 6353 | echo $ac_n "checking for ss_family field in struct sockaddr_storage""... $ac_c" 1>&6 | ||
| 6354 | echo "configure:6355: checking for ss_family field in struct sockaddr_storage" >&5 | ||
| 6355 | if eval "test \"`echo '$''{'ac_cv_have_ss_family_in_struct_ss'+set}'`\" = set"; then | ||
| 6356 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6357 | else | ||
| 6358 | |||
| 6359 | cat > conftest.$ac_ext <<EOF | ||
| 6360 | #line 6361 "configure" | ||
| 6361 | #include "confdefs.h" | ||
| 6362 | |||
| 6363 | #include <sys/types.h> | ||
| 6364 | #include <sys/socket.h> | ||
| 6365 | |||
| 6366 | int main() { | ||
| 6367 | struct sockaddr_storage s; s.ss_family = 1; | ||
| 6368 | ; return 0; } | ||
| 6369 | EOF | ||
| 6370 | if { (eval echo configure:6371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6371 | rm -rf conftest* | ||
| 6372 | ac_cv_have_ss_family_in_struct_ss="yes" | ||
| 6373 | else | ||
| 6374 | echo "configure: failed program was:" >&5 | ||
| 6375 | cat conftest.$ac_ext >&5 | ||
| 6376 | rm -rf conftest* | ||
| 6377 | ac_cv_have_ss_family_in_struct_ss="no" | ||
| 6378 | fi | ||
| 6379 | rm -f conftest* | ||
| 6380 | |||
| 6381 | fi | ||
| 6382 | |||
| 6383 | echo "$ac_t""$ac_cv_have_ss_family_in_struct_ss" 1>&6 | ||
| 6384 | if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then | ||
| 6385 | cat >> confdefs.h <<\EOF | ||
| 6386 | #define HAVE_SS_FAMILY_IN_SS 1 | ||
| 6387 | EOF | ||
| 6388 | |||
| 6389 | fi | ||
| 6390 | |||
| 6391 | echo $ac_n "checking for __ss_family field in struct sockaddr_storage""... $ac_c" 1>&6 | ||
| 6392 | echo "configure:6393: checking for __ss_family field in struct sockaddr_storage" >&5 | ||
| 6393 | if eval "test \"`echo '$''{'ac_cv_have___ss_family_in_struct_ss'+set}'`\" = set"; then | ||
| 6394 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6395 | else | ||
| 6396 | |||
| 6397 | cat > conftest.$ac_ext <<EOF | ||
| 6398 | #line 6399 "configure" | ||
| 6399 | #include "confdefs.h" | ||
| 6400 | |||
| 6401 | #include <sys/types.h> | ||
| 6402 | #include <sys/socket.h> | ||
| 6403 | |||
| 6404 | int main() { | ||
| 6405 | struct sockaddr_storage s; s.__ss_family = 1; | ||
| 6406 | ; return 0; } | ||
| 6407 | EOF | ||
| 6408 | if { (eval echo configure:6409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6409 | rm -rf conftest* | ||
| 6410 | ac_cv_have___ss_family_in_struct_ss="yes" | ||
| 6411 | else | ||
| 6412 | echo "configure: failed program was:" >&5 | ||
| 6413 | cat conftest.$ac_ext >&5 | ||
| 6414 | rm -rf conftest* | ||
| 6415 | ac_cv_have___ss_family_in_struct_ss="no" | ||
| 6416 | |||
| 6417 | fi | ||
| 6418 | rm -f conftest* | ||
| 6419 | |||
| 6420 | fi | ||
| 6421 | |||
| 6422 | echo "$ac_t""$ac_cv_have___ss_family_in_struct_ss" 1>&6 | ||
| 6423 | if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then | ||
| 6424 | cat >> confdefs.h <<\EOF | ||
| 6425 | #define HAVE___SS_FAMILY_IN_SS 1 | ||
| 6426 | EOF | ||
| 6427 | |||
| 6428 | fi | ||
| 6429 | |||
| 6430 | echo $ac_n "checking for pw_class field in struct passwd""... $ac_c" 1>&6 | ||
| 6431 | echo "configure:6432: checking for pw_class field in struct passwd" >&5 | ||
| 6432 | if eval "test \"`echo '$''{'ac_cv_have_pw_class_in_struct_passwd'+set}'`\" = set"; then | ||
| 6433 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6434 | else | ||
| 6435 | |||
| 6436 | cat > conftest.$ac_ext <<EOF | ||
| 6437 | #line 6438 "configure" | ||
| 6438 | #include "confdefs.h" | ||
| 6439 | |||
| 6440 | #include <pwd.h> | ||
| 6441 | |||
| 6442 | int main() { | ||
| 6443 | struct passwd p; p.pw_class = 0; | ||
| 6444 | ; return 0; } | ||
| 6445 | EOF | ||
| 6446 | if { (eval echo configure:6447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 6447 | rm -rf conftest* | ||
| 6448 | ac_cv_have_pw_class_in_struct_passwd="yes" | ||
| 6449 | else | ||
| 6450 | echo "configure: failed program was:" >&5 | ||
| 6451 | cat conftest.$ac_ext >&5 | ||
| 6452 | rm -rf conftest* | ||
| 6453 | ac_cv_have_pw_class_in_struct_passwd="no" | ||
| 6454 | |||
| 6455 | fi | ||
| 6456 | rm -f conftest* | ||
| 6457 | |||
| 6458 | fi | ||
| 6459 | |||
| 6460 | echo "$ac_t""$ac_cv_have_pw_class_in_struct_passwd" 1>&6 | ||
| 6461 | if test "x$ac_cv_have_pw_class_in_struct_passwd" = "xyes" ; then | ||
| 6462 | cat >> confdefs.h <<\EOF | ||
| 6463 | #define HAVE_PW_CLASS_IN_PASSWD 1 | ||
| 6464 | EOF | ||
| 6465 | |||
| 6466 | fi | ||
| 6467 | |||
| 6468 | |||
| 6469 | echo $ac_n "checking if libc defines __progname""... $ac_c" 1>&6 | ||
| 6470 | echo "configure:6471: checking if libc defines __progname" >&5 | ||
| 6471 | if eval "test \"`echo '$''{'ac_cv_libc_defines___progname'+set}'`\" = set"; then | ||
| 6472 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6473 | else | ||
| 6474 | |||
| 6475 | cat > conftest.$ac_ext <<EOF | ||
| 6476 | #line 6477 "configure" | ||
| 6477 | #include "confdefs.h" | ||
| 6478 | |||
| 6479 | int main() { | ||
| 6480 | extern char *__progname; printf("%s", __progname); | ||
| 6481 | ; return 0; } | ||
| 6482 | EOF | ||
| 6483 | if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6484 | rm -rf conftest* | ||
| 6485 | ac_cv_libc_defines___progname="yes" | ||
| 6486 | else | ||
| 6487 | echo "configure: failed program was:" >&5 | ||
| 6488 | cat conftest.$ac_ext >&5 | ||
| 6489 | rm -rf conftest* | ||
| 6490 | ac_cv_libc_defines___progname="no" | ||
| 6491 | |||
| 6492 | fi | ||
| 6493 | rm -f conftest* | ||
| 6494 | |||
| 6495 | fi | ||
| 6496 | |||
| 6497 | echo "$ac_t""$ac_cv_libc_defines___progname" 1>&6 | ||
| 6498 | if test "x$ac_cv_libc_defines___progname" = "xyes" ; then | ||
| 6499 | cat >> confdefs.h <<\EOF | ||
| 6500 | #define HAVE___PROGNAME 1 | ||
| 6501 | EOF | ||
| 6502 | |||
| 6503 | fi | ||
| 6504 | |||
| 6505 | |||
| 6506 | echo $ac_n "checking if libc defines sys_errlist""... $ac_c" 1>&6 | ||
| 6507 | echo "configure:6508: checking if libc defines sys_errlist" >&5 | ||
| 6508 | if eval "test \"`echo '$''{'ac_cv_libc_defines_sys_errlist'+set}'`\" = set"; then | ||
| 6509 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6510 | else | ||
| 6511 | |||
| 6512 | cat > conftest.$ac_ext <<EOF | ||
| 6513 | #line 6514 "configure" | ||
| 6514 | #include "confdefs.h" | ||
| 6515 | |||
| 6516 | int main() { | ||
| 6517 | extern const char *const sys_errlist[]; printf("%s", sys_errlist[0]); | ||
| 6518 | ; return 0; } | ||
| 6519 | EOF | ||
| 6520 | if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6521 | rm -rf conftest* | ||
| 6522 | ac_cv_libc_defines_sys_errlist="yes" | ||
| 6523 | else | ||
| 6524 | echo "configure: failed program was:" >&5 | ||
| 6525 | cat conftest.$ac_ext >&5 | ||
| 6526 | rm -rf conftest* | ||
| 6527 | ac_cv_libc_defines_sys_errlist="no" | ||
| 6528 | |||
| 6529 | fi | ||
| 6530 | rm -f conftest* | ||
| 6531 | |||
| 6532 | fi | ||
| 6533 | |||
| 6534 | echo "$ac_t""$ac_cv_libc_defines_sys_errlist" 1>&6 | ||
| 6535 | if test "x$ac_cv_libc_defines_sys_errlist" = "xyes" ; then | ||
| 6536 | cat >> confdefs.h <<\EOF | ||
| 6537 | #define HAVE_SYS_ERRLIST 1 | ||
| 6538 | EOF | ||
| 6539 | |||
| 6540 | fi | ||
| 6541 | |||
| 6542 | |||
| 6543 | echo $ac_n "checking if libc defines sys_nerr""... $ac_c" 1>&6 | ||
| 6544 | echo "configure:6545: checking if libc defines sys_nerr" >&5 | ||
| 6545 | if eval "test \"`echo '$''{'ac_cv_libc_defines_sys_nerr'+set}'`\" = set"; then | ||
| 6546 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6547 | else | ||
| 6548 | |||
| 6549 | cat > conftest.$ac_ext <<EOF | ||
| 6550 | #line 6551 "configure" | ||
| 6551 | #include "confdefs.h" | ||
| 6552 | |||
| 6553 | int main() { | ||
| 6554 | extern int sys_nerr; printf("%i", sys_nerr); | ||
| 6555 | ; return 0; } | ||
| 6556 | EOF | ||
| 6557 | if { (eval echo configure:6558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6558 | rm -rf conftest* | ||
| 6559 | ac_cv_libc_defines_sys_nerr="yes" | ||
| 6560 | else | ||
| 6561 | echo "configure: failed program was:" >&5 | ||
| 6562 | cat conftest.$ac_ext >&5 | ||
| 6563 | rm -rf conftest* | ||
| 6564 | ac_cv_libc_defines_sys_nerr="no" | ||
| 6565 | |||
| 6566 | fi | ||
| 6567 | rm -f conftest* | ||
| 6568 | |||
| 6569 | fi | ||
| 6570 | |||
| 6571 | echo "$ac_t""$ac_cv_libc_defines_sys_nerr" 1>&6 | ||
| 6572 | if test "x$ac_cv_libc_defines_sys_nerr" = "xyes" ; then | ||
| 6573 | cat >> confdefs.h <<\EOF | ||
| 6574 | #define HAVE_SYS_NERR 1 | ||
| 6575 | EOF | ||
| 6576 | |||
| 6577 | fi | ||
| 6578 | |||
| 6579 | |||
| 6580 | # Check whether user wants Kerberos support | ||
| 6581 | KRB4_MSG="no" | ||
| 6582 | # Check whether --with-kerberos4 or --without-kerberos4 was given. | ||
| 6583 | if test "${with_kerberos4+set}" = set; then | ||
| 6584 | withval="$with_kerberos4" | ||
| 6585 | |||
| 6586 | if test "x$withval" != "xno" ; then | ||
| 6587 | |||
| 6588 | if test "x$withval" != "xyes" ; then | ||
| 6589 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
| 6590 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
| 6591 | if test ! -z "$need_dash_r" ; then | ||
| 6592 | LDFLAGS="$LDFLAGS -R${withval}/lib" | ||
| 6593 | fi | ||
| 6594 | if test ! -z "$blibpath" ; then | ||
| 6595 | blibpath="$blibpath:${withval}/lib" | ||
| 6596 | fi | ||
| 6597 | else | ||
| 6598 | if test -d /usr/include/kerberosIV ; then | ||
| 6599 | CPPFLAGS="$CPPFLAGS -I/usr/include/kerberosIV" | ||
| 6600 | fi | ||
| 6601 | fi | ||
| 6602 | |||
| 6603 | for ac_hdr in krb.h | ||
| 6604 | do | ||
| 6605 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | ||
| 6606 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | ||
| 6607 | echo "configure:6608: checking for $ac_hdr" >&5 | ||
| 6608 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | ||
| 6609 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6610 | else | ||
| 6611 | cat > conftest.$ac_ext <<EOF | ||
| 6612 | #line 6613 "configure" | ||
| 6613 | #include "confdefs.h" | ||
| 6614 | #include <$ac_hdr> | ||
| 6615 | EOF | ||
| 6616 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | ||
| 6617 | { (eval echo configure:6618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | ||
| 6618 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | ||
| 6619 | if test -z "$ac_err"; then | ||
| 6620 | rm -rf conftest* | ||
| 6621 | eval "ac_cv_header_$ac_safe=yes" | ||
| 6622 | else | ||
| 6623 | echo "$ac_err" >&5 | ||
| 6624 | echo "configure: failed program was:" >&5 | ||
| 6625 | cat conftest.$ac_ext >&5 | ||
| 6626 | rm -rf conftest* | ||
| 6627 | eval "ac_cv_header_$ac_safe=no" | ||
| 6628 | fi | ||
| 6629 | rm -f conftest* | ||
| 6630 | fi | ||
| 6631 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | ||
| 6632 | echo "$ac_t""yes" 1>&6 | ||
| 6633 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | ||
| 6634 | cat >> confdefs.h <<EOF | ||
| 6635 | #define $ac_tr_hdr 1 | ||
| 6636 | EOF | ||
| 6637 | |||
| 6638 | else | ||
| 6639 | echo "$ac_t""no" 1>&6 | ||
| 6640 | fi | ||
| 6641 | done | ||
| 6642 | |||
| 6643 | if test "$ac_cv_header_krb_h" != yes; then | ||
| 6644 | echo "configure: warning: Cannot find krb.h, build may fail" 1>&2 | ||
| 6645 | fi | ||
| 6646 | echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6 | ||
| 6647 | echo "configure:6648: checking for main in -lkrb" >&5 | ||
| 6648 | ac_lib_var=`echo krb'_'main | sed 'y%./+-%__p_%'` | ||
| 6649 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 6650 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6651 | else | ||
| 6652 | ac_save_LIBS="$LIBS" | ||
| 6653 | LIBS="-lkrb $LIBS" | ||
| 6654 | cat > conftest.$ac_ext <<EOF | ||
| 6655 | #line 6656 "configure" | ||
| 6656 | #include "confdefs.h" | ||
| 6657 | |||
| 6658 | int main() { | ||
| 6659 | main() | ||
| 6660 | ; return 0; } | ||
| 6661 | EOF | ||
| 6662 | if { (eval echo configure:6663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6663 | rm -rf conftest* | ||
| 6664 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 6665 | else | ||
| 6666 | echo "configure: failed program was:" >&5 | ||
| 6667 | cat conftest.$ac_ext >&5 | ||
| 6668 | rm -rf conftest* | ||
| 6669 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 6670 | fi | ||
| 6671 | rm -f conftest* | ||
| 6672 | LIBS="$ac_save_LIBS" | ||
| 6673 | |||
| 6674 | fi | ||
| 6675 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 6676 | echo "$ac_t""yes" 1>&6 | ||
| 6677 | ac_tr_lib=HAVE_LIB`echo krb | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 6678 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 6679 | cat >> confdefs.h <<EOF | ||
| 6680 | #define $ac_tr_lib 1 | ||
| 6681 | EOF | ||
| 6682 | |||
| 6683 | LIBS="-lkrb $LIBS" | ||
| 6684 | |||
| 6685 | else | ||
| 6686 | echo "$ac_t""no" 1>&6 | ||
| 6687 | fi | ||
| 6688 | |||
| 6689 | if test "$ac_cv_lib_krb_main" != yes; then | ||
| 6690 | echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6 | ||
| 6691 | echo "configure:6692: checking for main in -lkrb4" >&5 | ||
| 6692 | ac_lib_var=`echo krb4'_'main | sed 'y%./+-%__p_%'` | ||
| 6693 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 6694 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6695 | else | ||
| 6696 | ac_save_LIBS="$LIBS" | ||
| 6697 | LIBS="-lkrb4 $LIBS" | ||
| 6698 | cat > conftest.$ac_ext <<EOF | ||
| 6699 | #line 6700 "configure" | ||
| 6700 | #include "confdefs.h" | ||
| 6701 | |||
| 6702 | int main() { | ||
| 6703 | main() | ||
| 6704 | ; return 0; } | ||
| 6705 | EOF | ||
| 6706 | if { (eval echo configure:6707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6707 | rm -rf conftest* | ||
| 6708 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 6709 | else | ||
| 6710 | echo "configure: failed program was:" >&5 | ||
| 6711 | cat conftest.$ac_ext >&5 | ||
| 6712 | rm -rf conftest* | ||
| 6713 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 6714 | fi | ||
| 6715 | rm -f conftest* | ||
| 6716 | LIBS="$ac_save_LIBS" | ||
| 6717 | |||
| 6718 | fi | ||
| 6719 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 6720 | echo "$ac_t""yes" 1>&6 | ||
| 6721 | ac_tr_lib=HAVE_LIB`echo krb4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 6722 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 6723 | cat >> confdefs.h <<EOF | ||
| 6724 | #define $ac_tr_lib 1 | ||
| 6725 | EOF | ||
| 6726 | |||
| 6727 | LIBS="-lkrb4 $LIBS" | ||
| 6728 | |||
| 6729 | else | ||
| 6730 | echo "$ac_t""no" 1>&6 | ||
| 6731 | fi | ||
| 6732 | |||
| 6733 | if test "$ac_cv_lib_krb4_main" != yes; then | ||
| 6734 | echo "configure: warning: Cannot find libkrb nor libkrb4, build may fail" 1>&2 | ||
| 6735 | else | ||
| 6736 | KLIBS="-lkrb4" | ||
| 6737 | fi | ||
| 6738 | else | ||
| 6739 | KLIBS="-lkrb" | ||
| 6740 | fi | ||
| 6741 | echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | ||
| 6742 | echo "configure:6743: checking for des_cbc_encrypt in -ldes" >&5 | ||
| 6743 | ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | ||
| 6744 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 6745 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6746 | else | ||
| 6747 | ac_save_LIBS="$LIBS" | ||
| 6748 | LIBS="-ldes $LIBS" | ||
| 6749 | cat > conftest.$ac_ext <<EOF | ||
| 6750 | #line 6751 "configure" | ||
| 6751 | #include "confdefs.h" | ||
| 6752 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 6753 | /* We use char because int might match the return type of a gcc2 | ||
| 6754 | builtin and then its argument prototype would still apply. */ | ||
| 6755 | char des_cbc_encrypt(); | ||
| 6756 | |||
| 6757 | int main() { | ||
| 6758 | des_cbc_encrypt() | ||
| 6759 | ; return 0; } | ||
| 6760 | EOF | ||
| 6761 | if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6762 | rm -rf conftest* | ||
| 6763 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 6764 | else | ||
| 6765 | echo "configure: failed program was:" >&5 | ||
| 6766 | cat conftest.$ac_ext >&5 | ||
| 6767 | rm -rf conftest* | ||
| 6768 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 6769 | fi | ||
| 6770 | rm -f conftest* | ||
| 6771 | LIBS="$ac_save_LIBS" | ||
| 6772 | |||
| 6773 | fi | ||
| 6774 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 6775 | echo "$ac_t""yes" 1>&6 | ||
| 6776 | ac_tr_lib=HAVE_LIB`echo des | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 6777 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 6778 | cat >> confdefs.h <<EOF | ||
| 6779 | #define $ac_tr_lib 1 | ||
| 6780 | EOF | ||
| 6781 | |||
| 6782 | LIBS="-ldes $LIBS" | ||
| 6783 | |||
| 6784 | else | ||
| 6785 | echo "$ac_t""no" 1>&6 | ||
| 6786 | fi | ||
| 6787 | |||
| 6788 | if test "$ac_cv_lib_des_des_cbc_encrypt" != yes; then | ||
| 6789 | echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | ||
| 6790 | echo "configure:6791: checking for des_cbc_encrypt in -ldes425" >&5 | ||
| 6791 | ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | ||
| 6792 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 6793 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6794 | else | ||
| 6795 | ac_save_LIBS="$LIBS" | ||
| 6796 | LIBS="-ldes425 $LIBS" | ||
| 6797 | cat > conftest.$ac_ext <<EOF | ||
| 6798 | #line 6799 "configure" | ||
| 6799 | #include "confdefs.h" | ||
| 6800 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 6801 | /* We use char because int might match the return type of a gcc2 | ||
| 6802 | builtin and then its argument prototype would still apply. */ | ||
| 6803 | char des_cbc_encrypt(); | ||
| 6804 | |||
| 6805 | int main() { | ||
| 6806 | des_cbc_encrypt() | ||
| 6807 | ; return 0; } | ||
| 6808 | EOF | ||
| 6809 | if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6810 | rm -rf conftest* | ||
| 6811 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 6812 | else | ||
| 6813 | echo "configure: failed program was:" >&5 | ||
| 6814 | cat conftest.$ac_ext >&5 | ||
| 6815 | rm -rf conftest* | ||
| 6816 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 6817 | fi | ||
| 6818 | rm -f conftest* | ||
| 6819 | LIBS="$ac_save_LIBS" | ||
| 6820 | |||
| 6821 | fi | ||
| 6822 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 6823 | echo "$ac_t""yes" 1>&6 | ||
| 6824 | ac_tr_lib=HAVE_LIB`echo des425 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 6825 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 6826 | cat >> confdefs.h <<EOF | ||
| 6827 | #define $ac_tr_lib 1 | ||
| 6828 | EOF | ||
| 6829 | |||
| 6830 | LIBS="-ldes425 $LIBS" | ||
| 6831 | |||
| 6832 | else | ||
| 6833 | echo "$ac_t""no" 1>&6 | ||
| 6834 | fi | ||
| 6835 | |||
| 6836 | if test "$ac_cv_lib_des425_des_cbc_encrypt" != yes; then | ||
| 6837 | echo "configure: warning: Cannot find libdes nor libdes425, build may fail" 1>&2 | ||
| 6838 | else | ||
| 6839 | KLIBS="-ldes425" | ||
| 6840 | fi | ||
| 6841 | else | ||
| 6842 | KLIBS="-ldes" | ||
| 6843 | fi | ||
| 6844 | echo $ac_n "checking for dn_expand in -lresolv""... $ac_c" 1>&6 | ||
| 6845 | echo "configure:6846: checking for dn_expand in -lresolv" >&5 | ||
| 6846 | ac_lib_var=`echo resolv'_'dn_expand | sed 'y%./+-%__p_%'` | ||
| 6847 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | ||
| 6848 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6849 | else | ||
| 6850 | ac_save_LIBS="$LIBS" | ||
| 6851 | LIBS="-lresolv $LIBS" | ||
| 6852 | cat > conftest.$ac_ext <<EOF | ||
| 6853 | #line 6854 "configure" | ||
| 6854 | #include "confdefs.h" | ||
| 6855 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
| 6856 | /* We use char because int might match the return type of a gcc2 | ||
| 6857 | builtin and then its argument prototype would still apply. */ | ||
| 6858 | char dn_expand(); | ||
| 6859 | |||
| 6860 | int main() { | ||
| 6861 | dn_expand() | ||
| 6862 | ; return 0; } | ||
| 6863 | EOF | ||
| 6864 | if { (eval echo configure:6865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | ||
| 6865 | rm -rf conftest* | ||
| 6866 | eval "ac_cv_lib_$ac_lib_var=yes" | ||
| 6867 | else | ||
| 6868 | echo "configure: failed program was:" >&5 | ||
| 6869 | cat conftest.$ac_ext >&5 | ||
| 6870 | rm -rf conftest* | ||
| 6871 | eval "ac_cv_lib_$ac_lib_var=no" | ||
| 6872 | fi | ||
| 6873 | rm -f conftest* | ||
| 6874 | LIBS="$ac_save_LIBS" | ||
| 6875 | |||
| 6876 | fi | ||
| 6877 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | ||
| 6878 | echo "$ac_t""yes" 1>&6 | ||
| 6879 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | ||
| 6880 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | ||
| 6881 | cat >> confdefs.h <<EOF | ||
| 6882 | #define $ac_tr_lib 1 | ||
| 6883 | EOF | ||
| 6884 | |||
| 6885 | LIBS="-lresolv $LIBS" | ||
| 6886 | |||
| 6887 | else | ||
| 6888 | echo "$ac_t""no" 1>&6 | ||
| 6889 | fi | ||
| 6890 | |||
| 6891 | KRB4=yes | ||
| 6892 | KRB4_MSG="yes" | ||
| 6893 | cat >> confdefs.h <<\EOF | ||
| 6894 | #define KRB4 1 | ||
| 6895 | EOF | ||
| 6896 | |||
| 6897 | fi | ||
| 6898 | |||
| 6899 | |||
| 6900 | fi | ||
| 6901 | |||
| 6902 | |||
| 6903 | # Check whether user wants AFS support | ||
| 6904 | AFS_MSG="no" | ||
| 6905 | # Check whether --with-afs or --without-afs was given. | ||
| 6906 | if test "${with_afs+set}" = set; then | ||
| 6907 | withval="$with_afs" | ||
| 6908 | |||
| 6909 | if test "x$withval" != "xno" ; then | ||
| 6910 | |||
| 6911 | if test "x$withval" != "xyes" ; then | ||
| 6912 | CPPFLAGS="$CPPFLAGS -I${withval}/include" | ||
| 6913 | LDFLAGS="$LDFLAGS -L${withval}/lib" | ||
| 6914 | fi | ||
| 6915 | |||
| 6916 | if test -z "$KRB4" ; then | ||
| 6917 | echo "configure: warning: AFS requires Kerberos IV support, build may fail" 1>&2 | ||
| 6918 | fi | ||
| 6919 | |||
| 6920 | LIBS="-lkafs $LIBS" | ||
| 6921 | if test ! -z "$AFS_LIBS" ; then | ||
| 6922 | LIBS="$LIBS $AFS_LIBS" | ||
| 6923 | fi | ||
| 6924 | cat >> confdefs.h <<\EOF | ||
| 6925 | #define AFS 1 | ||
| 6926 | EOF | ||
| 6927 | |||
| 6928 | AFS_MSG="yes" | ||
| 6929 | fi | ||
| 6930 | |||
| 6931 | |||
| 6932 | fi | ||
| 6933 | |||
| 6934 | LIBS="$LIBS $KLIBS" | ||
| 6935 | |||
| 6936 | # Looking for programs, paths and files | ||
| 6937 | # Check whether --with-rsh or --without-rsh was given. | ||
| 6938 | if test "${with_rsh+set}" = set; then | ||
| 6939 | withval="$with_rsh" | ||
| 6940 | |||
| 6941 | if test "x$withval" != "$no" ; then | ||
| 6942 | rsh_path=$withval | ||
| 6943 | fi | ||
| 6944 | |||
| 6945 | else | ||
| 6946 | |||
| 6947 | # Extract the first word of "rsh", so it can be a program name with args. | ||
| 6948 | set dummy rsh; ac_word=$2 | ||
| 6949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 6950 | echo "configure:6951: checking for $ac_word" >&5 | ||
| 6951 | if eval "test \"`echo '$''{'ac_cv_path_rsh_path'+set}'`\" = set"; then | ||
| 6952 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 6953 | else | ||
| 6954 | case "$rsh_path" in | ||
| 6955 | /*) | ||
| 6956 | ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a path. | ||
| 6957 | ;; | ||
| 6958 | ?:/*) | ||
| 6959 | ac_cv_path_rsh_path="$rsh_path" # Let the user override the test with a dos path. | ||
| 6960 | ;; | ||
| 6961 | *) | ||
| 6962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 6963 | ac_dummy="$PATH" | ||
| 6964 | for ac_dir in $ac_dummy; do | ||
| 6965 | test -z "$ac_dir" && ac_dir=. | ||
| 6966 | if test -f $ac_dir/$ac_word; then | ||
| 6967 | ac_cv_path_rsh_path="$ac_dir/$ac_word" | ||
| 6968 | break | ||
| 6969 | fi | ||
| 6970 | done | ||
| 6971 | IFS="$ac_save_ifs" | ||
| 6972 | ;; | ||
| 6973 | esac | ||
| 6974 | fi | ||
| 6975 | rsh_path="$ac_cv_path_rsh_path" | ||
| 6976 | if test -n "$rsh_path"; then | ||
| 6977 | echo "$ac_t""$rsh_path" 1>&6 | ||
| 6978 | else | ||
| 6979 | echo "$ac_t""no" 1>&6 | ||
| 6980 | fi | ||
| 6981 | |||
| 6982 | |||
| 6983 | |||
| 6984 | fi | ||
| 6985 | |||
| 6986 | |||
| 6987 | # Check whether --with-xauth or --without-xauth was given. | ||
| 6988 | if test "${with_xauth+set}" = set; then | ||
| 6989 | withval="$with_xauth" | ||
| 6990 | |||
| 6991 | if test "x$withval" != "xno" ; then | ||
| 6992 | xauth_path=$withval | ||
| 6993 | fi | ||
| 6994 | |||
| 6995 | else | ||
| 6996 | |||
| 6997 | # Extract the first word of "xauth", so it can be a program name with args. | ||
| 6998 | set dummy xauth; ac_word=$2 | ||
| 6999 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7000 | echo "configure:7001: checking for $ac_word" >&5 | ||
| 7001 | if eval "test \"`echo '$''{'ac_cv_path_xauth_path'+set}'`\" = set"; then | ||
| 7002 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7003 | else | ||
| 7004 | case "$xauth_path" in | ||
| 7005 | /*) | ||
| 7006 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a path. | ||
| 7007 | ;; | ||
| 7008 | ?:/*) | ||
| 7009 | ac_cv_path_xauth_path="$xauth_path" # Let the user override the test with a dos path. | ||
| 7010 | ;; | ||
| 7011 | *) | ||
| 7012 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7013 | ac_dummy="$PATH:/usr/X/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/openwin/bin" | ||
| 7014 | for ac_dir in $ac_dummy; do | ||
| 7015 | test -z "$ac_dir" && ac_dir=. | ||
| 7016 | if test -f $ac_dir/$ac_word; then | ||
| 7017 | ac_cv_path_xauth_path="$ac_dir/$ac_word" | ||
| 7018 | break | ||
| 7019 | fi | ||
| 7020 | done | ||
| 7021 | IFS="$ac_save_ifs" | ||
| 7022 | ;; | ||
| 7023 | esac | ||
| 7024 | fi | ||
| 7025 | xauth_path="$ac_cv_path_xauth_path" | ||
| 7026 | if test -n "$xauth_path"; then | ||
| 7027 | echo "$ac_t""$xauth_path" 1>&6 | ||
| 7028 | else | ||
| 7029 | echo "$ac_t""no" 1>&6 | ||
| 7030 | fi | ||
| 7031 | |||
| 7032 | if (test ! -z "$xauth_path" && test -x "/usr/openwin/bin/xauth") ; then | ||
| 7033 | xauth_path="/usr/openwin/bin/xauth" | ||
| 7034 | fi | ||
| 7035 | |||
| 7036 | |||
| 7037 | fi | ||
| 7038 | |||
| 7039 | |||
| 7040 | if test -z "$xauth_path" ; then | ||
| 7041 | XAUTH_PATH="undefined" | ||
| 7042 | |||
| 7043 | else | ||
| 7044 | cat >> confdefs.h <<EOF | ||
| 7045 | #define XAUTH_PATH "$xauth_path" | ||
| 7046 | EOF | ||
| 7047 | |||
| 7048 | XAUTH_PATH=$xauth_path | ||
| 7049 | |||
| 7050 | fi | ||
| 7051 | if test ! -z "$rsh_path" ; then | ||
| 7052 | cat >> confdefs.h <<EOF | ||
| 7053 | #define RSH_PATH "$rsh_path" | ||
| 7054 | EOF | ||
| 7055 | |||
| 7056 | fi | ||
| 7057 | |||
| 7058 | # Check for mail directory (last resort if we cannot get it from headers) | ||
| 7059 | if test ! -z "$MAIL" ; then | ||
| 7060 | maildir=`dirname $MAIL` | ||
| 7061 | cat >> confdefs.h <<EOF | ||
| 7062 | #define MAIL_DIRECTORY "$maildir" | ||
| 7063 | EOF | ||
| 7064 | |||
| 7065 | fi | ||
| 7066 | |||
| 7067 | if test -z "$no_dev_ptmx" ; then | ||
| 7068 | |||
| 7069 | ac_safe=`echo ""/dev/ptmx"" | sed 'y%./+-%__p_%'` | ||
| 7070 | echo $ac_n "checking for "/dev/ptmx"""... $ac_c" 1>&6 | ||
| 7071 | echo "configure:7072: checking for "/dev/ptmx"" >&5 | ||
| 7072 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | ||
| 7073 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7074 | else | ||
| 7075 | if test "$cross_compiling" = yes; then | ||
| 7076 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | ||
| 7077 | else | ||
| 7078 | if test -r "/dev/ptmx"; then | ||
| 7079 | eval "ac_cv_file_$ac_safe=yes" | ||
| 7080 | else | ||
| 7081 | eval "ac_cv_file_$ac_safe=no" | ||
| 7082 | fi | ||
| 7083 | fi | ||
| 7084 | fi | ||
| 7085 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | ||
| 7086 | echo "$ac_t""yes" 1>&6 | ||
| 7087 | |||
| 7088 | cat >> confdefs.h <<EOF | ||
| 7089 | #define HAVE_DEV_PTMX 1 | ||
| 7090 | EOF | ||
| 7091 | |||
| 7092 | have_dev_ptmx=1 | ||
| 7093 | |||
| 7094 | |||
| 7095 | else | ||
| 7096 | echo "$ac_t""no" 1>&6 | ||
| 7097 | |||
| 7098 | fi | ||
| 7099 | |||
| 7100 | fi | ||
| 7101 | |||
| 7102 | ac_safe=`echo ""/dev/ptc"" | sed 'y%./+-%__p_%'` | ||
| 7103 | echo $ac_n "checking for "/dev/ptc"""... $ac_c" 1>&6 | ||
| 7104 | echo "configure:7105: checking for "/dev/ptc"" >&5 | ||
| 7105 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | ||
| 7106 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7107 | else | ||
| 7108 | if test "$cross_compiling" = yes; then | ||
| 7109 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | ||
| 7110 | else | ||
| 7111 | if test -r "/dev/ptc"; then | ||
| 7112 | eval "ac_cv_file_$ac_safe=yes" | ||
| 7113 | else | ||
| 7114 | eval "ac_cv_file_$ac_safe=no" | ||
| 7115 | fi | ||
| 7116 | fi | ||
| 7117 | fi | ||
| 7118 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | ||
| 7119 | echo "$ac_t""yes" 1>&6 | ||
| 7120 | |||
| 7121 | cat >> confdefs.h <<EOF | ||
| 7122 | #define HAVE_DEV_PTS_AND_PTC 1 | ||
| 7123 | EOF | ||
| 7124 | |||
| 7125 | have_dev_ptc=1 | ||
| 7126 | |||
| 7127 | |||
| 7128 | else | ||
| 7129 | echo "$ac_t""no" 1>&6 | ||
| 7130 | |||
| 7131 | fi | ||
| 7132 | |||
| 7133 | |||
| 7134 | # Options from here on. Some of these are preset by platform above | ||
| 7135 | |||
| 7136 | # Check for user-specified random device, otherwise check /dev/urandom | ||
| 7137 | # Check whether --with-random or --without-random was given. | ||
| 7138 | if test "${with_random+set}" = set; then | ||
| 7139 | withval="$with_random" | ||
| 7140 | |||
| 7141 | if test "x$withval" != "xno" ; then | ||
| 7142 | RANDOM_POOL="$withval"; | ||
| 7143 | cat >> confdefs.h <<EOF | ||
| 7144 | #define RANDOM_POOL "$RANDOM_POOL" | ||
| 7145 | EOF | ||
| 7146 | |||
| 7147 | fi | ||
| 7148 | |||
| 7149 | else | ||
| 7150 | |||
| 7151 | # Check for random device | ||
| 7152 | |||
| 7153 | ac_safe=`echo ""/dev/urandom"" | sed 'y%./+-%__p_%'` | ||
| 7154 | echo $ac_n "checking for "/dev/urandom"""... $ac_c" 1>&6 | ||
| 7155 | echo "configure:7156: checking for "/dev/urandom"" >&5 | ||
| 7156 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then | ||
| 7157 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7158 | else | ||
| 7159 | if test "$cross_compiling" = yes; then | ||
| 7160 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } | ||
| 7161 | else | ||
| 7162 | if test -r "/dev/urandom"; then | ||
| 7163 | eval "ac_cv_file_$ac_safe=yes" | ||
| 7164 | else | ||
| 7165 | eval "ac_cv_file_$ac_safe=no" | ||
| 7166 | fi | ||
| 7167 | fi | ||
| 7168 | fi | ||
| 7169 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then | ||
| 7170 | echo "$ac_t""yes" 1>&6 | ||
| 7171 | |||
| 7172 | RANDOM_POOL="/dev/urandom"; | ||
| 7173 | |||
| 7174 | cat >> confdefs.h <<EOF | ||
| 7175 | #define RANDOM_POOL "$RANDOM_POOL" | ||
| 7176 | EOF | ||
| 7177 | |||
| 7178 | |||
| 7179 | |||
| 7180 | else | ||
| 7181 | echo "$ac_t""no" 1>&6 | ||
| 7182 | |||
| 7183 | fi | ||
| 7184 | |||
| 7185 | |||
| 7186 | |||
| 7187 | fi | ||
| 7188 | |||
| 7189 | |||
| 7190 | # Check for PRNGD/EGD pool file | ||
| 7191 | # Check whether --with-prngd-port or --without-prngd-port was given. | ||
| 7192 | if test "${with_prngd_port+set}" = set; then | ||
| 7193 | withval="$with_prngd_port" | ||
| 7194 | |||
| 7195 | if test ! -z "$withval" -a "x$withval" != "xno" ; then | ||
| 7196 | PRNGD_PORT="$withval" | ||
| 7197 | cat >> confdefs.h <<EOF | ||
| 7198 | #define PRNGD_PORT $PRNGD_PORT | ||
| 7199 | EOF | ||
| 7200 | |||
| 7201 | fi | ||
| 7202 | |||
| 7203 | |||
| 7204 | fi | ||
| 7205 | |||
| 7206 | |||
| 7207 | # Check for PRNGD/EGD pool file | ||
| 7208 | # Check whether --with-prngd-socket or --without-prngd-socket was given. | ||
| 7209 | if test "${with_prngd_socket+set}" = set; then | ||
| 7210 | withval="$with_prngd_socket" | ||
| 7211 | |||
| 7212 | if test "x$withval" != "xno" ; then | ||
| 7213 | PRNGD_SOCKET="$withval" | ||
| 7214 | cat >> confdefs.h <<EOF | ||
| 7215 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
| 7216 | EOF | ||
| 7217 | |||
| 7218 | fi | ||
| 7219 | |||
| 7220 | else | ||
| 7221 | |||
| 7222 | # Check for existing socket only if we don't have a random device already | ||
| 7223 | if test -z "$RANDOM_POOL" ; then | ||
| 7224 | echo $ac_n "checking for PRNGD/EGD socket""... $ac_c" 1>&6 | ||
| 7225 | echo "configure:7226: checking for PRNGD/EGD socket" >&5 | ||
| 7226 | # Insert other locations here | ||
| 7227 | for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do | ||
| 7228 | if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then | ||
| 7229 | PRNGD_SOCKET="$sock" | ||
| 7230 | cat >> confdefs.h <<EOF | ||
| 7231 | #define PRNGD_SOCKET "$PRNGD_SOCKET" | ||
| 7232 | EOF | ||
| 7233 | |||
| 7234 | break; | ||
| 7235 | fi | ||
| 7236 | done | ||
| 7237 | if test ! -z "$PRNGD_SOCKET" ; then | ||
| 7238 | echo "$ac_t""$PRNGD_SOCKET" 1>&6 | ||
| 7239 | else | ||
| 7240 | echo "$ac_t""not found" 1>&6 | ||
| 7241 | fi | ||
| 7242 | fi | ||
| 7243 | |||
| 7244 | |||
| 7245 | fi | ||
| 7246 | |||
| 7247 | |||
| 7248 | |||
| 7249 | # detect pathnames for entropy gathering commands, if we need them | ||
| 7250 | INSTALL_SSH_PRNG_CMDS="" | ||
| 7251 | rm -f prng_commands | ||
| 7252 | if (test -z "$RANDOM_POOL" && test -z "$PRNGD") ; then | ||
| 7253 | # Use these commands to collect entropy | ||
| 7254 | |||
| 7255 | # Extract the first word of "ls", so it can be a program name with args. | ||
| 7256 | set dummy ls; ac_word=$2 | ||
| 7257 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7258 | echo "configure:7259: checking for $ac_word" >&5 | ||
| 7259 | if eval "test \"`echo '$''{'ac_cv_path_PROG_LS'+set}'`\" = set"; then | ||
| 7260 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7261 | else | ||
| 7262 | case "$PROG_LS" in | ||
| 7263 | /*) | ||
| 7264 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a path. | ||
| 7265 | ;; | ||
| 7266 | ?:/*) | ||
| 7267 | ac_cv_path_PROG_LS="$PROG_LS" # Let the user override the test with a dos path. | ||
| 7268 | ;; | ||
| 7269 | *) | ||
| 7270 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7271 | ac_dummy="$PATH" | ||
| 7272 | for ac_dir in $ac_dummy; do | ||
| 7273 | test -z "$ac_dir" && ac_dir=. | ||
| 7274 | if test -f $ac_dir/$ac_word; then | ||
| 7275 | ac_cv_path_PROG_LS="$ac_dir/$ac_word" | ||
| 7276 | break | ||
| 7277 | fi | ||
| 7278 | done | ||
| 7279 | IFS="$ac_save_ifs" | ||
| 7280 | ;; | ||
| 7281 | esac | ||
| 7282 | fi | ||
| 7283 | PROG_LS="$ac_cv_path_PROG_LS" | ||
| 7284 | if test -n "$PROG_LS"; then | ||
| 7285 | echo "$ac_t""$PROG_LS" 1>&6 | ||
| 7286 | else | ||
| 7287 | echo "$ac_t""no" 1>&6 | ||
| 7288 | fi | ||
| 7289 | |||
| 7290 | if test -z "$PROG_LS" ; then | ||
| 7291 | PROG_LS="undef" | ||
| 7292 | fi | ||
| 7293 | |||
| 7294 | |||
| 7295 | |||
| 7296 | # Extract the first word of "netstat", so it can be a program name with args. | ||
| 7297 | set dummy netstat; ac_word=$2 | ||
| 7298 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7299 | echo "configure:7300: checking for $ac_word" >&5 | ||
| 7300 | if eval "test \"`echo '$''{'ac_cv_path_PROG_NETSTAT'+set}'`\" = set"; then | ||
| 7301 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7302 | else | ||
| 7303 | case "$PROG_NETSTAT" in | ||
| 7304 | /*) | ||
| 7305 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a path. | ||
| 7306 | ;; | ||
| 7307 | ?:/*) | ||
| 7308 | ac_cv_path_PROG_NETSTAT="$PROG_NETSTAT" # Let the user override the test with a dos path. | ||
| 7309 | ;; | ||
| 7310 | *) | ||
| 7311 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7312 | ac_dummy="$PATH" | ||
| 7313 | for ac_dir in $ac_dummy; do | ||
| 7314 | test -z "$ac_dir" && ac_dir=. | ||
| 7315 | if test -f $ac_dir/$ac_word; then | ||
| 7316 | ac_cv_path_PROG_NETSTAT="$ac_dir/$ac_word" | ||
| 7317 | break | ||
| 7318 | fi | ||
| 7319 | done | ||
| 7320 | IFS="$ac_save_ifs" | ||
| 7321 | ;; | ||
| 7322 | esac | ||
| 7323 | fi | ||
| 7324 | PROG_NETSTAT="$ac_cv_path_PROG_NETSTAT" | ||
| 7325 | if test -n "$PROG_NETSTAT"; then | ||
| 7326 | echo "$ac_t""$PROG_NETSTAT" 1>&6 | ||
| 7327 | else | ||
| 7328 | echo "$ac_t""no" 1>&6 | ||
| 7329 | fi | ||
| 7330 | |||
| 7331 | if test -z "$PROG_NETSTAT" ; then | ||
| 7332 | PROG_NETSTAT="undef" | ||
| 7333 | fi | ||
| 7334 | |||
| 7335 | |||
| 7336 | |||
| 7337 | # Extract the first word of "arp", so it can be a program name with args. | ||
| 7338 | set dummy arp; ac_word=$2 | ||
| 7339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7340 | echo "configure:7341: checking for $ac_word" >&5 | ||
| 7341 | if eval "test \"`echo '$''{'ac_cv_path_PROG_ARP'+set}'`\" = set"; then | ||
| 7342 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7343 | else | ||
| 7344 | case "$PROG_ARP" in | ||
| 7345 | /*) | ||
| 7346 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a path. | ||
| 7347 | ;; | ||
| 7348 | ?:/*) | ||
| 7349 | ac_cv_path_PROG_ARP="$PROG_ARP" # Let the user override the test with a dos path. | ||
| 7350 | ;; | ||
| 7351 | *) | ||
| 7352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7353 | ac_dummy="$PATH" | ||
| 7354 | for ac_dir in $ac_dummy; do | ||
| 7355 | test -z "$ac_dir" && ac_dir=. | ||
| 7356 | if test -f $ac_dir/$ac_word; then | ||
| 7357 | ac_cv_path_PROG_ARP="$ac_dir/$ac_word" | ||
| 7358 | break | ||
| 7359 | fi | ||
| 7360 | done | ||
| 7361 | IFS="$ac_save_ifs" | ||
| 7362 | ;; | ||
| 7363 | esac | ||
| 7364 | fi | ||
| 7365 | PROG_ARP="$ac_cv_path_PROG_ARP" | ||
| 7366 | if test -n "$PROG_ARP"; then | ||
| 7367 | echo "$ac_t""$PROG_ARP" 1>&6 | ||
| 7368 | else | ||
| 7369 | echo "$ac_t""no" 1>&6 | ||
| 7370 | fi | ||
| 7371 | |||
| 7372 | if test -z "$PROG_ARP" ; then | ||
| 7373 | PROG_ARP="undef" | ||
| 7374 | fi | ||
| 7375 | |||
| 7376 | |||
| 7377 | |||
| 7378 | # Extract the first word of "ifconfig", so it can be a program name with args. | ||
| 7379 | set dummy ifconfig; ac_word=$2 | ||
| 7380 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7381 | echo "configure:7382: checking for $ac_word" >&5 | ||
| 7382 | if eval "test \"`echo '$''{'ac_cv_path_PROG_IFCONFIG'+set}'`\" = set"; then | ||
| 7383 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7384 | else | ||
| 7385 | case "$PROG_IFCONFIG" in | ||
| 7386 | /*) | ||
| 7387 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a path. | ||
| 7388 | ;; | ||
| 7389 | ?:/*) | ||
| 7390 | ac_cv_path_PROG_IFCONFIG="$PROG_IFCONFIG" # Let the user override the test with a dos path. | ||
| 7391 | ;; | ||
| 7392 | *) | ||
| 7393 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7394 | ac_dummy="$PATH" | ||
| 7395 | for ac_dir in $ac_dummy; do | ||
| 7396 | test -z "$ac_dir" && ac_dir=. | ||
| 7397 | if test -f $ac_dir/$ac_word; then | ||
| 7398 | ac_cv_path_PROG_IFCONFIG="$ac_dir/$ac_word" | ||
| 7399 | break | ||
| 7400 | fi | ||
| 7401 | done | ||
| 7402 | IFS="$ac_save_ifs" | ||
| 7403 | ;; | ||
| 7404 | esac | ||
| 7405 | fi | ||
| 7406 | PROG_IFCONFIG="$ac_cv_path_PROG_IFCONFIG" | ||
| 7407 | if test -n "$PROG_IFCONFIG"; then | ||
| 7408 | echo "$ac_t""$PROG_IFCONFIG" 1>&6 | ||
| 7409 | else | ||
| 7410 | echo "$ac_t""no" 1>&6 | ||
| 7411 | fi | ||
| 7412 | |||
| 7413 | if test -z "$PROG_IFCONFIG" ; then | ||
| 7414 | PROG_IFCONFIG="undef" | ||
| 7415 | fi | ||
| 7416 | |||
| 7417 | |||
| 7418 | |||
| 7419 | # Extract the first word of "ps", so it can be a program name with args. | ||
| 7420 | set dummy ps; ac_word=$2 | ||
| 7421 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7422 | echo "configure:7423: checking for $ac_word" >&5 | ||
| 7423 | if eval "test \"`echo '$''{'ac_cv_path_PROG_PS'+set}'`\" = set"; then | ||
| 7424 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7425 | else | ||
| 7426 | case "$PROG_PS" in | ||
| 7427 | /*) | ||
| 7428 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a path. | ||
| 7429 | ;; | ||
| 7430 | ?:/*) | ||
| 7431 | ac_cv_path_PROG_PS="$PROG_PS" # Let the user override the test with a dos path. | ||
| 7432 | ;; | ||
| 7433 | *) | ||
| 7434 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7435 | ac_dummy="$PATH" | ||
| 7436 | for ac_dir in $ac_dummy; do | ||
| 7437 | test -z "$ac_dir" && ac_dir=. | ||
| 7438 | if test -f $ac_dir/$ac_word; then | ||
| 7439 | ac_cv_path_PROG_PS="$ac_dir/$ac_word" | ||
| 7440 | break | ||
| 7441 | fi | ||
| 7442 | done | ||
| 7443 | IFS="$ac_save_ifs" | ||
| 7444 | ;; | ||
| 7445 | esac | ||
| 7446 | fi | ||
| 7447 | PROG_PS="$ac_cv_path_PROG_PS" | ||
| 7448 | if test -n "$PROG_PS"; then | ||
| 7449 | echo "$ac_t""$PROG_PS" 1>&6 | ||
| 7450 | else | ||
| 7451 | echo "$ac_t""no" 1>&6 | ||
| 7452 | fi | ||
| 7453 | |||
| 7454 | if test -z "$PROG_PS" ; then | ||
| 7455 | PROG_PS="undef" | ||
| 7456 | fi | ||
| 7457 | |||
| 7458 | |||
| 7459 | |||
| 7460 | # Extract the first word of "w", so it can be a program name with args. | ||
| 7461 | set dummy w; ac_word=$2 | ||
| 7462 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7463 | echo "configure:7464: checking for $ac_word" >&5 | ||
| 7464 | if eval "test \"`echo '$''{'ac_cv_path_PROG_W'+set}'`\" = set"; then | ||
| 7465 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7466 | else | ||
| 7467 | case "$PROG_W" in | ||
| 7468 | /*) | ||
| 7469 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a path. | ||
| 7470 | ;; | ||
| 7471 | ?:/*) | ||
| 7472 | ac_cv_path_PROG_W="$PROG_W" # Let the user override the test with a dos path. | ||
| 7473 | ;; | ||
| 7474 | *) | ||
| 7475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7476 | ac_dummy="$PATH" | ||
| 7477 | for ac_dir in $ac_dummy; do | ||
| 7478 | test -z "$ac_dir" && ac_dir=. | ||
| 7479 | if test -f $ac_dir/$ac_word; then | ||
| 7480 | ac_cv_path_PROG_W="$ac_dir/$ac_word" | ||
| 7481 | break | ||
| 7482 | fi | ||
| 7483 | done | ||
| 7484 | IFS="$ac_save_ifs" | ||
| 7485 | ;; | ||
| 7486 | esac | ||
| 7487 | fi | ||
| 7488 | PROG_W="$ac_cv_path_PROG_W" | ||
| 7489 | if test -n "$PROG_W"; then | ||
| 7490 | echo "$ac_t""$PROG_W" 1>&6 | ||
| 7491 | else | ||
| 7492 | echo "$ac_t""no" 1>&6 | ||
| 7493 | fi | ||
| 7494 | |||
| 7495 | if test -z "$PROG_W" ; then | ||
| 7496 | PROG_W="undef" | ||
| 7497 | fi | ||
| 7498 | |||
| 7499 | |||
| 7500 | |||
| 7501 | # Extract the first word of "who", so it can be a program name with args. | ||
| 7502 | set dummy who; ac_word=$2 | ||
| 7503 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7504 | echo "configure:7505: checking for $ac_word" >&5 | ||
| 7505 | if eval "test \"`echo '$''{'ac_cv_path_PROG_WHO'+set}'`\" = set"; then | ||
| 7506 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7507 | else | ||
| 7508 | case "$PROG_WHO" in | ||
| 7509 | /*) | ||
| 7510 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a path. | ||
| 7511 | ;; | ||
| 7512 | ?:/*) | ||
| 7513 | ac_cv_path_PROG_WHO="$PROG_WHO" # Let the user override the test with a dos path. | ||
| 7514 | ;; | ||
| 7515 | *) | ||
| 7516 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7517 | ac_dummy="$PATH" | ||
| 7518 | for ac_dir in $ac_dummy; do | ||
| 7519 | test -z "$ac_dir" && ac_dir=. | ||
| 7520 | if test -f $ac_dir/$ac_word; then | ||
| 7521 | ac_cv_path_PROG_WHO="$ac_dir/$ac_word" | ||
| 7522 | break | ||
| 7523 | fi | ||
| 7524 | done | ||
| 7525 | IFS="$ac_save_ifs" | ||
| 7526 | ;; | ||
| 7527 | esac | ||
| 7528 | fi | ||
| 7529 | PROG_WHO="$ac_cv_path_PROG_WHO" | ||
| 7530 | if test -n "$PROG_WHO"; then | ||
| 7531 | echo "$ac_t""$PROG_WHO" 1>&6 | ||
| 7532 | else | ||
| 7533 | echo "$ac_t""no" 1>&6 | ||
| 7534 | fi | ||
| 7535 | |||
| 7536 | if test -z "$PROG_WHO" ; then | ||
| 7537 | PROG_WHO="undef" | ||
| 7538 | fi | ||
| 7539 | |||
| 7540 | |||
| 7541 | |||
| 7542 | # Extract the first word of "last", so it can be a program name with args. | ||
| 7543 | set dummy last; ac_word=$2 | ||
| 7544 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7545 | echo "configure:7546: checking for $ac_word" >&5 | ||
| 7546 | if eval "test \"`echo '$''{'ac_cv_path_PROG_LAST'+set}'`\" = set"; then | ||
| 7547 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7548 | else | ||
| 7549 | case "$PROG_LAST" in | ||
| 7550 | /*) | ||
| 7551 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a path. | ||
| 7552 | ;; | ||
| 7553 | ?:/*) | ||
| 7554 | ac_cv_path_PROG_LAST="$PROG_LAST" # Let the user override the test with a dos path. | ||
| 7555 | ;; | ||
| 7556 | *) | ||
| 7557 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7558 | ac_dummy="$PATH" | ||
| 7559 | for ac_dir in $ac_dummy; do | ||
| 7560 | test -z "$ac_dir" && ac_dir=. | ||
| 7561 | if test -f $ac_dir/$ac_word; then | ||
| 7562 | ac_cv_path_PROG_LAST="$ac_dir/$ac_word" | ||
| 7563 | break | ||
| 7564 | fi | ||
| 7565 | done | ||
| 7566 | IFS="$ac_save_ifs" | ||
| 7567 | ;; | ||
| 7568 | esac | ||
| 7569 | fi | ||
| 7570 | PROG_LAST="$ac_cv_path_PROG_LAST" | ||
| 7571 | if test -n "$PROG_LAST"; then | ||
| 7572 | echo "$ac_t""$PROG_LAST" 1>&6 | ||
| 7573 | else | ||
| 7574 | echo "$ac_t""no" 1>&6 | ||
| 7575 | fi | ||
| 7576 | |||
| 7577 | if test -z "$PROG_LAST" ; then | ||
| 7578 | PROG_LAST="undef" | ||
| 7579 | fi | ||
| 7580 | |||
| 7581 | |||
| 7582 | |||
| 7583 | # Extract the first word of "lastlog", so it can be a program name with args. | ||
| 7584 | set dummy lastlog; ac_word=$2 | ||
| 7585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7586 | echo "configure:7587: checking for $ac_word" >&5 | ||
| 7587 | if eval "test \"`echo '$''{'ac_cv_path_PROG_LASTLOG'+set}'`\" = set"; then | ||
| 7588 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7589 | else | ||
| 7590 | case "$PROG_LASTLOG" in | ||
| 7591 | /*) | ||
| 7592 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a path. | ||
| 7593 | ;; | ||
| 7594 | ?:/*) | ||
| 7595 | ac_cv_path_PROG_LASTLOG="$PROG_LASTLOG" # Let the user override the test with a dos path. | ||
| 7596 | ;; | ||
| 7597 | *) | ||
| 7598 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7599 | ac_dummy="$PATH" | ||
| 7600 | for ac_dir in $ac_dummy; do | ||
| 7601 | test -z "$ac_dir" && ac_dir=. | ||
| 7602 | if test -f $ac_dir/$ac_word; then | ||
| 7603 | ac_cv_path_PROG_LASTLOG="$ac_dir/$ac_word" | ||
| 7604 | break | ||
| 7605 | fi | ||
| 7606 | done | ||
| 7607 | IFS="$ac_save_ifs" | ||
| 7608 | ;; | ||
| 7609 | esac | ||
| 7610 | fi | ||
| 7611 | PROG_LASTLOG="$ac_cv_path_PROG_LASTLOG" | ||
| 7612 | if test -n "$PROG_LASTLOG"; then | ||
| 7613 | echo "$ac_t""$PROG_LASTLOG" 1>&6 | ||
| 7614 | else | ||
| 7615 | echo "$ac_t""no" 1>&6 | ||
| 7616 | fi | ||
| 7617 | |||
| 7618 | if test -z "$PROG_LASTLOG" ; then | ||
| 7619 | PROG_LASTLOG="undef" | ||
| 7620 | fi | ||
| 7621 | |||
| 7622 | |||
| 7623 | |||
| 7624 | # Extract the first word of "df", so it can be a program name with args. | ||
| 7625 | set dummy df; ac_word=$2 | ||
| 7626 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7627 | echo "configure:7628: checking for $ac_word" >&5 | ||
| 7628 | if eval "test \"`echo '$''{'ac_cv_path_PROG_DF'+set}'`\" = set"; then | ||
| 7629 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7630 | else | ||
| 7631 | case "$PROG_DF" in | ||
| 7632 | /*) | ||
| 7633 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a path. | ||
| 7634 | ;; | ||
| 7635 | ?:/*) | ||
| 7636 | ac_cv_path_PROG_DF="$PROG_DF" # Let the user override the test with a dos path. | ||
| 7637 | ;; | ||
| 7638 | *) | ||
| 7639 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7640 | ac_dummy="$PATH" | ||
| 7641 | for ac_dir in $ac_dummy; do | ||
| 7642 | test -z "$ac_dir" && ac_dir=. | ||
| 7643 | if test -f $ac_dir/$ac_word; then | ||
| 7644 | ac_cv_path_PROG_DF="$ac_dir/$ac_word" | ||
| 7645 | break | ||
| 7646 | fi | ||
| 7647 | done | ||
| 7648 | IFS="$ac_save_ifs" | ||
| 7649 | ;; | ||
| 7650 | esac | ||
| 7651 | fi | ||
| 7652 | PROG_DF="$ac_cv_path_PROG_DF" | ||
| 7653 | if test -n "$PROG_DF"; then | ||
| 7654 | echo "$ac_t""$PROG_DF" 1>&6 | ||
| 7655 | else | ||
| 7656 | echo "$ac_t""no" 1>&6 | ||
| 7657 | fi | ||
| 7658 | |||
| 7659 | if test -z "$PROG_DF" ; then | ||
| 7660 | PROG_DF="undef" | ||
| 7661 | fi | ||
| 7662 | |||
| 7663 | |||
| 7664 | |||
| 7665 | # Extract the first word of "vmstat", so it can be a program name with args. | ||
| 7666 | set dummy vmstat; ac_word=$2 | ||
| 7667 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7668 | echo "configure:7669: checking for $ac_word" >&5 | ||
| 7669 | if eval "test \"`echo '$''{'ac_cv_path_PROG_VMSTAT'+set}'`\" = set"; then | ||
| 7670 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7671 | else | ||
| 7672 | case "$PROG_VMSTAT" in | ||
| 7673 | /*) | ||
| 7674 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a path. | ||
| 7675 | ;; | ||
| 7676 | ?:/*) | ||
| 7677 | ac_cv_path_PROG_VMSTAT="$PROG_VMSTAT" # Let the user override the test with a dos path. | ||
| 7678 | ;; | ||
| 7679 | *) | ||
| 7680 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7681 | ac_dummy="$PATH" | ||
| 7682 | for ac_dir in $ac_dummy; do | ||
| 7683 | test -z "$ac_dir" && ac_dir=. | ||
| 7684 | if test -f $ac_dir/$ac_word; then | ||
| 7685 | ac_cv_path_PROG_VMSTAT="$ac_dir/$ac_word" | ||
| 7686 | break | ||
| 7687 | fi | ||
| 7688 | done | ||
| 7689 | IFS="$ac_save_ifs" | ||
| 7690 | ;; | ||
| 7691 | esac | ||
| 7692 | fi | ||
| 7693 | PROG_VMSTAT="$ac_cv_path_PROG_VMSTAT" | ||
| 7694 | if test -n "$PROG_VMSTAT"; then | ||
| 7695 | echo "$ac_t""$PROG_VMSTAT" 1>&6 | ||
| 7696 | else | ||
| 7697 | echo "$ac_t""no" 1>&6 | ||
| 7698 | fi | ||
| 7699 | |||
| 7700 | if test -z "$PROG_VMSTAT" ; then | ||
| 7701 | PROG_VMSTAT="undef" | ||
| 7702 | fi | ||
| 7703 | |||
| 7704 | |||
| 7705 | |||
| 7706 | # Extract the first word of "uptime", so it can be a program name with args. | ||
| 7707 | set dummy uptime; ac_word=$2 | ||
| 7708 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7709 | echo "configure:7710: checking for $ac_word" >&5 | ||
| 7710 | if eval "test \"`echo '$''{'ac_cv_path_PROG_UPTIME'+set}'`\" = set"; then | ||
| 7711 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7712 | else | ||
| 7713 | case "$PROG_UPTIME" in | ||
| 7714 | /*) | ||
| 7715 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a path. | ||
| 7716 | ;; | ||
| 7717 | ?:/*) | ||
| 7718 | ac_cv_path_PROG_UPTIME="$PROG_UPTIME" # Let the user override the test with a dos path. | ||
| 7719 | ;; | ||
| 7720 | *) | ||
| 7721 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7722 | ac_dummy="$PATH" | ||
| 7723 | for ac_dir in $ac_dummy; do | ||
| 7724 | test -z "$ac_dir" && ac_dir=. | ||
| 7725 | if test -f $ac_dir/$ac_word; then | ||
| 7726 | ac_cv_path_PROG_UPTIME="$ac_dir/$ac_word" | ||
| 7727 | break | ||
| 7728 | fi | ||
| 7729 | done | ||
| 7730 | IFS="$ac_save_ifs" | ||
| 7731 | ;; | ||
| 7732 | esac | ||
| 7733 | fi | ||
| 7734 | PROG_UPTIME="$ac_cv_path_PROG_UPTIME" | ||
| 7735 | if test -n "$PROG_UPTIME"; then | ||
| 7736 | echo "$ac_t""$PROG_UPTIME" 1>&6 | ||
| 7737 | else | ||
| 7738 | echo "$ac_t""no" 1>&6 | ||
| 7739 | fi | ||
| 7740 | |||
| 7741 | if test -z "$PROG_UPTIME" ; then | ||
| 7742 | PROG_UPTIME="undef" | ||
| 7743 | fi | ||
| 7744 | |||
| 7745 | |||
| 7746 | |||
| 7747 | # Extract the first word of "ipcs", so it can be a program name with args. | ||
| 7748 | set dummy ipcs; ac_word=$2 | ||
| 7749 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7750 | echo "configure:7751: checking for $ac_word" >&5 | ||
| 7751 | if eval "test \"`echo '$''{'ac_cv_path_PROG_IPCS'+set}'`\" = set"; then | ||
| 7752 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7753 | else | ||
| 7754 | case "$PROG_IPCS" in | ||
| 7755 | /*) | ||
| 7756 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a path. | ||
| 7757 | ;; | ||
| 7758 | ?:/*) | ||
| 7759 | ac_cv_path_PROG_IPCS="$PROG_IPCS" # Let the user override the test with a dos path. | ||
| 7760 | ;; | ||
| 7761 | *) | ||
| 7762 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7763 | ac_dummy="$PATH" | ||
| 7764 | for ac_dir in $ac_dummy; do | ||
| 7765 | test -z "$ac_dir" && ac_dir=. | ||
| 7766 | if test -f $ac_dir/$ac_word; then | ||
| 7767 | ac_cv_path_PROG_IPCS="$ac_dir/$ac_word" | ||
| 7768 | break | ||
| 7769 | fi | ||
| 7770 | done | ||
| 7771 | IFS="$ac_save_ifs" | ||
| 7772 | ;; | ||
| 7773 | esac | ||
| 7774 | fi | ||
| 7775 | PROG_IPCS="$ac_cv_path_PROG_IPCS" | ||
| 7776 | if test -n "$PROG_IPCS"; then | ||
| 7777 | echo "$ac_t""$PROG_IPCS" 1>&6 | ||
| 7778 | else | ||
| 7779 | echo "$ac_t""no" 1>&6 | ||
| 7780 | fi | ||
| 7781 | |||
| 7782 | if test -z "$PROG_IPCS" ; then | ||
| 7783 | PROG_IPCS="undef" | ||
| 7784 | fi | ||
| 7785 | |||
| 7786 | |||
| 7787 | |||
| 7788 | # Extract the first word of "tail", so it can be a program name with args. | ||
| 7789 | set dummy tail; ac_word=$2 | ||
| 7790 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7791 | echo "configure:7792: checking for $ac_word" >&5 | ||
| 7792 | if eval "test \"`echo '$''{'ac_cv_path_PROG_TAIL'+set}'`\" = set"; then | ||
| 7793 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7794 | else | ||
| 7795 | case "$PROG_TAIL" in | ||
| 7796 | /*) | ||
| 7797 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a path. | ||
| 7798 | ;; | ||
| 7799 | ?:/*) | ||
| 7800 | ac_cv_path_PROG_TAIL="$PROG_TAIL" # Let the user override the test with a dos path. | ||
| 7801 | ;; | ||
| 7802 | *) | ||
| 7803 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7804 | ac_dummy="$PATH" | ||
| 7805 | for ac_dir in $ac_dummy; do | ||
| 7806 | test -z "$ac_dir" && ac_dir=. | ||
| 7807 | if test -f $ac_dir/$ac_word; then | ||
| 7808 | ac_cv_path_PROG_TAIL="$ac_dir/$ac_word" | ||
| 7809 | break | ||
| 7810 | fi | ||
| 7811 | done | ||
| 7812 | IFS="$ac_save_ifs" | ||
| 7813 | ;; | ||
| 7814 | esac | ||
| 7815 | fi | ||
| 7816 | PROG_TAIL="$ac_cv_path_PROG_TAIL" | ||
| 7817 | if test -n "$PROG_TAIL"; then | ||
| 7818 | echo "$ac_t""$PROG_TAIL" 1>&6 | ||
| 7819 | else | ||
| 7820 | echo "$ac_t""no" 1>&6 | ||
| 7821 | fi | ||
| 7822 | |||
| 7823 | if test -z "$PROG_TAIL" ; then | ||
| 7824 | PROG_TAIL="undef" | ||
| 7825 | fi | ||
| 7826 | |||
| 7827 | |||
| 7828 | |||
| 7829 | INSTALL_SSH_PRNG_CMDS="yes" | ||
| 7830 | fi | ||
| 7831 | |||
| 7832 | |||
| 7833 | |||
| 7834 | # Check whether --with-catman or --without-catman was given. | ||
| 7835 | if test "${with_catman+set}" = set; then | ||
| 7836 | withval="$with_catman" | ||
| 7837 | |||
| 7838 | case "$withval" in | ||
| 7839 | man|cat|doc) | ||
| 7840 | MANTYPE=$withval | ||
| 7841 | ;; | ||
| 7842 | *) | ||
| 7843 | { echo "configure: error: invalid man type: $withval" 1>&2; exit 1; } | ||
| 7844 | ;; | ||
| 7845 | esac | ||
| 7846 | |||
| 7847 | |||
| 7848 | fi | ||
| 7849 | |||
| 7850 | if test -z "$MANTYPE"; then | ||
| 7851 | for ac_prog in nroff awf | ||
| 7852 | do | ||
| 7853 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
| 7854 | set dummy $ac_prog; ac_word=$2 | ||
| 7855 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | ||
| 7856 | echo "configure:7857: checking for $ac_word" >&5 | ||
| 7857 | if eval "test \"`echo '$''{'ac_cv_path_NROFF'+set}'`\" = set"; then | ||
| 7858 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 7859 | else | ||
| 7860 | case "$NROFF" in | ||
| 7861 | /*) | ||
| 7862 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. | ||
| 7863 | ;; | ||
| 7864 | ?:/*) | ||
| 7865 | ac_cv_path_NROFF="$NROFF" # Let the user override the test with a dos path. | ||
| 7866 | ;; | ||
| 7867 | *) | ||
| 7868 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | ||
| 7869 | ac_dummy="/usr/bin:/usr/ucb" | ||
| 7870 | for ac_dir in $ac_dummy; do | ||
| 7871 | test -z "$ac_dir" && ac_dir=. | ||
| 7872 | if test -f $ac_dir/$ac_word; then | ||
| 7873 | ac_cv_path_NROFF="$ac_dir/$ac_word" | ||
| 7874 | break | ||
| 7875 | fi | ||
| 7876 | done | ||
| 7877 | IFS="$ac_save_ifs" | ||
| 7878 | ;; | ||
| 7879 | esac | ||
| 7880 | fi | ||
| 7881 | NROFF="$ac_cv_path_NROFF" | ||
| 7882 | if test -n "$NROFF"; then | ||
| 7883 | echo "$ac_t""$NROFF" 1>&6 | ||
| 7884 | else | ||
| 7885 | echo "$ac_t""no" 1>&6 | ||
| 7886 | fi | ||
| 7887 | |||
| 7888 | test -n "$NROFF" && break | ||
| 7889 | done | ||
| 7890 | test -n "$NROFF" || NROFF="/bin/false" | ||
| 7891 | |||
| 7892 | if ${NROFF} -mdoc ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
| 7893 | MANTYPE=doc | ||
| 7894 | elif ${NROFF} -man ${srcdir}/ssh.1 >/dev/null 2>&1; then | ||
| 7895 | MANTYPE=man | ||
| 7896 | else | ||
| 7897 | MANTYPE=cat | ||
| 7898 | fi | ||
| 7899 | fi | ||
| 7900 | |||
| 7901 | if test "$MANTYPE" = "doc"; then | ||
| 7902 | mansubdir=man; | ||
| 7903 | else | ||
| 7904 | mansubdir=$MANTYPE; | ||
| 7905 | fi | ||
| 7906 | |||
| 7907 | |||
| 7908 | # Check whether to enable MD5 passwords | ||
| 7909 | MD5_MSG="no" | ||
| 7910 | # Check whether --with-md5-passwords or --without-md5-passwords was given. | ||
| 7911 | if test "${with_md5_passwords+set}" = set; then | ||
| 7912 | withval="$with_md5_passwords" | ||
| 7913 | |||
| 7914 | if test "x$withval" != "xno" ; then | ||
| 7915 | cat >> confdefs.h <<\EOF | ||
| 7916 | #define HAVE_MD5_PASSWORDS 1 | ||
| 7917 | EOF | ||
| 7918 | |||
| 7919 | MD5_MSG="yes" | ||
| 7920 | fi | ||
| 7921 | |||
| 7922 | |||
| 7923 | fi | ||
| 7924 | |||
| 7925 | |||
| 7926 | # Whether to disable shadow password support | ||
| 7927 | # Check whether --with-shadow or --without-shadow was given. | ||
| 7928 | if test "${with_shadow+set}" = set; then | ||
| 7929 | withval="$with_shadow" | ||
| 7930 | |||
| 7931 | if test "x$withval" = "xno" ; then | ||
| 7932 | cat >> confdefs.h <<\EOF | ||
| 7933 | #define DISABLE_SHADOW 1 | ||
| 7934 | EOF | ||
| 7935 | |||
| 7936 | disable_shadow=yes | ||
| 7937 | fi | ||
| 7938 | |||
| 7939 | |||
| 7940 | fi | ||
| 7941 | |||
| 7942 | |||
| 7943 | if test -z "$disable_shadow" ; then | ||
| 7944 | echo $ac_n "checking if the systems has expire shadow information""... $ac_c" 1>&6 | ||
| 7945 | echo "configure:7946: checking if the systems has expire shadow information" >&5 | ||
| 7946 | cat > conftest.$ac_ext <<EOF | ||
| 7947 | #line 7948 "configure" | ||
| 7948 | #include "confdefs.h" | ||
| 7949 | |||
| 7950 | #include <sys/types.h> | ||
| 7951 | #include <shadow.h> | ||
| 7952 | struct spwd sp; | ||
| 7953 | |||
| 7954 | int main() { | ||
| 7955 | sp.sp_expire = sp.sp_lstchg = sp.sp_inact = 0; | ||
| 7956 | ; return 0; } | ||
| 7957 | EOF | ||
| 7958 | if { (eval echo configure:7959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 7959 | rm -rf conftest* | ||
| 7960 | sp_expire_available=yes | ||
| 7961 | else | ||
| 7962 | echo "configure: failed program was:" >&5 | ||
| 7963 | cat conftest.$ac_ext >&5 | ||
| 7964 | rm -rf conftest* | ||
| 7965 | |||
| 7966 | |||
| 7967 | fi | ||
| 7968 | rm -f conftest* | ||
| 7969 | |||
| 7970 | if test "x$sp_expire_available" = "xyes" ; then | ||
| 7971 | echo "$ac_t""yes" 1>&6 | ||
| 7972 | cat >> confdefs.h <<\EOF | ||
| 7973 | #define HAS_SHADOW_EXPIRE 1 | ||
| 7974 | EOF | ||
| 7975 | |||
| 7976 | else | ||
| 7977 | echo "$ac_t""no" 1>&6 | ||
| 7978 | fi | ||
| 7979 | fi | ||
| 7980 | |||
| 7981 | # Use ip address instead of hostname in $DISPLAY | ||
| 7982 | if test ! -z "$IPADDR_IN_DISPLAY" ; then | ||
| 7983 | DISPLAY_HACK_MSG="yes" | ||
| 7984 | cat >> confdefs.h <<\EOF | ||
| 7985 | #define IPADDR_IN_DISPLAY 1 | ||
| 7986 | EOF | ||
| 7987 | |||
| 7988 | else | ||
| 7989 | DISPLAY_HACK_MSG="no" | ||
| 7990 | # Check whether --with-ipaddr-display or --without-ipaddr-display was given. | ||
| 7991 | if test "${with_ipaddr_display+set}" = set; then | ||
| 7992 | withval="$with_ipaddr_display" | ||
| 7993 | |||
| 7994 | if test "x$withval" != "xno" ; then | ||
| 7995 | cat >> confdefs.h <<\EOF | ||
| 7996 | #define IPADDR_IN_DISPLAY 1 | ||
| 7997 | EOF | ||
| 7998 | |||
| 7999 | DISPLAY_HACK_MSG="yes" | ||
| 8000 | fi | ||
| 8001 | |||
| 8002 | |||
| 8003 | fi | ||
| 8004 | |||
| 8005 | fi | ||
| 8006 | |||
| 8007 | # Whether to mess with the default path | ||
| 8008 | SERVER_PATH_MSG="(default)" | ||
| 8009 | # Check whether --with-default-path or --without-default-path was given. | ||
| 8010 | if test "${with_default_path+set}" = set; then | ||
| 8011 | withval="$with_default_path" | ||
| 8012 | |||
| 8013 | if test "x$withval" != "xno" ; then | ||
| 8014 | user_path="$withval" | ||
| 8015 | SERVER_PATH_MSG="$withval" | ||
| 8016 | fi | ||
| 8017 | |||
| 8018 | else | ||
| 8019 | |||
| 8020 | if test "$cross_compiling" = yes; then | ||
| 8021 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
| 8022 | |||
| 8023 | else | ||
| 8024 | cat > conftest.$ac_ext <<EOF | ||
| 8025 | #line 8026 "configure" | ||
| 8026 | #include "confdefs.h" | ||
| 8027 | |||
| 8028 | /* find out what STDPATH is */ | ||
| 8029 | #include <stdio.h> | ||
| 8030 | #ifdef HAVE_PATHS_H | ||
| 8031 | # include <paths.h> | ||
| 8032 | #endif | ||
| 8033 | #ifndef _PATH_STDPATH | ||
| 8034 | # define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin" | ||
| 8035 | #endif | ||
| 8036 | #include <sys/types.h> | ||
| 8037 | #include <sys/stat.h> | ||
| 8038 | #include <fcntl.h> | ||
| 8039 | #define DATA "conftest.stdpath" | ||
| 8040 | |||
| 8041 | main() | ||
| 8042 | { | ||
| 8043 | FILE *fd; | ||
| 8044 | int rc; | ||
| 8045 | |||
| 8046 | fd = fopen(DATA,"w"); | ||
| 8047 | if(fd == NULL) | ||
| 8048 | exit(1); | ||
| 8049 | |||
| 8050 | if ((rc = fprintf(fd,"%s", _PATH_STDPATH)) < 0) | ||
| 8051 | exit(1); | ||
| 8052 | |||
| 8053 | exit(0); | ||
| 8054 | } | ||
| 8055 | |||
| 8056 | EOF | ||
| 8057 | if { (eval echo configure:8058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | ||
| 8058 | then | ||
| 8059 | user_path=`cat conftest.stdpath` | ||
| 8060 | else | ||
| 8061 | echo "configure: failed program was:" >&5 | ||
| 8062 | cat conftest.$ac_ext >&5 | ||
| 8063 | rm -fr conftest* | ||
| 8064 | user_path="/usr/bin:/bin:/usr/sbin:/sbin" | ||
| 8065 | fi | ||
| 8066 | rm -fr conftest* | ||
| 8067 | fi | ||
| 8068 | |||
| 8069 | # make sure $bindir is in USER_PATH so scp will work | ||
| 8070 | t_bindir=`eval echo ${bindir}` | ||
| 8071 | case $t_bindir in | ||
| 8072 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$prefix~"` ;; | ||
| 8073 | esac | ||
| 8074 | case $t_bindir in | ||
| 8075 | NONE/*) t_bindir=`echo $t_bindir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
| 8076 | esac | ||
| 8077 | echo $user_path | grep ":$t_bindir" > /dev/null 2>&1 | ||
| 8078 | if test $? -ne 0 ; then | ||
| 8079 | echo $user_path | grep "^$t_bindir" > /dev/null 2>&1 | ||
| 8080 | if test $? -ne 0 ; then | ||
| 8081 | user_path=$user_path:$t_bindir | ||
| 8082 | echo "$ac_t""Adding $t_bindir to USER_PATH so scp will work" 1>&6 | ||
| 8083 | fi | ||
| 8084 | fi | ||
| 8085 | |||
| 8086 | |||
| 8087 | fi | ||
| 8088 | |||
| 8089 | cat >> confdefs.h <<EOF | ||
| 8090 | #define USER_PATH "$user_path" | ||
| 8091 | EOF | ||
| 8092 | |||
| 8093 | |||
| 8094 | |||
| 8095 | # Whether to force IPv4 by default (needed on broken glibc Linux) | ||
| 8096 | IPV4_HACK_MSG="no" | ||
| 8097 | # Check whether --with-ipv4-default or --without-ipv4-default was given. | ||
| 8098 | if test "${with_ipv4_default+set}" = set; then | ||
| 8099 | withval="$with_ipv4_default" | ||
| 8100 | |||
| 8101 | if test "x$withval" != "xno" ; then | ||
| 8102 | cat >> confdefs.h <<\EOF | ||
| 8103 | #define IPV4_DEFAULT 1 | ||
| 8104 | EOF | ||
| 8105 | |||
| 8106 | IPV4_HACK_MSG="yes" | ||
| 8107 | fi | ||
| 8108 | |||
| 8109 | |||
| 8110 | fi | ||
| 8111 | |||
| 8112 | |||
| 8113 | echo $ac_n "checking if we need to convert IPv4 in IPv6-mapped addresses""... $ac_c" 1>&6 | ||
| 8114 | echo "configure:8115: checking if we need to convert IPv4 in IPv6-mapped addresses" >&5 | ||
| 8115 | IPV4_IN6_HACK_MSG="no" | ||
| 8116 | # Check whether --with-4in6 or --without-4in6 was given. | ||
| 8117 | if test "${with_4in6+set}" = set; then | ||
| 8118 | withval="$with_4in6" | ||
| 8119 | |||
| 8120 | if test "x$withval" != "xno" ; then | ||
| 8121 | echo "$ac_t""yes" 1>&6 | ||
| 8122 | cat >> confdefs.h <<\EOF | ||
| 8123 | #define IPV4_IN_IPV6 1 | ||
| 8124 | EOF | ||
| 8125 | |||
| 8126 | IPV4_IN6_HACK_MSG="yes" | ||
| 8127 | else | ||
| 8128 | echo "$ac_t""no" 1>&6 | ||
| 8129 | fi | ||
| 8130 | |||
| 8131 | else | ||
| 8132 | |||
| 8133 | if test "x$inet6_default_4in6" = "xyes"; then | ||
| 8134 | echo "$ac_t""yes (default)" 1>&6 | ||
| 8135 | cat >> confdefs.h <<\EOF | ||
| 8136 | #define IPV4_IN_IPV6 1 | ||
| 8137 | EOF | ||
| 8138 | |||
| 8139 | IPV4_IN6_HACK_MSG="yes" | ||
| 8140 | else | ||
| 8141 | echo "$ac_t""no (default)" 1>&6 | ||
| 8142 | fi | ||
| 8143 | |||
| 8144 | |||
| 8145 | fi | ||
| 8146 | |||
| 8147 | |||
| 8148 | # Whether to enable BSD auth support | ||
| 8149 | # Check whether --with-bsd-auth or --without-bsd-auth was given. | ||
| 8150 | if test "${with_bsd_auth+set}" = set; then | ||
| 8151 | withval="$with_bsd_auth" | ||
| 8152 | |||
| 8153 | if test "x$withval" != "xno" ; then | ||
| 8154 | cat >> confdefs.h <<\EOF | ||
| 8155 | #define BSD_AUTH 1 | ||
| 8156 | EOF | ||
| 8157 | |||
| 8158 | bsd_auth=yes | ||
| 8159 | fi | ||
| 8160 | |||
| 8161 | |||
| 8162 | fi | ||
| 8163 | |||
| 8164 | |||
| 8165 | echo $ac_n "checking whether to install ssh as suid root""... $ac_c" 1>&6 | ||
| 8166 | echo "configure:8167: checking whether to install ssh as suid root" >&5 | ||
| 8167 | # Check whether --enable-suid-ssh or --disable-suid-ssh was given. | ||
| 8168 | if test "${enable_suid_ssh+set}" = set; then | ||
| 8169 | enableval="$enable_suid_ssh" | ||
| 8170 | case "$enableval" in | ||
| 8171 | no) | ||
| 8172 | echo "$ac_t""no" 1>&6 | ||
| 8173 | SSHMODE=0711 | ||
| 8174 | ;; | ||
| 8175 | *) echo "$ac_t""yes" 1>&6 | ||
| 8176 | SSHMODE=04711 | ||
| 8177 | ;; | ||
| 8178 | esac | ||
| 8179 | else | ||
| 8180 | echo "$ac_t""yes" 1>&6 | ||
| 8181 | SSHMODE=04711 | ||
| 8182 | |||
| 8183 | fi | ||
| 8184 | |||
| 8185 | |||
| 8186 | |||
| 8187 | |||
| 8188 | # Where to place sshd.pid | ||
| 8189 | piddir=/var/run | ||
| 8190 | # Check whether --with-pid-dir or --without-pid-dir was given. | ||
| 8191 | if test "${with_pid_dir+set}" = set; then | ||
| 8192 | withval="$with_pid_dir" | ||
| 8193 | |||
| 8194 | if test "x$withval" != "xno" ; then | ||
| 8195 | piddir=$withval | ||
| 8196 | fi | ||
| 8197 | |||
| 8198 | |||
| 8199 | fi | ||
| 8200 | |||
| 8201 | |||
| 8202 | # make sure the directory exists | ||
| 8203 | if test ! -d $piddir ; then | ||
| 8204 | piddir=`eval echo ${sysconfdir}` | ||
| 8205 | case $piddir in | ||
| 8206 | NONE/*) piddir=`echo $piddir | sed "s~NONE~$ac_default_prefix~"` ;; | ||
| 8207 | esac | ||
| 8208 | fi | ||
| 8209 | |||
| 8210 | cat >> confdefs.h <<EOF | ||
| 8211 | #define _PATH_SSH_PIDDIR "$piddir" | ||
| 8212 | EOF | ||
| 8213 | |||
| 8214 | |||
| 8215 | |||
| 8216 | # Check whether --enable-lastlog or --disable-lastlog was given. | ||
| 8217 | if test "${enable_lastlog+set}" = set; then | ||
| 8218 | enableval="$enable_lastlog" | ||
| 8219 | cat >> confdefs.h <<\EOF | ||
| 8220 | #define DISABLE_LASTLOG 1 | ||
| 8221 | EOF | ||
| 8222 | |||
| 8223 | |||
| 8224 | fi | ||
| 8225 | |||
| 8226 | # Check whether --enable-utmp or --disable-utmp was given. | ||
| 8227 | if test "${enable_utmp+set}" = set; then | ||
| 8228 | enableval="$enable_utmp" | ||
| 8229 | cat >> confdefs.h <<\EOF | ||
| 8230 | #define DISABLE_UTMP 1 | ||
| 8231 | EOF | ||
| 8232 | |||
| 8233 | |||
| 8234 | fi | ||
| 8235 | |||
| 8236 | # Check whether --enable-utmpx or --disable-utmpx was given. | ||
| 8237 | if test "${enable_utmpx+set}" = set; then | ||
| 8238 | enableval="$enable_utmpx" | ||
| 8239 | cat >> confdefs.h <<\EOF | ||
| 8240 | #define DISABLE_UTMPX 1 | ||
| 8241 | EOF | ||
| 8242 | |||
| 8243 | |||
| 8244 | fi | ||
| 8245 | |||
| 8246 | # Check whether --enable-wtmp or --disable-wtmp was given. | ||
| 8247 | if test "${enable_wtmp+set}" = set; then | ||
| 8248 | enableval="$enable_wtmp" | ||
| 8249 | cat >> confdefs.h <<\EOF | ||
| 8250 | #define DISABLE_WTMP 1 | ||
| 8251 | EOF | ||
| 8252 | |||
| 8253 | |||
| 8254 | fi | ||
| 8255 | |||
| 8256 | # Check whether --enable-wtmpx or --disable-wtmpx was given. | ||
| 8257 | if test "${enable_wtmpx+set}" = set; then | ||
| 8258 | enableval="$enable_wtmpx" | ||
| 8259 | cat >> confdefs.h <<\EOF | ||
| 8260 | #define DISABLE_WTMPX 1 | ||
| 8261 | EOF | ||
| 8262 | |||
| 8263 | |||
| 8264 | fi | ||
| 8265 | |||
| 8266 | # Check whether --enable-libutil or --disable-libutil was given. | ||
| 8267 | if test "${enable_libutil+set}" = set; then | ||
| 8268 | enableval="$enable_libutil" | ||
| 8269 | cat >> confdefs.h <<\EOF | ||
| 8270 | #define DISABLE_LOGIN 1 | ||
| 8271 | EOF | ||
| 8272 | |||
| 8273 | |||
| 8274 | fi | ||
| 8275 | |||
| 8276 | # Check whether --enable-pututline or --disable-pututline was given. | ||
| 8277 | if test "${enable_pututline+set}" = set; then | ||
| 8278 | enableval="$enable_pututline" | ||
| 8279 | cat >> confdefs.h <<\EOF | ||
| 8280 | #define DISABLE_PUTUTLINE 1 | ||
| 8281 | EOF | ||
| 8282 | |||
| 8283 | |||
| 8284 | fi | ||
| 8285 | |||
| 8286 | # Check whether --enable-pututxline or --disable-pututxline was given. | ||
| 8287 | if test "${enable_pututxline+set}" = set; then | ||
| 8288 | enableval="$enable_pututxline" | ||
| 8289 | cat >> confdefs.h <<\EOF | ||
| 8290 | #define DISABLE_PUTUTXLINE 1 | ||
| 8291 | EOF | ||
| 8292 | |||
| 8293 | |||
| 8294 | fi | ||
| 8295 | |||
| 8296 | # Check whether --with-lastlog or --without-lastlog was given. | ||
| 8297 | if test "${with_lastlog+set}" = set; then | ||
| 8298 | withval="$with_lastlog" | ||
| 8299 | |||
| 8300 | if test "x$withval" = "xno" ; then | ||
| 8301 | cat >> confdefs.h <<\EOF | ||
| 8302 | #define DISABLE_LASTLOG 1 | ||
| 8303 | EOF | ||
| 8304 | |||
| 8305 | else | ||
| 8306 | conf_lastlog_location=$withval | ||
| 8307 | fi | ||
| 8308 | |||
| 8309 | |||
| 8310 | fi | ||
| 8311 | |||
| 8312 | |||
| 8313 | |||
| 8314 | echo $ac_n "checking if your system defines LASTLOG_FILE""... $ac_c" 1>&6 | ||
| 8315 | echo "configure:8316: checking if your system defines LASTLOG_FILE" >&5 | ||
| 8316 | cat > conftest.$ac_ext <<EOF | ||
| 8317 | #line 8318 "configure" | ||
| 8318 | #include "confdefs.h" | ||
| 8319 | |||
| 8320 | #include <sys/types.h> | ||
| 8321 | #include <utmp.h> | ||
| 8322 | #ifdef HAVE_LASTLOG_H | ||
| 8323 | # include <lastlog.h> | ||
| 8324 | #endif | ||
| 8325 | #ifdef HAVE_PATHS_H | ||
| 8326 | # include <paths.h> | ||
| 8327 | #endif | ||
| 8328 | |||
| 8329 | int main() { | ||
| 8330 | char *lastlog = LASTLOG_FILE; | ||
| 8331 | ; return 0; } | ||
| 8332 | EOF | ||
| 8333 | if { (eval echo configure:8334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8334 | rm -rf conftest* | ||
| 8335 | echo "$ac_t""yes" 1>&6 | ||
| 8336 | else | ||
| 8337 | echo "configure: failed program was:" >&5 | ||
| 8338 | cat conftest.$ac_ext >&5 | ||
| 8339 | rm -rf conftest* | ||
| 8340 | |||
| 8341 | echo "$ac_t""no" 1>&6 | ||
| 8342 | echo $ac_n "checking if your system defines _PATH_LASTLOG""... $ac_c" 1>&6 | ||
| 8343 | echo "configure:8344: checking if your system defines _PATH_LASTLOG" >&5 | ||
| 8344 | cat > conftest.$ac_ext <<EOF | ||
| 8345 | #line 8346 "configure" | ||
| 8346 | #include "confdefs.h" | ||
| 8347 | |||
| 8348 | #include <sys/types.h> | ||
| 8349 | #include <utmp.h> | ||
| 8350 | #ifdef HAVE_LASTLOG_H | ||
| 8351 | # include <lastlog.h> | ||
| 8352 | #endif | ||
| 8353 | #ifdef HAVE_PATHS_H | ||
| 8354 | # include <paths.h> | ||
| 8355 | #endif | ||
| 8356 | |||
| 8357 | int main() { | ||
| 8358 | char *lastlog = _PATH_LASTLOG; | ||
| 8359 | ; return 0; } | ||
| 8360 | EOF | ||
| 8361 | if { (eval echo configure:8362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8362 | rm -rf conftest* | ||
| 8363 | echo "$ac_t""yes" 1>&6 | ||
| 8364 | else | ||
| 8365 | echo "configure: failed program was:" >&5 | ||
| 8366 | cat conftest.$ac_ext >&5 | ||
| 8367 | rm -rf conftest* | ||
| 8368 | |||
| 8369 | echo "$ac_t""no" 1>&6 | ||
| 8370 | system_lastlog_path=no | ||
| 8371 | |||
| 8372 | fi | ||
| 8373 | rm -f conftest* | ||
| 8374 | |||
| 8375 | |||
| 8376 | fi | ||
| 8377 | rm -f conftest* | ||
| 8378 | |||
| 8379 | if test -z "$conf_lastlog_location"; then | ||
| 8380 | if test x"$system_lastlog_path" = x"no" ; then | ||
| 8381 | for f in /var/log/lastlog /usr/adm/lastlog /var/adm/lastlog /etc/security/lastlog ; do | ||
| 8382 | if (test -d "$f" || test -f "$f") ; then | ||
| 8383 | conf_lastlog_location=$f | ||
| 8384 | fi | ||
| 8385 | done | ||
| 8386 | if test -z "$conf_lastlog_location"; then | ||
| 8387 | echo "configure: warning: ** Cannot find lastlog **" 1>&2 | ||
| 8388 | fi | ||
| 8389 | fi | ||
| 8390 | fi | ||
| 8391 | |||
| 8392 | if test -n "$conf_lastlog_location"; then | ||
| 8393 | cat >> confdefs.h <<EOF | ||
| 8394 | #define CONF_LASTLOG_FILE "$conf_lastlog_location" | ||
| 8395 | EOF | ||
| 8396 | |||
| 8397 | fi | ||
| 8398 | |||
| 8399 | echo $ac_n "checking if your system defines UTMP_FILE""... $ac_c" 1>&6 | ||
| 8400 | echo "configure:8401: checking if your system defines UTMP_FILE" >&5 | ||
| 8401 | cat > conftest.$ac_ext <<EOF | ||
| 8402 | #line 8403 "configure" | ||
| 8403 | #include "confdefs.h" | ||
| 8404 | |||
| 8405 | #include <sys/types.h> | ||
| 8406 | #include <utmp.h> | ||
| 8407 | #ifdef HAVE_PATHS_H | ||
| 8408 | # include <paths.h> | ||
| 8409 | #endif | ||
| 8410 | |||
| 8411 | int main() { | ||
| 8412 | char *utmp = UTMP_FILE; | ||
| 8413 | ; return 0; } | ||
| 8414 | EOF | ||
| 8415 | if { (eval echo configure:8416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8416 | rm -rf conftest* | ||
| 8417 | echo "$ac_t""yes" 1>&6 | ||
| 8418 | else | ||
| 8419 | echo "configure: failed program was:" >&5 | ||
| 8420 | cat conftest.$ac_ext >&5 | ||
| 8421 | rm -rf conftest* | ||
| 8422 | echo "$ac_t""no" 1>&6 | ||
| 8423 | system_utmp_path=no | ||
| 8424 | |||
| 8425 | fi | ||
| 8426 | rm -f conftest* | ||
| 8427 | if test -z "$conf_utmp_location"; then | ||
| 8428 | if test x"$system_utmp_path" = x"no" ; then | ||
| 8429 | for f in /etc/utmp /usr/adm/utmp /var/run/utmp; do | ||
| 8430 | if test -f $f ; then | ||
| 8431 | conf_utmp_location=$f | ||
| 8432 | fi | ||
| 8433 | done | ||
| 8434 | if test -z "$conf_utmp_location"; then | ||
| 8435 | cat >> confdefs.h <<\EOF | ||
| 8436 | #define DISABLE_UTMP 1 | ||
| 8437 | EOF | ||
| 8438 | |||
| 8439 | fi | ||
| 8440 | fi | ||
| 8441 | fi | ||
| 8442 | if test -n "$conf_utmp_location"; then | ||
| 8443 | cat >> confdefs.h <<EOF | ||
| 8444 | #define CONF_UTMP_FILE "$conf_utmp_location" | ||
| 8445 | EOF | ||
| 8446 | |||
| 8447 | fi | ||
| 8448 | |||
| 8449 | echo $ac_n "checking if your system defines WTMP_FILE""... $ac_c" 1>&6 | ||
| 8450 | echo "configure:8451: checking if your system defines WTMP_FILE" >&5 | ||
| 8451 | cat > conftest.$ac_ext <<EOF | ||
| 8452 | #line 8453 "configure" | ||
| 8453 | #include "confdefs.h" | ||
| 8454 | |||
| 8455 | #include <sys/types.h> | ||
| 8456 | #include <utmp.h> | ||
| 8457 | #ifdef HAVE_PATHS_H | ||
| 8458 | # include <paths.h> | ||
| 8459 | #endif | ||
| 8460 | |||
| 8461 | int main() { | ||
| 8462 | char *wtmp = WTMP_FILE; | ||
| 8463 | ; return 0; } | ||
| 8464 | EOF | ||
| 8465 | if { (eval echo configure:8466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8466 | rm -rf conftest* | ||
| 8467 | echo "$ac_t""yes" 1>&6 | ||
| 8468 | else | ||
| 8469 | echo "configure: failed program was:" >&5 | ||
| 8470 | cat conftest.$ac_ext >&5 | ||
| 8471 | rm -rf conftest* | ||
| 8472 | echo "$ac_t""no" 1>&6 | ||
| 8473 | system_wtmp_path=no | ||
| 8474 | |||
| 8475 | fi | ||
| 8476 | rm -f conftest* | ||
| 8477 | if test -z "$conf_wtmp_location"; then | ||
| 8478 | if test x"$system_wtmp_path" = x"no" ; then | ||
| 8479 | for f in /usr/adm/wtmp /var/log/wtmp; do | ||
| 8480 | if test -f $f ; then | ||
| 8481 | conf_wtmp_location=$f | ||
| 8482 | fi | ||
| 8483 | done | ||
| 8484 | if test -z "$conf_wtmp_location"; then | ||
| 8485 | cat >> confdefs.h <<\EOF | ||
| 8486 | #define DISABLE_WTMP 1 | ||
| 8487 | EOF | ||
| 8488 | |||
| 8489 | fi | ||
| 8490 | fi | ||
| 8491 | fi | ||
| 8492 | if test -n "$conf_wtmp_location"; then | ||
| 8493 | cat >> confdefs.h <<EOF | ||
| 8494 | #define CONF_WTMP_FILE "$conf_wtmp_location" | ||
| 8495 | EOF | ||
| 8496 | |||
| 8497 | fi | ||
| 8498 | |||
| 8499 | |||
| 8500 | echo $ac_n "checking if your system defines UTMPX_FILE""... $ac_c" 1>&6 | ||
| 8501 | echo "configure:8502: checking if your system defines UTMPX_FILE" >&5 | ||
| 8502 | cat > conftest.$ac_ext <<EOF | ||
| 8503 | #line 8504 "configure" | ||
| 8504 | #include "confdefs.h" | ||
| 8505 | |||
| 8506 | #include <sys/types.h> | ||
| 8507 | #include <utmp.h> | ||
| 8508 | #ifdef HAVE_UTMPX_H | ||
| 8509 | #include <utmpx.h> | ||
| 8510 | #endif | ||
| 8511 | #ifdef HAVE_PATHS_H | ||
| 8512 | # include <paths.h> | ||
| 8513 | #endif | ||
| 8514 | |||
| 8515 | int main() { | ||
| 8516 | char *utmpx = UTMPX_FILE; | ||
| 8517 | ; return 0; } | ||
| 8518 | EOF | ||
| 8519 | if { (eval echo configure:8520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8520 | rm -rf conftest* | ||
| 8521 | echo "$ac_t""yes" 1>&6 | ||
| 8522 | else | ||
| 8523 | echo "configure: failed program was:" >&5 | ||
| 8524 | cat conftest.$ac_ext >&5 | ||
| 8525 | rm -rf conftest* | ||
| 8526 | echo "$ac_t""no" 1>&6 | ||
| 8527 | system_utmpx_path=no | ||
| 8528 | |||
| 8529 | fi | ||
| 8530 | rm -f conftest* | ||
| 8531 | if test -z "$conf_utmpx_location"; then | ||
| 8532 | if test x"$system_utmpx_path" = x"no" ; then | ||
| 8533 | cat >> confdefs.h <<\EOF | ||
| 8534 | #define DISABLE_UTMPX 1 | ||
| 8535 | EOF | ||
| 8536 | |||
| 8537 | fi | ||
| 8538 | else | ||
| 8539 | cat >> confdefs.h <<EOF | ||
| 8540 | #define CONF_UTMPX_FILE "$conf_utmpx_location" | ||
| 8541 | EOF | ||
| 8542 | |||
| 8543 | fi | ||
| 8544 | |||
| 8545 | echo $ac_n "checking if your system defines WTMPX_FILE""... $ac_c" 1>&6 | ||
| 8546 | echo "configure:8547: checking if your system defines WTMPX_FILE" >&5 | ||
| 8547 | cat > conftest.$ac_ext <<EOF | ||
| 8548 | #line 8549 "configure" | ||
| 8549 | #include "confdefs.h" | ||
| 8550 | |||
| 8551 | #include <sys/types.h> | ||
| 8552 | #include <utmp.h> | ||
| 8553 | #ifdef HAVE_UTMPX_H | ||
| 8554 | #include <utmpx.h> | ||
| 8555 | #endif | ||
| 8556 | #ifdef HAVE_PATHS_H | ||
| 8557 | # include <paths.h> | ||
| 8558 | #endif | ||
| 8559 | |||
| 8560 | int main() { | ||
| 8561 | char *wtmpx = WTMPX_FILE; | ||
| 8562 | ; return 0; } | ||
| 8563 | EOF | ||
| 8564 | if { (eval echo configure:8565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8565 | rm -rf conftest* | ||
| 8566 | echo "$ac_t""yes" 1>&6 | ||
| 8567 | else | ||
| 8568 | echo "configure: failed program was:" >&5 | ||
| 8569 | cat conftest.$ac_ext >&5 | ||
| 8570 | rm -rf conftest* | ||
| 8571 | echo "$ac_t""no" 1>&6 | ||
| 8572 | system_wtmpx_path=no | ||
| 8573 | |||
| 8574 | fi | ||
| 8575 | rm -f conftest* | ||
| 8576 | if test -z "$conf_wtmpx_location"; then | ||
| 8577 | if test x"$system_wtmpx_path" = x"no" ; then | ||
| 8578 | cat >> confdefs.h <<\EOF | ||
| 8579 | #define DISABLE_WTMPX 1 | ||
| 8580 | EOF | ||
| 8581 | |||
| 8582 | fi | ||
| 8583 | else | ||
| 8584 | cat >> confdefs.h <<EOF | ||
| 8585 | #define CONF_WTMPX_FILE "$conf_wtmpx_location" | ||
| 8586 | EOF | ||
| 8587 | |||
| 8588 | fi | ||
| 8589 | |||
| 8590 | |||
| 8591 | # Change default command timeout for builtin PRNG | ||
| 8592 | entropy_timeout=200 | ||
| 8593 | # Check whether --with-entropy-timeout or --without-entropy-timeout was given. | ||
| 8594 | if test "${with_entropy_timeout+set}" = set; then | ||
| 8595 | withval="$with_entropy_timeout" | ||
| 8596 | |||
| 8597 | if test "x$withval" != "xno" ; then | ||
| 8598 | entropy_timeout=$withval | ||
| 8599 | fi | ||
| 8600 | |||
| 8601 | |||
| 8602 | fi | ||
| 8603 | |||
| 8604 | cat >> confdefs.h <<EOF | ||
| 8605 | #define ENTROPY_TIMEOUT_MSEC $entropy_timeout | ||
| 8606 | EOF | ||
| 8607 | |||
| 8608 | |||
| 8609 | |||
| 8610 | if test ! -z "$blibpath" ; then | ||
| 8611 | LDFLAGS="$LDFLAGS -blibpath:$blibpath" | ||
| 8612 | echo "configure: warning: Please check and edit -blibpath in LDFLAGS in Makefile" 1>&2 | ||
| 8613 | fi | ||
| 8614 | |||
| 8615 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | ||
| 8616 | echo "configure:8617: checking for Cygwin environment" >&5 | ||
| 8617 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then | ||
| 8618 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 8619 | else | ||
| 8620 | cat > conftest.$ac_ext <<EOF | ||
| 8621 | #line 8622 "configure" | ||
| 8622 | #include "confdefs.h" | ||
| 8623 | |||
| 8624 | int main() { | ||
| 8625 | |||
| 8626 | #ifndef __CYGWIN__ | ||
| 8627 | #define __CYGWIN__ __CYGWIN32__ | ||
| 8628 | #endif | ||
| 8629 | return __CYGWIN__; | ||
| 8630 | ; return 0; } | ||
| 8631 | EOF | ||
| 8632 | if { (eval echo configure:8633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8633 | rm -rf conftest* | ||
| 8634 | ac_cv_cygwin=yes | ||
| 8635 | else | ||
| 8636 | echo "configure: failed program was:" >&5 | ||
| 8637 | cat conftest.$ac_ext >&5 | ||
| 8638 | rm -rf conftest* | ||
| 8639 | ac_cv_cygwin=no | ||
| 8640 | fi | ||
| 8641 | rm -f conftest* | ||
| 8642 | rm -f conftest* | ||
| 8643 | fi | ||
| 8644 | |||
| 8645 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | ||
| 8646 | CYGWIN= | ||
| 8647 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | ||
| 8648 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | ||
| 8649 | echo "configure:8650: checking for mingw32 environment" >&5 | ||
| 8650 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then | ||
| 8651 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 8652 | else | ||
| 8653 | cat > conftest.$ac_ext <<EOF | ||
| 8654 | #line 8655 "configure" | ||
| 8655 | #include "confdefs.h" | ||
| 8656 | |||
| 8657 | int main() { | ||
| 8658 | return __MINGW32__; | ||
| 8659 | ; return 0; } | ||
| 8660 | EOF | ||
| 8661 | if { (eval echo configure:8662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | ||
| 8662 | rm -rf conftest* | ||
| 8663 | ac_cv_mingw32=yes | ||
| 8664 | else | ||
| 8665 | echo "configure: failed program was:" >&5 | ||
| 8666 | cat conftest.$ac_ext >&5 | ||
| 8667 | rm -rf conftest* | ||
| 8668 | ac_cv_mingw32=no | ||
| 8669 | fi | ||
| 8670 | rm -f conftest* | ||
| 8671 | rm -f conftest* | ||
| 8672 | fi | ||
| 8673 | |||
| 8674 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | ||
| 8675 | MINGW32= | ||
| 8676 | test "$ac_cv_mingw32" = yes && MINGW32=yes | ||
| 8677 | |||
| 8678 | |||
| 8679 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | ||
| 8680 | echo "configure:8681: checking for executable suffix" >&5 | ||
| 8681 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then | ||
| 8682 | echo $ac_n "(cached) $ac_c" 1>&6 | ||
| 8683 | else | ||
| 8684 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | ||
| 8685 | ac_cv_exeext=.exe | ||
| 8686 | else | ||
| 8687 | rm -f conftest* | ||
| 8688 | echo 'int main () { return 0; }' > conftest.$ac_ext | ||
| 8689 | ac_cv_exeext= | ||
| 8690 | if { (eval echo configure:8691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then | ||
| 8691 | for file in conftest.*; do | ||
| 8692 | case $file in | ||
| 8693 | *.c | *.o | *.obj) ;; | ||
| 8694 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | ||
| 8695 | esac | ||
| 8696 | done | ||
| 8697 | else | ||
| 8698 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | ||
| 8699 | fi | ||
| 8700 | rm -f conftest* | ||
| 8701 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | ||
| 8702 | fi | ||
| 8703 | fi | ||
| 8704 | |||
| 8705 | EXEEXT="" | ||
| 8706 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | ||
| 8707 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | ||
| 8708 | ac_exeext=$EXEEXT | ||
| 8709 | |||
| 8710 | |||
| 8711 | trap '' 1 2 15 | ||
| 8712 | cat > confcache <<\EOF | ||
| 8713 | # This file is a shell script that caches the results of configure | ||
| 8714 | # tests run on this system so they can be shared between configure | ||
| 8715 | # scripts and configure runs. It is not useful on other systems. | ||
| 8716 | # If it contains results you don't want to keep, you may remove or edit it. | ||
| 8717 | # | ||
| 8718 | # By default, configure uses ./config.cache as the cache file, | ||
| 8719 | # creating it if it does not exist already. You can give configure | ||
| 8720 | # the --cache-file=FILE option to use a different cache file; that is | ||
| 8721 | # what configure does when it calls configure scripts in | ||
| 8722 | # subdirectories, so they share the cache. | ||
| 8723 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | ||
| 8724 | # config.status only pays attention to the cache file if you give it the | ||
| 8725 | # --recheck option to rerun configure. | ||
| 8726 | # | ||
| 8727 | EOF | ||
| 8728 | # The following way of writing the cache mishandles newlines in values, | ||
| 8729 | # but we know of no workaround that is simple, portable, and efficient. | ||
| 8730 | # So, don't put newlines in cache variables' values. | ||
| 8731 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
| 8732 | # and sets the high bit in the cache file unless we assign to the vars. | ||
| 8733 | (set) 2>&1 | | ||
| 8734 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
| 8735 | *ac_space=\ *) | ||
| 8736 | # `set' does not quote correctly, so add quotes (double-quote substitution | ||
| 8737 | # turns \\\\ into \\, and sed turns \\ into \). | ||
| 8738 | sed -n \ | ||
| 8739 | -e "s/'/'\\\\''/g" \ | ||
| 8740 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | ||
| 8741 | ;; | ||
| 8742 | *) | ||
| 8743 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
| 8744 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | ||
| 8745 | ;; | ||
| 8746 | esac >> confcache | ||
| 8747 | if cmp -s $cache_file confcache; then | ||
| 8748 | : | ||
| 8749 | else | ||
| 8750 | if test -w $cache_file; then | ||
| 8751 | echo "updating cache $cache_file" | ||
| 8752 | cat confcache > $cache_file | ||
| 8753 | else | ||
| 8754 | echo "not updating unwritable cache $cache_file" | ||
| 8755 | fi | ||
| 8756 | fi | ||
| 8757 | rm -f confcache | ||
| 8758 | |||
| 8759 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | ||
| 8760 | |||
| 8761 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
| 8762 | # Let make expand exec_prefix. | ||
| 8763 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
| 8764 | |||
| 8765 | # Any assignment to VPATH causes Sun make to only execute | ||
| 8766 | # the first set of double-colon rules, so remove it if not needed. | ||
| 8767 | # If there is a colon in the path, we need to keep it. | ||
| 8768 | if test "x$srcdir" = x.; then | ||
| 8769 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | ||
| 8770 | fi | ||
| 8771 | |||
| 8772 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | ||
| 8773 | |||
| 8774 | DEFS=-DHAVE_CONFIG_H | ||
| 8775 | |||
| 8776 | # Without the "./", some shells look in PATH for config.status. | ||
| 8777 | : ${CONFIG_STATUS=./config.status} | ||
| 8778 | |||
| 8779 | echo creating $CONFIG_STATUS | ||
| 8780 | rm -f $CONFIG_STATUS | ||
| 8781 | cat > $CONFIG_STATUS <<EOF | ||
| 8782 | #! /bin/sh | ||
| 8783 | # Generated automatically by configure. | ||
| 8784 | # Run this file to recreate the current configuration. | ||
| 8785 | # This directory was configured as follows, | ||
| 8786 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
| 8787 | # | ||
| 8788 | # $0 $ac_configure_args | ||
| 8789 | # | ||
| 8790 | # Compiler output produced by configure, useful for debugging | ||
| 8791 | # configure, is in ./config.log if it exists. | ||
| 8792 | |||
| 8793 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | ||
| 8794 | for ac_option | ||
| 8795 | do | ||
| 8796 | case "\$ac_option" in | ||
| 8797 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
| 8798 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | ||
| 8799 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | ||
| 8800 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | ||
| 8801 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | ||
| 8802 | exit 0 ;; | ||
| 8803 | -help | --help | --hel | --he | --h) | ||
| 8804 | echo "\$ac_cs_usage"; exit 0 ;; | ||
| 8805 | *) echo "\$ac_cs_usage"; exit 1 ;; | ||
| 8806 | esac | ||
| 8807 | done | ||
| 8808 | |||
| 8809 | ac_given_srcdir=$srcdir | ||
| 8810 | ac_given_INSTALL="$INSTALL" | ||
| 8811 | |||
| 8812 | trap 'rm -fr `echo "Makefile openbsd-compat/Makefile ssh_prng_cmds config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | ||
| 8813 | EOF | ||
| 8814 | cat >> $CONFIG_STATUS <<EOF | ||
| 8815 | |||
| 8816 | # Protect against being on the right side of a sed subst in config.status. | ||
| 8817 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | ||
| 8818 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | ||
| 8819 | $ac_vpsub | ||
| 8820 | $extrasub | ||
| 8821 | s%@SHELL@%$SHELL%g | ||
| 8822 | s%@CFLAGS@%$CFLAGS%g | ||
| 8823 | s%@CPPFLAGS@%$CPPFLAGS%g | ||
| 8824 | s%@CXXFLAGS@%$CXXFLAGS%g | ||
| 8825 | s%@FFLAGS@%$FFLAGS%g | ||
| 8826 | s%@DEFS@%$DEFS%g | ||
| 8827 | s%@LDFLAGS@%$LDFLAGS%g | ||
| 8828 | s%@LIBS@%$LIBS%g | ||
| 8829 | s%@exec_prefix@%$exec_prefix%g | ||
| 8830 | s%@prefix@%$prefix%g | ||
| 8831 | s%@program_transform_name@%$program_transform_name%g | ||
| 8832 | s%@bindir@%$bindir%g | ||
| 8833 | s%@sbindir@%$sbindir%g | ||
| 8834 | s%@libexecdir@%$libexecdir%g | ||
| 8835 | s%@datadir@%$datadir%g | ||
| 8836 | s%@sysconfdir@%$sysconfdir%g | ||
| 8837 | s%@sharedstatedir@%$sharedstatedir%g | ||
| 8838 | s%@localstatedir@%$localstatedir%g | ||
| 8839 | s%@libdir@%$libdir%g | ||
| 8840 | s%@includedir@%$includedir%g | ||
| 8841 | s%@oldincludedir@%$oldincludedir%g | ||
| 8842 | s%@infodir@%$infodir%g | ||
| 8843 | s%@mandir@%$mandir%g | ||
| 8844 | s%@CC@%$CC%g | ||
| 8845 | s%@host@%$host%g | ||
| 8846 | s%@host_alias@%$host_alias%g | ||
| 8847 | s%@host_cpu@%$host_cpu%g | ||
| 8848 | s%@host_vendor@%$host_vendor%g | ||
| 8849 | s%@host_os@%$host_os%g | ||
| 8850 | s%@CPP@%$CPP%g | ||
| 8851 | s%@RANLIB@%$RANLIB%g | ||
| 8852 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | ||
| 8853 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | ||
| 8854 | s%@INSTALL_DATA@%$INSTALL_DATA%g | ||
| 8855 | s%@AR@%$AR%g | ||
| 8856 | s%@PERL@%$PERL%g | ||
| 8857 | s%@ENT@%$ENT%g | ||
| 8858 | s%@FILEPRIV@%$FILEPRIV%g | ||
| 8859 | s%@TEST_MINUS_S_SH@%$TEST_MINUS_S_SH%g | ||
| 8860 | s%@LOGIN_PROGRAM_FALLBACK@%$LOGIN_PROGRAM_FALLBACK%g | ||
| 8861 | s%@LD@%$LD%g | ||
| 8862 | s%@NO_SFTP@%$NO_SFTP%g | ||
| 8863 | s%@rsh_path@%$rsh_path%g | ||
| 8864 | s%@xauth_path@%$xauth_path%g | ||
| 8865 | s%@XAUTH_PATH@%$XAUTH_PATH%g | ||
| 8866 | s%@RANDOM_POOL@%$RANDOM_POOL%g | ||
| 8867 | s%@PROG_LS@%$PROG_LS%g | ||
| 8868 | s%@PROG_NETSTAT@%$PROG_NETSTAT%g | ||
| 8869 | s%@PROG_ARP@%$PROG_ARP%g | ||
| 8870 | s%@PROG_IFCONFIG@%$PROG_IFCONFIG%g | ||
| 8871 | s%@PROG_PS@%$PROG_PS%g | ||
| 8872 | s%@PROG_W@%$PROG_W%g | ||
| 8873 | s%@PROG_WHO@%$PROG_WHO%g | ||
| 8874 | s%@PROG_LAST@%$PROG_LAST%g | ||
| 8875 | s%@PROG_LASTLOG@%$PROG_LASTLOG%g | ||
| 8876 | s%@PROG_DF@%$PROG_DF%g | ||
| 8877 | s%@PROG_VMSTAT@%$PROG_VMSTAT%g | ||
| 8878 | s%@PROG_UPTIME@%$PROG_UPTIME%g | ||
| 8879 | s%@PROG_IPCS@%$PROG_IPCS%g | ||
| 8880 | s%@PROG_TAIL@%$PROG_TAIL%g | ||
| 8881 | s%@INSTALL_SSH_PRNG_CMDS@%$INSTALL_SSH_PRNG_CMDS%g | ||
| 8882 | s%@NROFF@%$NROFF%g | ||
| 8883 | s%@MANTYPE@%$MANTYPE%g | ||
| 8884 | s%@mansubdir@%$mansubdir%g | ||
| 8885 | s%@user_path@%$user_path%g | ||
| 8886 | s%@SSHMODE@%$SSHMODE%g | ||
| 8887 | s%@piddir@%$piddir%g | ||
| 8888 | s%@EXEEXT@%$EXEEXT%g | ||
| 8889 | |||
| 8890 | CEOF | ||
| 8891 | EOF | ||
| 8892 | |||
| 8893 | cat >> $CONFIG_STATUS <<\EOF | ||
| 8894 | |||
| 8895 | # Split the substitutions into bite-sized pieces for seds with | ||
| 8896 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
| 8897 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | ||
| 8898 | ac_file=1 # Number of current file. | ||
| 8899 | ac_beg=1 # First line for current file. | ||
| 8900 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | ||
| 8901 | ac_more_lines=: | ||
| 8902 | ac_sed_cmds="" | ||
| 8903 | while $ac_more_lines; do | ||
| 8904 | if test $ac_beg -gt 1; then | ||
| 8905 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | ||
| 8906 | else | ||
| 8907 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | ||
| 8908 | fi | ||
| 8909 | if test ! -s conftest.s$ac_file; then | ||
| 8910 | ac_more_lines=false | ||
| 8911 | rm -f conftest.s$ac_file | ||
| 8912 | else | ||
| 8913 | if test -z "$ac_sed_cmds"; then | ||
| 8914 | ac_sed_cmds="sed -f conftest.s$ac_file" | ||
| 8915 | else | ||
| 8916 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | ||
| 8917 | fi | ||
| 8918 | ac_file=`expr $ac_file + 1` | ||
| 8919 | ac_beg=$ac_end | ||
| 8920 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | ||
| 8921 | fi | ||
| 8922 | done | ||
| 8923 | if test -z "$ac_sed_cmds"; then | ||
| 8924 | ac_sed_cmds=cat | ||
| 8925 | fi | ||
| 8926 | EOF | ||
| 8927 | |||
| 8928 | cat >> $CONFIG_STATUS <<EOF | ||
| 8929 | |||
| 8930 | CONFIG_FILES=\${CONFIG_FILES-"Makefile openbsd-compat/Makefile ssh_prng_cmds"} | ||
| 8931 | EOF | ||
| 8932 | cat >> $CONFIG_STATUS <<\EOF | ||
| 8933 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | ||
| 8934 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
| 8935 | case "$ac_file" in | ||
| 8936 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
| 8937 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
| 8938 | *) ac_file_in="${ac_file}.in" ;; | ||
| 8939 | esac | ||
| 8940 | |||
| 8941 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | ||
| 8942 | |||
| 8943 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
| 8944 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
| 8945 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
| 8946 | # The file is in a subdirectory. | ||
| 8947 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
| 8948 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | ||
| 8949 | # A "../" for each directory in $ac_dir_suffix. | ||
| 8950 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | ||
| 8951 | else | ||
| 8952 | ac_dir_suffix= ac_dots= | ||
| 8953 | fi | ||
| 8954 | |||
| 8955 | case "$ac_given_srcdir" in | ||
| 8956 | .) srcdir=. | ||
| 8957 | if test -z "$ac_dots"; then top_srcdir=. | ||
| 8958 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | ||
| 8959 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | ||
| 8960 | *) # Relative path. | ||
| 8961 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | ||
| 8962 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | ||
| 8963 | esac | ||
| 8964 | |||
| 8965 | case "$ac_given_INSTALL" in | ||
| 8966 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | ||
| 8967 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | ||
| 8968 | esac | ||
| 8969 | |||
| 8970 | echo creating "$ac_file" | ||
| 8971 | rm -f "$ac_file" | ||
| 8972 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | ||
| 8973 | case "$ac_file" in | ||
| 8974 | *Makefile*) ac_comsub="1i\\ | ||
| 8975 | # $configure_input" ;; | ||
| 8976 | *) ac_comsub= ;; | ||
| 8977 | esac | ||
| 8978 | |||
| 8979 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
| 8980 | sed -e "$ac_comsub | ||
| 8981 | s%@configure_input@%$configure_input%g | ||
| 8982 | s%@srcdir@%$srcdir%g | ||
| 8983 | s%@top_srcdir@%$top_srcdir%g | ||
| 8984 | s%@INSTALL@%$INSTALL%g | ||
| 8985 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | ||
| 8986 | fi; done | ||
| 8987 | rm -f conftest.s* | ||
| 8988 | |||
| 8989 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
| 8990 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
| 8991 | # | ||
| 8992 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
| 8993 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
| 8994 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | ||
| 8995 | ac_dC='\3' | ||
| 8996 | ac_dD='%g' | ||
| 8997 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | ||
| 8998 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
| 8999 | ac_uB='\([ ]\)%\1#\2define\3' | ||
| 9000 | ac_uC=' ' | ||
| 9001 | ac_uD='\4%g' | ||
| 9002 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
| 9003 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
| 9004 | ac_eB='$%\1#\2define\3' | ||
| 9005 | ac_eC=' ' | ||
| 9006 | ac_eD='%g' | ||
| 9007 | |||
| 9008 | if test "${CONFIG_HEADERS+set}" != set; then | ||
| 9009 | EOF | ||
| 9010 | cat >> $CONFIG_STATUS <<EOF | ||
| 9011 | CONFIG_HEADERS="config.h" | ||
| 9012 | EOF | ||
| 9013 | cat >> $CONFIG_STATUS <<\EOF | ||
| 9014 | fi | ||
| 9015 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | ||
| 9016 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
| 9017 | case "$ac_file" in | ||
| 9018 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | ||
| 9019 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | ||
| 9020 | *) ac_file_in="${ac_file}.in" ;; | ||
| 9021 | esac | ||
| 9022 | |||
| 9023 | echo creating $ac_file | ||
| 9024 | |||
| 9025 | rm -f conftest.frag conftest.in conftest.out | ||
| 9026 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | ||
| 9027 | cat $ac_file_inputs > conftest.in | ||
| 9028 | |||
| 9029 | EOF | ||
| 9030 | |||
| 9031 | # Transform confdefs.h into a sed script conftest.vals that substitutes | ||
| 9032 | # the proper values into config.h.in to produce config.h. And first: | ||
| 9033 | # Protect against being on the right side of a sed subst in config.status. | ||
| 9034 | # Protect against being in an unquoted here document in config.status. | ||
| 9035 | rm -f conftest.vals | ||
| 9036 | cat > conftest.hdr <<\EOF | ||
| 9037 | s/[\\&%]/\\&/g | ||
| 9038 | s%[\\$`]%\\&%g | ||
| 9039 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | ||
| 9040 | s%ac_d%ac_u%gp | ||
| 9041 | s%ac_u%ac_e%gp | ||
| 9042 | EOF | ||
| 9043 | sed -n -f conftest.hdr confdefs.h > conftest.vals | ||
| 9044 | rm -f conftest.hdr | ||
| 9045 | |||
| 9046 | # This sed command replaces #undef with comments. This is necessary, for | ||
| 9047 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
| 9048 | # on some systems where configure will not decide to define it. | ||
| 9049 | cat >> conftest.vals <<\EOF | ||
| 9050 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | ||
| 9051 | EOF | ||
| 9052 | |||
| 9053 | # Break up conftest.vals because some shells have a limit on | ||
| 9054 | # the size of here documents, and old seds have small limits too. | ||
| 9055 | |||
| 9056 | rm -f conftest.tail | ||
| 9057 | while : | ||
| 9058 | do | ||
| 9059 | ac_lines=`grep -c . conftest.vals` | ||
| 9060 | # grep -c gives empty output for an empty file on some AIX systems. | ||
| 9061 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | ||
| 9062 | # Write a limited-size here document to conftest.frag. | ||
| 9063 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | ||
| 9064 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | ||
| 9065 | echo 'CEOF | ||
| 9066 | sed -f conftest.frag conftest.in > conftest.out | ||
| 9067 | rm -f conftest.in | ||
| 9068 | mv conftest.out conftest.in | ||
| 9069 | ' >> $CONFIG_STATUS | ||
| 9070 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | ||
| 9071 | rm -f conftest.vals | ||
| 9072 | mv conftest.tail conftest.vals | ||
| 9073 | done | ||
| 9074 | rm -f conftest.vals | ||
| 9075 | |||
| 9076 | cat >> $CONFIG_STATUS <<\EOF | ||
| 9077 | rm -f conftest.frag conftest.h | ||
| 9078 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | ||
| 9079 | cat conftest.in >> conftest.h | ||
| 9080 | rm -f conftest.in | ||
| 9081 | if cmp -s $ac_file conftest.h 2>/dev/null; then | ||
| 9082 | echo "$ac_file is unchanged" | ||
| 9083 | rm -f conftest.h | ||
| 9084 | else | ||
| 9085 | # Remove last slash and all that follows it. Not all systems have dirname. | ||
| 9086 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | ||
| 9087 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | ||
| 9088 | # The file is in a subdirectory. | ||
| 9089 | test ! -d "$ac_dir" && mkdir "$ac_dir" | ||
| 9090 | fi | ||
| 9091 | rm -f $ac_file | ||
| 9092 | mv conftest.h $ac_file | ||
| 9093 | fi | ||
| 9094 | fi; done | ||
| 9095 | |||
| 9096 | EOF | ||
| 9097 | cat >> $CONFIG_STATUS <<EOF | ||
| 9098 | |||
| 9099 | EOF | ||
| 9100 | cat >> $CONFIG_STATUS <<\EOF | ||
| 9101 | |||
| 9102 | exit 0 | ||
| 9103 | EOF | ||
| 9104 | chmod +x $CONFIG_STATUS | ||
| 9105 | rm -fr confdefs* $ac_clean_files | ||
| 9106 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | ||
| 9107 | |||
| 9108 | |||
| 9109 | # Print summary of options | ||
| 9110 | |||
| 9111 | if test ! -z "$RANDOM_POOL" ; then | ||
| 9112 | RAND_MSG="Device ($RANDOM_POOL)" | ||
| 9113 | else | ||
| 9114 | if test ! -z "$PRNGD_PORT" ; then | ||
| 9115 | RAND_MSG="PRNGD/EGD (port localhost:$PRNGD_PORT)" | ||
| 9116 | elif test ! -z "$PRNGD_SOCKET" ; then | ||
| 9117 | RAND_MSG="PRNGD/EGD (socket $PRNGD_SOCKET)" | ||
| 9118 | else | ||
| 9119 | RAND_MSG="Builtin (timeout $entropy_timeout)" | ||
| 9120 | BUILTIN_RNG=1 | ||
| 9121 | fi | ||
| 9122 | fi | ||
| 9123 | |||
| 9124 | # Someone please show me a better way :) | ||
| 9125 | A=`eval echo ${prefix}` ; A=`eval echo ${A}` | ||
| 9126 | B=`eval echo ${bindir}` ; B=`eval echo ${B}` | ||
| 9127 | C=`eval echo ${sbindir}` ; C=`eval echo ${C}` | ||
| 9128 | D=`eval echo ${sysconfdir}` ; D=`eval echo ${D}` | ||
| 9129 | E=`eval echo ${libexecdir}/ssh-askpass` ; E=`eval echo ${E}` | ||
| 9130 | F=`eval echo ${mandir}/${mansubdir}X` ; F=`eval echo ${F}` | ||
| 9131 | G=`eval echo ${piddir}` ; G=`eval echo ${G}` | ||
| 9132 | H=`eval echo ${user_path}` ; H=`eval echo ${H}` | ||
| 9133 | |||
| 9134 | echo "" | ||
| 9135 | echo "OpenSSH has been configured with the following options:" | ||
| 9136 | echo " User binaries: $B" | ||
| 9137 | echo " System binaries: $C" | ||
| 9138 | echo " Configuration files: $D" | ||
| 9139 | echo " Askpass program: $E" | ||
| 9140 | echo " Manual pages: $F" | ||
| 9141 | echo " PID file: $G" | ||
| 9142 | echo " sshd default user PATH: $H" | ||
| 9143 | echo " Random number collection: $RAND_MSG" | ||
| 9144 | echo " Manpage format: $MANTYPE" | ||
| 9145 | echo " PAM support: ${PAM_MSG}" | ||
| 9146 | echo " KerberosIV support: $KRB4_MSG" | ||
| 9147 | echo " AFS support: $AFS_MSG" | ||
| 9148 | echo " S/KEY support: $SKEY_MSG" | ||
| 9149 | echo " TCP Wrappers support: $TCPW_MSG" | ||
| 9150 | echo " MD5 password support: $MD5_MSG" | ||
| 9151 | echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" | ||
| 9152 | echo " Use IPv4 by default hack: $IPV4_HACK_MSG" | ||
| 9153 | echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" | ||
| 9154 | |||
| 9155 | if test ! -z "$bsd_auth"; then | ||
| 9156 | echo " BSD Auth support: yes" | ||
| 9157 | fi | ||
| 9158 | |||
| 9159 | echo "" | ||
| 9160 | |||
| 9161 | echo " Host: ${host}" | ||
| 9162 | echo " Compiler: ${CC}" | ||
| 9163 | echo " Compiler flags: ${CFLAGS}" | ||
| 9164 | echo "Preprocessor flags: ${CPPFLAGS}" | ||
| 9165 | echo " Linker flags: ${LDFLAGS}" | ||
| 9166 | echo " Libraries: ${LIBS}" | ||
| 9167 | |||
| 9168 | echo "" | ||
| 9169 | |||
| 9170 | if test "x$PAM_MSG" = "xyes" ; then | ||
| 9171 | echo "PAM is enabled. You may need to install a PAM control file for sshd," | ||
| 9172 | echo "otherwise password authentication may fail. Example PAM control files" | ||
| 9173 | echo "can be found in the contrib/ subdirectory" | ||
| 9174 | echo "" | ||
| 9175 | fi | ||
| 9176 | |||
| 9177 | if test ! -z "$BUILTIN_RNG" ; then | ||
| 9178 | echo "WARNING: you are using the builtin random number collection service." | ||
| 9179 | echo "Please read WARNING.RNG and request that your OS vendor includes" | ||
| 9180 | echo "/dev/random in future versions of their OS." | ||
| 9181 | echo "" | ||
| 9182 | fi | ||
| 9183 | |||
| 9184 | if test ! -z "$NO_SFTP"; then | ||
| 9185 | echo "sftp-server will be disabled. Your compiler does not support" | ||
| 9186 | echo "64bit integers." | ||
| 9187 | echo "" | ||
| 9188 | fi | ||
| 9189 | |||
