Annotation of src/usr.bin/sudo/configure, Revision 1.7
1.1 millert 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.12
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_help="$ac_help
15: --with-otp-only deprecated"
16: ac_help="$ac_help
17: --with-alertmail deprecated"
18: ac_help="$ac_help
19: --with-CC C compiler to use"
20: ac_help="$ac_help
21: --with-incpath additional places to look for include files"
22: ac_help="$ac_help
23: --with-libpath additional places to look for libraries"
24: ac_help="$ac_help
25: --with-libraries additional libraries to link with"
26: ac_help="$ac_help
27: --with-devel add developement options"
28: ac_help="$ac_help
29: --with-csops add CSOps standard options"
30: ac_help="$ac_help
31: --without-passwd don't use passwd/shadow file for authentication"
32: ac_help="$ac_help
33: --with-skey enable S/Key support "
34: ac_help="$ac_help
35: --with-opie enable OPIE support "
36: ac_help="$ac_help
37: --with-long-otp-prompt use a two line OTP (skey/opie) prompt"
38: ac_help="$ac_help
39: --with-SecurID enable SecurID support"
40: ac_help="$ac_help
41: --with-fwtk enable FWTK AuthSRV support"
42: ac_help="$ac_help
43: --with-kerb4 enable kerberos v4 support"
44: ac_help="$ac_help
45: --with-kerb5 enable kerberos v5 support"
46: ac_help="$ac_help
47: --with-authenticate enable AIX general authentication support"
48: ac_help="$ac_help
49: --with-pam enable PAM support"
50: ac_help="$ac_help
51: --with-AFS enable AFS support"
52: ac_help="$ac_help
53: --with-DCE enable DCE support"
54: ac_help="$ac_help
1.7 ! millert 55: --with-logincap enable BSD login class support"
! 56: ac_help="$ac_help
! 57: --with-bsdauth enable BSD authentication support"
1.6 millert 58: ac_help="$ac_help
1.1 millert 59: --without-lecture don't print lecture for first-time sudoer"
60: ac_help="$ac_help
61: --with-logging log via syslog, file, or both"
62: ac_help="$ac_help
63: --with-logfac syslog facility to log with (default is local2)"
64: ac_help="$ac_help
65: --with-goodpri syslog priority for commands (def is notice)"
66: ac_help="$ac_help
67: --with-badpri syslog priority for failures (def is LOG_ALERT)"
68: ac_help="$ac_help
69: --with-logpath path to the sudo log file"
70: ac_help="$ac_help
71: --with-loglen maximum length of a log file line (default is 80)"
72: ac_help="$ac_help
73: --with-ignore-dot ignore '.' in the PATH"
74: ac_help="$ac_help
75: --with-mailto who should get sudo mail (default is "root")"
76: ac_help="$ac_help
77: --with-mailsubject subject of sudo mail"
78: ac_help="$ac_help
79: --without-mail-if-no-user do not send mail if user not in sudoers"
80: ac_help="$ac_help
81: --with-mail-if-no-host send mail if user in sudoers but not for this host"
82: ac_help="$ac_help
83: --with-mail-if-noperms send mail if user not allowed to run command"
84: ac_help="$ac_help
85: --with-passprompt default password prompt"
86: ac_help="$ac_help
87: --with-badpass-message message the user sees when the password is wrong"
88: ac_help="$ac_help
89: --with-fqdn expect fully qualified hosts in sudoers"
90: ac_help="$ac_help
91: --with-timedir path to the sudo timestamp dir"
92: ac_help="$ac_help
93: --with-sendmail=path set path to sendmail
94: --without-sendmail do not send mail at all"
95: ac_help="$ac_help
96: --with-sudoers-mode mode of sudoers file (defaults to 0440)"
97: ac_help="$ac_help
98: --with-sudoers-uid uid that owns sudoers file (defaults to 0)"
99: ac_help="$ac_help
100: --with-sudoers-gid gid that owns sudoers file (defaults to 0)"
101: ac_help="$ac_help
102: --with-umask umask with which the prog should run (default is 0022)
103: --without-umask Preserves the umask of the user invoking sudo."
104: ac_help="$ac_help
105: --with-runas-default User to run commands as (default is "root""
106: ac_help="$ac_help
107: --with-exempt=group no passwd needed for users in this group"
108: ac_help="$ac_help
109: --with-editor=path Default editor for visudo (defaults to vi)"
110: ac_help="$ac_help
111: --with-env-editor Use the environment variable EDITOR for visudo"
112: ac_help="$ac_help
113: --with-passwd-tries number of tries to enter password (default is 3)"
114: ac_help="$ac_help
115: --with-timeout minutes before sudo asks for passwd again (def is 5)"
116: ac_help="$ac_help
117: --with-password-timeout passwd prompt timeout in minutes (default is 5)"
118: ac_help="$ac_help
119: --with-execv use execv() instead of execvp()"
120: ac_help="$ac_help
121: --with-tty-tickets use a different ticket file for each tty"
122: ac_help="$ac_help
123: --with-insults insult the user for entering an incorrect password"
124: ac_help="$ac_help
125: --with-all-insults include all the sudo insult sets"
126: ac_help="$ac_help
127: --with-classic-insults include the insults from the "classic" sudo"
128: ac_help="$ac_help
129: --with-csops-insults include CSOps insults"
130: ac_help="$ac_help
131: --with-hal-insults include 2001-like insults"
132: ac_help="$ac_help
133: --with-goons-insults include the insults from the \"Goon Show\""
134: ac_help="$ac_help
135: --with-secure-path override the user's path with a builtin one"
136: ac_help="$ac_help
137: --without-interfaces don't try to read the ip addr of ether interfaces"
138: ac_help="$ac_help
139: --disable-authentication
140: Do not require authentication by default"
141: ac_help="$ac_help
142: --disable-shadow Never use shadow passwords"
143: ac_help="$ac_help
144: --disable-root-sudo don't allow root to run sudo"
145: ac_help="$ac_help
146: --enable-log-host Log the hostname in the log file"
147: ac_help="$ac_help
148: --enable-noargs-shell If sudo is given no arguments run a shell"
149: ac_help="$ac_help
150: --enable-shell-sets-home
151: set \$HOME to target user in shell mode"
152: ac_help="$ac_help
153: --disable-path-info Print 'command not allowed' not 'command not found'"
154: ac_help="$ac_help
155: --disable-sia Never use SIA on Digital UNIX"
156:
157: # Initialize some variables set by options.
158: # The variables have the same names as the options, with
159: # dashes changed to underlines.
160: build=NONE
161: cache_file=./config.cache
162: exec_prefix=NONE
163: host=NONE
164: no_create=
165: nonopt=NONE
166: no_recursion=
167: prefix=NONE
168: program_prefix=NONE
169: program_suffix=NONE
170: program_transform_name=s,x,x,
171: silent=
172: site=
173: srcdir=
174: target=NONE
175: verbose=
176: x_includes=NONE
177: x_libraries=NONE
178: bindir='${exec_prefix}/bin'
179: sbindir='${exec_prefix}/sbin'
180: libexecdir='${exec_prefix}/libexec'
181: datadir='${prefix}/share'
182: sysconfdir='${prefix}/etc'
183: sharedstatedir='${prefix}/com'
184: localstatedir='${prefix}/var'
185: libdir='${exec_prefix}/lib'
186: includedir='${prefix}/include'
187: oldincludedir='/usr/include'
188: infodir='${prefix}/info'
189: mandir='${prefix}/man'
190:
191: # Initialize some other variables.
192: subdirs=
193: MFLAGS= MAKEFLAGS=
194: # Maximum number of lines to put in a shell here document.
195: ac_max_here_lines=12
196:
197: ac_prev=
198: for ac_option
199: do
200:
201: # If the previous option needs an argument, assign it.
202: if test -n "$ac_prev"; then
203: eval "$ac_prev=\$ac_option"
204: ac_prev=
205: continue
206: fi
207:
208: case "$ac_option" in
209: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
210: *) ac_optarg= ;;
211: esac
212:
213: # Accept the important Cygnus configure options, so we can diagnose typos.
214:
215: case "$ac_option" in
216:
217: -bindir | --bindir | --bindi | --bind | --bin | --bi)
218: ac_prev=bindir ;;
219: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
220: bindir="$ac_optarg" ;;
221:
222: -build | --build | --buil | --bui | --bu)
223: ac_prev=build ;;
224: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
225: build="$ac_optarg" ;;
226:
227: -cache-file | --cache-file | --cache-fil | --cache-fi \
228: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
229: ac_prev=cache_file ;;
230: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
231: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
232: cache_file="$ac_optarg" ;;
233:
234: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
235: ac_prev=datadir ;;
236: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
237: | --da=*)
238: datadir="$ac_optarg" ;;
239:
240: -disable-* | --disable-*)
241: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
242: # Reject names that are not valid shell variable names.
243: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
244: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
245: fi
246: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
247: eval "enable_${ac_feature}=no" ;;
248:
249: -enable-* | --enable-*)
250: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
251: # Reject names that are not valid shell variable names.
252: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
253: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
254: fi
255: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
256: case "$ac_option" in
257: *=*) ;;
258: *) ac_optarg=yes ;;
259: esac
260: eval enable_${ac_feature}='$ac_optarg' ;;
261:
262: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264: | --exec | --exe | --ex)
265: ac_prev=exec_prefix ;;
266: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268: | --exec=* | --exe=* | --ex=*)
269: exec_prefix="$ac_optarg" ;;
270:
271: -gas | --gas | --ga | --g)
272: # Obsolete; use --with-gas.
273: with_gas=yes ;;
274:
275: -help | --help | --hel | --he)
276: # Omit some internal or obsolete options to make the list less imposing.
277: # This message is too long to be a string in the A/UX 3.1 sh.
278: cat << EOF
279: Usage: configure [options] [host]
280: Options: [defaults in brackets after descriptions]
281: Configuration:
282: --cache-file=FILE cache test results in FILE
283: --help print this message
284: --no-create do not create output files
285: --quiet, --silent do not print \`checking...' messages
286: --version print the version of autoconf that created configure
287: Directory and file names:
288: --prefix=PREFIX install architecture-independent files in PREFIX
289: [$ac_default_prefix]
290: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
291: [same as prefix]
292: --bindir=DIR user executables in DIR [EPREFIX/bin]
293: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
294: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
295: --datadir=DIR read-only architecture-independent data in DIR
296: [PREFIX/share]
297: --sysconfdir=DIR read-only single-machine data in DIR [/etc]
298: --sharedstatedir=DIR modifiable architecture-independent data in DIR
299: [PREFIX/com]
300: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
301: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
302: --includedir=DIR C header files in DIR [PREFIX/include]
303: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
304: --infodir=DIR info documentation in DIR [PREFIX/info]
305: --mandir=DIR man documentation in DIR [PREFIX/man]
306: --srcdir=DIR find the sources in DIR [configure dir or ..]
307: --program-prefix=PREFIX prepend PREFIX to installed program names
308: --program-suffix=SUFFIX append SUFFIX to installed program names
309: --program-transform-name=PROGRAM
310: run sed PROGRAM on installed program names
311: EOF
312: cat << EOF
313: Host type:
314: --build=BUILD configure for building on BUILD [BUILD=HOST]
315: --host=HOST configure for HOST [guessed]
316: --target=TARGET configure for TARGET [TARGET=HOST]
317: Features and packages:
318: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
319: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
320: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
321: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
322: --x-includes=DIR X include files are in DIR
323: --x-libraries=DIR X library files are in DIR
324: EOF
325: if test -n "$ac_help"; then
326: echo "--enable and --with options recognized:$ac_help"
327: fi
328: exit 0 ;;
329:
330: -host | --host | --hos | --ho)
331: ac_prev=host ;;
332: -host=* | --host=* | --hos=* | --ho=*)
333: host="$ac_optarg" ;;
334:
335: -includedir | --includedir | --includedi | --included | --include \
336: | --includ | --inclu | --incl | --inc)
337: ac_prev=includedir ;;
338: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
339: | --includ=* | --inclu=* | --incl=* | --inc=*)
340: includedir="$ac_optarg" ;;
341:
342: -infodir | --infodir | --infodi | --infod | --info | --inf)
343: ac_prev=infodir ;;
344: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
345: infodir="$ac_optarg" ;;
346:
347: -libdir | --libdir | --libdi | --libd)
348: ac_prev=libdir ;;
349: -libdir=* | --libdir=* | --libdi=* | --libd=*)
350: libdir="$ac_optarg" ;;
351:
352: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
353: | --libexe | --libex | --libe)
354: ac_prev=libexecdir ;;
355: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
356: | --libexe=* | --libex=* | --libe=*)
357: libexecdir="$ac_optarg" ;;
358:
359: -localstatedir | --localstatedir | --localstatedi | --localstated \
360: | --localstate | --localstat | --localsta | --localst \
361: | --locals | --local | --loca | --loc | --lo)
362: ac_prev=localstatedir ;;
363: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
364: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
365: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
366: localstatedir="$ac_optarg" ;;
367:
368: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
369: ac_prev=mandir ;;
370: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
371: mandir="$ac_optarg" ;;
372:
373: -nfp | --nfp | --nf)
374: # Obsolete; use --without-fp.
375: with_fp=no ;;
376:
377: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
378: | --no-cr | --no-c)
379: no_create=yes ;;
380:
381: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
382: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
383: no_recursion=yes ;;
384:
385: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
386: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
387: | --oldin | --oldi | --old | --ol | --o)
388: ac_prev=oldincludedir ;;
389: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
390: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
391: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
392: oldincludedir="$ac_optarg" ;;
393:
394: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
395: ac_prev=prefix ;;
396: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
397: prefix="$ac_optarg" ;;
398:
399: -program-prefix | --program-prefix | --program-prefi | --program-pref \
400: | --program-pre | --program-pr | --program-p)
401: ac_prev=program_prefix ;;
402: -program-prefix=* | --program-prefix=* | --program-prefi=* \
403: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
404: program_prefix="$ac_optarg" ;;
405:
406: -program-suffix | --program-suffix | --program-suffi | --program-suff \
407: | --program-suf | --program-su | --program-s)
408: ac_prev=program_suffix ;;
409: -program-suffix=* | --program-suffix=* | --program-suffi=* \
410: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
411: program_suffix="$ac_optarg" ;;
412:
413: -program-transform-name | --program-transform-name \
414: | --program-transform-nam | --program-transform-na \
415: | --program-transform-n | --program-transform- \
416: | --program-transform | --program-transfor \
417: | --program-transfo | --program-transf \
418: | --program-trans | --program-tran \
419: | --progr-tra | --program-tr | --program-t)
420: ac_prev=program_transform_name ;;
421: -program-transform-name=* | --program-transform-name=* \
422: | --program-transform-nam=* | --program-transform-na=* \
423: | --program-transform-n=* | --program-transform-=* \
424: | --program-transform=* | --program-transfor=* \
425: | --program-transfo=* | --program-transf=* \
426: | --program-trans=* | --program-tran=* \
427: | --progr-tra=* | --program-tr=* | --program-t=*)
428: program_transform_name="$ac_optarg" ;;
429:
430: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
431: | -silent | --silent | --silen | --sile | --sil)
432: silent=yes ;;
433:
434: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
435: ac_prev=sbindir ;;
436: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
437: | --sbi=* | --sb=*)
438: sbindir="$ac_optarg" ;;
439:
440: -sharedstatedir | --sharedstatedir | --sharedstatedi \
441: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
442: | --sharedst | --shareds | --shared | --share | --shar \
443: | --sha | --sh)
444: ac_prev=sharedstatedir ;;
445: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
446: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
447: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
448: | --sha=* | --sh=*)
449: sharedstatedir="$ac_optarg" ;;
450:
451: -site | --site | --sit)
452: ac_prev=site ;;
453: -site=* | --site=* | --sit=*)
454: site="$ac_optarg" ;;
455:
456: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
457: ac_prev=srcdir ;;
458: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
459: srcdir="$ac_optarg" ;;
460:
461: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
462: | --syscon | --sysco | --sysc | --sys | --sy)
463: ac_prev=sysconfdir ;;
464: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
465: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
466: sysconfdir="$ac_optarg" ;;
467:
468: -target | --target | --targe | --targ | --tar | --ta | --t)
469: ac_prev=target ;;
470: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
471: target="$ac_optarg" ;;
472:
473: -v | -verbose | --verbose | --verbos | --verbo | --verb)
474: verbose=yes ;;
475:
476: -version | --version | --versio | --versi | --vers)
477: echo "configure generated by autoconf version 2.12"
478: exit 0 ;;
479:
480: -with-* | --with-*)
481: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
482: # Reject names that are not valid shell variable names.
483: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
484: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
485: fi
486: ac_package=`echo $ac_package| sed 's/-/_/g'`
487: case "$ac_option" in
488: *=*) ;;
489: *) ac_optarg=yes ;;
490: esac
491: eval with_${ac_package}='$ac_optarg' ;;
492:
493: -without-* | --without-*)
494: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
495: # Reject names that are not valid shell variable names.
496: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
497: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
498: fi
499: ac_package=`echo $ac_package| sed 's/-/_/g'`
500: eval "with_${ac_package}=no" ;;
501:
502: --x)
503: # Obsolete; use --with-x.
504: with_x=yes ;;
505:
506: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
507: | --x-incl | --x-inc | --x-in | --x-i)
508: ac_prev=x_includes ;;
509: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
510: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
511: x_includes="$ac_optarg" ;;
512:
513: -x-libraries | --x-libraries | --x-librarie | --x-librari \
514: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
515: ac_prev=x_libraries ;;
516: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
517: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
518: x_libraries="$ac_optarg" ;;
519:
520: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
521: ;;
522:
523: *)
524: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
525: echo "configure: warning: $ac_option: invalid host type" 1>&2
526: fi
527: if test "x$nonopt" != xNONE; then
528: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
529: fi
530: nonopt="$ac_option"
531: ;;
532:
533: esac
534: done
535:
536: if test -n "$ac_prev"; then
537: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
538: fi
539:
540: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
541:
542: # File descriptor usage:
543: # 0 standard input
544: # 1 file creation
545: # 2 errors and warnings
546: # 3 some systems may open it to /dev/tty
547: # 4 used on the Kubota Titan
548: # 6 checking for... messages and results
549: # 5 compiler messages saved in config.log
550: if test "$silent" = yes; then
551: exec 6>/dev/null
552: else
553: exec 6>&1
554: fi
555: exec 5>./config.log
556:
557: echo "\
558: This file contains any messages produced by compilers while
559: running configure, to aid debugging if configure makes a mistake.
560: " 1>&5
561:
562: # Strip out --no-create and --no-recursion so they do not pile up.
563: # Also quote any args containing shell metacharacters.
564: ac_configure_args=
565: for ac_arg
566: do
567: case "$ac_arg" in
568: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
569: | --no-cr | --no-c) ;;
570: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
571: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
572: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
573: ac_configure_args="$ac_configure_args \"$ac_arg\"" ;;
574: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
575: esac
576: done
577:
578: # NLS nuisances.
579: # Only set these to C if already set. These must not be set unconditionally
580: # because not all systems understand e.g. LANG=C (notably SCO).
581: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
582: # Non-C LC_CTYPE values break the ctype check.
583: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
584: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
585: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
586: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
587:
588: # confdefs.h avoids OS command line length limits that DEFS can exceed.
589: rm -rf conftest* confdefs.h
590: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
591: echo > confdefs.h
592:
593: # A filename unique to this package, relative to the directory that
594: # configure is in, which we can look for to find out if srcdir is correct.
595: ac_unique_file=sudo.h
596:
597: # Find the source files, if location was not specified.
598: if test -z "$srcdir"; then
599: ac_srcdir_defaulted=yes
600: # Try the directory containing this script, then its parent.
601: ac_prog=$0
602: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
603: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
604: srcdir=$ac_confdir
605: if test ! -r $srcdir/$ac_unique_file; then
606: srcdir=..
607: fi
608: else
609: ac_srcdir_defaulted=no
610: fi
611: if test ! -r $srcdir/$ac_unique_file; then
612: if test "$ac_srcdir_defaulted" = yes; then
613: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
614: else
615: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
616: fi
617: fi
618: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
619:
620: # Prefer explicitly selected file to automatically selected ones.
621: if test -z "$CONFIG_SITE"; then
622: if test "x$prefix" != xNONE; then
623: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
624: else
625: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626: fi
627: fi
628: for ac_site_file in $CONFIG_SITE; do
629: if test -r "$ac_site_file"; then
630: echo "loading site script $ac_site_file"
631: . "$ac_site_file"
632: fi
633: done
634:
635: if test -r "$cache_file"; then
636: echo "loading cache $cache_file"
637: . $cache_file
638: else
639: echo "creating cache $cache_file"
640: > $cache_file
641: fi
642:
643: ac_ext=c
644: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645: ac_cpp='$CPP $CPPFLAGS'
646: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648: cross_compiling=$ac_cv_prog_cc_cross
649:
650: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
651: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
652: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
653: ac_n= ac_c='
654: ' ac_t=' '
655: else
656: ac_n=-n ac_c= ac_t=
657: fi
658: else
659: ac_n= ac_c='\c' ac_t=
660: fi
661:
662:
663:
1.6 millert 664: echo "Configuring Sudo version 1.6.3"
665:
666:
667:
668:
669:
1.1 millert 670: PROGS="sudo visudo"
1.6 millert 671: test -n "$MANTYPE" || MANTYPE="man"
672: test -n "$mansrcdir" || mansrcdir="."
673: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
674: test -n "$SUDOERS_UID" || SUDOERS_UID=0
675: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1 millert 676: DEV="#"
677:
678: CHECKSHADOW=true
679: CHECKSIA=true
680:
681: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
682: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
683: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
684: test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
685:
686:
687: # Check whether --with-otp-only or --without-otp-only was given.
688: if test "${with_otp_only+set}" = set; then
689: withval="$with_otp_only"
690: case $with_otp_only in
691: yes) with_passwd=no
692: cat >> confdefs.h <<\EOF
693: #define WITHOUT_PASSWD 1
694: EOF
695:
696: echo "configure: warning: --with-otp-only option deprecated, treating as --without-passwd" 1>&2
697: ;;
698: esac
699: fi
700:
701:
702: # Check whether --with-alertmail or --without-alertmail was given.
703: if test "${with_alertmail+set}" = set; then
704: withval="$with_alertmail"
705: case $with_alertmail in
706: *) with_mailto="$with_alertmail"
707: cat >> confdefs.h <<\EOF
708: #define WITHOUT_PASSWD 1
709: EOF
710:
711: echo "configure: warning: --with-alertmail option deprecated, treating as --mailto" 1>&2
712: ;;
713: esac
714: fi
715:
716:
717:
718: # Check whether --with-CC or --without-CC was given.
719: if test "${with_CC+set}" = set; then
720: withval="$with_CC"
721: case $with_CC in
722: yes) { echo "configure: error: "must give --with-CC an argument."" 1>&2; exit 1; }
723: ;;
724: no) { echo "configure: error: "illegal argument: --without-CC."" 1>&2; exit 1; }
725: ;;
726: *) CC=$with_CC
727: ;;
728: esac
729: fi
730:
731:
732: # Check whether --with-incpath or --without-incpath was given.
733: if test "${with_incpath+set}" = set; then
734: withval="$with_incpath"
735: case $with_incpath in
736: yes) { echo "configure: error: "must give --with-incpath an argument."" 1>&2; exit 1; }
737: ;;
738: no) { echo "configure: error: "--without-incpath not supported."" 1>&2; exit 1; }
739: ;;
740: *) echo "Adding ${with_incpath} to CPPFLAGS"
741: for i in ${with_incpath}; do
742: CPPFLAGS="${CPPFLAGS} -I${i}"
743: done
744: ;;
745: esac
746: fi
747:
748:
749: # Check whether --with-libpath or --without-libpath was given.
750: if test "${with_libpath+set}" = set; then
751: withval="$with_libpath"
752: case $with_libpath in
753: yes) { echo "configure: error: "must give --with-libpath an argument."" 1>&2; exit 1; }
754: ;;
755: no) { echo "configure: error: "--without-libpath not supported."" 1>&2; exit 1; }
756: ;;
757: *) echo "Adding ${with_libpath} to LDFLAGS"
758: for i in ${with_libpath}; do
759: LDFLAGS="${LDFLAGS} -L${i}"
760: done
761: ;;
762: esac
763: fi
764:
765:
766: # Check whether --with-libraries or --without-libraries was given.
767: if test "${with_libraries+set}" = set; then
768: withval="$with_libraries"
769: case $with_libraries in
770: yes) { echo "configure: error: "must give --with-libraries an argument."" 1>&2; exit 1; }
771: ;;
772: no) { echo "configure: error: "--without-libraries not supported."" 1>&2; exit 1; }
773: ;;
774: *) echo "Adding ${with_libraries} to LIBS"
775: for i in ${with_libraries}; do
776: case $i in
777: -l*) ;;
778: *.a) ;;
779: *.o) ;;
780: *) i="-l${i}";;
781: esac
782: LIBS="${LIBS} ${i}"
783: done
784: ;;
785: esac
786: fi
787:
788:
789: # Check whether --with-devel or --without-devel was given.
790: if test "${with_devel+set}" = set; then
791: withval="$with_devel"
792: case $with_devel in
793: yes) echo 'Setting up for developement: -Wall, flex, yacc'
794: PROGS="${PROGS} testsudoers"
795: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
796: DEV=""
797: ;;
798: no) ;;
1.6 millert 799: *) echo "Ignoring unknown argument to --with-devel: $with_devel"
1.1 millert 800: ;;
801: esac
802: fi
803:
804:
805: # Check whether --with-csops or --without-csops was given.
806: if test "${with_csops+set}" = set; then
807: withval="$with_csops"
808: case $with_csops in
809: yes) echo 'Adding CSOps standard options'
810: CHECKSIA=false
811: with_ignore_dot=yes
812: with_insults=yes
813: with_classic_insults=yes
814: with_csops_insults=yes
815: with_env_editor=yes
816: ;;
817: no) ;;
818: *) echo "Ignoring unknown argument to --with-csops: $with_csops"
819: ;;
820: esac
821: fi
822:
823:
824: # Check whether --with-passwd or --without-passwd was given.
825: if test "${with_passwd+set}" = set; then
826: withval="$with_passwd"
827: case $with_passwd in
828: yes) ;;
829: no) cat >> confdefs.h <<\EOF
830: #define WITHOUT_PASSWD 1
831: EOF
832:
833: echo $ac_n "checking whether to use shadow/passwd file authentication""... $ac_c" 1>&6
1.7 ! millert 834: echo "configure:835: checking whether to use shadow/passwd file authentication" >&5
1.1 millert 835: echo "$ac_t""no" 1>&6
836: ;;
837: *) { echo "configure: error: "Sorry, --with-passwd does not take an argument."" 1>&2; exit 1; }
838: ;;
839: esac
840: fi
841:
842:
843: # Check whether --with-skey or --without-skey was given.
844: if test "${with_skey+set}" = set; then
845: withval="$with_skey"
846: case $with_skey in
847: yes) if test -n "$with_opie"; then
848: { echo "configure: error: "cannot use both S/Key and OPIE"" 1>&2; exit 1; }
849: fi
850: cat >> confdefs.h <<\EOF
851: #define HAVE_SKEY 1
852: EOF
853:
854: echo $ac_n "checking whether to try S/Key authentication""... $ac_c" 1>&6
1.7 ! millert 855: echo "configure:856: checking whether to try S/Key authentication" >&5
1.1 millert 856: echo "$ac_t""yes" 1>&6
857: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
858: ;;
859: no) ;;
860: *) echo "Ignoring unknown argument to --with-skey: $with_skey"
861: ;;
862: esac
863: fi
864:
865:
866: # Check whether --with-opie or --without-opie was given.
867: if test "${with_opie+set}" = set; then
868: withval="$with_opie"
869: case $with_opie in
870: yes) if test -n "$with_skey"; then
871: { echo "configure: error: "cannot use both S/Key and OPIE"" 1>&2; exit 1; }
872: fi
873: cat >> confdefs.h <<\EOF
874: #define HAVE_OPIE 1
875: EOF
876:
877: echo $ac_n "checking whether to try NRL OPIE authentication""... $ac_c" 1>&6
1.7 ! millert 878: echo "configure:879: checking whether to try NRL OPIE authentication" >&5
1.1 millert 879: echo "$ac_t""yes" 1>&6
880: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
881: ;;
882: no) ;;
883: *) echo "Ignoring unknown argument to --with-opie: $with_opie"
884: ;;
885: esac
886: fi
887:
888:
889: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
890: if test "${with_long_otp_prompt+set}" = set; then
891: withval="$with_long_otp_prompt"
892: case $with_long_otp_prompt in
893: yes) cat >> confdefs.h <<\EOF
894: #define LONG_OTP_PROMPT 1
895: EOF
896:
897: echo $ac_n "checking whether to use a two line prompt for OTP authentication""... $ac_c" 1>&6
1.7 ! millert 898: echo "configure:899: checking whether to use a two line prompt for OTP authentication" >&5
1.1 millert 899: echo "$ac_t""yes" 1>&6
900: ;;
901: no) ;;
902: *) { echo "configure: error: "--with-long-otp-prompt does not take an argument."" 1>&2; exit 1; }
903: ;;
904: esac
905: fi
906:
907:
908: # Check whether --with-SecurID or --without-SecurID was given.
909: if test "${with_SecurID+set}" = set; then
910: withval="$with_SecurID"
911: case $with_SecurID in
912: no) ;;
913: *) cat >> confdefs.h <<\EOF
914: #define HAVE_SECURID 1
915: EOF
916:
917: echo $ac_n "checking whether to use SecurID for authentication""... $ac_c" 1>&6
1.7 ! millert 918: echo "configure:919: checking whether to use SecurID for authentication" >&5
1.1 millert 919: echo "$ac_t""yes" 1>&6
920: with_passwd=no
921: AUTH_OBJS="securid.o"
922: ;;
923: esac
924: fi
925:
926:
927: # Check whether --with-fwtk or --without-fwtk was given.
928: if test "${with_fwtk+set}" = set; then
929: withval="$with_fwtk"
930: case $with_fwtk in
931: yes) cat >> confdefs.h <<\EOF
932: #define HAVE_FWTK 1
933: EOF
934:
935: echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
1.7 ! millert 936: echo "configure:937: checking whether to use FWTK AuthSRV for authentication" >&5
1.1 millert 937: echo "$ac_t""yes" 1>&6
938: with_passwd=no
939: AUTH_OBJS="fwtk.o"
940: ;;
941: no) ;;
942: *) cat >> confdefs.h <<\EOF
943: #define HAVE_FWTK 1
944: EOF
945:
946: echo $ac_n "checking whether to use FWTK AuthSRV for authentication""... $ac_c" 1>&6
1.7 ! millert 947: echo "configure:948: checking whether to use FWTK AuthSRV for authentication" >&5
1.1 millert 948: echo "$ac_t""yes" 1>&6
949: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
950: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
951: with_passwd=no
952: AUTH_OBJS="fwtk.o"
953: with_fwtk=yes
954: ;;
955: esac
956: fi
957:
958:
959: # Check whether --with-kerb4 or --without-kerb4 was given.
960: if test "${with_kerb4+set}" = set; then
961: withval="$with_kerb4"
962: case $with_kerb4 in
963: yes) echo $ac_n "checking whether to try Kerberos 4 authentication""... $ac_c" 1>&6
1.7 ! millert 964: echo "configure:965: checking whether to try Kerberos 4 authentication" >&5
1.1 millert 965: echo "$ac_t""yes" 1>&6
966: ;;
967: no) ;;
968: *) { echo "configure: error: "--with-kerb4 does not take an argument."" 1>&2; exit 1; }
969: ;;
970: esac
971: fi
972:
973:
974: # Check whether --with-kerb5 or --without-kerb5 was given.
975: if test "${with_kerb5+set}" = set; then
976: withval="$with_kerb5"
977: case $with_kerb5 in
978: yes) echo $ac_n "checking whether to try Kerberos 5 authentication""... $ac_c" 1>&6
1.7 ! millert 979: echo "configure:980: checking whether to try Kerberos 5 authentication" >&5
1.1 millert 980: echo "$ac_t""yes" 1>&6
981: ;;
982: no) ;;
983: *) { echo "configure: error: "--with-kerb5 does not take an argument."" 1>&2; exit 1; }
984: ;;
985: esac
986: fi
987:
988:
989: # Check whether --with-authenticate or --without-authenticate was given.
990: if test "${with_authenticate+set}" = set; then
991: withval="$with_authenticate"
992: case $with_authenticate in
993: yes) cat >> confdefs.h <<\EOF
994: #define HAVE_AUTHENTICATE 1
995: EOF
996:
997: echo $ac_n "checking whether to use AIX general authentication""... $ac_c" 1>&6
1.7 ! millert 998: echo "configure:999: checking whether to use AIX general authentication" >&5
1.1 millert 999: echo "$ac_t""yes" 1>&6
1000: with_passwd=no
1001: AUTH_OBJS="aix_auth.o"
1002: ;;
1003: no) ;;
1004: *) { echo "configure: error: "--with-authenticate does not take an argument."" 1>&2; exit 1; }
1005: ;;
1006: esac
1007: fi
1008:
1009:
1010: # Check whether --with-pam or --without-pam was given.
1011: if test "${with_pam+set}" = set; then
1012: withval="$with_pam"
1013: case $with_pam in
1014: yes) cat >> confdefs.h <<\EOF
1015: #define HAVE_PAM 1
1016: EOF
1017:
1018: echo $ac_n "checking whether to use PAM authentication""... $ac_c" 1>&6
1.7 ! millert 1019: echo "configure:1020: checking whether to use PAM authentication" >&5
1.1 millert 1020: echo "$ac_t""yes" 1>&6
1021: with_passwd=no
1022: AUTH_OBJS="pam.o"
1023: ;;
1024: no) ;;
1025: *) { echo "configure: error: "--with-pam does not take an argument."" 1>&2; exit 1; }
1026: ;;
1027: esac
1028: fi
1029:
1030:
1031: # Check whether --with-AFS or --without-AFS was given.
1032: if test "${with_AFS+set}" = set; then
1033: withval="$with_AFS"
1034: case $with_AFS in
1035: yes) cat >> confdefs.h <<\EOF
1036: #define HAVE_AFS 1
1037: EOF
1038:
1039: echo $ac_n "checking whether to try AFS (kerberos) authentication""... $ac_c" 1>&6
1.7 ! millert 1040: echo "configure:1041: checking whether to try AFS (kerberos) authentication" >&5
1.1 millert 1041: echo "$ac_t""yes" 1>&6
1042: AUTH_OBJS="${AUTH_OBJS} afs.o"
1043: ;;
1044: no) ;;
1045: *) { echo "configure: error: "--with-AFS does not take an argument."" 1>&2; exit 1; }
1046: ;;
1047: esac
1048: fi
1049:
1050:
1051: # Check whether --with-DCE or --without-DCE was given.
1052: if test "${with_DCE+set}" = set; then
1053: withval="$with_DCE"
1054: case $with_DCE in
1055: yes) cat >> confdefs.h <<\EOF
1056: #define HAVE_DCE 1
1057: EOF
1058:
1059: echo $ac_n "checking whether to try DCE (kerberos) authentication""... $ac_c" 1>&6
1.7 ! millert 1060: echo "configure:1061: checking whether to try DCE (kerberos) authentication" >&5
1.1 millert 1061: echo "$ac_t""yes" 1>&6
1062: AUTH_OBJS="${AUTH_OBJS} dce.o"
1063: ;;
1064: no) ;;
1065: *) { echo "configure: error: "--with-DCE does not take an argument."" 1>&2; exit 1; }
1066: ;;
1067: esac
1068: fi
1069:
1070:
1.6 millert 1071: # Check whether --with-logincap or --without-logincap was given.
1072: if test "${with_logincap+set}" = set; then
1073: withval="$with_logincap"
1074: case $with_logincap in
1.7 ! millert 1075: yes|no) ;;
! 1076: *) { echo "configure: error: "--with-logincap does not take an argument."" 1>&2; exit 1; }
! 1077: ;;
! 1078: esac
! 1079: fi
! 1080:
1.6 millert 1081:
1.7 ! millert 1082: # Check whether --with-bsdauth or --without-bsdauth was given.
! 1083: if test "${with_bsdauth+set}" = set; then
! 1084: withval="$with_bsdauth"
! 1085: case $with_bsdauth in
! 1086: yes) with_logincap=yes
1.6 millert 1087: ;;
1088: no) ;;
1.7 ! millert 1089: *) { echo "configure: error: "--with-bsdauth does not take an argument."" 1>&2; exit 1; }
1.6 millert 1090: ;;
1091: esac
1092: fi
1093:
1094:
1.1 millert 1095: echo $ac_n "checking whether to lecture users the first time they run sudo""... $ac_c" 1>&6
1.7 ! millert 1096: echo "configure:1097: checking whether to lecture users the first time they run sudo" >&5
1.1 millert 1097: # Check whether --with-lecture or --without-lecture was given.
1098: if test "${with_lecture+set}" = set; then
1099: withval="$with_lecture"
1100: case $with_lecture in
1101: yes|short) echo "$ac_t""yes" 1>&6
1102: ;;
1103: no|none) cat >> confdefs.h <<\EOF
1104: #define NO_LECTURE 1
1105: EOF
1106:
1107: echo "$ac_t""no" 1>&6
1108: ;;
1109: *) { echo "configure: error: "unknown argument to --with-lecture: $with_lecture"" 1>&2; exit 1; }
1110: ;;
1111: esac
1112: else
1113: echo "$ac_t""yes" 1>&6
1114: fi
1115:
1116:
1117: echo $ac_n "checking whether sudo should log via syslog or to a file by default""... $ac_c" 1>&6
1.7 ! millert 1118: echo "configure:1119: checking whether sudo should log via syslog or to a file by default" >&5
1.1 millert 1119: # Check whether --with-logging or --without-logging was given.
1120: if test "${with_logging+set}" = set; then
1121: withval="$with_logging"
1122: case $with_logging in
1123: yes) { echo "configure: error: "must give --with-logging an argument."" 1>&2; exit 1; }
1124: ;;
1125: no) { echo "configure: error: "--without-logging not supported."" 1>&2; exit 1; }
1126: ;;
1127: syslog) cat >> confdefs.h <<\EOF
1128: #define LOGGING SLOG_SYSLOG
1129: EOF
1130:
1131: echo "$ac_t""syslog" 1>&6
1132: ;;
1133: file) cat >> confdefs.h <<\EOF
1134: #define LOGGING SLOG_FILE
1135: EOF
1136:
1137: echo "$ac_t""file" 1>&6
1138: ;;
1139: both) cat >> confdefs.h <<\EOF
1140: #define LOGGING SLOG_BOTH
1141: EOF
1142:
1143: echo "$ac_t""both" 1>&6
1144: ;;
1145: *) { echo "configure: error: "unknown argument to --with-logging: $with_logging"" 1>&2; exit 1; }
1146: ;;
1147: esac
1148: else
1149: cat >> confdefs.h <<\EOF
1150: #define LOGGING SLOG_SYSLOG
1151: EOF
1152: echo "$ac_t""syslog" 1>&6
1153: fi
1154:
1155:
1156: echo $ac_n "checking which syslog facility sudo should log with""... $ac_c" 1>&6
1.7 ! millert 1157: echo "configure:1158: checking which syslog facility sudo should log with" >&5
1.1 millert 1158: # Check whether --with-logfac or --without-logfac was given.
1159: if test "${with_logfac+set}" = set; then
1160: withval="$with_logfac"
1161: case $with_logfac in
1162: yes) { echo "configure: error: "must give --with-logfac an argument."" 1>&2; exit 1; }
1163: ;;
1164: no) { echo "configure: error: "--without-logfac not supported."" 1>&2; exit 1; }
1165: ;;
1166: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) cat >> confdefs.h <<EOF
1167: #define LOGFAC "$with_logfac"
1168: EOF
1169:
1170: echo "$ac_t""$with_logfac" 1>&6
1171: ;;
1172: *) { echo "configure: error: "$with_logfac is not a supported syslog facility."" 1>&2; exit 1; }
1173: ;;
1174: esac
1175: else
1176: cat >> confdefs.h <<EOF
1177: #define LOGFAC "local2"
1178: EOF
1179: echo "$ac_t"""local2"" 1>&6
1180: fi
1181:
1182:
1183: echo $ac_n "checking at which syslog priority to log commands""... $ac_c" 1>&6
1.7 ! millert 1184: echo "configure:1185: checking at which syslog priority to log commands" >&5
1.1 millert 1185: # Check whether --with-goodpri or --without-goodpri was given.
1186: if test "${with_goodpri+set}" = set; then
1187: withval="$with_goodpri"
1188: case $with_goodpri in
1189: yes) { echo "configure: error: "must give --with-goodpri an argument."" 1>&2; exit 1; }
1190: ;;
1191: no) { echo "configure: error: "--without-goodpri not supported."" 1>&2; exit 1; }
1192: ;;
1193: alert|crit|debug|emerg|err|info|notice|warning) cat >> confdefs.h <<EOF
1194: #define PRI_SUCCESS "$with_goodpri"
1195: EOF
1196:
1197: echo "$ac_t""$with_goodpri" 1>&6
1198: ;;
1199: *) { echo "configure: error: "$with_goodpri is not a supported syslog priority."" 1>&2; exit 1; }
1200: ;;
1201: esac
1202: else
1203: cat >> confdefs.h <<EOF
1204: #define PRI_SUCCESS "notice"
1205: EOF
1206: echo "$ac_t"""notice"" 1>&6
1207: fi
1208:
1209:
1210: echo $ac_n "checking at which syslog priority to log failures""... $ac_c" 1>&6
1.7 ! millert 1211: echo "configure:1212: checking at which syslog priority to log failures" >&5
1.1 millert 1212: # Check whether --with-badpri or --without-badpri was given.
1213: if test "${with_badpri+set}" = set; then
1214: withval="$with_badpri"
1215: case $with_badpri in
1216: yes) { echo "configure: error: "must give --with-badpri an argument."" 1>&2; exit 1; }
1217: ;;
1218: no) { echo "configure: error: "--without-badpri not supported."" 1>&2; exit 1; }
1219: ;;
1220: alert|crit|debug|emerg|err|info|notice|warning) cat >> confdefs.h <<EOF
1221: #define PRI_FAILURE "$with_badpri"
1222: EOF
1223:
1224: echo "$ac_t""$with_badpri" 1>&6
1225: ;;
1226: *) { echo "configure: error: $with_badpri is not a supported syslog priority." 1>&2; exit 1; }
1227: ;;
1228: esac
1229: else
1230: cat >> confdefs.h <<EOF
1231: #define PRI_FAILURE "alert"
1232: EOF
1233: echo "$ac_t"""alert"" 1>&6
1234: fi
1235:
1236:
1237: # Check whether --with-logpath or --without-logpath was given.
1238: if test "${with_logpath+set}" = set; then
1239: withval="$with_logpath"
1240: case $with_logpath in
1241: yes) { echo "configure: error: "must give --with-logpath an argument."" 1>&2; exit 1; }
1242: ;;
1243: no) { echo "configure: error: "--without-logpath not supported."" 1>&2; exit 1; }
1244: ;;
1245: esac
1246: fi
1247:
1248:
1249: echo $ac_n "checking how long a line in the log file should be""... $ac_c" 1>&6
1.7 ! millert 1250: echo "configure:1251: checking how long a line in the log file should be" >&5
1.1 millert 1251: # Check whether --with-loglen or --without-loglen was given.
1252: if test "${with_loglen+set}" = set; then
1253: withval="$with_loglen"
1254: case $with_loglen in
1255: yes) { echo "configure: error: "must give --with-loglen an argument."" 1>&2; exit 1; }
1256: ;;
1257: no) { echo "configure: error: "--without-loglen not supported."" 1>&2; exit 1; }
1258: ;;
1259: [0-9]*) cat >> confdefs.h <<EOF
1260: #define MAXLOGFILELEN $with_loglen
1261: EOF
1262:
1263: echo "$ac_t""$with_loglen" 1>&6
1264: ;;
1265: *) { echo "configure: error: "you must enter a number, not $with_loglen"" 1>&2; exit 1; }
1266: ;;
1267: esac
1268: else
1269: cat >> confdefs.h <<\EOF
1270: #define MAXLOGFILELEN 80
1271: EOF
1272: echo "$ac_t""80" 1>&6
1273: fi
1274:
1275:
1276: echo $ac_n "checking whether sudo should ignore '.' or '' in \$PATH""... $ac_c" 1>&6
1.7 ! millert 1277: echo "configure:1278: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.1 millert 1278: # Check whether --with-ignore-dot or --without-ignore-dot was given.
1279: if test "${with_ignore_dot+set}" = set; then
1280: withval="$with_ignore_dot"
1281: case $with_ignore_dot in
1282: yes) cat >> confdefs.h <<\EOF
1283: #define IGNORE_DOT_PATH 1
1284: EOF
1285:
1286: echo "$ac_t""yes" 1>&6
1287: ;;
1288: no) echo "$ac_t""no" 1>&6
1289: ;;
1290: *) { echo "configure: error: "--with-ignore-dot does not take an argument."" 1>&2; exit 1; }
1291: ;;
1292: esac
1293: else
1294: echo "$ac_t""no" 1>&6
1295: fi
1296:
1297:
1298: echo $ac_n "checking who should get the mail that sudo sends""... $ac_c" 1>&6
1.7 ! millert 1299: echo "configure:1300: checking who should get the mail that sudo sends" >&5
1.1 millert 1300: # Check whether --with-mailto or --without-mailto was given.
1301: if test "${with_mailto+set}" = set; then
1302: withval="$with_mailto"
1303: case $with_mailto in
1304: yes) { echo "configure: error: "must give --with-mailto an argument."" 1>&2; exit 1; }
1305: ;;
1306: no) { echo "configure: error: "--without-mailto not supported."" 1>&2; exit 1; }
1307: ;;
1308: *) cat >> confdefs.h <<EOF
1309: #define MAILTO "$with_mailto"
1310: EOF
1311:
1312: echo "$ac_t""$with_mailto" 1>&6
1313: ;;
1314: esac
1315: else
1316: cat >> confdefs.h <<\EOF
1317: #define MAILTO "root"
1318: EOF
1319: echo "$ac_t""root" 1>&6
1320: fi
1321:
1322:
1323: # Check whether --with-mailsubject or --without-mailsubject was given.
1324: if test "${with_mailsubject+set}" = set; then
1325: withval="$with_mailsubject"
1326: case $with_mailsubject in
1327: yes) { echo "configure: error: "must give --with-mailsubject an argument."" 1>&2; exit 1; }
1328: ;;
1329: no) echo "Sorry, --without-mailsubject not supported."
1330: ;;
1331: *) cat >> confdefs.h <<EOF
1332: #define MAILSUBJECT "$with_mailsubject"
1333: EOF
1334:
1335: echo $ac_n "checking sudo mail subject""... $ac_c" 1>&6
1.7 ! millert 1336: echo "configure:1337: checking sudo mail subject" >&5
1.1 millert 1337: echo "$ac_t""Using alert mail subject: $with_mailsubject" 1>&6
1338: ;;
1339: esac
1340: else
1341: cat >> confdefs.h <<\EOF
1342: #define MAILSUBJECT "*** SECURITY information for %h ***"
1343: EOF
1344:
1345: fi
1346:
1347:
1348: echo $ac_n "checking whether to send mail when a user is not in sudoers""... $ac_c" 1>&6
1.7 ! millert 1349: echo "configure:1350: checking whether to send mail when a user is not in sudoers" >&5
1.1 millert 1350: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
1351: if test "${with_mail_if_no_user+set}" = set; then
1352: withval="$with_mail_if_no_user"
1353: case $with_mail_if_no_user in
1354: yes) cat >> confdefs.h <<\EOF
1355: #define SEND_MAIL_WHEN_NO_USER 1
1356: EOF
1357:
1358: echo "$ac_t""yes" 1>&6
1359: ;;
1360: no) echo "$ac_t""no" 1>&6
1361: ;;
1362: *) { echo "configure: error: "unknown argument to --with-mail-if-no-user: $with_mail_if_no_user"" 1>&2; exit 1; }
1363: ;;
1364: esac
1365: else
1366: cat >> confdefs.h <<\EOF
1367: #define SEND_MAIL_WHEN_NO_USER 1
1368: EOF
1369: echo "$ac_t""yes" 1>&6
1370: fi
1371:
1372:
1373: echo $ac_n "checking whether to send mail when user listed but not for this host""... $ac_c" 1>&6
1.7 ! millert 1374: echo "configure:1375: checking whether to send mail when user listed but not for this host" >&5
1.1 millert 1375: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
1376: if test "${with_mail_if_no_host+set}" = set; then
1377: withval="$with_mail_if_no_host"
1378: case $with_mail_if_no_host in
1379: yes) cat >> confdefs.h <<\EOF
1380: #define SEND_MAIL_WHEN_NO_HOST 1
1381: EOF
1382:
1383: echo "$ac_t""yes" 1>&6
1384: ;;
1385: no) echo "$ac_t""no" 1>&6
1386: ;;
1387: *) { echo "configure: error: "unknown argument to --with-mail-if-no-host: $with_mail_if_no_host"" 1>&2; exit 1; }
1388: ;;
1389: esac
1390: else
1391: echo "$ac_t""no" 1>&6
1392: fi
1393:
1394:
1395: echo $ac_n "checking whether to send mail when a user tries a disallowed command""... $ac_c" 1>&6
1.7 ! millert 1396: echo "configure:1397: checking whether to send mail when a user tries a disallowed command" >&5
1.1 millert 1397: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
1398: if test "${with_mail_if_noperms+set}" = set; then
1399: withval="$with_mail_if_noperms"
1400: case $with_mail_if_noperms in
1401: yes) cat >> confdefs.h <<\EOF
1402: #define SEND_MAIL_WHEN_NOT_OK 1
1403: EOF
1404:
1405: echo "$ac_t""yes" 1>&6
1406: ;;
1407: no) echo "$ac_t""no" 1>&6
1408: ;;
1409: *) { echo "configure: error: "unknown argument to --with-mail-if-noperms: $with_mail_if_noperms"" 1>&2; exit 1; }
1410: ;;
1411: esac
1412: else
1413: echo "$ac_t""no" 1>&6
1414: fi
1415:
1416:
1417: echo $ac_n "checking for bad password prompt""... $ac_c" 1>&6
1.7 ! millert 1418: echo "configure:1419: checking for bad password prompt" >&5
1.1 millert 1419: # Check whether --with-passprompt or --without-passprompt was given.
1420: if test "${with_passprompt+set}" = set; then
1421: withval="$with_passprompt"
1422: case $with_passprompt in
1423: yes) { echo "configure: error: "must give --with-passprompt an argument."" 1>&2; exit 1; }
1424: ;;
1425: no) echo "Sorry, --without-passprompt not supported."
1426: ;;
1427: *) cat >> confdefs.h <<EOF
1428: #define PASSPROMPT "$with_passprompt"
1429: EOF
1430:
1431: echo "$ac_t""$with_passprompt" 1>&6
1432: ;;
1433: esac
1434: else
1435: cat >> confdefs.h <<\EOF
1436: #define PASSPROMPT "Password:"
1437: EOF
1438: echo "$ac_t""Password:" 1>&6
1439: fi
1440:
1441:
1442: echo $ac_n "checking for bad password message""... $ac_c" 1>&6
1.7 ! millert 1443: echo "configure:1444: checking for bad password message" >&5
1.1 millert 1444: # Check whether --with-badpass-message or --without-badpass-message was given.
1445: if test "${with_badpass_message+set}" = set; then
1446: withval="$with_badpass_message"
1447: case $with_badpass_message in
1448: yes) { echo "configure: error: "Must give --with-badpass-message an argument."" 1>&2; exit 1; }
1449: ;;
1450: no) echo "Sorry, --without-badpass-message not supported."
1451: ;;
1452: *) cat >> confdefs.h <<EOF
1453: #define INCORRECT_PASSWORD "$with_badpass_message"
1454: EOF
1455:
1456: echo "$ac_t""$with_badpass_message" 1>&6
1457: ;;
1458: esac
1459: else
1460: cat >> confdefs.h <<\EOF
1461: #define INCORRECT_PASSWORD "Sorry, try again."
1462: EOF
1463: echo "$ac_t""Sorry, try again." 1>&6
1464: fi
1465:
1466:
1467: echo $ac_n "checking whether to expect fully qualified hosts in sudoers""... $ac_c" 1>&6
1.7 ! millert 1468: echo "configure:1469: checking whether to expect fully qualified hosts in sudoers" >&5
1.1 millert 1469: # Check whether --with-fqdn or --without-fqdn was given.
1470: if test "${with_fqdn+set}" = set; then
1471: withval="$with_fqdn"
1472: case $with_fqdn in
1473: yes) cat >> confdefs.h <<\EOF
1474: #define FQDN 1
1475: EOF
1476:
1477: echo "$ac_t""yes" 1>&6
1478: ;;
1479: no) echo "$ac_t""no" 1>&6
1480: ;;
1481: *) { echo "configure: error: "--with-fqdn does not take an argument."" 1>&2; exit 1; }
1482: ;;
1483: esac
1484: else
1485: echo "$ac_t""no" 1>&6
1486: fi
1487:
1488:
1489: # Check whether --with-timedir or --without-timedir was given.
1490: if test "${with_timedir+set}" = set; then
1491: withval="$with_timedir"
1492: case $with_timedir in
1493: yes) { echo "configure: error: "must give --with-timedir an argument."" 1>&2; exit 1; }
1494: ;;
1495: no) { echo "configure: error: "--without-timedir not supported."" 1>&2; exit 1; }
1496: ;;
1497: esac
1498: fi
1499:
1500:
1501: # Check whether --with-sendmail or --without-sendmail was given.
1502: if test "${with_sendmail+set}" = set; then
1503: withval="$with_sendmail"
1504: case $with_sendmail in
1505: yes) with_sendmail=""
1506: ;;
1507: no) ;;
1508: *) cat >> confdefs.h <<EOF
1509: #define _PATH_SENDMAIL "$with_sendmail"
1510: EOF
1511:
1512: ;;
1513: esac
1514: fi
1515:
1516:
1517: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
1518: if test "${with_sudoers_mode+set}" = set; then
1519: withval="$with_sudoers_mode"
1520: case $with_sudoers_mode in
1521: yes) { echo "configure: error: "must give --with-sudoers-mode an argument."" 1>&2; exit 1; }
1522: ;;
1523: no) { echo "configure: error: "--without-sudoers-mode not supported."" 1>&2; exit 1; }
1524: ;;
1525: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
1526: ;;
1527: 0*) SUDOERS_MODE=$with_sudoers_mode
1528: ;;
1529: *) { echo "configure: error: "you must use a numeric uid, not a name."" 1>&2; exit 1; }
1530: ;;
1531: esac
1532: fi
1533:
1534:
1535: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
1536: if test "${with_sudoers_uid+set}" = set; then
1537: withval="$with_sudoers_uid"
1538: case $with_sudoers_uid in
1539: yes) { echo "configure: error: "must give --with-sudoers-uid an argument."" 1>&2; exit 1; }
1540: ;;
1541: no) { echo "configure: error: "--without-sudoers-uid not supported."" 1>&2; exit 1; }
1542: ;;
1543: [0-9]*) SUDOERS_UID=$with_sudoers_uid
1544: ;;
1545: *) { echo "configure: error: "you must use a numeric uid, not a name."" 1>&2; exit 1; }
1546: ;;
1547: esac
1548: fi
1549:
1550:
1551: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
1552: if test "${with_sudoers_gid+set}" = set; then
1553: withval="$with_sudoers_gid"
1554: case $with_sudoers_gid in
1555: yes) { echo "configure: error: "must give --with-sudoers-gid an argument."" 1>&2; exit 1; }
1556: ;;
1557: no) { echo "configure: error: "--without-sudoers-gid not supported."" 1>&2; exit 1; }
1558: ;;
1559: [0-9]*) SUDOERS_GID=$with_sudoers_gid
1560: ;;
1561: *) { echo "configure: error: "you must use a numeric gid, not a name."" 1>&2; exit 1; }
1562: ;;
1563: esac
1564: fi
1565:
1566:
1567: echo $ac_n "checking for umask programs should be run with""... $ac_c" 1>&6
1.7 ! millert 1568: echo "configure:1569: checking for umask programs should be run with" >&5
1.1 millert 1569: # Check whether --with-umask or --without-umask was given.
1570: if test "${with_umask+set}" = set; then
1571: withval="$with_umask"
1572: case $with_umask in
1573: yes) { echo "configure: error: "must give --with-umask an argument."" 1>&2; exit 1; }
1574: ;;
1575: no) echo "$ac_t""user" 1>&6
1576: ;;
1577: [0-9]*) cat >> confdefs.h <<EOF
1578: #define SUDO_UMASK $with_umask
1579: EOF
1580:
1581: echo "$ac_t""$with_umask" 1>&6
1582: ;;
1583: *) { echo "configure: error: "you must enter a numeric mask."" 1>&2; exit 1; }
1584: ;;
1585: esac
1586: else
1587: cat >> confdefs.h <<\EOF
1588: #define SUDO_UMASK 0022
1589: EOF
1590: echo "$ac_t""0022" 1>&6
1591: fi
1592:
1593:
1594: echo $ac_n "checking for default user to run commands as""... $ac_c" 1>&6
1.7 ! millert 1595: echo "configure:1596: checking for default user to run commands as" >&5
1.1 millert 1596: # Check whether --with-runas-default or --without-runas-default was given.
1597: if test "${with_runas_default+set}" = set; then
1598: withval="$with_runas_default"
1599: case $with_runas_default in
1600: yes) { echo "configure: error: "must give --with-runas-default an argument."" 1>&2; exit 1; }
1601: ;;
1602: no) { echo "configure: error: "--without-runas-default not supported."" 1>&2; exit 1; }
1603: ;;
1604: *) cat >> confdefs.h <<EOF
1605: #define RUNAS_DEFAULT "$with_runas_default"
1606: EOF
1607:
1608: echo "$ac_t""$with_runas_default" 1>&6
1609: ;;
1610: esac
1611: else
1612: cat >> confdefs.h <<\EOF
1613: #define RUNAS_DEFAULT "root"
1614: EOF
1615: echo "$ac_t""root" 1>&6
1616: fi
1617:
1618:
1619: # Check whether --with-exempt or --without-exempt was given.
1620: if test "${with_exempt+set}" = set; then
1621: withval="$with_exempt"
1622: case $with_exempt in
1623: yes) { echo "configure: error: "must give --with-exempt an argument."" 1>&2; exit 1; }
1624: ;;
1625: no) { echo "configure: error: "--without-exempt not supported."" 1>&2; exit 1; }
1626: ;;
1627: *) cat >> confdefs.h <<EOF
1628: #define EXEMPTGROUP "$with_exempt"
1629: EOF
1630:
1631: echo $ac_n "checking for group to be exempt from password""... $ac_c" 1>&6
1.7 ! millert 1632: echo "configure:1633: checking for group to be exempt from password" >&5
1.1 millert 1633: echo "$ac_t""$with_exempt" 1>&6
1634: ;;
1635: esac
1636: fi
1637:
1638:
1639: echo $ac_n "checking for editor that visudo should use""... $ac_c" 1>&6
1.7 ! millert 1640: echo "configure:1641: checking for editor that visudo should use" >&5
1.1 millert 1641: # Check whether --with-editor or --without-editor was given.
1642: if test "${with_editor+set}" = set; then
1643: withval="$with_editor"
1644: case $with_editor in
1645: yes) { echo "configure: error: "must give --with-editor an argument."" 1>&2; exit 1; }
1646: ;;
1647: no) { echo "configure: error: "--without-editor not supported."" 1>&2; exit 1; }
1648: ;;
1649: *) cat >> confdefs.h <<EOF
1650: #define EDITOR "$with_editor"
1651: EOF
1652:
1653: echo "$ac_t""$with_editor" 1>&6
1654: ;;
1655: esac
1656: else
1657: cat >> confdefs.h <<\EOF
1658: #define EDITOR _PATH_VI
1659: EOF
1660: echo "$ac_t""vi" 1>&6
1661: fi
1662:
1663:
1664: echo $ac_n "checking whether to obey EDITOR and VISUAL environment variables""... $ac_c" 1>&6
1.7 ! millert 1665: echo "configure:1666: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.1 millert 1666: # Check whether --with-env-editor or --without-env-editor was given.
1667: if test "${with_env_editor+set}" = set; then
1668: withval="$with_env_editor"
1669: case $with_env_editor in
1670: yes) cat >> confdefs.h <<\EOF
1671: #define ENV_EDITOR 1
1672: EOF
1673:
1674: echo "$ac_t""yes" 1>&6
1675: ;;
1676: no) echo "$ac_t""no" 1>&6
1677: ;;
1678: *) { echo "configure: error: "--with-env-editor does not take an argument."" 1>&2; exit 1; }
1679: ;;
1680: esac
1681: else
1682: echo "$ac_t""no" 1>&6
1683: fi
1684:
1685:
1686: echo $ac_n "checking number of tries a user gets to enter their password""... $ac_c" 1>&6
1.7 ! millert 1687: echo "configure:1688: checking number of tries a user gets to enter their password" >&5
1.1 millert 1688: # Check whether --with-passwd-tries or --without-passwd-tries was given.
1689: if test "${with_passwd_tries+set}" = set; then
1690: withval="$with_passwd_tries"
1691: case $with_passwd_tries in
1692: yes) cat >> confdefs.h <<\EOF
1693: #define TRIES_FOR_PASSWORD 3
1694: EOF
1695:
1696: echo "$ac_t""3" 1>&6
1697: ;;
1698: no) { echo "configure: error: "--without-editor not supported."" 1>&2; exit 1; }
1699: ;;
1700: [1-9]*) cat >> confdefs.h <<EOF
1701: #define TRIES_FOR_PASSWORD $with_passwd_tries
1702: EOF
1703:
1704: echo "$ac_t""$with_passwd_tries" 1>&6
1705: ;;
1706: *) { echo "configure: error: "you must enter the numer of tries, > 0"" 1>&2; exit 1; }
1707: ;;
1708: esac
1709: else
1710: cat >> confdefs.h <<\EOF
1711: #define TRIES_FOR_PASSWORD 3
1712: EOF
1713: echo "$ac_t""3" 1>&6
1714: fi
1715:
1716:
1717: echo $ac_n "checking time in minutes after which sudo will ask for a password again""... $ac_c" 1>&6
1.7 ! millert 1718: echo "configure:1719: checking time in minutes after which sudo will ask for a password again" >&5
1.1 millert 1719: # Check whether --with-timeout or --without-timeout was given.
1720: if test "${with_timeout+set}" = set; then
1721: withval="$with_timeout"
1722: echo $with_timeout; case $with_timeout in
1723: yes) cat >> confdefs.h <<\EOF
1724: #define TIMEOUT 5
1725: EOF
1726:
1727: echo "$ac_t""5" 1>&6
1728: ;;
1729: no) cat >> confdefs.h <<\EOF
1730: #define TIMEOUT 0
1731: EOF
1732:
1733: echo "$ac_t""no timeout" 1>&6
1734: ;;
1735: [0-9]*) cat >> confdefs.h <<EOF
1736: #define TIMEOUT $with_timeout
1737: EOF
1738:
1739: echo "$ac_t""$with_timeout" 1>&6
1740: ;;
1741: *) { echo "configure: error: "you must enter the numer of minutes."" 1>&2; exit 1; }
1742: ;;
1743: esac
1744: else
1745: cat >> confdefs.h <<\EOF
1746: #define TIMEOUT 5
1747: EOF
1748: echo "$ac_t""5" 1>&6
1749: fi
1750:
1751:
1752: echo $ac_n "checking time in minutes after the password prompt will time out""... $ac_c" 1>&6
1.7 ! millert 1753: echo "configure:1754: checking time in minutes after the password prompt will time out" >&5
1.1 millert 1754: # Check whether --with-password-timeout or --without-password-timeout was given.
1755: if test "${with_password_timeout+set}" = set; then
1756: withval="$with_password_timeout"
1757: case $with_password_timeout in
1758: yes) cat >> confdefs.h <<\EOF
1759: #define PASSWORD_TIMEOUT 5
1760: EOF
1761:
1762: echo "$ac_t""5" 1>&6
1763: ;;
1764: no) cat >> confdefs.h <<\EOF
1765: #define PASSWORD_TIMEOUT 0
1766: EOF
1767:
1768: echo "$ac_t""no timeout" 1>&6
1769: ;;
1770: [0-9]*) cat >> confdefs.h <<EOF
1771: #define PASSWORD_TIMEOUT $with_password_timeout
1772: EOF
1773:
1774: echo "$ac_t""$with_password_timeout" 1>&6
1775: ;;
1776: *) { echo "configure: error: "you must enter the numer of minutes."" 1>&2; exit 1; }
1777: ;;
1778: esac
1779: else
1780: cat >> confdefs.h <<\EOF
1781: #define PASSWORD_TIMEOUT 5
1782: EOF
1783: echo "$ac_t""5" 1>&6
1784: fi
1785:
1786:
1787: echo $ac_n "checking whether to use execvp or execv""... $ac_c" 1>&6
1.7 ! millert 1788: echo "configure:1789: checking whether to use execvp or execv" >&5
1.1 millert 1789: # Check whether --with-execv or --without-execv was given.
1790: if test "${with_execv+set}" = set; then
1791: withval="$with_execv"
1792: case $with_execv in
1793: yes) cat >> confdefs.h <<\EOF
1794: #define USE_EXECV 1
1795: EOF
1796:
1797: echo "$ac_t""execv" 1>&6
1798: ;;
1799: no) echo "$ac_t""execvp" 1>&6
1800: ;;
1801: *) { echo "configure: error: "--with-execv does not take an argument."" 1>&2; exit 1; }
1802: ;;
1803: esac
1804: else
1805: echo "$ac_t""execvp" 1>&6
1806: fi
1807:
1808:
1809: echo $ac_n "checking whether to use per-tty ticket files""... $ac_c" 1>&6
1.7 ! millert 1810: echo "configure:1811: checking whether to use per-tty ticket files" >&5
1.1 millert 1811: # Check whether --with-tty-tickets or --without-tty-tickets was given.
1812: if test "${with_tty_tickets+set}" = set; then
1813: withval="$with_tty_tickets"
1814: case $with_tty_tickets in
1815: yes) cat >> confdefs.h <<\EOF
1816: #define USE_TTY_TICKETS 1
1817: EOF
1818:
1819: echo "$ac_t""yes" 1>&6
1820: ;;
1821: no) echo "$ac_t""no" 1>&6
1822: ;;
1823: *) { echo "configure: error: "--with-tty-tickets does not take an argument."" 1>&2; exit 1; }
1824: ;;
1825: esac
1826: else
1827: echo "$ac_t""no" 1>&6
1828: fi
1829:
1830:
1831: echo $ac_n "checking whether to include insults""... $ac_c" 1>&6
1.7 ! millert 1832: echo "configure:1833: checking whether to include insults" >&5
1.1 millert 1833: # Check whether --with-insults or --without-insults was given.
1834: if test "${with_insults+set}" = set; then
1835: withval="$with_insults"
1836: case $with_insults in
1837: yes) cat >> confdefs.h <<\EOF
1838: #define USE_INSULTS 1
1839: EOF
1840:
1841: echo "$ac_t""yes" 1>&6
1842: with_classic_insults=yes
1843: with_csops_insults=yes
1844: ;;
1845: no) echo "$ac_t""no" 1>&6
1846: ;;
1847: *) { echo "configure: error: "--with-insults does not take an argument."" 1>&2; exit 1; }
1848: ;;
1849: esac
1850: else
1851: echo "$ac_t""no" 1>&6
1852: fi
1853:
1854:
1855: # Check whether --with-all-insults or --without-all-insults was given.
1856: if test "${with_all_insults+set}" = set; then
1857: withval="$with_all_insults"
1858: case $with_all_insults in
1859: yes) with_classic_insults=yes
1860: with_csops_insults=yes
1861: with_hal_insults=yes
1862: with_goons_insults=yes
1863: ;;
1864: no) ;;
1865: *) { echo "configure: error: "--with-all-insults does not take an argument."" 1>&2; exit 1; }
1866: ;;
1867: esac
1868: fi
1869:
1870:
1871: # Check whether --with-classic-insults or --without-classic-insults was given.
1872: if test "${with_classic_insults+set}" = set; then
1873: withval="$with_classic_insults"
1874: case $with_classic_insults in
1875: yes) cat >> confdefs.h <<\EOF
1876: #define CLASSIC_INSULTS 1
1877: EOF
1878:
1879: ;;
1880: no) ;;
1881: *) { echo "configure: error: "--with-classic-insults does not take an argument."" 1>&2; exit 1; }
1882: ;;
1883: esac
1884: fi
1885:
1886:
1887: # Check whether --with-csops-insults or --without-csops-insults was given.
1888: if test "${with_csops_insults+set}" = set; then
1889: withval="$with_csops_insults"
1890: case $with_csops_insults in
1891: yes) cat >> confdefs.h <<\EOF
1892: #define CSOPS_INSULTS 1
1893: EOF
1894:
1895: ;;
1896: no) ;;
1897: *) { echo "configure: error: "--with-csops-insults does not take an argument."" 1>&2; exit 1; }
1898: ;;
1899: esac
1900: fi
1901:
1902:
1903: # Check whether --with-hal-insults or --without-hal-insults was given.
1904: if test "${with_hal_insults+set}" = set; then
1905: withval="$with_hal_insults"
1906: case $with_hal_insults in
1907: yes) cat >> confdefs.h <<\EOF
1908: #define HAL_INSULTS 1
1909: EOF
1910:
1911: ;;
1912: no) ;;
1913: *) { echo "configure: error: "--with-hal-insults does not take an argument."" 1>&2; exit 1; }
1914: ;;
1915: esac
1916: fi
1917:
1918:
1919: # Check whether --with-goons-insults or --without-goons-insults was given.
1920: if test "${with_goons_insults+set}" = set; then
1921: withval="$with_goons_insults"
1922: case $with_goons_insults in
1923: yes) cat >> confdefs.h <<\EOF
1924: #define GOONS_INSULTS 1
1925: EOF
1926:
1927: ;;
1928: no) ;;
1929: *) { echo "configure: error: "--with-goons-insults does not take an argument."" 1>&2; exit 1; }
1930: ;;
1931: esac
1932: fi
1933:
1934:
1935: if test "$with_insults" = "yes"; then
1936: echo $ac_n "checking which insult sets to include""... $ac_c" 1>&6
1.7 ! millert 1937: echo "configure:1938: checking which insult sets to include" >&5
1.1 millert 1938: i=""
1939: test "$with_goons_insults" = "yes" && i="goons ${i}"
1940: test "$with_hal_insults" = "yes" && i="hal ${i}"
1941: test "$with_csops_insults" = "yes" && i="csops ${i}"
1942: test "$with_classic_insults" = "yes" && i="classic ${i}"
1943: echo "$ac_t""$i" 1>&6
1944: fi
1945:
1946: echo $ac_n "checking whether to override the user's path""... $ac_c" 1>&6
1.7 ! millert 1947: echo "configure:1948: checking whether to override the user's path" >&5
1.1 millert 1948: # Check whether --with-secure-path or --without-secure-path was given.
1949: if test "${with_secure_path+set}" = set; then
1950: withval="$with_secure_path"
1951: case $with_secure_path in
1952: yes) cat >> confdefs.h <<EOF
1953: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1954: EOF
1955:
1956: echo "$ac_t"":/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" 1>&6
1957: ;;
1958: no) echo "$ac_t""no" 1>&6
1959: ;;
1960: *) cat >> confdefs.h <<EOF
1961: #define SECURE_PATH "$with_secure_path"
1962: EOF
1963:
1964: echo "$ac_t""$with_secure_path" 1>&6
1965: ;;
1966: esac
1967: else
1968: echo "$ac_t""no" 1>&6
1969: fi
1970:
1971:
1972: echo $ac_n "checking whether to get ip addresses from the network interfaces""... $ac_c" 1>&6
1.7 ! millert 1973: echo "configure:1974: checking whether to get ip addresses from the network interfaces" >&5
1.1 millert 1974: # Check whether --with-interfaces or --without-interfaces was given.
1975: if test "${with_interfaces+set}" = set; then
1976: withval="$with_interfaces"
1977: case $with_interfaces in
1978: yes) echo "$ac_t""yes" 1>&6
1979: ;;
1980: no) cat >> confdefs.h <<\EOF
1981: #define STUB_LOAD_INTERFACES 1
1982: EOF
1983:
1984: echo "$ac_t""no" 1>&6
1985: ;;
1986: *) { echo "configure: error: "--with-interfaces does not take an argument."" 1>&2; exit 1; }
1987: ;;
1988: esac
1989: else
1990: echo "$ac_t""yes" 1>&6
1991: fi
1992:
1993:
1994:
1995: echo $ac_n "checking whether to do user authentication by default""... $ac_c" 1>&6
1.7 ! millert 1996: echo "configure:1997: checking whether to do user authentication by default" >&5
1.1 millert 1997: # Check whether --enable-authentication or --disable-authentication was given.
1998: if test "${enable_authentication+set}" = set; then
1999: enableval="$enable_authentication"
2000: case "$enableval" in
2001: yes) echo "$ac_t""yes" 1>&6
2002: ;;
2003: no) echo "$ac_t""no" 1>&6
2004: cat >> confdefs.h <<\EOF
2005: #define NO_AUTHENTICATION 1
2006: EOF
2007:
2008: ;;
2009: *) echo "$ac_t""no" 1>&6
2010: echo "Ignoring unknown argument to --enable-authentication: $enableval"
2011: ;;
2012: esac
2013:
2014: else
2015: echo "$ac_t""yes" 1>&6
2016: fi
2017:
2018:
2019: echo $ac_n "checking whether to disable shadow password support""... $ac_c" 1>&6
1.7 ! millert 2020: echo "configure:2021: checking whether to disable shadow password support" >&5
1.1 millert 2021: # Check whether --enable-shadow or --disable-shadow was given.
2022: if test "${enable_shadow+set}" = set; then
2023: enableval="$enable_shadow"
2024: case "$enableval" in
2025: yes) echo "$ac_t""no" 1>&6
2026: ;;
2027: no) echo "$ac_t""yes" 1>&6
2028: CHECKSHADOW="false"
2029: ;;
2030: *) echo "$ac_t""no" 1>&6
2031: echo "Ignoring unknown argument to --enable-shadow: $enableval"
2032: ;;
2033: esac
2034:
2035: else
2036: echo "$ac_t""no" 1>&6
2037: fi
2038:
2039:
2040: echo $ac_n "checking whether root should be allowed to use sudo""... $ac_c" 1>&6
1.7 ! millert 2041: echo "configure:2042: checking whether root should be allowed to use sudo" >&5
1.1 millert 2042: # Check whether --enable-root-sudo or --disable-root-sudo was given.
2043: if test "${enable_root_sudo+set}" = set; then
2044: enableval="$enable_root_sudo"
2045: case "$enableval" in
2046: yes) echo "$ac_t""yes" 1>&6
2047: ;;
2048: no) cat >> confdefs.h <<\EOF
2049: #define NO_ROOT_SUDO 1
2050: EOF
2051:
2052: echo "$ac_t""no" 1>&6
2053: ;;
2054: *) { echo "configure: error: "--enable-root-sudo does not take an argument."" 1>&2; exit 1; }
2055: ;;
2056: esac
2057:
2058: else
2059: echo "$ac_t""yes" 1>&6
2060: fi
2061:
2062:
2063: echo $ac_n "checking whether to log the hostname in the log file""... $ac_c" 1>&6
1.7 ! millert 2064: echo "configure:2065: checking whether to log the hostname in the log file" >&5
1.1 millert 2065: # Check whether --enable-log-host or --disable-log-host was given.
2066: if test "${enable_log_host+set}" = set; then
2067: enableval="$enable_log_host"
2068: case "$enableval" in
2069: yes) echo "$ac_t""yes" 1>&6
2070: cat >> confdefs.h <<\EOF
2071: #define HOST_IN_LOG 1
2072: EOF
2073:
2074: ;;
2075: no) echo "$ac_t""no" 1>&6
2076: ;;
2077: *) echo "$ac_t""no" 1>&6
2078: echo "Ignoring unknown argument to --enable-log-host: $enableval"
2079: ;;
2080: esac
2081:
2082: else
2083: echo "$ac_t""no" 1>&6
2084: fi
2085:
2086:
2087: echo $ac_n "checking whether to invoke a shell if sudo is given no arguments""... $ac_c" 1>&6
1.7 ! millert 2088: echo "configure:2089: checking whether to invoke a shell if sudo is given no arguments" >&5
1.1 millert 2089: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
2090: if test "${enable_noargs_shell+set}" = set; then
2091: enableval="$enable_noargs_shell"
2092: case "$enableval" in
2093: yes) echo "$ac_t""yes" 1>&6
2094: cat >> confdefs.h <<\EOF
2095: #define SHELL_IF_NO_ARGS 1
2096: EOF
2097:
2098: ;;
2099: no) echo "$ac_t""no" 1>&6
2100: ;;
2101: *) echo "$ac_t""no" 1>&6
2102: echo "Ignoring unknown argument to --enable-noargs-shell: $enableval"
2103: ;;
2104: esac
2105:
2106: else
2107: echo "$ac_t""no" 1>&6
2108: fi
2109:
2110:
2111: echo $ac_n "checking whether to set \$HOME to target user in shell mode""... $ac_c" 1>&6
1.7 ! millert 2112: echo "configure:2113: checking whether to set \$HOME to target user in shell mode" >&5
1.1 millert 2113: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
2114: if test "${enable_shell_sets_home+set}" = set; then
2115: enableval="$enable_shell_sets_home"
2116: case "$enableval" in
2117: yes) echo "$ac_t""yes" 1>&6
2118: cat >> confdefs.h <<\EOF
2119: #define SHELL_SETS_HOME 1
2120: EOF
2121:
2122: ;;
2123: no) echo "$ac_t""no" 1>&6
2124: ;;
2125: *) echo "$ac_t""no" 1>&6
2126: echo "Ignoring unknown argument to --enable-shell-sets-home: $enableval"
2127: ;;
2128: esac
2129:
2130: else
2131: echo "$ac_t""no" 1>&6
2132: fi
2133:
2134:
2135: echo $ac_n "checking whether to disable 'command not found' messages""... $ac_c" 1>&6
1.7 ! millert 2136: echo "configure:2137: checking whether to disable 'command not found' messages" >&5
1.1 millert 2137: # Check whether --enable-path_info or --disable-path_info was given.
2138: if test "${enable_path_info+set}" = set; then
2139: enableval="$enable_path_info"
2140: case "$enableval" in
2141: yes) echo "$ac_t""no" 1>&6
2142: ;;
2143: no) echo "$ac_t""yes" 1>&6
2144: cat >> confdefs.h <<\EOF
2145: #define DONT_LEAK_PATH_INFO 1
2146: EOF
2147:
2148: ;;
2149: *) echo "$ac_t""no" 1>&6
2150: echo "Ignoring unknown argument to --enable-path-info: $enableval"
2151: ;;
2152: esac
2153:
2154: else
2155: echo "$ac_t""no" 1>&6
2156: fi
2157:
2158:
2159: # Extract the first word of "egrep", so it can be a program name with args.
2160: set dummy egrep; ac_word=$2
2161: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 2162: echo "configure:2163: checking for $ac_word" >&5
1.1 millert 2163: if eval "test \"`echo '$''{'ac_cv_prog_EGREPPROG'+set}'`\" = set"; then
2164: echo $ac_n "(cached) $ac_c" 1>&6
2165: else
2166: if test -n "$EGREPPROG"; then
2167: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
2168: else
2169: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2170: for ac_dir in $PATH; do
2171: test -z "$ac_dir" && ac_dir=.
2172: if test -f $ac_dir/$ac_word; then
2173: ac_cv_prog_EGREPPROG="egrep"
2174: break
2175: fi
2176: done
2177: IFS="$ac_save_ifs"
2178: fi
2179: fi
2180: EGREPPROG="$ac_cv_prog_EGREPPROG"
2181: if test -n "$EGREPPROG"; then
2182: echo "$ac_t""$EGREPPROG" 1>&6
2183: else
2184: echo "$ac_t""no" 1>&6
2185: fi
2186:
2187: if test -z "$EGREPPROG"; then
2188: echo "Sorry, configure requires egrep to run."
2189: exit
2190: fi
2191:
2192: ac_cv_prog_cc_cross="no"
2193: cross_compiling="no"
2194: # Extract the first word of "gcc", so it can be a program name with args.
2195: set dummy gcc; ac_word=$2
2196: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 2197: echo "configure:2198: checking for $ac_word" >&5
1.1 millert 2198: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2199: echo $ac_n "(cached) $ac_c" 1>&6
2200: else
2201: if test -n "$CC"; then
2202: ac_cv_prog_CC="$CC" # Let the user override the test.
2203: else
2204: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2205: for ac_dir in $PATH; do
2206: test -z "$ac_dir" && ac_dir=.
2207: if test -f $ac_dir/$ac_word; then
2208: ac_cv_prog_CC="gcc"
2209: break
2210: fi
2211: done
2212: IFS="$ac_save_ifs"
2213: fi
2214: fi
2215: CC="$ac_cv_prog_CC"
2216: if test -n "$CC"; then
2217: echo "$ac_t""$CC" 1>&6
2218: else
2219: echo "$ac_t""no" 1>&6
2220: fi
2221:
2222: if test -z "$CC"; then
2223: # Extract the first word of "cc", so it can be a program name with args.
2224: set dummy cc; ac_word=$2
2225: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 2226: echo "configure:2227: checking for $ac_word" >&5
1.1 millert 2227: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2228: echo $ac_n "(cached) $ac_c" 1>&6
2229: else
2230: if test -n "$CC"; then
2231: ac_cv_prog_CC="$CC" # Let the user override the test.
2232: else
2233: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2234: ac_prog_rejected=no
2235: for ac_dir in $PATH; do
2236: test -z "$ac_dir" && ac_dir=.
2237: if test -f $ac_dir/$ac_word; then
2238: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2239: ac_prog_rejected=yes
2240: continue
2241: fi
2242: ac_cv_prog_CC="cc"
2243: break
2244: fi
2245: done
2246: IFS="$ac_save_ifs"
2247: if test $ac_prog_rejected = yes; then
2248: # We found a bogon in the path, so make sure we never use it.
2249: set dummy $ac_cv_prog_CC
2250: shift
2251: if test $# -gt 0; then
2252: # We chose a different compiler from the bogus one.
2253: # However, it has the same basename, so the bogon will be chosen
2254: # first if we set CC to just the basename; use the full file name.
2255: shift
2256: set dummy "$ac_dir/$ac_word" "$@"
2257: shift
2258: ac_cv_prog_CC="$@"
2259: fi
2260: fi
2261: fi
2262: fi
2263: CC="$ac_cv_prog_CC"
2264: if test -n "$CC"; then
2265: echo "$ac_t""$CC" 1>&6
2266: else
2267: echo "$ac_t""no" 1>&6
2268: fi
2269:
2270: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2271: fi
2272:
2273: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.7 ! millert 2274: echo "configure:2275: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 millert 2275:
2276: ac_ext=c
2277: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2278: ac_cpp='$CPP $CPPFLAGS'
2279: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2280: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2281: cross_compiling=$ac_cv_prog_cc_cross
2282:
2283: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2284: #line 2285 "configure"
1.1 millert 2285: #include "confdefs.h"
2286: main(){return(0);}
2287: EOF
1.7 ! millert 2288: if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 2289: ac_cv_prog_cc_works=yes
2290: # If we can't run a trivial program, we are probably using a cross compiler.
2291: if (./conftest; exit) 2>/dev/null; then
2292: ac_cv_prog_cc_cross=no
2293: else
2294: ac_cv_prog_cc_cross=yes
2295: fi
2296: else
2297: echo "configure: failed program was:" >&5
2298: cat conftest.$ac_ext >&5
2299: ac_cv_prog_cc_works=no
2300: fi
2301: rm -fr conftest*
2302:
2303: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2304: if test $ac_cv_prog_cc_works = no; then
2305: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2306: fi
2307: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.7 ! millert 2308: echo "configure:2309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 millert 2309: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2310: cross_compiling=$ac_cv_prog_cc_cross
2311:
2312: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.7 ! millert 2313: echo "configure:2314: checking whether we are using GNU C" >&5
1.1 millert 2314: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2315: echo $ac_n "(cached) $ac_c" 1>&6
2316: else
2317: cat > conftest.c <<EOF
2318: #ifdef __GNUC__
2319: yes;
2320: #endif
2321: EOF
1.7 ! millert 2322: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 millert 2323: ac_cv_prog_gcc=yes
2324: else
2325: ac_cv_prog_gcc=no
2326: fi
2327: fi
2328:
2329: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2330:
2331: if test $ac_cv_prog_gcc = yes; then
2332: GCC=yes
2333: ac_test_CFLAGS="${CFLAGS+set}"
2334: ac_save_CFLAGS="$CFLAGS"
2335: CFLAGS=
2336: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.7 ! millert 2337: echo "configure:2338: checking whether ${CC-cc} accepts -g" >&5
1.1 millert 2338: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2339: echo $ac_n "(cached) $ac_c" 1>&6
2340: else
2341: echo 'void f(){}' > conftest.c
2342: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2343: ac_cv_prog_cc_g=yes
2344: else
2345: ac_cv_prog_cc_g=no
2346: fi
2347: rm -f conftest*
2348:
2349: fi
2350:
2351: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2352: if test "$ac_test_CFLAGS" = set; then
2353: CFLAGS="$ac_save_CFLAGS"
2354: elif test $ac_cv_prog_cc_g = yes; then
2355: CFLAGS="-g -O2"
2356: else
2357: CFLAGS="-O2"
2358: fi
2359: else
2360: GCC=
2361: test "${CFLAGS+set}" = set || CFLAGS="-g"
2362: fi
2363:
2364: ac_cv_prog_cc_cross="no"
2365: cross_compiling="no"
2366: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.7 ! millert 2367: echo "configure:2368: checking how to run the C preprocessor" >&5
1.1 millert 2368: # On Suns, sometimes $CPP names a directory.
2369: if test -n "$CPP" && test -d "$CPP"; then
2370: CPP=
2371: fi
2372: if test -z "$CPP"; then
2373: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2374: echo $ac_n "(cached) $ac_c" 1>&6
2375: else
2376: # This must be in double quotes, not single quotes, because CPP may get
2377: # substituted into the Makefile and "${CC-cc}" will confuse make.
2378: CPP="${CC-cc} -E"
2379: # On the NeXT, cc -E runs the code through the compiler's parser,
2380: # not just through cpp.
2381: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2382: #line 2383 "configure"
1.1 millert 2383: #include "confdefs.h"
2384: #include <assert.h>
2385: Syntax Error
2386: EOF
2387: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.7 ! millert 2388: { (eval echo configure:2389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 millert 2389: ac_err=`grep -v '^ *+' conftest.out`
2390: if test -z "$ac_err"; then
2391: :
2392: else
2393: echo "$ac_err" >&5
2394: echo "configure: failed program was:" >&5
2395: cat conftest.$ac_ext >&5
2396: rm -rf conftest*
2397: CPP="${CC-cc} -E -traditional-cpp"
2398: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2399: #line 2400 "configure"
1.1 millert 2400: #include "confdefs.h"
2401: #include <assert.h>
2402: Syntax Error
2403: EOF
2404: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.7 ! millert 2405: { (eval echo configure:2406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 millert 2406: ac_err=`grep -v '^ *+' conftest.out`
2407: if test -z "$ac_err"; then
2408: :
2409: else
2410: echo "$ac_err" >&5
2411: echo "configure: failed program was:" >&5
2412: cat conftest.$ac_ext >&5
2413: rm -rf conftest*
2414: CPP=/lib/cpp
2415: fi
2416: rm -f conftest*
2417: fi
2418: rm -f conftest*
2419: ac_cv_prog_CPP="$CPP"
2420: fi
2421: CPP="$ac_cv_prog_CPP"
2422: else
2423: ac_cv_prog_CPP="$CPP"
2424: fi
2425: echo "$ac_t""$CPP" 1>&6
2426:
2427: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1.7 ! millert 2428: echo "configure:2429: checking for POSIXized ISC" >&5
1.1 millert 2429: if test -d /etc/conf/kconfig.d &&
2430: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2431: then
2432: echo "$ac_t""yes" 1>&6
2433: ISC=yes # If later tests want to check for ISC.
2434: cat >> confdefs.h <<\EOF
2435: #define _POSIX_SOURCE 1
2436: EOF
2437:
2438: if test "$GCC" = yes; then
2439: CC="$CC -posix"
2440: else
2441: CC="$CC -Xp"
2442: fi
2443: else
2444: echo "$ac_t""no" 1>&6
2445: ISC=
2446: fi
2447:
2448:
2449: if test "$with_devel" = "yes" -a -n "$GCC"; then
2450: CFLAGS="${CFLAGS} -Wall"
2451: fi
2452:
2453: # Extract the first word of "uname", so it can be a program name with args.
2454: set dummy uname; ac_word=$2
2455: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 2456: echo "configure:2457: checking for $ac_word" >&5
1.1 millert 2457: if eval "test \"`echo '$''{'ac_cv_prog_UNAMEPROG'+set}'`\" = set"; then
2458: echo $ac_n "(cached) $ac_c" 1>&6
2459: else
2460: if test -n "$UNAMEPROG"; then
2461: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
2462: else
2463: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2464: for ac_dir in $PATH; do
2465: test -z "$ac_dir" && ac_dir=.
2466: if test -f $ac_dir/$ac_word; then
2467: ac_cv_prog_UNAMEPROG="uname"
2468: break
2469: fi
2470: done
2471: IFS="$ac_save_ifs"
2472: fi
2473: fi
2474: UNAMEPROG="$ac_cv_prog_UNAMEPROG"
2475: if test -n "$UNAMEPROG"; then
2476: echo "$ac_t""$UNAMEPROG" 1>&6
2477: else
2478: echo "$ac_t""no" 1>&6
2479: fi
2480:
2481: # Extract the first word of "tr", so it can be a program name with args.
2482: set dummy tr; ac_word=$2
2483: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 2484: echo "configure:2485: checking for $ac_word" >&5
1.1 millert 2485: if eval "test \"`echo '$''{'ac_cv_prog_TRPROG'+set}'`\" = set"; then
2486: echo $ac_n "(cached) $ac_c" 1>&6
2487: else
2488: if test -n "$TRPROG"; then
2489: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
2490: else
2491: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2492: for ac_dir in $PATH; do
2493: test -z "$ac_dir" && ac_dir=.
2494: if test -f $ac_dir/$ac_word; then
2495: ac_cv_prog_TRPROG="tr"
2496: break
2497: fi
2498: done
2499: IFS="$ac_save_ifs"
2500: fi
2501: fi
2502: TRPROG="$ac_cv_prog_TRPROG"
2503: if test -n "$TRPROG"; then
2504: echo "$ac_t""$TRPROG" 1>&6
2505: else
2506: echo "$ac_t""no" 1>&6
2507: fi
2508:
2509: # Extract the first word of "sed", so it can be a program name with args.
2510: set dummy sed; ac_word=$2
2511: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 2512: echo "configure:2513: checking for $ac_word" >&5
1.1 millert 2513: if eval "test \"`echo '$''{'ac_cv_prog_SEDPROG'+set}'`\" = set"; then
2514: echo $ac_n "(cached) $ac_c" 1>&6
2515: else
2516: if test -n "$SEDPROG"; then
2517: ac_cv_prog_SEDPROG="$SEDPROG" # Let the user override the test.
2518: else
2519: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2520: for ac_dir in $PATH; do
2521: test -z "$ac_dir" && ac_dir=.
2522: if test -f $ac_dir/$ac_word; then
2523: ac_cv_prog_SEDPROG="sed"
2524: break
2525: fi
2526: done
2527: IFS="$ac_save_ifs"
2528: fi
2529: fi
2530: SEDPROG="$ac_cv_prog_SEDPROG"
2531: if test -n "$SEDPROG"; then
2532: echo "$ac_t""$SEDPROG" 1>&6
2533: else
2534: echo "$ac_t""no" 1>&6
2535: fi
2536:
2537: # Extract the first word of "nroff", so it can be a program name with args.
2538: set dummy nroff; ac_word=$2
2539: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 2540: echo "configure:2541: checking for $ac_word" >&5
1.1 millert 2541: if eval "test \"`echo '$''{'ac_cv_prog_NROFFPROG'+set}'`\" = set"; then
2542: echo $ac_n "(cached) $ac_c" 1>&6
2543: else
2544: if test -n "$NROFFPROG"; then
2545: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
2546: else
2547: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2548: for ac_dir in $PATH; do
2549: test -z "$ac_dir" && ac_dir=.
2550: if test -f $ac_dir/$ac_word; then
2551: ac_cv_prog_NROFFPROG="nroff"
2552: break
2553: fi
2554: done
2555: IFS="$ac_save_ifs"
2556: fi
2557: fi
2558: NROFFPROG="$ac_cv_prog_NROFFPROG"
2559: if test -n "$NROFFPROG"; then
2560: echo "$ac_t""$NROFFPROG" 1>&6
2561: else
2562: echo "$ac_t""no" 1>&6
2563: fi
2564:
2565: if test -z "$NROFFPROG"; then
2566: MANTYPE="cat"
1.6 millert 2567: mansrcdir='$(srcdir)'
1.1 millert 2568: fi
2569:
2570: ac_aux_dir=
2571: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2572: if test -f $ac_dir/install-sh; then
2573: ac_aux_dir=$ac_dir
2574: ac_install_sh="$ac_aux_dir/install-sh -c"
2575: break
2576: elif test -f $ac_dir/install.sh; then
2577: ac_aux_dir=$ac_dir
2578: ac_install_sh="$ac_aux_dir/install.sh -c"
2579: break
2580: fi
2581: done
2582: if test -z "$ac_aux_dir"; then
2583: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2584: fi
1.2 millert 2585: ac_config_guess="/bin/sh $ac_aux_dir/config.guess"
2586: ac_config_sub="/bin/sh $ac_aux_dir/config.sub"
1.1 millert 2587: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
2588:
2589:
2590: # Make sure we can run config.sub.
2591: if $ac_config_sub sun4 >/dev/null 2>&1; then :
2592: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2593: fi
2594:
2595: echo $ac_n "checking host system type""... $ac_c" 1>&6
1.7 ! millert 2596: echo "configure:2597: checking host system type" >&5
1.1 millert 2597:
2598: host_alias=$host
2599: case "$host_alias" in
2600: NONE)
2601: case $nonopt in
2602: NONE)
2603: if host_alias=`$ac_config_guess`; then :
2604: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2605: fi ;;
2606: *) host_alias=$nonopt ;;
2607: esac ;;
2608: esac
2609:
2610: host=`$ac_config_sub $host_alias`
2611: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2612: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2613: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2614: echo "$ac_t""$host" 1>&6
2615:
2616: if test -n "$sudo_cv_prev_host"; then
2617: if test "$sudo_cv_prev_host" != "$host"; then
2618: echo ""
2619: echo "Fatal Error: config.cache exists from another platform!"
2620: echo "Please remove it and re-run configure."
2621: echo ""
2622: exit 1
2623: else
2624: echo $ac_n "checking previous host type""... $ac_c" 1>&6
1.7 ! millert 2625: echo "configure:2626: checking previous host type" >&5
1.1 millert 2626: if eval "test \"`echo '$''{'sudo_cv_prev_host'+set}'`\" = set"; then
2627: echo $ac_n "(cached) $ac_c" 1>&6
2628: else
2629: sudo_cv_prev_host="$host"
2630: fi
2631:
2632: echo $sudo_cv_prev_host
2633: fi
2634: else
2635: # this will produce no output since there is no cached value
2636: if eval "test \"`echo '$''{'sudo_cv_prev_host'+set}'`\" = set"; then
2637: echo $ac_n "(cached) $ac_c" 1>&6
2638: else
2639: sudo_cv_prev_host="$host"
2640: fi
2641:
2642: fi
2643:
2644: if test -n "$host_os"; then
2645: OS=`echo $host_os | sed 's/[0-9].*//'`
2646: OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
2647: else
2648: OS="unknown"
2649: OSREV=0
2650: fi
2651:
2652: case "$host" in
2653: *-*-sunos4*)
2654: # getcwd(3) opens a pipe to getpwd(1)!?!
2655: BROKEN_GETCWD=1
2656:
2657: # system headers lack prototypes but gcc helps...
2658: if test -n "$GCC"; then
2659: CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
2660: fi
2661:
2662: # check for password adjunct functions (shadow passwords)
2663: if test "$CHECKSHADOW" = "true"; then
2664: echo $ac_n "checking for getpwanam""... $ac_c" 1>&6
1.7 ! millert 2665: echo "configure:2666: checking for getpwanam" >&5
1.1 millert 2666: if eval "test \"`echo '$''{'ac_cv_func_getpwanam'+set}'`\" = set"; then
2667: echo $ac_n "(cached) $ac_c" 1>&6
2668: else
2669: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2670: #line 2671 "configure"
1.1 millert 2671: #include "confdefs.h"
2672: /* System header to define __stub macros and hopefully few prototypes,
2673: which can conflict with char getpwanam(); below. */
2674: #include <assert.h>
2675: /* Override any gcc2 internal prototype to avoid an error. */
2676: /* We use char because int might match the return type of a gcc2
2677: builtin and then its argument prototype would still apply. */
2678: char getpwanam();
2679:
2680: int main() {
2681:
2682: /* The GNU C library defines this for functions which it implements
2683: to always fail with ENOSYS. Some functions are actually named
2684: something starting with __ and the normal name is an alias. */
2685: #if defined (__stub_getpwanam) || defined (__stub___getpwanam)
2686: choke me
2687: #else
2688: getpwanam();
2689: #endif
2690:
2691: ; return 0; }
2692: EOF
1.7 ! millert 2693: if { (eval echo configure:2694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 2694: rm -rf conftest*
2695: eval "ac_cv_func_getpwanam=yes"
2696: else
2697: echo "configure: failed program was:" >&5
2698: cat conftest.$ac_ext >&5
2699: rm -rf conftest*
2700: eval "ac_cv_func_getpwanam=no"
2701: fi
2702: rm -f conftest*
2703: fi
2704:
2705: if eval "test \"`echo '$ac_cv_func_'getpwanam`\" = yes"; then
2706: echo "$ac_t""yes" 1>&6
2707: cat >> confdefs.h <<\EOF
2708: #define HAVE_GETPWANAM 1
2709: EOF
2710: for ac_func in issecure
2711: do
2712: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 2713: echo "configure:2714: checking for $ac_func" >&5
1.1 millert 2714: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2715: echo $ac_n "(cached) $ac_c" 1>&6
2716: else
2717: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2718: #line 2719 "configure"
1.1 millert 2719: #include "confdefs.h"
2720: /* System header to define __stub macros and hopefully few prototypes,
2721: which can conflict with char $ac_func(); below. */
2722: #include <assert.h>
2723: /* Override any gcc2 internal prototype to avoid an error. */
2724: /* We use char because int might match the return type of a gcc2
2725: builtin and then its argument prototype would still apply. */
2726: char $ac_func();
2727:
2728: int main() {
2729:
2730: /* The GNU C library defines this for functions which it implements
2731: to always fail with ENOSYS. Some functions are actually named
2732: something starting with __ and the normal name is an alias. */
2733: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2734: choke me
2735: #else
2736: $ac_func();
2737: #endif
2738:
2739: ; return 0; }
2740: EOF
1.7 ! millert 2741: if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 2742: rm -rf conftest*
2743: eval "ac_cv_func_$ac_func=yes"
2744: else
2745: echo "configure: failed program was:" >&5
2746: cat conftest.$ac_ext >&5
2747: rm -rf conftest*
2748: eval "ac_cv_func_$ac_func=no"
2749: fi
2750: rm -f conftest*
2751: fi
2752:
2753: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2754: echo "$ac_t""yes" 1>&6
2755: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2756: cat >> confdefs.h <<EOF
2757: #define $ac_tr_func 1
2758: EOF
2759:
2760: else
2761: echo "$ac_t""no" 1>&6
2762: fi
2763: done
2764:
2765: else
2766: echo "$ac_t""no" 1>&6
2767: fi
2768:
2769: CHECKSHADOW="false"
2770: fi
2771: ;;
2772: *-*-solaris2*)
2773: # To get the crypt(3) prototype (so we pass -Wall)
2774: CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
2775: # AFS support needs -lucb
2776: if test "$with_AFS" = "yes"; then
2777: AFS_LIBS="-lc -lucb"
2778: fi
1.6 millert 2779: mansectsu=1m
2780: mansectform=4
1.1 millert 2781: ;;
2782: *-*-aix*)
2783: # To get all prototypes (so we pass -Wall)
2784: CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
2785: cat >> confdefs.h <<\EOF
2786: #define _ALL_SOURCE 1
2787: EOF
2788:
2789: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
2790: ;;
2791: *-*-hiuxmpp*)
2792: if test "$CHECKSHADOW" = "true"; then
2793: echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.7 ! millert 2794: echo "configure:2795: checking for getprpwnam in -lsec" >&5
1.1 millert 2795: if test -n ""; then
2796: ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
2797: else
2798: ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
2799: fi
2800: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801: echo $ac_n "(cached) $ac_c" 1>&6
2802: else
2803: ac_save_LIBS="$LIBS"
2804: LIBS="-lsec $LIBS"
2805: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2806: #line 2807 "configure"
1.1 millert 2807: #include "confdefs.h"
2808: /* Override any gcc2 internal prototype to avoid an error. */
2809: /* We use char because int might match the return type of a gcc2
2810: builtin and then its argument prototype would still apply. */
2811: char getprpwnam();
2812:
2813: int main() {
2814: getprpwnam()
2815: ; return 0; }
2816: EOF
1.7 ! millert 2817: if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 2818: rm -rf conftest*
2819: eval "ac_cv_lib_$ac_lib_var=yes"
2820: else
2821: echo "configure: failed program was:" >&5
2822: cat conftest.$ac_ext >&5
2823: rm -rf conftest*
2824: eval "ac_cv_lib_$ac_lib_var=no"
2825: fi
2826: rm -f conftest*
2827: LIBS="$ac_save_LIBS"
2828:
2829: fi
2830: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2831: echo "$ac_t""yes" 1>&6
2832: cat >> confdefs.h <<\EOF
2833: #define HAVE_GETPRPWNAM 1
2834: EOF
2835: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
2836: else
2837: echo "$ac_t""no" 1>&6
2838: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.7 ! millert 2839: echo "configure:2840: checking for getprpwnam in -lsecurity" >&5
1.1 millert 2840: if test -n ""; then
2841: ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
2842: else
2843: ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
2844: fi
2845: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2846: echo $ac_n "(cached) $ac_c" 1>&6
2847: else
2848: ac_save_LIBS="$LIBS"
2849: LIBS="-lsecurity $LIBS"
2850: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2851: #line 2852 "configure"
1.1 millert 2852: #include "confdefs.h"
2853: /* Override any gcc2 internal prototype to avoid an error. */
2854: /* We use char because int might match the return type of a gcc2
2855: builtin and then its argument prototype would still apply. */
2856: char getprpwnam();
2857:
2858: int main() {
2859: getprpwnam()
2860: ; return 0; }
2861: EOF
1.7 ! millert 2862: if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 2863: rm -rf conftest*
2864: eval "ac_cv_lib_$ac_lib_var=yes"
2865: else
2866: echo "configure: failed program was:" >&5
2867: cat conftest.$ac_ext >&5
2868: rm -rf conftest*
2869: eval "ac_cv_lib_$ac_lib_var=no"
2870: fi
2871: rm -f conftest*
2872: LIBS="$ac_save_LIBS"
2873:
2874: fi
2875: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2876: echo "$ac_t""yes" 1>&6
2877: cat >> confdefs.h <<\EOF
2878: #define HAVE_GETPRPWNAM 1
2879: EOF
2880: SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
2881: else
2882: echo "$ac_t""no" 1>&6
2883: fi
2884:
2885: fi
2886:
2887: CHECKSHADOW="false"
2888: fi
1.6 millert 2889: mansectsu=1m
2890: mansectform=4
1.1 millert 2891: ;;
2892: *-*-hpux1[0-9]*)
2893: # uncomment this for a statically linked sudo
2894: # (XXX - should be an option to configure)
2895: #STATIC_SUDO=true
2896:
1.4 millert 2897: # If using cc, run in ANSI mode if possible
2898: if test -z "$GCC"; then
2899: $CC -Aa 2>&1 | grep 'A option is available only' >conftest.out
2900: if test ! -s conftest.out; then
2901: CPPFLAGS="${CPPFLAGS} -Aa"
2902: fi
2903: rm -f conftest.out
2904: fi
2905:
2906: # Add -D_HPUX_SOURCE so we don't get strict ANSI headers
2907: CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE"
2908:
1.1 millert 2909: if test "$CHECKSHADOW" = "true"; then
2910: echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.7 ! millert 2911: echo "configure:2912: checking for getprpwnam in -lsec" >&5
1.1 millert 2912: if test -n ""; then
2913: ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
2914: else
2915: ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
2916: fi
2917: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2918: echo $ac_n "(cached) $ac_c" 1>&6
2919: else
2920: ac_save_LIBS="$LIBS"
2921: LIBS="-lsec $LIBS"
2922: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2923: #line 2924 "configure"
1.1 millert 2924: #include "confdefs.h"
2925: /* Override any gcc2 internal prototype to avoid an error. */
2926: /* We use char because int might match the return type of a gcc2
2927: builtin and then its argument prototype would still apply. */
2928: char getprpwnam();
2929:
2930: int main() {
2931: getprpwnam()
2932: ; return 0; }
2933: EOF
1.7 ! millert 2934: if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 2935: rm -rf conftest*
2936: eval "ac_cv_lib_$ac_lib_var=yes"
2937: else
2938: echo "configure: failed program was:" >&5
2939: cat conftest.$ac_ext >&5
2940: rm -rf conftest*
2941: eval "ac_cv_lib_$ac_lib_var=no"
2942: fi
2943: rm -f conftest*
2944: LIBS="$ac_save_LIBS"
2945:
2946: fi
2947: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2948: echo "$ac_t""yes" 1>&6
2949: cat >> confdefs.h <<\EOF
2950: #define HAVE_GETPRPWNAM 1
2951: EOF
2952: echo $ac_n "checking for iscomsec in -lsec""... $ac_c" 1>&6
1.7 ! millert 2953: echo "configure:2954: checking for iscomsec in -lsec" >&5
1.1 millert 2954: if test -n ""; then
2955: ac_lib_var=`echo sec'_'iscomsec | sed 'y% ./+-%___p_%'`
2956: else
2957: ac_lib_var=`echo sec'_'iscomsec | sed 'y%./+-%__p_%'`
2958: fi
2959: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2960: echo $ac_n "(cached) $ac_c" 1>&6
2961: else
2962: ac_save_LIBS="$LIBS"
2963: LIBS="-lsec $LIBS"
2964: cat > conftest.$ac_ext <<EOF
1.7 ! millert 2965: #line 2966 "configure"
1.1 millert 2966: #include "confdefs.h"
2967: /* Override any gcc2 internal prototype to avoid an error. */
2968: /* We use char because int might match the return type of a gcc2
2969: builtin and then its argument prototype would still apply. */
2970: char iscomsec();
2971:
2972: int main() {
2973: iscomsec()
2974: ; return 0; }
2975: EOF
1.7 ! millert 2976: if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 2977: rm -rf conftest*
2978: eval "ac_cv_lib_$ac_lib_var=yes"
2979: else
2980: echo "configure: failed program was:" >&5
2981: cat conftest.$ac_ext >&5
2982: rm -rf conftest*
2983: eval "ac_cv_lib_$ac_lib_var=no"
2984: fi
2985: rm -f conftest*
2986: LIBS="$ac_save_LIBS"
2987:
2988: fi
2989: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2990: echo "$ac_t""yes" 1>&6
2991: cat >> confdefs.h <<\EOF
2992: #define HAVE_ISCOMSEC 1
2993: EOF
2994:
2995: else
2996: echo "$ac_t""no" 1>&6
2997: fi
2998: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
2999: else
3000: echo "$ac_t""no" 1>&6
3001: fi
3002:
3003: CHECKSHADOW="false"
3004: fi
3005:
3006: if test -n "$STATIC_SUDO"; then
3007: if test -n "$GCC"; then
3008: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
3009: else
3010: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
3011: fi
3012: fi
3013:
3014: # AFS support needs -lBSD
3015: if test "$with_AFS" = "yes"; then
3016: AFS_LIBS="-lc -lBSD"
3017: fi
1.6 millert 3018: mansectsu=1m
3019: mansectform=4
1.1 millert 3020: ;;
3021: *-*-hpux9*)
3022: # uncomment this for a statically linked sudo
3023: # (XXX - should be an option to configure)
3024: #STATIC_SUDO=true
3025:
1.4 millert 3026: # If using cc, run in ANSI mode if possible
3027: if test -z "$GCC"; then
3028: $CC -Aa 2>&1 | grep 'A option is available only' >conftest.out
3029: if test ! -s conftest.out; then
3030: CPPFLAGS="${CPPFLAGS} -Aa"
3031: fi
3032: rm -f conftest.out
3033: fi
3034:
3035: # Add -D_HPUX_SOURCE so we don't get strict ANSI headers
3036: CPPFLAGS="${CPPFLAGS} -D_HPUX_SOURCE"
3037:
1.1 millert 3038: cat >> confdefs.h <<\EOF
3039: #define BROKEN_SYSLOG 1
3040: EOF
3041:
3042:
3043: if test "$CHECKSHADOW" = "true"; then
3044: for ac_func in getspwuid
3045: do
3046: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 3047: echo "configure:3048: checking for $ac_func" >&5
1.1 millert 3048: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3049: echo $ac_n "(cached) $ac_c" 1>&6
3050: else
3051: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3052: #line 3053 "configure"
1.1 millert 3053: #include "confdefs.h"
3054: /* System header to define __stub macros and hopefully few prototypes,
3055: which can conflict with char $ac_func(); below. */
3056: #include <assert.h>
3057: /* Override any gcc2 internal prototype to avoid an error. */
3058: /* We use char because int might match the return type of a gcc2
3059: builtin and then its argument prototype would still apply. */
3060: char $ac_func();
3061:
3062: int main() {
3063:
3064: /* The GNU C library defines this for functions which it implements
3065: to always fail with ENOSYS. Some functions are actually named
3066: something starting with __ and the normal name is an alias. */
3067: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3068: choke me
3069: #else
3070: $ac_func();
3071: #endif
3072:
3073: ; return 0; }
3074: EOF
1.7 ! millert 3075: if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3076: rm -rf conftest*
3077: eval "ac_cv_func_$ac_func=yes"
3078: else
3079: echo "configure: failed program was:" >&5
3080: cat conftest.$ac_ext >&5
3081: rm -rf conftest*
3082: eval "ac_cv_func_$ac_func=no"
3083: fi
3084: rm -f conftest*
3085: fi
3086:
3087: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3088: echo "$ac_t""yes" 1>&6
3089: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3090: cat >> confdefs.h <<EOF
3091: #define $ac_tr_func 1
3092: EOF
3093:
3094: else
3095: echo "$ac_t""no" 1>&6
3096: fi
3097: done
3098:
3099: CHECKSHADOW="false"
3100: fi
3101:
3102: if test -n "$STATIC_SUDO"; then
3103: if test -n "$GCC"; then
3104: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
3105: else
3106: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
3107: fi
3108: fi
3109:
3110: # DCE support (requires ANSI C compiler)
3111: if test "$with_DCE" = "yes"; then
3112: # order of libs in 9.X is important. -lc_r must be last
3113: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
3114: LIBS="${LIBS} -ldce -lM -lc_r"
1.4 millert 3115: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
1.1 millert 3116: fi
3117:
3118: # AFS support needs -lBSD
3119: if test "$with_AFS" = "yes"; then
3120: AFS_LIBS="-lc -lBSD"
3121: fi
1.6 millert 3122: mansectsu=1m
3123: mansectform=4
1.1 millert 3124: ;;
3125: *-*-hpux*)
3126:
3127: cat >> confdefs.h <<\EOF
3128: #define BROKEN_SYSLOG 1
3129: EOF
3130:
3131:
3132: # Not sure if setuid binaries are safe in < 9.x
3133: if test -n "$GCC"; then
3134: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
3135: else
3136: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
3137: fi
3138:
3139: # AFS support needs -lBSD
3140: if test "$with_AFS" = "yes"; then
3141: AFS_LIBS="-lc -lBSD"
3142: fi
1.6 millert 3143: mansectsu=1m
3144: mansectform=4
1.1 millert 3145: ;;
3146: *-dec-osf*)
3147: # ignore envariables wrt dynamic lib path
3148: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
3149:
3150: echo $ac_n "checking whether to disable sia support on Digital UNIX""... $ac_c" 1>&6
1.7 ! millert 3151: echo "configure:3152: checking whether to disable sia support on Digital UNIX" >&5
1.1 millert 3152: # Check whether --enable-sia or --disable-sia was given.
3153: if test "${enable_sia+set}" = set; then
3154: enableval="$enable_sia"
3155: case "$enableval" in
3156: yes) echo "$ac_t""no" 1>&6
3157: ;;
3158: no) echo "$ac_t""yes" 1>&6
3159: CHECKSIA=false
3160: ;;
3161: *) echo "$ac_t""no" 1>&6
3162: echo "Ignoring unknown argument to --enable-sia: $enableval"
3163: ;;
3164: esac
3165:
3166: else
3167: echo "$ac_t""no" 1>&6
3168: fi
3169:
3170:
3171: # use SIA by default, if we have it, else SecureWare
3172: # unless overridden on the command line
3173: if test "$CHECKSIA" = "true"; then
3174: echo $ac_n "checking for sia_ses_init""... $ac_c" 1>&6
1.7 ! millert 3175: echo "configure:3176: checking for sia_ses_init" >&5
1.1 millert 3176: if eval "test \"`echo '$''{'ac_cv_func_sia_ses_init'+set}'`\" = set"; then
3177: echo $ac_n "(cached) $ac_c" 1>&6
3178: else
3179: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3180: #line 3181 "configure"
1.1 millert 3181: #include "confdefs.h"
3182: /* System header to define __stub macros and hopefully few prototypes,
3183: which can conflict with char sia_ses_init(); below. */
3184: #include <assert.h>
3185: /* Override any gcc2 internal prototype to avoid an error. */
3186: /* We use char because int might match the return type of a gcc2
3187: builtin and then its argument prototype would still apply. */
3188: char sia_ses_init();
3189:
3190: int main() {
3191:
3192: /* The GNU C library defines this for functions which it implements
3193: to always fail with ENOSYS. Some functions are actually named
3194: something starting with __ and the normal name is an alias. */
3195: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
3196: choke me
3197: #else
3198: sia_ses_init();
3199: #endif
3200:
3201: ; return 0; }
3202: EOF
1.7 ! millert 3203: if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3204: rm -rf conftest*
3205: eval "ac_cv_func_sia_ses_init=yes"
3206: else
3207: echo "configure: failed program was:" >&5
3208: cat conftest.$ac_ext >&5
3209: rm -rf conftest*
3210: eval "ac_cv_func_sia_ses_init=no"
3211: fi
3212: rm -f conftest*
3213: fi
3214:
3215: if eval "test \"`echo '$ac_cv_func_'sia_ses_init`\" = yes"; then
3216: echo "$ac_t""yes" 1>&6
3217: cat >> confdefs.h <<\EOF
3218: #define HAVE_SIA 1
3219: EOF
3220:
3221: if test -n "$with_skey" -o -n "$with_opie" -o -n "$with_otp_only" -o -n "$with_long_otp_prompt" -o -n "$with_SecurID" -o -n "$with_fwtk" -o -n "$with_kerb4" -o -n "$with_kerb5" -o -n "$with_pam" -o -n "$with_AFS" -o -n "$with_DCE"; then
3222: { echo "configure: error: "you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option"" 1>&2; exit 1; }
3223: fi; CHECKSHADOW=false
3224: else
3225: echo "$ac_t""no" 1>&6
3226: fi
3227:
3228: fi
3229: if test "$CHECKSHADOW" = "true"; then
3230: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.7 ! millert 3231: echo "configure:3232: checking for getprpwnam in -lsecurity" >&5
1.1 millert 3232: if test -n ""; then
3233: ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
3234: else
3235: ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
3236: fi
3237: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3238: echo $ac_n "(cached) $ac_c" 1>&6
3239: else
3240: ac_save_LIBS="$LIBS"
3241: LIBS="-lsecurity $LIBS"
3242: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3243: #line 3244 "configure"
1.1 millert 3244: #include "confdefs.h"
3245: /* Override any gcc2 internal prototype to avoid an error. */
3246: /* We use char because int might match the return type of a gcc2
3247: builtin and then its argument prototype would still apply. */
3248: char getprpwnam();
3249:
3250: int main() {
3251: getprpwnam()
3252: ; return 0; }
3253: EOF
1.7 ! millert 3254: if { (eval echo configure:3255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3255: rm -rf conftest*
3256: eval "ac_cv_lib_$ac_lib_var=yes"
3257: else
3258: echo "configure: failed program was:" >&5
3259: cat conftest.$ac_ext >&5
3260: rm -rf conftest*
3261: eval "ac_cv_lib_$ac_lib_var=no"
3262: fi
3263: rm -f conftest*
3264: LIBS="$ac_save_LIBS"
3265:
3266: fi
3267: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3268: echo "$ac_t""yes" 1>&6
3269: SECUREWARE=1
3270: else
3271: echo "$ac_t""no" 1>&6
3272: fi
3273:
3274: CHECKSHADOW="false"
3275: fi
3276:
3277: if test -n "$SECUREWARE"; then
3278: cat >> confdefs.h <<\EOF
3279: #define HAVE_GETPRPWNAM 1
3280: EOF
3281:
3282: # -ldb includes bogus versions of snprintf/vsnprintf
3283: echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.7 ! millert 3284: echo "configure:3285: checking for snprintf" >&5
1.1 millert 3285: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
3286: echo $ac_n "(cached) $ac_c" 1>&6
3287: else
3288: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3289: #line 3290 "configure"
1.1 millert 3290: #include "confdefs.h"
3291: /* System header to define __stub macros and hopefully few prototypes,
3292: which can conflict with char snprintf(); below. */
3293: #include <assert.h>
3294: /* Override any gcc2 internal prototype to avoid an error. */
3295: /* We use char because int might match the return type of a gcc2
3296: builtin and then its argument prototype would still apply. */
3297: char snprintf();
3298:
3299: int main() {
3300:
3301: /* The GNU C library defines this for functions which it implements
3302: to always fail with ENOSYS. Some functions are actually named
3303: something starting with __ and the normal name is an alias. */
3304: #if defined (__stub_snprintf) || defined (__stub___snprintf)
3305: choke me
3306: #else
3307: snprintf();
3308: #endif
3309:
3310: ; return 0; }
3311: EOF
1.7 ! millert 3312: if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3313: rm -rf conftest*
3314: eval "ac_cv_func_snprintf=yes"
3315: else
3316: echo "configure: failed program was:" >&5
3317: cat conftest.$ac_ext >&5
3318: rm -rf conftest*
3319: eval "ac_cv_func_snprintf=no"
3320: fi
3321: rm -f conftest*
3322: fi
3323:
3324: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
3325: echo "$ac_t""yes" 1>&6
3326: cat >> confdefs.h <<\EOF
3327: #define HAVE_SNPRINTF 1
3328: EOF
3329:
3330: else
3331: echo "$ac_t""no" 1>&6
3332: NEED_SNPRINTF=1
3333: fi
3334:
3335: echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.7 ! millert 3336: echo "configure:3337: checking for vsnprintf" >&5
1.1 millert 3337: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
3338: echo $ac_n "(cached) $ac_c" 1>&6
3339: else
3340: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3341: #line 3342 "configure"
1.1 millert 3342: #include "confdefs.h"
3343: /* System header to define __stub macros and hopefully few prototypes,
3344: which can conflict with char vsnprintf(); below. */
3345: #include <assert.h>
3346: /* Override any gcc2 internal prototype to avoid an error. */
3347: /* We use char because int might match the return type of a gcc2
3348: builtin and then its argument prototype would still apply. */
3349: char vsnprintf();
3350:
3351: int main() {
3352:
3353: /* The GNU C library defines this for functions which it implements
3354: to always fail with ENOSYS. Some functions are actually named
3355: something starting with __ and the normal name is an alias. */
3356: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
3357: choke me
3358: #else
3359: vsnprintf();
3360: #endif
3361:
3362: ; return 0; }
3363: EOF
1.7 ! millert 3364: if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3365: rm -rf conftest*
3366: eval "ac_cv_func_vsnprintf=yes"
3367: else
3368: echo "configure: failed program was:" >&5
3369: cat conftest.$ac_ext >&5
3370: rm -rf conftest*
3371: eval "ac_cv_func_vsnprintf=no"
3372: fi
3373: rm -f conftest*
3374: fi
3375:
3376: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
3377: echo "$ac_t""yes" 1>&6
3378: cat >> confdefs.h <<\EOF
3379: #define HAVE_VSNPRINTF 1
3380: EOF
3381:
3382: else
3383: echo "$ac_t""no" 1>&6
3384: NEED_SNPRINTF=1
3385: fi
3386:
3387: # 4.x and higher need -ldb too...
3388: echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
1.7 ! millert 3389: echo "configure:3390: checking for dbopen in -ldb" >&5
1.1 millert 3390: if test -n ""; then
3391: ac_lib_var=`echo db'_'dbopen | sed 'y% ./+-%___p_%'`
3392: else
3393: ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
3394: fi
3395: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396: echo $ac_n "(cached) $ac_c" 1>&6
3397: else
3398: ac_save_LIBS="$LIBS"
3399: LIBS="-ldb $LIBS"
3400: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3401: #line 3402 "configure"
1.1 millert 3402: #include "confdefs.h"
3403: /* Override any gcc2 internal prototype to avoid an error. */
3404: /* We use char because int might match the return type of a gcc2
3405: builtin and then its argument prototype would still apply. */
3406: char dbopen();
3407:
3408: int main() {
3409: dbopen()
3410: ; return 0; }
3411: EOF
1.7 ! millert 3412: if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3413: rm -rf conftest*
3414: eval "ac_cv_lib_$ac_lib_var=yes"
3415: else
3416: echo "configure: failed program was:" >&5
3417: cat conftest.$ac_ext >&5
3418: rm -rf conftest*
3419: eval "ac_cv_lib_$ac_lib_var=no"
3420: fi
3421: rm -f conftest*
3422: LIBS="$ac_save_LIBS"
3423:
3424: fi
3425: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426: echo "$ac_t""yes" 1>&6
3427: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
3428: else
3429: echo "$ac_t""no" 1>&6
3430: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
3431: fi
3432:
3433: for ac_func in dispcrypt
3434: do
3435: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 3436: echo "configure:3437: checking for $ac_func" >&5
1.1 millert 3437: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3438: echo $ac_n "(cached) $ac_c" 1>&6
3439: else
3440: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3441: #line 3442 "configure"
1.1 millert 3442: #include "confdefs.h"
3443: /* System header to define __stub macros and hopefully few prototypes,
3444: which can conflict with char $ac_func(); below. */
3445: #include <assert.h>
3446: /* Override any gcc2 internal prototype to avoid an error. */
3447: /* We use char because int might match the return type of a gcc2
3448: builtin and then its argument prototype would still apply. */
3449: char $ac_func();
3450:
3451: int main() {
3452:
3453: /* The GNU C library defines this for functions which it implements
3454: to always fail with ENOSYS. Some functions are actually named
3455: something starting with __ and the normal name is an alias. */
3456: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3457: choke me
3458: #else
3459: $ac_func();
3460: #endif
3461:
3462: ; return 0; }
3463: EOF
1.7 ! millert 3464: if { (eval echo configure:3465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3465: rm -rf conftest*
3466: eval "ac_cv_func_$ac_func=yes"
3467: else
3468: echo "configure: failed program was:" >&5
3469: cat conftest.$ac_ext >&5
3470: rm -rf conftest*
3471: eval "ac_cv_func_$ac_func=no"
3472: fi
3473: rm -f conftest*
3474: fi
3475:
3476: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3477: echo "$ac_t""yes" 1>&6
3478: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3479: cat >> confdefs.h <<EOF
3480: #define $ac_tr_func 1
3481: EOF
3482:
3483: else
3484: echo "$ac_t""no" 1>&6
3485: fi
3486: done
3487:
3488: echo $ac_n "checking for broken /usr/include/prot.h""... $ac_c" 1>&6
1.7 ! millert 3489: echo "configure:3490: checking for broken /usr/include/prot.h" >&5
1.1 millert 3490: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3491: #line 3492 "configure"
1.1 millert 3492: #include "confdefs.h"
3493:
3494: #include <sys/types.h>
3495: #include <sys/security.h>
3496: #include <prot.h>
3497:
3498: int main() {
3499: exit(0);
3500: ; return 0; }
3501: EOF
1.7 ! millert 3502: if { (eval echo configure:3503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 millert 3503: rm -rf conftest*
3504: echo "$ac_t""no" 1>&6
3505: else
3506: echo "configure: failed program was:" >&5
3507: cat conftest.$ac_ext >&5
3508: rm -rf conftest*
3509: echo "$ac_t""yes, fixing locally" 1>&6
3510: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
3511:
3512: fi
3513: rm -f conftest*
3514: else
3515: with_passwd=no
3516: AUTH_OBJS="sia.o"
3517: fi
1.6 millert 3518: mansectsu=8
3519: mansectform=4
1.1 millert 3520: ;;
3521: *-*-irix*)
3522: # configure may not think irix has stdc headers
3523: # but it's good enough for sudo
3524: cat >> confdefs.h <<\EOF
3525: #define STDC_HEADERS 1
3526: EOF
3527:
3528: CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
3529: if test -z "$NROFFPROG"; then
3530: MAN_POSTINSTALL=' /bin/rm -f $(mandir8)/sudo.$(mansect8).z $(mandir8)/visudo.$(mansect8).z $(mandir5)/sudoers.$(mansect5).z ; /usr/bin/pack $(mandir8)/sudo.$(mansect8) $(mandir8)/visudo.$(mansect8) $(mandir5)/sudoers.$(mansect5)'
3531: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
3532: if test -d /usr/share/catman/local; then
3533: mandir="/usr/share/catman/local"
3534: else
3535: mandir="/usr/catman/local"
3536: fi
3537: fi
3538: else
3539: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
3540: if test -d "/usr/share/man/local"; then
3541: mandir="/usr/share/man/local"
3542: else
3543: mandir="/usr/man/local"
3544: fi
3545: fi
3546: fi
3547: # IRIX <= 4 needs -lsun
3548: if test "$OSREV" -le 4; then
3549: echo $ac_n "checking for getpwnam in -lsun""... $ac_c" 1>&6
1.7 ! millert 3550: echo "configure:3551: checking for getpwnam in -lsun" >&5
1.1 millert 3551: if test -n ""; then
3552: ac_lib_var=`echo sun'_'getpwnam | sed 'y% ./+-%___p_%'`
3553: else
3554: ac_lib_var=`echo sun'_'getpwnam | sed 'y%./+-%__p_%'`
3555: fi
3556: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3557: echo $ac_n "(cached) $ac_c" 1>&6
3558: else
3559: ac_save_LIBS="$LIBS"
3560: LIBS="-lsun $LIBS"
3561: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3562: #line 3563 "configure"
1.1 millert 3563: #include "confdefs.h"
3564: /* Override any gcc2 internal prototype to avoid an error. */
3565: /* We use char because int might match the return type of a gcc2
3566: builtin and then its argument prototype would still apply. */
3567: char getpwnam();
3568:
3569: int main() {
3570: getpwnam()
3571: ; return 0; }
3572: EOF
1.7 ! millert 3573: if { (eval echo configure:3574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3574: rm -rf conftest*
3575: eval "ac_cv_lib_$ac_lib_var=yes"
3576: else
3577: echo "configure: failed program was:" >&5
3578: cat conftest.$ac_ext >&5
3579: rm -rf conftest*
3580: eval "ac_cv_lib_$ac_lib_var=no"
3581: fi
3582: rm -f conftest*
3583: LIBS="$ac_save_LIBS"
3584:
3585: fi
3586: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3587: echo "$ac_t""yes" 1>&6
3588: LIBS="${LIBS} -lsun"
3589: else
3590: echo "$ac_t""no" 1>&6
3591: fi
3592:
3593: fi
1.6 millert 3594: mansectsu=1m
3595: mansectform=4
1.1 millert 3596: ;;
3597: *-*-linux*)
3598: # To get crypt(3) and vasprintf() prototypes (so we pass -Wall)
3599: cat >> confdefs.h <<\EOF
3600: #define _GNU_SOURCE 1
3601: EOF
3602:
3603:
3604: # Some Linux versions need to link with -lshadow
3605: if test "$CHECKSHADOW" = "true"; then
3606: echo $ac_n "checking for getspnam""... $ac_c" 1>&6
1.7 ! millert 3607: echo "configure:3608: checking for getspnam" >&5
1.1 millert 3608: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
3609: echo $ac_n "(cached) $ac_c" 1>&6
3610: else
3611: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3612: #line 3613 "configure"
1.1 millert 3613: #include "confdefs.h"
3614: /* System header to define __stub macros and hopefully few prototypes,
3615: which can conflict with char getspnam(); below. */
3616: #include <assert.h>
3617: /* Override any gcc2 internal prototype to avoid an error. */
3618: /* We use char because int might match the return type of a gcc2
3619: builtin and then its argument prototype would still apply. */
3620: char getspnam();
3621:
3622: int main() {
3623:
3624: /* The GNU C library defines this for functions which it implements
3625: to always fail with ENOSYS. Some functions are actually named
3626: something starting with __ and the normal name is an alias. */
3627: #if defined (__stub_getspnam) || defined (__stub___getspnam)
3628: choke me
3629: #else
3630: getspnam();
3631: #endif
3632:
3633: ; return 0; }
3634: EOF
1.7 ! millert 3635: if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3636: rm -rf conftest*
3637: eval "ac_cv_func_getspnam=yes"
3638: else
3639: echo "configure: failed program was:" >&5
3640: cat conftest.$ac_ext >&5
3641: rm -rf conftest*
3642: eval "ac_cv_func_getspnam=no"
3643: fi
3644: rm -f conftest*
3645: fi
3646:
3647: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
3648: echo "$ac_t""yes" 1>&6
3649: cat >> confdefs.h <<\EOF
3650: #define HAVE_GETSPNAM 1
3651: EOF
3652:
3653: else
3654: echo "$ac_t""no" 1>&6
3655: echo $ac_n "checking for getspnam in -lshadow""... $ac_c" 1>&6
1.7 ! millert 3656: echo "configure:3657: checking for getspnam in -lshadow" >&5
1.1 millert 3657: if test -n ""; then
3658: ac_lib_var=`echo shadow'_'getspnam | sed 'y% ./+-%___p_%'`
3659: else
3660: ac_lib_var=`echo shadow'_'getspnam | sed 'y%./+-%__p_%'`
3661: fi
3662: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3663: echo $ac_n "(cached) $ac_c" 1>&6
3664: else
3665: ac_save_LIBS="$LIBS"
3666: LIBS="-lshadow $LIBS"
3667: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3668: #line 3669 "configure"
1.1 millert 3669: #include "confdefs.h"
3670: /* Override any gcc2 internal prototype to avoid an error. */
3671: /* We use char because int might match the return type of a gcc2
3672: builtin and then its argument prototype would still apply. */
3673: char getspnam();
3674:
3675: int main() {
3676: getspnam()
3677: ; return 0; }
3678: EOF
1.7 ! millert 3679: if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3680: rm -rf conftest*
3681: eval "ac_cv_lib_$ac_lib_var=yes"
3682: else
3683: echo "configure: failed program was:" >&5
3684: cat conftest.$ac_ext >&5
3685: rm -rf conftest*
3686: eval "ac_cv_lib_$ac_lib_var=no"
3687: fi
3688: rm -f conftest*
3689: LIBS="$ac_save_LIBS"
3690:
3691: fi
3692: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3693: echo "$ac_t""yes" 1>&6
3694: cat >> confdefs.h <<\EOF
3695: #define HAVE_GETSPNAM 1
3696: EOF
3697: SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
3698: else
3699: echo "$ac_t""no" 1>&6
3700: fi
3701:
3702: fi
3703:
3704: CHECKSHADOW="false"
3705: fi
3706: ;;
3707: *-convex-bsd*)
3708: cat >> confdefs.h <<\EOF
3709: #define _CONVEX_SOURCE 1
3710: EOF
3711:
3712: if test -z "$GCC"; then
3713: CFLAGS="${CFLAGS} -D__STDC__"
3714: fi
3715:
3716: if test "$CHECKSHADOW" = "true"; then
3717: echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.7 ! millert 3718: echo "configure:3719: checking for getprpwnam in -lsec" >&5
1.1 millert 3719: if test -n ""; then
3720: ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
3721: else
3722: ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
3723: fi
3724: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3725: echo $ac_n "(cached) $ac_c" 1>&6
3726: else
3727: ac_save_LIBS="$LIBS"
3728: LIBS="-lsec $LIBS"
3729: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3730: #line 3731 "configure"
1.1 millert 3731: #include "confdefs.h"
3732: /* Override any gcc2 internal prototype to avoid an error. */
3733: /* We use char because int might match the return type of a gcc2
3734: builtin and then its argument prototype would still apply. */
3735: char getprpwnam();
3736:
3737: int main() {
3738: getprpwnam()
3739: ; return 0; }
3740: EOF
1.7 ! millert 3741: if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3742: rm -rf conftest*
3743: eval "ac_cv_lib_$ac_lib_var=yes"
3744: else
3745: echo "configure: failed program was:" >&5
3746: cat conftest.$ac_ext >&5
3747: rm -rf conftest*
3748: eval "ac_cv_lib_$ac_lib_var=no"
3749: fi
3750: rm -f conftest*
3751: LIBS="$ac_save_LIBS"
3752:
3753: fi
3754: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3755: echo "$ac_t""yes" 1>&6
3756: cat >> confdefs.h <<\EOF
3757: #define HAVE_GETPRPWNAM 1
3758: EOF
3759: SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
3760: else
3761: echo "$ac_t""no" 1>&6
3762: fi
3763:
3764: CHECKSHADOW="false"
3765: fi
3766: ;;
3767: *-*-ultrix*)
3768: OS="ultrix"
3769: if test "$CHECKSHADOW" = "true"; then
3770: echo $ac_n "checking for getauthuid in -lauth""... $ac_c" 1>&6
1.7 ! millert 3771: echo "configure:3772: checking for getauthuid in -lauth" >&5
1.1 millert 3772: if test -n ""; then
3773: ac_lib_var=`echo auth'_'getauthuid | sed 'y% ./+-%___p_%'`
3774: else
3775: ac_lib_var=`echo auth'_'getauthuid | sed 'y%./+-%__p_%'`
3776: fi
3777: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778: echo $ac_n "(cached) $ac_c" 1>&6
3779: else
3780: ac_save_LIBS="$LIBS"
3781: LIBS="-lauth $LIBS"
3782: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3783: #line 3784 "configure"
1.1 millert 3784: #include "confdefs.h"
3785: /* Override any gcc2 internal prototype to avoid an error. */
3786: /* We use char because int might match the return type of a gcc2
3787: builtin and then its argument prototype would still apply. */
3788: char getauthuid();
3789:
3790: int main() {
3791: getauthuid()
3792: ; return 0; }
3793: EOF
1.7 ! millert 3794: if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3795: rm -rf conftest*
3796: eval "ac_cv_lib_$ac_lib_var=yes"
3797: else
3798: echo "configure: failed program was:" >&5
3799: cat conftest.$ac_ext >&5
3800: rm -rf conftest*
3801: eval "ac_cv_lib_$ac_lib_var=no"
3802: fi
3803: rm -f conftest*
3804: LIBS="$ac_save_LIBS"
3805:
3806: fi
3807: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808: echo "$ac_t""yes" 1>&6
3809: cat >> confdefs.h <<\EOF
3810: #define HAVE_GETAUTHUID 1
3811: EOF
3812: SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
3813: else
3814: echo "$ac_t""no" 1>&6
3815: fi
3816:
3817: CHECKSHADOW="false"
3818: fi
3819: ;;
3820: *-*-riscos*)
3821: LIBS="${LIBS} -lsun -lbsd"
3822: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
3823: OSDEFS="${OSDEFS} -D_MIPS"
1.6 millert 3824: mansectsu=1m
3825: mansectform=4
1.1 millert 3826: ;;
3827: *-*-isc*)
3828: OSDEFS="${OSDEFS} -D_ISC"
3829: LIB_CRYPT=1
3830: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
3831: LIBS="${LIBS} -lcrypt"
3832:
3833: if test "$CHECKSHADOW" = "true"; then
3834: echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
1.7 ! millert 3835: echo "configure:3836: checking for getspnam in -lsec" >&5
1.1 millert 3836: if test -n ""; then
3837: ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
3838: else
3839: ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
3840: fi
3841: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3842: echo $ac_n "(cached) $ac_c" 1>&6
3843: else
3844: ac_save_LIBS="$LIBS"
3845: LIBS="-lsec $LIBS"
3846: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3847: #line 3848 "configure"
1.1 millert 3848: #include "confdefs.h"
3849: /* Override any gcc2 internal prototype to avoid an error. */
3850: /* We use char because int might match the return type of a gcc2
3851: builtin and then its argument prototype would still apply. */
3852: char getspnam();
3853:
3854: int main() {
3855: getspnam()
3856: ; return 0; }
3857: EOF
1.7 ! millert 3858: if { (eval echo configure:3859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3859: rm -rf conftest*
3860: eval "ac_cv_lib_$ac_lib_var=yes"
3861: else
3862: echo "configure: failed program was:" >&5
3863: cat conftest.$ac_ext >&5
3864: rm -rf conftest*
3865: eval "ac_cv_lib_$ac_lib_var=no"
3866: fi
3867: rm -f conftest*
3868: LIBS="$ac_save_LIBS"
3869:
3870: fi
3871: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3872: echo "$ac_t""yes" 1>&6
3873: cat >> confdefs.h <<\EOF
3874: #define HAVE_GETSPNAM 1
3875: EOF
3876: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
3877: else
3878: echo "$ac_t""no" 1>&6
3879: fi
3880:
3881: CHECKSHADOW="false"
3882: fi
1.6 millert 3883: mansectsu=1m
3884: mansectform=4
1.1 millert 3885: ;;
3886: *-*-sco*)
3887: if test "$CHECKSHADOW" = "true"; then
3888: echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
1.7 ! millert 3889: echo "configure:3890: checking for getprpwnam in -lprot" >&5
1.1 millert 3890: if test -n "-lx"; then
3891: ac_lib_var=`echo prot'_'getprpwnam-lx | sed 'y% ./+-%___p_%'`
3892: else
3893: ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
3894: fi
3895: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3896: echo $ac_n "(cached) $ac_c" 1>&6
3897: else
3898: ac_save_LIBS="$LIBS"
3899: LIBS="-lprot -lx $LIBS"
3900: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3901: #line 3902 "configure"
1.1 millert 3902: #include "confdefs.h"
3903: /* Override any gcc2 internal prototype to avoid an error. */
3904: /* We use char because int might match the return type of a gcc2
3905: builtin and then its argument prototype would still apply. */
3906: char getprpwnam();
3907:
3908: int main() {
3909: getprpwnam()
3910: ; return 0; }
3911: EOF
1.7 ! millert 3912: if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3913: rm -rf conftest*
3914: eval "ac_cv_lib_$ac_lib_var=yes"
3915: else
3916: echo "configure: failed program was:" >&5
3917: cat conftest.$ac_ext >&5
3918: rm -rf conftest*
3919: eval "ac_cv_lib_$ac_lib_var=no"
3920: fi
3921: rm -f conftest*
3922: LIBS="$ac_save_LIBS"
3923:
3924: fi
3925: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3926: echo "$ac_t""yes" 1>&6
3927: cat >> confdefs.h <<\EOF
3928: #define HAVE_GETPRPWNAM 1
3929: EOF
3930: SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
3931: else
3932: echo "$ac_t""no" 1>&6
3933: fi
3934:
3935: echo $ac_n "checking for getspnam in -lgen""... $ac_c" 1>&6
1.7 ! millert 3936: echo "configure:3937: checking for getspnam in -lgen" >&5
1.1 millert 3937: if test -n ""; then
3938: ac_lib_var=`echo gen'_'getspnam | sed 'y% ./+-%___p_%'`
3939: else
3940: ac_lib_var=`echo gen'_'getspnam | sed 'y%./+-%__p_%'`
3941: fi
3942: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3943: echo $ac_n "(cached) $ac_c" 1>&6
3944: else
3945: ac_save_LIBS="$LIBS"
3946: LIBS="-lgen $LIBS"
3947: cat > conftest.$ac_ext <<EOF
1.7 ! millert 3948: #line 3949 "configure"
1.1 millert 3949: #include "confdefs.h"
3950: /* Override any gcc2 internal prototype to avoid an error. */
3951: /* We use char because int might match the return type of a gcc2
3952: builtin and then its argument prototype would still apply. */
3953: char getspnam();
3954:
3955: int main() {
3956: getspnam()
3957: ; return 0; }
3958: EOF
1.7 ! millert 3959: if { (eval echo configure:3960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 3960: rm -rf conftest*
3961: eval "ac_cv_lib_$ac_lib_var=yes"
3962: else
3963: echo "configure: failed program was:" >&5
3964: cat conftest.$ac_ext >&5
3965: rm -rf conftest*
3966: eval "ac_cv_lib_$ac_lib_var=no"
3967: fi
3968: rm -f conftest*
3969: LIBS="$ac_save_LIBS"
3970:
3971: fi
3972: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3973: echo "$ac_t""yes" 1>&6
3974: cat >> confdefs.h <<\EOF
3975: #define HAVE_GETSPNAM 1
3976: EOF
3977: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
3978: else
3979: echo "$ac_t""no" 1>&6
3980: fi
3981:
3982: CHECKSHADOW="false"
3983: fi
1.6 millert 3984: mansectsu=1m
3985: mansectform=4
1.1 millert 3986: ;;
3987: *-sequent-sysv*)
3988: if test "$CHECKSHADOW" = "true"; then
3989: echo $ac_n "checking for getspnam in -lsec""... $ac_c" 1>&6
1.7 ! millert 3990: echo "configure:3991: checking for getspnam in -lsec" >&5
1.1 millert 3991: if test -n ""; then
3992: ac_lib_var=`echo sec'_'getspnam | sed 'y% ./+-%___p_%'`
3993: else
3994: ac_lib_var=`echo sec'_'getspnam | sed 'y%./+-%__p_%'`
3995: fi
3996: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997: echo $ac_n "(cached) $ac_c" 1>&6
3998: else
3999: ac_save_LIBS="$LIBS"
4000: LIBS="-lsec $LIBS"
4001: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4002: #line 4003 "configure"
1.1 millert 4003: #include "confdefs.h"
4004: /* Override any gcc2 internal prototype to avoid an error. */
4005: /* We use char because int might match the return type of a gcc2
4006: builtin and then its argument prototype would still apply. */
4007: char getspnam();
4008:
4009: int main() {
4010: getspnam()
4011: ; return 0; }
4012: EOF
1.7 ! millert 4013: if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4014: rm -rf conftest*
4015: eval "ac_cv_lib_$ac_lib_var=yes"
4016: else
4017: echo "configure: failed program was:" >&5
4018: cat conftest.$ac_ext >&5
4019: rm -rf conftest*
4020: eval "ac_cv_lib_$ac_lib_var=no"
4021: fi
4022: rm -f conftest*
4023: LIBS="$ac_save_LIBS"
4024:
4025: fi
4026: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027: echo "$ac_t""yes" 1>&6
4028: cat >> confdefs.h <<\EOF
4029: #define HAVE_GETSPNAM 1
4030: EOF
4031: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
4032: else
4033: echo "$ac_t""no" 1>&6
4034: fi
4035:
4036: CHECKSHADOW="false"
4037: fi
1.6 millert 4038: mansectsu=1m
4039: mansectform=4
1.1 millert 4040: ;;
4041: *-ccur-sysv4|*-ccur-sysvr4)
4042: LIBS="${LIBS} -lgen"
4043: SUDO_LIBS="${SUDO_LIBS} -lgen"
1.6 millert 4044: mansectsu=1m
4045: mansectform=4
1.1 millert 4046: ;;
4047: *-*-bsdi*)
1.6 millert 4048: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
4049: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
4050: case "$OSREV" in
4051: 2|3) echo 'using shlicc as CC'
4052: ac_cv_prog_CC=shlicc
4053: CC="$ac_cv_prog_CC"
4054: ;;
4055: esac
4056: fi
4057: ;;
4058: *-*-freebsd*)
1.7 ! millert 4059: if test "$with_logincap" = "yes"; then
! 4060: SUDO_LIBS="${SUDO_LIBS} -lutil"
! 4061: fi
1.6 millert 4062: if test "$with_skey" = "yes"; then
4063: SUDO_LIBS="${SUDO_LIBS} -lmd"
4064: fi
4065: if test "$CHECKSHADOW" = "true"; then
4066: CHECKSHADOW="false"
1.1 millert 4067: fi
4068: ;;
4069: *-*-*bsd*)
4070: if test "$CHECKSHADOW" = "true"; then
4071: CHECKSHADOW="false"
4072: fi
4073: ;;
1.6 millert 4074: *-*-sysv*)
4075: mansectsu=1m
4076: mansectform=4
4077: ;;
1.1 millert 4078: esac
4079:
1.6 millert 4080: test -n "$mansectsu" || mansectsu=8
4081: test -n "$mansectform" || mansectform=5
4082:
1.1 millert 4083: if test "$CHECKSHADOW" = "true"; then
4084: echo $ac_n "checking for getspnam""... $ac_c" 1>&6
1.7 ! millert 4085: echo "configure:4086: checking for getspnam" >&5
1.1 millert 4086: if eval "test \"`echo '$''{'ac_cv_func_getspnam'+set}'`\" = set"; then
4087: echo $ac_n "(cached) $ac_c" 1>&6
4088: else
4089: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4090: #line 4091 "configure"
1.1 millert 4091: #include "confdefs.h"
4092: /* System header to define __stub macros and hopefully few prototypes,
4093: which can conflict with char getspnam(); below. */
4094: #include <assert.h>
4095: /* Override any gcc2 internal prototype to avoid an error. */
4096: /* We use char because int might match the return type of a gcc2
4097: builtin and then its argument prototype would still apply. */
4098: char getspnam();
4099:
4100: int main() {
4101:
4102: /* The GNU C library defines this for functions which it implements
4103: to always fail with ENOSYS. Some functions are actually named
4104: something starting with __ and the normal name is an alias. */
4105: #if defined (__stub_getspnam) || defined (__stub___getspnam)
4106: choke me
4107: #else
4108: getspnam();
4109: #endif
4110:
4111: ; return 0; }
4112: EOF
1.7 ! millert 4113: if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4114: rm -rf conftest*
4115: eval "ac_cv_func_getspnam=yes"
4116: else
4117: echo "configure: failed program was:" >&5
4118: cat conftest.$ac_ext >&5
4119: rm -rf conftest*
4120: eval "ac_cv_func_getspnam=no"
4121: fi
4122: rm -f conftest*
4123: fi
4124:
4125: if eval "test \"`echo '$ac_cv_func_'getspnam`\" = yes"; then
4126: echo "$ac_t""yes" 1>&6
4127: cat >> confdefs.h <<\EOF
4128: #define HAVE_GETSPNAM 1
4129: EOF
4130: CHECKSHADOW="false"
4131: else
4132: echo "$ac_t""no" 1>&6
4133: fi
4134:
4135: fi
4136: if test "$CHECKSHADOW" = "true"; then
4137: echo $ac_n "checking for getprpwnam""... $ac_c" 1>&6
1.7 ! millert 4138: echo "configure:4139: checking for getprpwnam" >&5
1.1 millert 4139: if eval "test \"`echo '$''{'ac_cv_func_getprpwnam'+set}'`\" = set"; then
4140: echo $ac_n "(cached) $ac_c" 1>&6
4141: else
4142: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4143: #line 4144 "configure"
1.1 millert 4144: #include "confdefs.h"
4145: /* System header to define __stub macros and hopefully few prototypes,
4146: which can conflict with char getprpwnam(); below. */
4147: #include <assert.h>
4148: /* Override any gcc2 internal prototype to avoid an error. */
4149: /* We use char because int might match the return type of a gcc2
4150: builtin and then its argument prototype would still apply. */
4151: char getprpwnam();
4152:
4153: int main() {
4154:
4155: /* The GNU C library defines this for functions which it implements
4156: to always fail with ENOSYS. Some functions are actually named
4157: something starting with __ and the normal name is an alias. */
4158: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
4159: choke me
4160: #else
4161: getprpwnam();
4162: #endif
4163:
4164: ; return 0; }
4165: EOF
1.7 ! millert 4166: if { (eval echo configure:4167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4167: rm -rf conftest*
4168: eval "ac_cv_func_getprpwnam=yes"
4169: else
4170: echo "configure: failed program was:" >&5
4171: cat conftest.$ac_ext >&5
4172: rm -rf conftest*
4173: eval "ac_cv_func_getprpwnam=no"
4174: fi
4175: rm -f conftest*
4176: fi
4177:
4178: if eval "test \"`echo '$ac_cv_func_'getprpwnam`\" = yes"; then
4179: echo "$ac_t""yes" 1>&6
4180: cat >> confdefs.h <<\EOF
4181: #define HAVE_GETPRPWNAM 1
4182: EOF
4183: CHECKSHADOW="false"; SECUREWARE=1
4184: else
4185: echo "$ac_t""no" 1>&6
4186: echo $ac_n "checking for getprpwnam in -lsec""... $ac_c" 1>&6
1.7 ! millert 4187: echo "configure:4188: checking for getprpwnam in -lsec" >&5
1.1 millert 4188: if test -n ""; then
4189: ac_lib_var=`echo sec'_'getprpwnam | sed 'y% ./+-%___p_%'`
4190: else
4191: ac_lib_var=`echo sec'_'getprpwnam | sed 'y%./+-%__p_%'`
4192: fi
4193: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4194: echo $ac_n "(cached) $ac_c" 1>&6
4195: else
4196: ac_save_LIBS="$LIBS"
4197: LIBS="-lsec $LIBS"
4198: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4199: #line 4200 "configure"
1.1 millert 4200: #include "confdefs.h"
4201: /* Override any gcc2 internal prototype to avoid an error. */
4202: /* We use char because int might match the return type of a gcc2
4203: builtin and then its argument prototype would still apply. */
4204: char getprpwnam();
4205:
4206: int main() {
4207: getprpwnam()
4208: ; return 0; }
4209: EOF
1.7 ! millert 4210: if { (eval echo configure:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4211: rm -rf conftest*
4212: eval "ac_cv_lib_$ac_lib_var=yes"
4213: else
4214: echo "configure: failed program was:" >&5
4215: cat conftest.$ac_ext >&5
4216: rm -rf conftest*
4217: eval "ac_cv_lib_$ac_lib_var=no"
4218: fi
4219: rm -f conftest*
4220: LIBS="$ac_save_LIBS"
4221:
4222: fi
4223: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4224: echo "$ac_t""yes" 1>&6
4225: cat >> confdefs.h <<\EOF
4226: #define HAVE_GETPRPWNAM 1
4227: EOF
4228: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
4229: else
4230: echo "$ac_t""no" 1>&6
4231: echo $ac_n "checking for getprpwnam in -lsecurity""... $ac_c" 1>&6
1.7 ! millert 4232: echo "configure:4233: checking for getprpwnam in -lsecurity" >&5
1.1 millert 4233: if test -n ""; then
4234: ac_lib_var=`echo security'_'getprpwnam | sed 'y% ./+-%___p_%'`
4235: else
4236: ac_lib_var=`echo security'_'getprpwnam | sed 'y%./+-%__p_%'`
4237: fi
4238: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4239: echo $ac_n "(cached) $ac_c" 1>&6
4240: else
4241: ac_save_LIBS="$LIBS"
4242: LIBS="-lsecurity $LIBS"
4243: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4244: #line 4245 "configure"
1.1 millert 4245: #include "confdefs.h"
4246: /* Override any gcc2 internal prototype to avoid an error. */
4247: /* We use char because int might match the return type of a gcc2
4248: builtin and then its argument prototype would still apply. */
4249: char getprpwnam();
4250:
4251: int main() {
4252: getprpwnam()
4253: ; return 0; }
4254: EOF
1.7 ! millert 4255: if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4256: rm -rf conftest*
4257: eval "ac_cv_lib_$ac_lib_var=yes"
4258: else
4259: echo "configure: failed program was:" >&5
4260: cat conftest.$ac_ext >&5
4261: rm -rf conftest*
4262: eval "ac_cv_lib_$ac_lib_var=no"
4263: fi
4264: rm -f conftest*
4265: LIBS="$ac_save_LIBS"
4266:
4267: fi
4268: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4269: echo "$ac_t""yes" 1>&6
4270: cat >> confdefs.h <<\EOF
4271: #define HAVE_GETPRPWNAM 1
4272: EOF
4273: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
4274: else
4275: echo "$ac_t""no" 1>&6
4276: echo $ac_n "checking for getprpwnam in -lprot""... $ac_c" 1>&6
1.7 ! millert 4277: echo "configure:4278: checking for getprpwnam in -lprot" >&5
1.1 millert 4278: if test -n ""; then
4279: ac_lib_var=`echo prot'_'getprpwnam | sed 'y% ./+-%___p_%'`
4280: else
4281: ac_lib_var=`echo prot'_'getprpwnam | sed 'y%./+-%__p_%'`
4282: fi
4283: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4284: echo $ac_n "(cached) $ac_c" 1>&6
4285: else
4286: ac_save_LIBS="$LIBS"
4287: LIBS="-lprot $LIBS"
4288: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4289: #line 4290 "configure"
1.1 millert 4290: #include "confdefs.h"
4291: /* Override any gcc2 internal prototype to avoid an error. */
4292: /* We use char because int might match the return type of a gcc2
4293: builtin and then its argument prototype would still apply. */
4294: char getprpwnam();
4295:
4296: int main() {
4297: getprpwnam()
4298: ; return 0; }
4299: EOF
1.7 ! millert 4300: if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4301: rm -rf conftest*
4302: eval "ac_cv_lib_$ac_lib_var=yes"
4303: else
4304: echo "configure: failed program was:" >&5
4305: cat conftest.$ac_ext >&5
4306: rm -rf conftest*
4307: eval "ac_cv_lib_$ac_lib_var=no"
4308: fi
4309: rm -f conftest*
4310: LIBS="$ac_save_LIBS"
4311:
4312: fi
4313: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4314: echo "$ac_t""yes" 1>&6
4315: cat >> confdefs.h <<\EOF
4316: #define HAVE_GETPRPWNAM 1
4317: EOF
4318: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
4319: else
4320: echo "$ac_t""no" 1>&6
4321: fi
4322:
4323: fi
4324:
4325: fi
4326:
4327: fi
4328:
4329: fi
4330:
4331: if test $ac_cv_prog_gcc = yes; then
4332: echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.7 ! millert 4333: echo "configure:4334: checking whether ${CC-cc} needs -traditional" >&5
1.1 millert 4334: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
4335: echo $ac_n "(cached) $ac_c" 1>&6
4336: else
4337: ac_pattern="Autoconf.*'x'"
4338: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4339: #line 4340 "configure"
1.1 millert 4340: #include "confdefs.h"
4341: #include <sgtty.h>
4342: Autoconf TIOCGETP
4343: EOF
4344: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345: egrep "$ac_pattern" >/dev/null 2>&1; then
4346: rm -rf conftest*
4347: ac_cv_prog_gcc_traditional=yes
4348: else
4349: rm -rf conftest*
4350: ac_cv_prog_gcc_traditional=no
4351: fi
4352: rm -f conftest*
4353:
4354:
4355: if test $ac_cv_prog_gcc_traditional = no; then
4356: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4357: #line 4358 "configure"
1.1 millert 4358: #include "confdefs.h"
4359: #include <termio.h>
4360: Autoconf TCGETA
4361: EOF
4362: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363: egrep "$ac_pattern" >/dev/null 2>&1; then
4364: rm -rf conftest*
4365: ac_cv_prog_gcc_traditional=yes
4366: fi
4367: rm -f conftest*
4368:
4369: fi
4370: fi
4371:
4372: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
4373: if test $ac_cv_prog_gcc_traditional = yes; then
4374: CC="$CC -traditional"
4375: fi
4376: fi
4377:
4378: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.7 ! millert 4379: echo "configure:4380: checking for working const" >&5
1.1 millert 4380: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4381: echo $ac_n "(cached) $ac_c" 1>&6
4382: else
4383: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4384: #line 4385 "configure"
1.1 millert 4385: #include "confdefs.h"
4386:
4387: int main() {
4388:
4389: /* Ultrix mips cc rejects this. */
4390: typedef int charset[2]; const charset x;
4391: /* SunOS 4.1.1 cc rejects this. */
4392: char const *const *ccp;
4393: char **p;
4394: /* NEC SVR4.0.2 mips cc rejects this. */
4395: struct point {int x, y;};
4396: static struct point const zero = {0,0};
4397: /* AIX XL C 1.02.0.0 rejects this.
4398: It does not let you subtract one const X* pointer from another in an arm
4399: of an if-expression whose if-part is not a constant expression */
4400: const char *g = "string";
4401: ccp = &g + (g ? g-g : 0);
4402: /* HPUX 7.0 cc rejects these. */
4403: ++ccp;
4404: p = (char**) ccp;
4405: ccp = (char const *const *) p;
4406: { /* SCO 3.2v4 cc rejects this. */
4407: char *t;
4408: char const *s = 0 ? (char *) 0 : (char const *) 0;
4409:
4410: *t++ = 0;
4411: }
4412: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4413: int x[] = {25, 17};
4414: const int *foo = &x[0];
4415: ++foo;
4416: }
4417: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4418: typedef const int *iptr;
4419: iptr p = 0;
4420: ++p;
4421: }
4422: { /* AIX XL C 1.02.0.0 rejects this saying
4423: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4424: struct s { int j; const int *ap[3]; };
4425: struct s *b; b->j = 5;
4426: }
4427: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4428: const int foo = 10;
4429: }
4430:
4431: ; return 0; }
4432: EOF
1.7 ! millert 4433: if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 millert 4434: rm -rf conftest*
4435: ac_cv_c_const=yes
4436: else
4437: echo "configure: failed program was:" >&5
4438: cat conftest.$ac_ext >&5
4439: rm -rf conftest*
4440: ac_cv_c_const=no
4441: fi
4442: rm -f conftest*
4443: fi
4444:
4445: echo "$ac_t""$ac_cv_c_const" 1>&6
4446: if test $ac_cv_c_const = no; then
4447: cat >> confdefs.h <<\EOF
4448: #define const
4449: EOF
4450:
4451: fi
4452:
4453: for ac_prog in 'bison -y' byacc
4454: do
4455: # Extract the first word of "$ac_prog", so it can be a program name with args.
4456: set dummy $ac_prog; ac_word=$2
4457: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.7 ! millert 4458: echo "configure:4459: checking for $ac_word" >&5
1.1 millert 4459: if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4460: echo $ac_n "(cached) $ac_c" 1>&6
4461: else
4462: if test -n "$YACC"; then
4463: ac_cv_prog_YACC="$YACC" # Let the user override the test.
4464: else
4465: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4466: for ac_dir in $PATH; do
4467: test -z "$ac_dir" && ac_dir=.
4468: if test -f $ac_dir/$ac_word; then
4469: ac_cv_prog_YACC="$ac_prog"
4470: break
4471: fi
4472: done
4473: IFS="$ac_save_ifs"
4474: fi
4475: fi
4476: YACC="$ac_cv_prog_YACC"
4477: if test -n "$YACC"; then
4478: echo "$ac_t""$YACC" 1>&6
4479: else
4480: echo "$ac_t""no" 1>&6
4481: fi
4482:
4483: test -n "$YACC" && break
4484: done
4485: test -n "$YACC" || YACC="yacc"
4486:
4487: if test -z "$with_sendmail"; then
4488: echo $ac_n "checking for sendmail""... $ac_c" 1>&6
1.7 ! millert 4489: echo "configure:4490: checking for sendmail" >&5
1.1 millert 4490: if test -f "/usr/sbin/sendmail"; then
4491: echo "$ac_t""/usr/sbin/sendmail" 1>&6
4492: cat >> confdefs.h <<\EOF
4493: #define _PATH_SENDMAIL "/usr/sbin/sendmail"
4494: EOF
4495:
4496: elif test -f "/usr/lib/sendmail"; then
4497: echo "$ac_t""/usr/lib/sendmail" 1>&6
4498: cat >> confdefs.h <<\EOF
4499: #define _PATH_SENDMAIL "/usr/lib/sendmail"
4500: EOF
4501:
4502: elif test -f "/usr/etc/sendmail"; then
4503: echo "$ac_t""/usr/etc/sendmail" 1>&6
4504: cat >> confdefs.h <<\EOF
4505: #define _PATH_SENDMAIL "/usr/etc/sendmail"
4506: EOF
4507:
4508: elif test -f "/usr/ucblib/sendmail"; then
4509: echo "$ac_t""/usr/ucblib/sendmail" 1>&6
4510: cat >> confdefs.h <<\EOF
4511: #define _PATH_SENDMAIL "/usr/ucblib/sendmail"
4512: EOF
4513:
4514: elif test -f "/usr/local/lib/sendmail"; then
4515: echo "$ac_t""/usr/local/lib/sendmail" 1>&6
4516: cat >> confdefs.h <<\EOF
4517: #define _PATH_SENDMAIL "/usr/local/lib/sendmail"
4518: EOF
4519:
4520: elif test -f "/usr/local/bin/sendmail"; then
4521: echo "$ac_t""/usr/local/bin/sendmail" 1>&6
4522: cat >> confdefs.h <<\EOF
4523: #define _PATH_SENDMAIL "/usr/local/bin/sendmail"
4524: EOF
4525:
4526: else
4527: echo "$ac_t""not found" 1>&6
4528: fi
4529:
4530: fi
4531: echo $ac_n "checking for mv""... $ac_c" 1>&6
1.7 ! millert 4532: echo "configure:4533: checking for mv" >&5
1.1 millert 4533: if test -f "/usr/bin/mv"; then
4534: echo "$ac_t""/usr/bin/mv" 1>&6
4535: cat >> confdefs.h <<\EOF
4536: #define _PATH_MV "/usr/bin/mv"
4537: EOF
4538:
4539: elif test -f "/bin/mv"; then
4540: echo "$ac_t""/bin/mv" 1>&6
4541: cat >> confdefs.h <<\EOF
4542: #define _PATH_MV "/bin/mv"
4543: EOF
4544:
4545: elif test -f "/usr/ucb/mv"; then
4546: echo "$ac_t""/usr/ucb/mv" 1>&6
4547: cat >> confdefs.h <<\EOF
4548: #define _PATH_MV "/usr/ucb/mv"
4549: EOF
4550:
4551: elif test -f "/usr/sbin/mv"; then
4552: echo "$ac_t""/usr/sbin/mv" 1>&6
4553: cat >> confdefs.h <<\EOF
4554: #define _PATH_MV "/usr/sbin/mv"
4555: EOF
4556:
4557: else
4558: echo "$ac_t""not found" 1>&6
4559: fi
4560:
4561: echo $ac_n "checking for bourne shell""... $ac_c" 1>&6
1.7 ! millert 4562: echo "configure:4563: checking for bourne shell" >&5
1.1 millert 4563: if test -f "/bin/sh"; then
4564: echo "$ac_t""/bin/sh" 1>&6
4565: cat >> confdefs.h <<\EOF
4566: #define _PATH_BSHELL "/bin/sh"
4567: EOF
4568:
4569: elif test -f "/usr/bin/sh"; then
4570: echo "$ac_t""/usr/bin/sh" 1>&6
4571: cat >> confdefs.h <<\EOF
4572: #define _PATH_BSHELL "/usr/bin/sh"
4573: EOF
4574:
4575: elif test -f "/sbin/sh"; then
4576: echo "$ac_t""/sbin/sh" 1>&6
4577: cat >> confdefs.h <<\EOF
4578: #define _PATH_BSHELL "/sbin/sh"
4579: EOF
4580:
4581: elif test -f "/usr/sbin/sh"; then
4582: echo "$ac_t""/usr/sbin/sh" 1>&6
4583: cat >> confdefs.h <<\EOF
4584: #define _PATH_BSHELL "/usr/sbin/sh"
4585: EOF
4586:
4587: elif test -f "/bin/ksh"; then
4588: echo "$ac_t""/bin/ksh" 1>&6
4589: cat >> confdefs.h <<\EOF
4590: #define _PATH_BSHELL "/bin/ksh"
4591: EOF
4592:
4593: elif test -f "/usr/bin/ksh"; then
4594: echo "$ac_t""/usr/bin/ksh" 1>&6
4595: cat >> confdefs.h <<\EOF
4596: #define _PATH_BSHELL "/usr/bin/ksh"
4597: EOF
4598:
4599: elif test -f "/bin/bash"; then
4600: echo "$ac_t""/bin/bash" 1>&6
4601: cat >> confdefs.h <<\EOF
4602: #define _PATH_BSHELL "/bin/bash"
4603: EOF
4604:
4605: elif test -f "/usr/bin/bash"; then
4606: echo "$ac_t""/usr/bin/bash" 1>&6
4607: cat >> confdefs.h <<\EOF
4608: #define _PATH_BSHELL "/usr/bin/bash"
4609: EOF
4610:
4611: else
4612: echo "$ac_t""not found" 1>&6
4613: fi
4614:
4615: echo $ac_n "checking for vi""... $ac_c" 1>&6
1.7 ! millert 4616: echo "configure:4617: checking for vi" >&5
1.1 millert 4617: if test -f "/usr/bin/vi"; then
4618: echo "$ac_t""/usr/bin/vi" 1>&6
4619: cat >> confdefs.h <<\EOF
4620: #define _PATH_VI "/usr/bin/vi"
4621: EOF
4622:
4623: elif test -f "/usr/ucb/vi"; then
4624: echo "$ac_t""/usr/ucb/vi" 1>&6
4625: cat >> confdefs.h <<\EOF
4626: #define _PATH_VI "/usr/ucb/vi"
4627: EOF
4628:
4629: elif test -f "/usr/bsd/vi"; then
4630: echo "$ac_t""/usr/bsd/vi" 1>&6
4631: cat >> confdefs.h <<\EOF
4632: #define _PATH_VI "/usr/bsd/vi"
4633: EOF
4634:
4635: elif test -f "/bin/vi"; then
4636: echo "$ac_t""/bin/vi" 1>&6
4637: cat >> confdefs.h <<\EOF
4638: #define _PATH_VI "/bin/vi"
4639: EOF
4640:
4641: elif test -f "/usr/local/bin/vi"; then
4642: echo "$ac_t""/usr/local/bin/vi" 1>&6
4643: cat >> confdefs.h <<\EOF
4644: #define _PATH_VI "/usr/local/bin/vi"
4645: EOF
4646:
4647: else
4648: echo "$ac_t""not found" 1>&6
4649: fi
4650:
4651: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.7 ! millert 4652: echo "configure:4653: checking for ANSI C header files" >&5
1.1 millert 4653: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4654: echo $ac_n "(cached) $ac_c" 1>&6
4655: else
4656: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4657: #line 4658 "configure"
1.1 millert 4658: #include "confdefs.h"
4659: #include <stdlib.h>
4660: #include <stdarg.h>
4661: #include <string.h>
4662: #include <float.h>
4663: EOF
4664: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.7 ! millert 4665: { (eval echo configure:4666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 millert 4666: ac_err=`grep -v '^ *+' conftest.out`
4667: if test -z "$ac_err"; then
4668: rm -rf conftest*
4669: ac_cv_header_stdc=yes
4670: else
4671: echo "$ac_err" >&5
4672: echo "configure: failed program was:" >&5
4673: cat conftest.$ac_ext >&5
4674: rm -rf conftest*
4675: ac_cv_header_stdc=no
4676: fi
4677: rm -f conftest*
4678:
4679: if test $ac_cv_header_stdc = yes; then
4680: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4681: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4682: #line 4683 "configure"
1.1 millert 4683: #include "confdefs.h"
4684: #include <string.h>
4685: EOF
4686: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687: egrep "memchr" >/dev/null 2>&1; then
4688: :
4689: else
4690: rm -rf conftest*
4691: ac_cv_header_stdc=no
4692: fi
4693: rm -f conftest*
4694:
4695: fi
4696:
4697: if test $ac_cv_header_stdc = yes; then
4698: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4699: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4700: #line 4701 "configure"
1.1 millert 4701: #include "confdefs.h"
4702: #include <stdlib.h>
4703: EOF
4704: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705: egrep "free" >/dev/null 2>&1; then
4706: :
4707: else
4708: rm -rf conftest*
4709: ac_cv_header_stdc=no
4710: fi
4711: rm -f conftest*
4712:
4713: fi
4714:
4715: if test $ac_cv_header_stdc = yes; then
4716: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4717: if test "$cross_compiling" = yes; then
4718: :
4719: else
4720: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4721: #line 4722 "configure"
1.1 millert 4722: #include "confdefs.h"
4723: #include <ctype.h>
4724: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4725: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4726: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4727: int main () { int i; for (i = 0; i < 256; i++)
4728: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4729: exit (0); }
4730:
4731: EOF
1.7 ! millert 4732: if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1 millert 4733: then
4734: :
4735: else
4736: echo "configure: failed program was:" >&5
4737: cat conftest.$ac_ext >&5
4738: rm -fr conftest*
4739: ac_cv_header_stdc=no
4740: fi
4741: rm -fr conftest*
4742: fi
4743:
4744: fi
4745: fi
4746:
4747: echo "$ac_t""$ac_cv_header_stdc" 1>&6
4748: if test $ac_cv_header_stdc = yes; then
4749: cat >> confdefs.h <<\EOF
4750: #define STDC_HEADERS 1
4751: EOF
4752:
4753: fi
4754:
4755: ac_header_dirent=no
4756: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4757: do
4758: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4759: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.7 ! millert 4760: echo "configure:4761: checking for $ac_hdr that defines DIR" >&5
1.1 millert 4761: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4762: echo $ac_n "(cached) $ac_c" 1>&6
4763: else
4764: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4765: #line 4766 "configure"
1.1 millert 4766: #include "confdefs.h"
4767: #include <sys/types.h>
4768: #include <$ac_hdr>
4769: int main() {
4770: DIR *dirp = 0;
4771: ; return 0; }
4772: EOF
1.7 ! millert 4773: if { (eval echo configure:4774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 millert 4774: rm -rf conftest*
4775: eval "ac_cv_header_dirent_$ac_safe=yes"
4776: else
4777: echo "configure: failed program was:" >&5
4778: cat conftest.$ac_ext >&5
4779: rm -rf conftest*
4780: eval "ac_cv_header_dirent_$ac_safe=no"
4781: fi
4782: rm -f conftest*
4783: fi
4784: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4785: echo "$ac_t""yes" 1>&6
4786: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4787: cat >> confdefs.h <<EOF
4788: #define $ac_tr_hdr 1
4789: EOF
4790: ac_header_dirent=$ac_hdr; break
4791: else
4792: echo "$ac_t""no" 1>&6
4793: fi
4794: done
4795: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4796: if test $ac_header_dirent = dirent.h; then
4797: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1.7 ! millert 4798: echo "configure:4799: checking for opendir in -ldir" >&5
1.1 millert 4799: if test -n ""; then
4800: ac_lib_var=`echo dir'_'opendir | sed 'y% ./+-%___p_%'`
4801: else
4802: ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4803: fi
4804: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4805: echo $ac_n "(cached) $ac_c" 1>&6
4806: else
4807: ac_save_LIBS="$LIBS"
4808: LIBS="-ldir $LIBS"
4809: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4810: #line 4811 "configure"
1.1 millert 4811: #include "confdefs.h"
4812: /* Override any gcc2 internal prototype to avoid an error. */
4813: /* We use char because int might match the return type of a gcc2
4814: builtin and then its argument prototype would still apply. */
4815: char opendir();
4816:
4817: int main() {
4818: opendir()
4819: ; return 0; }
4820: EOF
1.7 ! millert 4821: if { (eval echo configure:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4822: rm -rf conftest*
4823: eval "ac_cv_lib_$ac_lib_var=yes"
4824: else
4825: echo "configure: failed program was:" >&5
4826: cat conftest.$ac_ext >&5
4827: rm -rf conftest*
4828: eval "ac_cv_lib_$ac_lib_var=no"
4829: fi
4830: rm -f conftest*
4831: LIBS="$ac_save_LIBS"
4832:
4833: fi
4834: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4835: echo "$ac_t""yes" 1>&6
4836: LIBS="$LIBS -ldir"
4837: else
4838: echo "$ac_t""no" 1>&6
4839: fi
4840:
4841: else
4842: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1.7 ! millert 4843: echo "configure:4844: checking for opendir in -lx" >&5
1.1 millert 4844: if test -n ""; then
4845: ac_lib_var=`echo x'_'opendir | sed 'y% ./+-%___p_%'`
4846: else
4847: ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4848: fi
4849: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4850: echo $ac_n "(cached) $ac_c" 1>&6
4851: else
4852: ac_save_LIBS="$LIBS"
4853: LIBS="-lx $LIBS"
4854: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4855: #line 4856 "configure"
1.1 millert 4856: #include "confdefs.h"
4857: /* Override any gcc2 internal prototype to avoid an error. */
4858: /* We use char because int might match the return type of a gcc2
4859: builtin and then its argument prototype would still apply. */
4860: char opendir();
4861:
4862: int main() {
4863: opendir()
4864: ; return 0; }
4865: EOF
1.7 ! millert 4866: if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 4867: rm -rf conftest*
4868: eval "ac_cv_lib_$ac_lib_var=yes"
4869: else
4870: echo "configure: failed program was:" >&5
4871: cat conftest.$ac_ext >&5
4872: rm -rf conftest*
4873: eval "ac_cv_lib_$ac_lib_var=no"
4874: fi
4875: rm -f conftest*
4876: LIBS="$ac_save_LIBS"
4877:
4878: fi
4879: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4880: echo "$ac_t""yes" 1>&6
4881: LIBS="$LIBS -lx"
4882: else
4883: echo "$ac_t""no" 1>&6
4884: fi
4885:
4886: fi
4887:
1.3 millert 4888: for ac_hdr in string.h strings.h unistd.h malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
1.1 millert 4889: do
4890: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4891: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.7 ! millert 4892: echo "configure:4893: checking for $ac_hdr" >&5
1.1 millert 4893: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4894: echo $ac_n "(cached) $ac_c" 1>&6
4895: else
4896: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4897: #line 4898 "configure"
1.1 millert 4898: #include "confdefs.h"
4899: #include <$ac_hdr>
4900: EOF
4901: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.7 ! millert 4902: { (eval echo configure:4903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 millert 4903: ac_err=`grep -v '^ *+' conftest.out`
4904: if test -z "$ac_err"; then
4905: rm -rf conftest*
4906: eval "ac_cv_header_$ac_safe=yes"
4907: else
4908: echo "$ac_err" >&5
4909: echo "configure: failed program was:" >&5
4910: cat conftest.$ac_ext >&5
4911: rm -rf conftest*
4912: eval "ac_cv_header_$ac_safe=no"
4913: fi
4914: rm -f conftest*
4915: fi
4916: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4917: echo "$ac_t""yes" 1>&6
4918: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4919: cat >> confdefs.h <<EOF
4920: #define $ac_tr_hdr 1
4921: EOF
4922:
4923: else
4924: echo "$ac_t""no" 1>&6
4925: fi
4926: done
4927:
4928: if test "$OS" != "ultrix"; then
4929: for ac_hdr in termio.h
4930: do
4931: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4932: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.7 ! millert 4933: echo "configure:4934: checking for $ac_hdr" >&5
1.1 millert 4934: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4935: echo $ac_n "(cached) $ac_c" 1>&6
4936: else
4937: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4938: #line 4939 "configure"
1.1 millert 4939: #include "confdefs.h"
4940: #include <$ac_hdr>
4941: EOF
4942: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.7 ! millert 4943: { (eval echo configure:4944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 millert 4944: ac_err=`grep -v '^ *+' conftest.out`
4945: if test -z "$ac_err"; then
4946: rm -rf conftest*
4947: eval "ac_cv_header_$ac_safe=yes"
4948: else
4949: echo "$ac_err" >&5
4950: echo "configure: failed program was:" >&5
4951: cat conftest.$ac_ext >&5
4952: rm -rf conftest*
4953: eval "ac_cv_header_$ac_safe=no"
4954: fi
4955: rm -f conftest*
4956: fi
4957: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4958: echo "$ac_t""yes" 1>&6
4959: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4960: cat >> confdefs.h <<EOF
4961: #define $ac_tr_hdr 1
4962: EOF
4963:
4964: else
4965: echo "$ac_t""no" 1>&6
4966: fi
4967: done
4968:
4969: for ac_hdr in termios.h
4970: do
4971: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4972: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.7 ! millert 4973: echo "configure:4974: checking for $ac_hdr" >&5
1.1 millert 4974: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4975: echo $ac_n "(cached) $ac_c" 1>&6
4976: else
4977: cat > conftest.$ac_ext <<EOF
1.7 ! millert 4978: #line 4979 "configure"
1.1 millert 4979: #include "confdefs.h"
4980: #include <$ac_hdr>
4981: EOF
4982: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.7 ! millert 4983: { (eval echo configure:4984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 millert 4984: ac_err=`grep -v '^ *+' conftest.out`
4985: if test -z "$ac_err"; then
4986: rm -rf conftest*
4987: eval "ac_cv_header_$ac_safe=yes"
4988: else
4989: echo "$ac_err" >&5
4990: echo "configure: failed program was:" >&5
4991: cat conftest.$ac_ext >&5
4992: rm -rf conftest*
4993: eval "ac_cv_header_$ac_safe=no"
4994: fi
4995: rm -f conftest*
4996: fi
4997: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4998: echo "$ac_t""yes" 1>&6
4999: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5000: cat >> confdefs.h <<EOF
5001: #define $ac_tr_hdr 1
5002: EOF
5003: for ac_func in tcgetattr
5004: do
5005: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 5006: echo "configure:5007: checking for $ac_func" >&5
1.1 millert 5007: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5008: echo $ac_n "(cached) $ac_c" 1>&6
5009: else
5010: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5011: #line 5012 "configure"
1.1 millert 5012: #include "confdefs.h"
5013: /* System header to define __stub macros and hopefully few prototypes,
5014: which can conflict with char $ac_func(); below. */
5015: #include <assert.h>
5016: /* Override any gcc2 internal prototype to avoid an error. */
5017: /* We use char because int might match the return type of a gcc2
5018: builtin and then its argument prototype would still apply. */
5019: char $ac_func();
5020:
5021: int main() {
5022:
5023: /* The GNU C library defines this for functions which it implements
5024: to always fail with ENOSYS. Some functions are actually named
5025: something starting with __ and the normal name is an alias. */
5026: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5027: choke me
5028: #else
5029: $ac_func();
5030: #endif
5031:
5032: ; return 0; }
5033: EOF
1.7 ! millert 5034: if { (eval echo configure:5035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5035: rm -rf conftest*
5036: eval "ac_cv_func_$ac_func=yes"
5037: else
5038: echo "configure: failed program was:" >&5
5039: cat conftest.$ac_ext >&5
5040: rm -rf conftest*
5041: eval "ac_cv_func_$ac_func=no"
5042: fi
5043: rm -f conftest*
5044: fi
5045:
5046: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5047: echo "$ac_t""yes" 1>&6
5048: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5049: cat >> confdefs.h <<EOF
5050: #define $ac_tr_func 1
5051: EOF
5052:
5053: else
5054: echo "$ac_t""no" 1>&6
5055: fi
5056: done
5057:
5058: else
5059: echo "$ac_t""no" 1>&6
5060: fi
5061: done
5062:
5063: fi
1.7 ! millert 5064: if test "$with_logincap" = "yes"; then
! 5065: for ac_hdr in login_cap.h
! 5066: do
! 5067: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 5068: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 5069: echo "configure:5070: checking for $ac_hdr" >&5
! 5070: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 5071: echo $ac_n "(cached) $ac_c" 1>&6
! 5072: else
! 5073: cat > conftest.$ac_ext <<EOF
! 5074: #line 5075 "configure"
! 5075: #include "confdefs.h"
! 5076: #include <$ac_hdr>
! 5077: EOF
! 5078: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 5079: { (eval echo configure:5080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 5080: ac_err=`grep -v '^ *+' conftest.out`
! 5081: if test -z "$ac_err"; then
! 5082: rm -rf conftest*
! 5083: eval "ac_cv_header_$ac_safe=yes"
! 5084: else
! 5085: echo "$ac_err" >&5
! 5086: echo "configure: failed program was:" >&5
! 5087: cat conftest.$ac_ext >&5
! 5088: rm -rf conftest*
! 5089: eval "ac_cv_header_$ac_safe=no"
! 5090: fi
! 5091: rm -f conftest*
! 5092: fi
! 5093: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 5094: echo "$ac_t""yes" 1>&6
! 5095: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 5096: cat >> confdefs.h <<EOF
! 5097: #define $ac_tr_hdr 1
! 5098: EOF
! 5099:
! 5100: else
! 5101: echo "$ac_t""no" 1>&6
! 5102: fi
! 5103: done
! 5104:
! 5105: fi
! 5106: if test "$with_bsdauth" = "yes"; then
! 5107: ac_safe=`echo "bsd_auth.h" | sed 'y%./+-%__p_%'`
! 5108: echo $ac_n "checking for bsd_auth.h""... $ac_c" 1>&6
! 5109: echo "configure:5110: checking for bsd_auth.h" >&5
! 5110: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 5111: echo $ac_n "(cached) $ac_c" 1>&6
! 5112: else
! 5113: cat > conftest.$ac_ext <<EOF
! 5114: #line 5115 "configure"
! 5115: #include "confdefs.h"
! 5116: #include <bsd_auth.h>
! 5117: EOF
! 5118: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 5119: { (eval echo configure:5120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 5120: ac_err=`grep -v '^ *+' conftest.out`
! 5121: if test -z "$ac_err"; then
! 5122: rm -rf conftest*
! 5123: eval "ac_cv_header_$ac_safe=yes"
! 5124: else
! 5125: echo "$ac_err" >&5
! 5126: echo "configure: failed program was:" >&5
! 5127: cat conftest.$ac_ext >&5
! 5128: rm -rf conftest*
! 5129: eval "ac_cv_header_$ac_safe=no"
! 5130: fi
! 5131: rm -f conftest*
! 5132: fi
! 5133: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 5134: echo "$ac_t""yes" 1>&6
! 5135: cat >> confdefs.h <<\EOF
! 5136: #define HAVE_BSD_AUTH_H 1
! 5137: EOF
! 5138: with_passwd=no; AUTH_OBJS=bsdauth.o
! 5139: else
! 5140: echo "$ac_t""no" 1>&6
! 5141: fi
! 5142:
! 5143: fi
! 5144:
1.1 millert 5145: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.7 ! millert 5146: echo "configure:5147: checking for mode_t" >&5
1.1 millert 5147: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
5148: echo $ac_n "(cached) $ac_c" 1>&6
5149: else
5150: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5151: #line 5152 "configure"
1.1 millert 5152: #include "confdefs.h"
5153: #include <sys/types.h>
5154: #if STDC_HEADERS
5155: #include <stdlib.h>
5156: #include <stddef.h>
5157: #endif
5158: EOF
5159: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5160: egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
5161: rm -rf conftest*
5162: ac_cv_type_mode_t=yes
5163: else
5164: rm -rf conftest*
5165: ac_cv_type_mode_t=no
5166: fi
5167: rm -f conftest*
5168:
5169: fi
5170: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
5171: if test $ac_cv_type_mode_t = no; then
5172: cat >> confdefs.h <<\EOF
5173: #define mode_t int
5174: EOF
5175:
5176: fi
5177:
5178: echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
1.7 ! millert 5179: echo "configure:5180: checking for uid_t in sys/types.h" >&5
1.1 millert 5180: if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
5181: echo $ac_n "(cached) $ac_c" 1>&6
5182: else
5183: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5184: #line 5185 "configure"
1.1 millert 5185: #include "confdefs.h"
5186: #include <sys/types.h>
5187: EOF
5188: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189: egrep "uid_t" >/dev/null 2>&1; then
5190: rm -rf conftest*
5191: ac_cv_type_uid_t=yes
5192: else
5193: rm -rf conftest*
5194: ac_cv_type_uid_t=no
5195: fi
5196: rm -f conftest*
5197:
5198: fi
5199:
5200: echo "$ac_t""$ac_cv_type_uid_t" 1>&6
5201: if test $ac_cv_type_uid_t = no; then
5202: cat >> confdefs.h <<\EOF
5203: #define uid_t int
5204: EOF
5205:
5206: cat >> confdefs.h <<\EOF
5207: #define gid_t int
5208: EOF
5209:
5210: fi
5211:
5212: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.7 ! millert 5213: echo "configure:5214: checking for size_t" >&5
1.1 millert 5214: if eval "test \"`echo '$''{'sudo_cv_type_size_t'+set}'`\" = set"; then
5215: echo $ac_n "(cached) $ac_c" 1>&6
5216: else
5217: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5218: #line 5219 "configure"
1.1 millert 5219: #include "confdefs.h"
5220: #include <sys/types.h>
5221: #if STDC_HEADERS
5222: #include <stdlib.h>
5223: #endif
5224: #if HAVE_UNISTD_H
5225: #include <unistd.h>
5226: #endif
5227: EOF
5228: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229: egrep "size_t" >/dev/null 2>&1; then
5230: rm -rf conftest*
5231: sudo_cv_type_size_t=yes
5232: else
5233: rm -rf conftest*
5234: sudo_cv_type_size_t=no
5235: fi
5236: rm -f conftest*
5237:
5238: fi
5239: echo "$ac_t""$sudo_cv_type_size_t" 1>&6
5240: if test $sudo_cv_type_size_t = no; then
5241: cat >> confdefs.h <<\EOF
5242: #define size_t int
5243: EOF
5244:
5245: fi
5246:
5247: echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
1.7 ! millert 5248: echo "configure:5249: checking for ssize_t" >&5
1.1 millert 5249: if eval "test \"`echo '$''{'sudo_cv_type_ssize_t'+set}'`\" = set"; then
5250: echo $ac_n "(cached) $ac_c" 1>&6
5251: else
5252: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5253: #line 5254 "configure"
1.1 millert 5254: #include "confdefs.h"
5255: #include <sys/types.h>
5256: #if STDC_HEADERS
5257: #include <stdlib.h>
5258: #endif
5259: #if HAVE_UNISTD_H
5260: #include <unistd.h>
5261: #endif
5262: EOF
5263: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264: egrep "ssize_t" >/dev/null 2>&1; then
5265: rm -rf conftest*
5266: sudo_cv_type_ssize_t=yes
5267: else
5268: rm -rf conftest*
5269: sudo_cv_type_ssize_t=no
5270: fi
5271: rm -f conftest*
5272:
5273: fi
5274: echo "$ac_t""$sudo_cv_type_ssize_t" 1>&6
5275: if test $sudo_cv_type_ssize_t = no; then
5276: cat >> confdefs.h <<\EOF
5277: #define ssize_t int
5278: EOF
5279:
5280: fi
5281:
5282: echo $ac_n "checking for dev_t""... $ac_c" 1>&6
1.7 ! millert 5283: echo "configure:5284: checking for dev_t" >&5
1.1 millert 5284: if eval "test \"`echo '$''{'sudo_cv_type_dev_t'+set}'`\" = set"; then
5285: echo $ac_n "(cached) $ac_c" 1>&6
5286: else
5287: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5288: #line 5289 "configure"
1.1 millert 5289: #include "confdefs.h"
5290: #include <sys/types.h>
5291: #if STDC_HEADERS
5292: #include <stdlib.h>
5293: #endif
5294: #if HAVE_UNISTD_H
5295: #include <unistd.h>
5296: #endif
5297: EOF
5298: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5299: egrep "dev_t" >/dev/null 2>&1; then
5300: rm -rf conftest*
5301: sudo_cv_type_dev_t=yes
5302: else
5303: rm -rf conftest*
5304: sudo_cv_type_dev_t=no
5305: fi
5306: rm -f conftest*
5307:
5308: fi
5309: echo "$ac_t""$sudo_cv_type_dev_t" 1>&6
5310: if test $sudo_cv_type_dev_t = no; then
5311: cat >> confdefs.h <<\EOF
5312: #define dev_t int
5313: EOF
5314:
5315: fi
5316:
5317: echo $ac_n "checking for ino_t""... $ac_c" 1>&6
1.7 ! millert 5318: echo "configure:5319: checking for ino_t" >&5
1.1 millert 5319: if eval "test \"`echo '$''{'sudo_cv_type_ino_t'+set}'`\" = set"; then
5320: echo $ac_n "(cached) $ac_c" 1>&6
5321: else
5322: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5323: #line 5324 "configure"
1.1 millert 5324: #include "confdefs.h"
5325: #include <sys/types.h>
5326: #if STDC_HEADERS
5327: #include <stdlib.h>
5328: #endif
5329: #if HAVE_UNISTD_H
5330: #include <unistd.h>
5331: #endif
5332: EOF
5333: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334: egrep "ino_t" >/dev/null 2>&1; then
5335: rm -rf conftest*
5336: sudo_cv_type_ino_t=yes
5337: else
5338: rm -rf conftest*
5339: sudo_cv_type_ino_t=no
5340: fi
5341: rm -f conftest*
5342:
5343: fi
5344: echo "$ac_t""$sudo_cv_type_ino_t" 1>&6
5345: if test $sudo_cv_type_ino_t = no; then
5346: cat >> confdefs.h <<\EOF
5347: #define ino_t unsigned int
5348: EOF
5349:
5350: fi
5351:
5352: echo $ac_n "checking for full void implementation""... $ac_c" 1>&6
1.7 ! millert 5353: echo "configure:5354: checking for full void implementation" >&5
1.1 millert 5354: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5355: #line 5356 "configure"
1.1 millert 5356: #include "confdefs.h"
5357:
5358: int main() {
5359: void *foo;
5360: foo = (void *)0; (void *)"test";
5361: ; return 0; }
5362: EOF
1.7 ! millert 5363: if { (eval echo configure:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 millert 5364: rm -rf conftest*
5365: cat >> confdefs.h <<\EOF
5366: #define VOID void
5367: EOF
5368:
5369: echo "$ac_t""yes" 1>&6
5370: else
5371: echo "configure: failed program was:" >&5
5372: cat conftest.$ac_ext >&5
5373: rm -rf conftest*
5374: cat >> confdefs.h <<\EOF
5375: #define VOID char
5376: EOF
5377:
5378: echo "$ac_t""no" 1>&6
5379: fi
5380: rm -f conftest*
5381:
5382: echo $ac_n "checking max length of uid_t""... $ac_c" 1>&6
1.7 ! millert 5383: echo "configure:5384: checking max length of uid_t" >&5
1.1 millert 5384: if eval "test \"`echo '$''{'sudo_cv_uid_t_len'+set}'`\" = set"; then
5385: echo $ac_n "(cached) $ac_c" 1>&6
5386: else
5387: rm -f conftestdata
5388: if test "$cross_compiling" = yes; then
5389: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5390: else
5391: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5392: #line 5393 "configure"
1.1 millert 5393: #include "confdefs.h"
5394: #include <stdio.h>
5395: #include <pwd.h>
5396: #include <limits.h>
5397: #include <sys/types.h>
5398: #include <sys/param.h>
5399: main() {
5400: FILE *f;
5401: char b[1024];
5402: uid_t u = (uid_t) -1;
5403:
5404: if ((f = fopen("conftestdata", "w")) == NULL)
5405: exit(1);
5406:
5407: (void) sprintf(b, "%u", u);
5408: (void) fprintf(f, "%d\n", strlen(b));
5409: (void) fclose(f);
5410: exit(0);
5411: }
5412: EOF
1.7 ! millert 5413: if { (eval echo configure:5414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1 millert 5414: then
5415: sudo_cv_uid_t_len=`cat conftestdata`
5416: else
5417: echo "configure: failed program was:" >&5
5418: cat conftest.$ac_ext >&5
5419: rm -fr conftest*
5420: sudo_cv_uid_t_len=10
5421: fi
5422: rm -fr conftest*
5423: fi
5424:
5425:
5426: fi
5427:
5428: rm -f conftestdata
5429: echo "$ac_t""$sudo_cv_uid_t_len" 1>&6
5430: cat >> confdefs.h <<EOF
5431: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
5432: EOF
5433:
5434:
5435: echo $ac_n "checking for long long support""... $ac_c" 1>&6
1.7 ! millert 5436: echo "configure:5437: checking for long long support" >&5
1.1 millert 5437: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5438: #line 5439 "configure"
1.1 millert 5439: #include "confdefs.h"
5440:
5441: int main() {
5442: long long foo = 1000; foo /= 10;
5443: ; return 0; }
5444: EOF
1.7 ! millert 5445: if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5446: rm -rf conftest*
5447: cat >> confdefs.h <<\EOF
5448: #define HAVE_LONG_LONG 1
5449: EOF
5450:
5451: if test "$cross_compiling" = yes; then
5452: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
5453: else
5454: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5455: #line 5456 "configure"
1.1 millert 5456: #include "confdefs.h"
5457: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
5458: EOF
1.7 ! millert 5459: if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1 millert 5460: then
5461: cat >> confdefs.h <<\EOF
5462: #define LONG_IS_QUAD 1
5463: EOF
5464:
5465: else
5466: echo "configure: failed program was:" >&5
5467: cat conftest.$ac_ext >&5
5468: fi
5469: rm -fr conftest*
5470: fi
5471:
5472: echo "$ac_t""yes" 1>&6
5473: else
5474: echo "configure: failed program was:" >&5
5475: cat conftest.$ac_ext >&5
5476: rm -rf conftest*
5477: echo "$ac_t""no" 1>&6
5478: fi
5479: rm -f conftest*
5480: echo $ac_n "checking for sa_len field in struct sockaddr""... $ac_c" 1>&6
1.7 ! millert 5481: echo "configure:5482: checking for sa_len field in struct sockaddr" >&5
1.1 millert 5482: if eval "test \"`echo '$''{'sudo_cv_sock_sa_len'+set}'`\" = set"; then
5483: echo $ac_n "(cached) $ac_c" 1>&6
5484: else
5485: if test "$cross_compiling" = yes; then
5486: sudo_cv_sock_sa_len=no
5487: else
5488: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5489: #line 5490 "configure"
1.1 millert 5490: #include "confdefs.h"
5491: #include <sys/types.h>
5492: #include <sys/socket.h>
5493: main() {
5494: struct sockaddr s;
5495: s.sa_len = 0;
5496: exit(0);
5497: }
5498: EOF
1.7 ! millert 5499: if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1 millert 5500: then
5501: sudo_cv_sock_sa_len=yes
5502: else
5503: echo "configure: failed program was:" >&5
5504: cat conftest.$ac_ext >&5
5505: rm -fr conftest*
5506: sudo_cv_sock_sa_len=no
5507: fi
5508: rm -fr conftest*
5509: fi
5510:
5511: rm -f core core.* *.core
5512: fi
5513: echo "$ac_t""$sudo_cv_sock_sa_len" 1>&6
5514: if test $sudo_cv_sock_sa_len = yes; then
5515: cat >> confdefs.h <<\EOF
5516: #define HAVE_SA_LEN 1
5517: EOF
5518:
5519: fi
5520:
5521: case "$DEFS" in
5522: *"RETSIGTYPE"*) ;;
5523: *) echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.7 ! millert 5524: echo "configure:5525: checking return type of signal handlers" >&5
1.1 millert 5525: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
5526: echo $ac_n "(cached) $ac_c" 1>&6
5527: else
5528: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5529: #line 5530 "configure"
1.1 millert 5530: #include "confdefs.h"
5531: #include <sys/types.h>
5532: #include <signal.h>
5533: #ifdef signal
5534: #undef signal
5535: #endif
5536: #ifdef __cplusplus
5537: extern "C" void (*signal (int, void (*)(int)))(int);
5538: #else
5539: void (*signal ()) ();
5540: #endif
5541:
5542: int main() {
5543: int i;
5544: ; return 0; }
5545: EOF
1.7 ! millert 5546: if { (eval echo configure:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 millert 5547: rm -rf conftest*
5548: ac_cv_type_signal=void
5549: else
5550: echo "configure: failed program was:" >&5
5551: cat conftest.$ac_ext >&5
5552: rm -rf conftest*
5553: ac_cv_type_signal=int
5554: fi
5555: rm -f conftest*
5556: fi
5557:
5558: echo "$ac_t""$ac_cv_type_signal" 1>&6
5559: cat >> confdefs.h <<EOF
5560: #define RETSIGTYPE $ac_cv_type_signal
5561: EOF
5562:
5563: ;;
5564: esac
1.4 millert 5565: for ac_func in strchr strrchr memchr memcpy memset sysconf sigaction tzset seteuid strftime setrlimit initgroups fstat
1.1 millert 5566: do
5567: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 5568: echo "configure:5569: checking for $ac_func" >&5
1.1 millert 5569: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5570: echo $ac_n "(cached) $ac_c" 1>&6
5571: else
5572: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5573: #line 5574 "configure"
1.1 millert 5574: #include "confdefs.h"
5575: /* System header to define __stub macros and hopefully few prototypes,
5576: which can conflict with char $ac_func(); below. */
5577: #include <assert.h>
5578: /* Override any gcc2 internal prototype to avoid an error. */
5579: /* We use char because int might match the return type of a gcc2
5580: builtin and then its argument prototype would still apply. */
5581: char $ac_func();
5582:
5583: int main() {
5584:
5585: /* The GNU C library defines this for functions which it implements
5586: to always fail with ENOSYS. Some functions are actually named
5587: something starting with __ and the normal name is an alias. */
5588: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5589: choke me
5590: #else
5591: $ac_func();
5592: #endif
5593:
5594: ; return 0; }
5595: EOF
1.7 ! millert 5596: if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5597: rm -rf conftest*
5598: eval "ac_cv_func_$ac_func=yes"
5599: else
5600: echo "configure: failed program was:" >&5
5601: cat conftest.$ac_ext >&5
5602: rm -rf conftest*
5603: eval "ac_cv_func_$ac_func=no"
5604: fi
5605: rm -f conftest*
5606: fi
5607:
5608: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5609: echo "$ac_t""yes" 1>&6
5610: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5611: cat >> confdefs.h <<EOF
5612: #define $ac_tr_func 1
5613: EOF
5614:
5615: else
5616: echo "$ac_t""no" 1>&6
5617: fi
5618: done
5619:
5620: if test -n "$SECUREWARE"; then
5621: for ac_func in bigcrypt
5622: do
5623: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 5624: echo "configure:5625: checking for $ac_func" >&5
1.1 millert 5625: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5626: echo $ac_n "(cached) $ac_c" 1>&6
5627: else
5628: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5629: #line 5630 "configure"
1.1 millert 5630: #include "confdefs.h"
5631: /* System header to define __stub macros and hopefully few prototypes,
5632: which can conflict with char $ac_func(); below. */
5633: #include <assert.h>
5634: /* Override any gcc2 internal prototype to avoid an error. */
5635: /* We use char because int might match the return type of a gcc2
5636: builtin and then its argument prototype would still apply. */
5637: char $ac_func();
5638:
5639: int main() {
5640:
5641: /* The GNU C library defines this for functions which it implements
5642: to always fail with ENOSYS. Some functions are actually named
5643: something starting with __ and the normal name is an alias. */
5644: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5645: choke me
5646: #else
5647: $ac_func();
5648: #endif
5649:
5650: ; return 0; }
5651: EOF
1.7 ! millert 5652: if { (eval echo configure:5653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5653: rm -rf conftest*
5654: eval "ac_cv_func_$ac_func=yes"
5655: else
5656: echo "configure: failed program was:" >&5
5657: cat conftest.$ac_ext >&5
5658: rm -rf conftest*
5659: eval "ac_cv_func_$ac_func=no"
5660: fi
5661: rm -f conftest*
5662: fi
5663:
5664: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5665: echo "$ac_t""yes" 1>&6
5666: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5667: cat >> confdefs.h <<EOF
5668: #define $ac_tr_func 1
5669: EOF
5670:
5671: else
5672: echo "$ac_t""no" 1>&6
5673: fi
5674: done
5675:
5676: for ac_func in set_auth_parameters
5677: do
5678: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 5679: echo "configure:5680: checking for $ac_func" >&5
1.1 millert 5680: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5681: echo $ac_n "(cached) $ac_c" 1>&6
5682: else
5683: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5684: #line 5685 "configure"
1.1 millert 5685: #include "confdefs.h"
5686: /* System header to define __stub macros and hopefully few prototypes,
5687: which can conflict with char $ac_func(); below. */
5688: #include <assert.h>
5689: /* Override any gcc2 internal prototype to avoid an error. */
5690: /* We use char because int might match the return type of a gcc2
5691: builtin and then its argument prototype would still apply. */
5692: char $ac_func();
5693:
5694: int main() {
5695:
5696: /* The GNU C library defines this for functions which it implements
5697: to always fail with ENOSYS. Some functions are actually named
5698: something starting with __ and the normal name is an alias. */
5699: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5700: choke me
5701: #else
5702: $ac_func();
5703: #endif
5704:
5705: ; return 0; }
5706: EOF
1.7 ! millert 5707: if { (eval echo configure:5708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5708: rm -rf conftest*
5709: eval "ac_cv_func_$ac_func=yes"
5710: else
5711: echo "configure: failed program was:" >&5
5712: cat conftest.$ac_ext >&5
5713: rm -rf conftest*
5714: eval "ac_cv_func_$ac_func=no"
5715: fi
5716: rm -f conftest*
5717: fi
5718:
5719: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5720: echo "$ac_t""yes" 1>&6
5721: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5722: cat >> confdefs.h <<EOF
5723: #define $ac_tr_func 1
5724: EOF
5725:
5726: else
5727: echo "$ac_t""no" 1>&6
5728: fi
5729: done
5730:
5731: for ac_func in initprivs
5732: do
5733: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 5734: echo "configure:5735: checking for $ac_func" >&5
1.1 millert 5735: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5736: echo $ac_n "(cached) $ac_c" 1>&6
5737: else
5738: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5739: #line 5740 "configure"
1.1 millert 5740: #include "confdefs.h"
5741: /* System header to define __stub macros and hopefully few prototypes,
5742: which can conflict with char $ac_func(); below. */
5743: #include <assert.h>
5744: /* Override any gcc2 internal prototype to avoid an error. */
5745: /* We use char because int might match the return type of a gcc2
5746: builtin and then its argument prototype would still apply. */
5747: char $ac_func();
5748:
5749: int main() {
5750:
5751: /* The GNU C library defines this for functions which it implements
5752: to always fail with ENOSYS. Some functions are actually named
5753: something starting with __ and the normal name is an alias. */
5754: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5755: choke me
5756: #else
5757: $ac_func();
5758: #endif
5759:
5760: ; return 0; }
5761: EOF
1.7 ! millert 5762: if { (eval echo configure:5763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5763: rm -rf conftest*
5764: eval "ac_cv_func_$ac_func=yes"
5765: else
5766: echo "configure: failed program was:" >&5
5767: cat conftest.$ac_ext >&5
5768: rm -rf conftest*
5769: eval "ac_cv_func_$ac_func=no"
5770: fi
5771: rm -f conftest*
5772: fi
5773:
5774: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5775: echo "$ac_t""yes" 1>&6
5776: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5777: cat >> confdefs.h <<EOF
5778: #define $ac_tr_func 1
5779: EOF
5780:
5781: else
5782: echo "$ac_t""no" 1>&6
5783: fi
5784: done
5785:
5786: fi
5787: if test -z "$BROKEN_GETCWD"; then
5788: echo $ac_n "checking for getcwd""... $ac_c" 1>&6
1.7 ! millert 5789: echo "configure:5790: checking for getcwd" >&5
1.1 millert 5790: if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
5791: echo $ac_n "(cached) $ac_c" 1>&6
5792: else
5793: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5794: #line 5795 "configure"
1.1 millert 5795: #include "confdefs.h"
5796: /* System header to define __stub macros and hopefully few prototypes,
5797: which can conflict with char getcwd(); below. */
5798: #include <assert.h>
5799: /* Override any gcc2 internal prototype to avoid an error. */
5800: /* We use char because int might match the return type of a gcc2
5801: builtin and then its argument prototype would still apply. */
5802: char getcwd();
5803:
5804: int main() {
5805:
5806: /* The GNU C library defines this for functions which it implements
5807: to always fail with ENOSYS. Some functions are actually named
5808: something starting with __ and the normal name is an alias. */
5809: #if defined (__stub_getcwd) || defined (__stub___getcwd)
5810: choke me
5811: #else
5812: getcwd();
5813: #endif
5814:
5815: ; return 0; }
5816: EOF
1.7 ! millert 5817: if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5818: rm -rf conftest*
5819: eval "ac_cv_func_getcwd=yes"
5820: else
5821: echo "configure: failed program was:" >&5
5822: cat conftest.$ac_ext >&5
5823: rm -rf conftest*
5824: eval "ac_cv_func_getcwd=no"
5825: fi
5826: rm -f conftest*
5827: fi
5828:
5829: if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
5830: echo "$ac_t""yes" 1>&6
5831: cat >> confdefs.h <<\EOF
5832: #define HAVE_GETCWD 1
5833: EOF
5834:
5835: else
5836: echo "$ac_t""no" 1>&6
5837: LIBOBJS="$LIBOBJS getcwd.o"
5838: fi
5839:
5840: fi
5841: echo $ac_n "checking for lockf""... $ac_c" 1>&6
1.7 ! millert 5842: echo "configure:5843: checking for lockf" >&5
1.1 millert 5843: if eval "test \"`echo '$''{'ac_cv_func_lockf'+set}'`\" = set"; then
5844: echo $ac_n "(cached) $ac_c" 1>&6
5845: else
5846: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5847: #line 5848 "configure"
1.1 millert 5848: #include "confdefs.h"
5849: /* System header to define __stub macros and hopefully few prototypes,
5850: which can conflict with char lockf(); below. */
5851: #include <assert.h>
5852: /* Override any gcc2 internal prototype to avoid an error. */
5853: /* We use char because int might match the return type of a gcc2
5854: builtin and then its argument prototype would still apply. */
5855: char lockf();
5856:
5857: int main() {
5858:
5859: /* The GNU C library defines this for functions which it implements
5860: to always fail with ENOSYS. Some functions are actually named
5861: something starting with __ and the normal name is an alias. */
5862: #if defined (__stub_lockf) || defined (__stub___lockf)
5863: choke me
5864: #else
5865: lockf();
5866: #endif
5867:
5868: ; return 0; }
5869: EOF
1.7 ! millert 5870: if { (eval echo configure:5871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5871: rm -rf conftest*
5872: eval "ac_cv_func_lockf=yes"
5873: else
5874: echo "configure: failed program was:" >&5
5875: cat conftest.$ac_ext >&5
5876: rm -rf conftest*
5877: eval "ac_cv_func_lockf=no"
5878: fi
5879: rm -f conftest*
5880: fi
5881:
5882: if eval "test \"`echo '$ac_cv_func_'lockf`\" = yes"; then
5883: echo "$ac_t""yes" 1>&6
5884: cat >> confdefs.h <<\EOF
5885: #define HAVE_LOCKF 1
5886: EOF
5887:
5888: else
5889: echo "$ac_t""no" 1>&6
5890: for ac_func in flock
5891: do
5892: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 5893: echo "configure:5894: checking for $ac_func" >&5
1.1 millert 5894: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5895: echo $ac_n "(cached) $ac_c" 1>&6
5896: else
5897: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5898: #line 5899 "configure"
1.1 millert 5899: #include "confdefs.h"
5900: /* System header to define __stub macros and hopefully few prototypes,
5901: which can conflict with char $ac_func(); below. */
5902: #include <assert.h>
5903: /* Override any gcc2 internal prototype to avoid an error. */
5904: /* We use char because int might match the return type of a gcc2
5905: builtin and then its argument prototype would still apply. */
5906: char $ac_func();
5907:
5908: int main() {
5909:
5910: /* The GNU C library defines this for functions which it implements
5911: to always fail with ENOSYS. Some functions are actually named
5912: something starting with __ and the normal name is an alias. */
5913: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5914: choke me
5915: #else
5916: $ac_func();
5917: #endif
5918:
5919: ; return 0; }
5920: EOF
1.7 ! millert 5921: if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5922: rm -rf conftest*
5923: eval "ac_cv_func_$ac_func=yes"
5924: else
5925: echo "configure: failed program was:" >&5
5926: cat conftest.$ac_ext >&5
5927: rm -rf conftest*
5928: eval "ac_cv_func_$ac_func=no"
5929: fi
5930: rm -f conftest*
5931: fi
5932:
5933: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5934: echo "$ac_t""yes" 1>&6
5935: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5936: cat >> confdefs.h <<EOF
5937: #define $ac_tr_func 1
5938: EOF
5939:
5940: else
5941: echo "$ac_t""no" 1>&6
5942: fi
5943: done
5944:
5945: fi
5946:
5947: echo $ac_n "checking for waitpid""... $ac_c" 1>&6
1.7 ! millert 5948: echo "configure:5949: checking for waitpid" >&5
1.1 millert 5949: if eval "test \"`echo '$''{'ac_cv_func_waitpid'+set}'`\" = set"; then
5950: echo $ac_n "(cached) $ac_c" 1>&6
5951: else
5952: cat > conftest.$ac_ext <<EOF
1.7 ! millert 5953: #line 5954 "configure"
1.1 millert 5954: #include "confdefs.h"
5955: /* System header to define __stub macros and hopefully few prototypes,
5956: which can conflict with char waitpid(); below. */
5957: #include <assert.h>
5958: /* Override any gcc2 internal prototype to avoid an error. */
5959: /* We use char because int might match the return type of a gcc2
5960: builtin and then its argument prototype would still apply. */
5961: char waitpid();
5962:
5963: int main() {
5964:
5965: /* The GNU C library defines this for functions which it implements
5966: to always fail with ENOSYS. Some functions are actually named
5967: something starting with __ and the normal name is an alias. */
5968: #if defined (__stub_waitpid) || defined (__stub___waitpid)
5969: choke me
5970: #else
5971: waitpid();
5972: #endif
5973:
5974: ; return 0; }
5975: EOF
1.7 ! millert 5976: if { (eval echo configure:5977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 5977: rm -rf conftest*
5978: eval "ac_cv_func_waitpid=yes"
5979: else
5980: echo "configure: failed program was:" >&5
5981: cat conftest.$ac_ext >&5
5982: rm -rf conftest*
5983: eval "ac_cv_func_waitpid=no"
5984: fi
5985: rm -f conftest*
5986: fi
5987:
5988: if eval "test \"`echo '$ac_cv_func_'waitpid`\" = yes"; then
5989: echo "$ac_t""yes" 1>&6
5990: cat >> confdefs.h <<\EOF
5991: #define HAVE_WAITPID 1
5992: EOF
5993:
5994: else
5995: echo "$ac_t""no" 1>&6
5996: for ac_func in wait3
5997: do
5998: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 5999: echo "configure:6000: checking for $ac_func" >&5
1.1 millert 6000: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6001: echo $ac_n "(cached) $ac_c" 1>&6
6002: else
6003: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6004: #line 6005 "configure"
1.1 millert 6005: #include "confdefs.h"
6006: /* System header to define __stub macros and hopefully few prototypes,
6007: which can conflict with char $ac_func(); below. */
6008: #include <assert.h>
6009: /* Override any gcc2 internal prototype to avoid an error. */
6010: /* We use char because int might match the return type of a gcc2
6011: builtin and then its argument prototype would still apply. */
6012: char $ac_func();
6013:
6014: int main() {
6015:
6016: /* The GNU C library defines this for functions which it implements
6017: to always fail with ENOSYS. Some functions are actually named
6018: something starting with __ and the normal name is an alias. */
6019: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6020: choke me
6021: #else
6022: $ac_func();
6023: #endif
6024:
6025: ; return 0; }
6026: EOF
1.7 ! millert 6027: if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6028: rm -rf conftest*
6029: eval "ac_cv_func_$ac_func=yes"
6030: else
6031: echo "configure: failed program was:" >&5
6032: cat conftest.$ac_ext >&5
6033: rm -rf conftest*
6034: eval "ac_cv_func_$ac_func=no"
6035: fi
6036: rm -f conftest*
6037: fi
6038:
6039: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6040: echo "$ac_t""yes" 1>&6
6041: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6042: cat >> confdefs.h <<EOF
6043: #define $ac_tr_func 1
6044: EOF
6045:
6046: else
6047: echo "$ac_t""no" 1>&6
6048: fi
6049: done
6050:
6051: fi
6052:
6053: echo $ac_n "checking for innetgr""... $ac_c" 1>&6
1.7 ! millert 6054: echo "configure:6055: checking for innetgr" >&5
1.1 millert 6055: if eval "test \"`echo '$''{'ac_cv_func_innetgr'+set}'`\" = set"; then
6056: echo $ac_n "(cached) $ac_c" 1>&6
6057: else
6058: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6059: #line 6060 "configure"
1.1 millert 6060: #include "confdefs.h"
6061: /* System header to define __stub macros and hopefully few prototypes,
6062: which can conflict with char innetgr(); below. */
6063: #include <assert.h>
6064: /* Override any gcc2 internal prototype to avoid an error. */
6065: /* We use char because int might match the return type of a gcc2
6066: builtin and then its argument prototype would still apply. */
6067: char innetgr();
6068:
6069: int main() {
6070:
6071: /* The GNU C library defines this for functions which it implements
6072: to always fail with ENOSYS. Some functions are actually named
6073: something starting with __ and the normal name is an alias. */
6074: #if defined (__stub_innetgr) || defined (__stub___innetgr)
6075: choke me
6076: #else
6077: innetgr();
6078: #endif
6079:
6080: ; return 0; }
6081: EOF
1.7 ! millert 6082: if { (eval echo configure:6083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6083: rm -rf conftest*
6084: eval "ac_cv_func_innetgr=yes"
6085: else
6086: echo "configure: failed program was:" >&5
6087: cat conftest.$ac_ext >&5
6088: rm -rf conftest*
6089: eval "ac_cv_func_innetgr=no"
6090: fi
6091: rm -f conftest*
6092: fi
6093:
6094: if eval "test \"`echo '$ac_cv_func_'innetgr`\" = yes"; then
6095: echo "$ac_t""yes" 1>&6
6096: cat >> confdefs.h <<\EOF
6097: #define HAVE_INNETGR 1
6098: EOF
6099: for ac_func in getdomainname
6100: do
6101: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 6102: echo "configure:6103: checking for $ac_func" >&5
1.1 millert 6103: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6104: echo $ac_n "(cached) $ac_c" 1>&6
6105: else
6106: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6107: #line 6108 "configure"
1.1 millert 6108: #include "confdefs.h"
6109: /* System header to define __stub macros and hopefully few prototypes,
6110: which can conflict with char $ac_func(); below. */
6111: #include <assert.h>
6112: /* Override any gcc2 internal prototype to avoid an error. */
6113: /* We use char because int might match the return type of a gcc2
6114: builtin and then its argument prototype would still apply. */
6115: char $ac_func();
6116:
6117: int main() {
6118:
6119: /* The GNU C library defines this for functions which it implements
6120: to always fail with ENOSYS. Some functions are actually named
6121: something starting with __ and the normal name is an alias. */
6122: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6123: choke me
6124: #else
6125: $ac_func();
6126: #endif
6127:
6128: ; return 0; }
6129: EOF
1.7 ! millert 6130: if { (eval echo configure:6131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6131: rm -rf conftest*
6132: eval "ac_cv_func_$ac_func=yes"
6133: else
6134: echo "configure: failed program was:" >&5
6135: cat conftest.$ac_ext >&5
6136: rm -rf conftest*
6137: eval "ac_cv_func_$ac_func=no"
6138: fi
6139: rm -f conftest*
6140: fi
6141:
6142: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6143: echo "$ac_t""yes" 1>&6
6144: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6145: cat >> confdefs.h <<EOF
6146: #define $ac_tr_func 1
6147: EOF
6148:
6149: else
6150: echo "$ac_t""no" 1>&6
6151: fi
6152: done
6153:
6154: else
6155: echo "$ac_t""no" 1>&6
6156: fi
6157:
6158: echo $ac_n "checking for lsearch""... $ac_c" 1>&6
1.7 ! millert 6159: echo "configure:6160: checking for lsearch" >&5
1.1 millert 6160: if eval "test \"`echo '$''{'ac_cv_func_lsearch'+set}'`\" = set"; then
6161: echo $ac_n "(cached) $ac_c" 1>&6
6162: else
6163: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6164: #line 6165 "configure"
1.1 millert 6165: #include "confdefs.h"
6166: /* System header to define __stub macros and hopefully few prototypes,
6167: which can conflict with char lsearch(); below. */
6168: #include <assert.h>
6169: /* Override any gcc2 internal prototype to avoid an error. */
6170: /* We use char because int might match the return type of a gcc2
6171: builtin and then its argument prototype would still apply. */
6172: char lsearch();
6173:
6174: int main() {
6175:
6176: /* The GNU C library defines this for functions which it implements
6177: to always fail with ENOSYS. Some functions are actually named
6178: something starting with __ and the normal name is an alias. */
6179: #if defined (__stub_lsearch) || defined (__stub___lsearch)
6180: choke me
6181: #else
6182: lsearch();
6183: #endif
6184:
6185: ; return 0; }
6186: EOF
1.7 ! millert 6187: if { (eval echo configure:6188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6188: rm -rf conftest*
6189: eval "ac_cv_func_lsearch=yes"
6190: else
6191: echo "configure: failed program was:" >&5
6192: cat conftest.$ac_ext >&5
6193: rm -rf conftest*
6194: eval "ac_cv_func_lsearch=no"
6195: fi
6196: rm -f conftest*
6197: fi
6198:
6199: if eval "test \"`echo '$ac_cv_func_'lsearch`\" = yes"; then
6200: echo "$ac_t""yes" 1>&6
6201: cat >> confdefs.h <<\EOF
6202: #define HAVE_LSEARCH 1
6203: EOF
6204:
6205: else
6206: echo "$ac_t""no" 1>&6
6207: echo $ac_n "checking for lsearch in -lcompat""... $ac_c" 1>&6
1.7 ! millert 6208: echo "configure:6209: checking for lsearch in -lcompat" >&5
1.1 millert 6209: if test -n ""; then
6210: ac_lib_var=`echo compat'_'lsearch | sed 'y% ./+-%___p_%'`
6211: else
6212: ac_lib_var=`echo compat'_'lsearch | sed 'y%./+-%__p_%'`
6213: fi
6214: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6215: echo $ac_n "(cached) $ac_c" 1>&6
6216: else
6217: ac_save_LIBS="$LIBS"
6218: LIBS="-lcompat $LIBS"
6219: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6220: #line 6221 "configure"
1.1 millert 6221: #include "confdefs.h"
6222: /* Override any gcc2 internal prototype to avoid an error. */
6223: /* We use char because int might match the return type of a gcc2
6224: builtin and then its argument prototype would still apply. */
6225: char lsearch();
6226:
6227: int main() {
6228: lsearch()
6229: ; return 0; }
6230: EOF
1.7 ! millert 6231: if { (eval echo configure:6232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6232: rm -rf conftest*
6233: eval "ac_cv_lib_$ac_lib_var=yes"
6234: else
6235: echo "configure: failed program was:" >&5
6236: cat conftest.$ac_ext >&5
6237: rm -rf conftest*
6238: eval "ac_cv_lib_$ac_lib_var=no"
6239: fi
6240: rm -f conftest*
6241: LIBS="$ac_save_LIBS"
6242:
6243: fi
6244: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6245: echo "$ac_t""yes" 1>&6
6246: ac_safe=`echo "search.h" | sed 'y%./+-%__p_%'`
6247: echo $ac_n "checking for search.h""... $ac_c" 1>&6
1.7 ! millert 6248: echo "configure:6249: checking for search.h" >&5
1.1 millert 6249: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6250: echo $ac_n "(cached) $ac_c" 1>&6
6251: else
6252: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6253: #line 6254 "configure"
1.1 millert 6254: #include "confdefs.h"
6255: #include <search.h>
6256: EOF
6257: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.7 ! millert 6258: { (eval echo configure:6259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 millert 6259: ac_err=`grep -v '^ *+' conftest.out`
6260: if test -z "$ac_err"; then
6261: rm -rf conftest*
6262: eval "ac_cv_header_$ac_safe=yes"
6263: else
6264: echo "$ac_err" >&5
6265: echo "configure: failed program was:" >&5
6266: cat conftest.$ac_ext >&5
6267: rm -rf conftest*
6268: eval "ac_cv_header_$ac_safe=no"
6269: fi
6270: rm -f conftest*
6271: fi
6272: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6273: echo "$ac_t""yes" 1>&6
6274: cat >> confdefs.h <<\EOF
6275: #define HAVE_LSEARCH 1
6276: EOF
6277: LIBS="${LIBS} -lcompat"
6278: else
6279: echo "$ac_t""no" 1>&6
6280: LIBOBJS="$LIBOBJS lsearch.o"
6281: fi
6282:
6283: else
6284: echo "$ac_t""no" 1>&6
6285: LIBOBJS="$LIBOBJS lsearch.o"
6286: fi
6287:
6288: fi
6289:
6290: echo $ac_n "checking for setenv""... $ac_c" 1>&6
1.7 ! millert 6291: echo "configure:6292: checking for setenv" >&5
1.1 millert 6292: if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
6293: echo $ac_n "(cached) $ac_c" 1>&6
6294: else
6295: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6296: #line 6297 "configure"
1.1 millert 6297: #include "confdefs.h"
6298: /* System header to define __stub macros and hopefully few prototypes,
6299: which can conflict with char setenv(); below. */
6300: #include <assert.h>
6301: /* Override any gcc2 internal prototype to avoid an error. */
6302: /* We use char because int might match the return type of a gcc2
6303: builtin and then its argument prototype would still apply. */
6304: char setenv();
6305:
6306: int main() {
6307:
6308: /* The GNU C library defines this for functions which it implements
6309: to always fail with ENOSYS. Some functions are actually named
6310: something starting with __ and the normal name is an alias. */
6311: #if defined (__stub_setenv) || defined (__stub___setenv)
6312: choke me
6313: #else
6314: setenv();
6315: #endif
6316:
6317: ; return 0; }
6318: EOF
1.7 ! millert 6319: if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6320: rm -rf conftest*
6321: eval "ac_cv_func_setenv=yes"
6322: else
6323: echo "configure: failed program was:" >&5
6324: cat conftest.$ac_ext >&5
6325: rm -rf conftest*
6326: eval "ac_cv_func_setenv=no"
6327: fi
6328: rm -f conftest*
6329: fi
6330:
6331: if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
6332: echo "$ac_t""yes" 1>&6
6333: cat >> confdefs.h <<\EOF
6334: #define HAVE_SETENV 1
6335: EOF
6336:
6337: else
6338: echo "$ac_t""no" 1>&6
6339: echo $ac_n "checking for putenv""... $ac_c" 1>&6
1.7 ! millert 6340: echo "configure:6341: checking for putenv" >&5
1.1 millert 6341: if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
6342: echo $ac_n "(cached) $ac_c" 1>&6
6343: else
6344: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6345: #line 6346 "configure"
1.1 millert 6346: #include "confdefs.h"
6347: /* System header to define __stub macros and hopefully few prototypes,
6348: which can conflict with char putenv(); below. */
6349: #include <assert.h>
6350: /* Override any gcc2 internal prototype to avoid an error. */
6351: /* We use char because int might match the return type of a gcc2
6352: builtin and then its argument prototype would still apply. */
6353: char putenv();
6354:
6355: int main() {
6356:
6357: /* The GNU C library defines this for functions which it implements
6358: to always fail with ENOSYS. Some functions are actually named
6359: something starting with __ and the normal name is an alias. */
6360: #if defined (__stub_putenv) || defined (__stub___putenv)
6361: choke me
6362: #else
6363: putenv();
6364: #endif
6365:
6366: ; return 0; }
6367: EOF
1.7 ! millert 6368: if { (eval echo configure:6369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6369: rm -rf conftest*
6370: eval "ac_cv_func_putenv=yes"
6371: else
6372: echo "configure: failed program was:" >&5
6373: cat conftest.$ac_ext >&5
6374: rm -rf conftest*
6375: eval "ac_cv_func_putenv=no"
6376: fi
6377: rm -f conftest*
6378: fi
6379:
6380: if eval "test \"`echo '$ac_cv_func_'putenv`\" = yes"; then
6381: echo "$ac_t""yes" 1>&6
6382: cat >> confdefs.h <<\EOF
6383: #define HAVE_PUTENV 1
6384: EOF
6385:
6386: else
6387: echo "$ac_t""no" 1>&6
6388: LIBOBJS="$LIBOBJS putenv.o"
6389: fi
6390:
6391: fi
6392:
6393: echo $ac_n "checking for utime""... $ac_c" 1>&6
1.7 ! millert 6394: echo "configure:6395: checking for utime" >&5
1.1 millert 6395: if eval "test \"`echo '$''{'ac_cv_func_utime'+set}'`\" = set"; then
6396: echo $ac_n "(cached) $ac_c" 1>&6
6397: else
6398: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6399: #line 6400 "configure"
1.1 millert 6400: #include "confdefs.h"
6401: /* System header to define __stub macros and hopefully few prototypes,
6402: which can conflict with char utime(); below. */
6403: #include <assert.h>
6404: /* Override any gcc2 internal prototype to avoid an error. */
6405: /* We use char because int might match the return type of a gcc2
6406: builtin and then its argument prototype would still apply. */
6407: char utime();
6408:
6409: int main() {
6410:
6411: /* The GNU C library defines this for functions which it implements
6412: to always fail with ENOSYS. Some functions are actually named
6413: something starting with __ and the normal name is an alias. */
6414: #if defined (__stub_utime) || defined (__stub___utime)
6415: choke me
6416: #else
6417: utime();
6418: #endif
6419:
6420: ; return 0; }
6421: EOF
1.7 ! millert 6422: if { (eval echo configure:6423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6423: rm -rf conftest*
6424: eval "ac_cv_func_utime=yes"
6425: else
6426: echo "configure: failed program was:" >&5
6427: cat conftest.$ac_ext >&5
6428: rm -rf conftest*
6429: eval "ac_cv_func_utime=no"
6430: fi
6431: rm -f conftest*
6432: fi
6433:
6434: if eval "test \"`echo '$ac_cv_func_'utime`\" = yes"; then
6435: echo "$ac_t""yes" 1>&6
6436: cat >> confdefs.h <<\EOF
6437: #define HAVE_UTIME 1
6438: EOF
6439:
6440: echo $ac_n "checking for POSIX utime""... $ac_c" 1>&6
1.7 ! millert 6441: echo "configure:6442: checking for POSIX utime" >&5
1.1 millert 6442: if eval "test \"`echo '$''{'sudo_cv_func_utime_posix'+set}'`\" = set"; then
6443: echo $ac_n "(cached) $ac_c" 1>&6
6444: else
6445: rm -f conftestdata; > conftestdata
6446: if test "$cross_compiling" = yes; then
6447: sudo_cv_func_utime_posix=no
6448: else
6449: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6450: #line 6451 "configure"
1.1 millert 6451: #include "confdefs.h"
6452: #include <sys/types.h>
6453: #include <sys/time.h>
6454: #include <utime.h>
6455: main() {
6456: struct utimbuf ut;
6457: ut.actime = ut.modtime = time(0);
6458: utime("conftestdata", &ut);
6459: exit(0);
6460: }
6461: EOF
1.7 ! millert 6462: if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1 millert 6463: then
6464: sudo_cv_func_utime_posix=yes
6465: else
6466: echo "configure: failed program was:" >&5
6467: cat conftest.$ac_ext >&5
6468: rm -fr conftest*
6469: sudo_cv_func_utime_posix=no
6470: fi
6471: rm -fr conftest*
6472: fi
6473:
6474: rm -f core core.* *.core
6475: fi
6476: echo "$ac_t""$sudo_cv_func_utime_posix" 1>&6
6477: if test $sudo_cv_func_utime_posix = yes; then
6478: cat >> confdefs.h <<\EOF
6479: #define HAVE_UTIME_POSIX 1
6480: EOF
6481:
6482: fi
6483:
6484: else
6485: echo "$ac_t""no" 1>&6
6486: LIBOBJS="$LIBOBJS utime.o"
6487: fi
6488:
1.6 millert 6489: echo $ac_n "checking for working fnmatch with FNM_CASEFOLD""... $ac_c" 1>&6
1.7 ! millert 6490: echo "configure:6491: checking for working fnmatch with FNM_CASEFOLD" >&5
1.1 millert 6491: if eval "test \"`echo '$''{'sudo_cv_func_fnmatch'+set}'`\" = set"; then
6492: echo $ac_n "(cached) $ac_c" 1>&6
6493: else
6494: rm -f conftestdata; > conftestdata
6495: if test "$cross_compiling" = yes; then
6496: sudo_cv_func_fnmatch=no
6497: else
6498: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6499: #line 6500 "configure"
1.1 millert 6500: #include "confdefs.h"
1.3 millert 6501: #include <fnmatch.h>
1.6 millert 6502: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.3 millert 6503:
1.1 millert 6504: EOF
1.7 ! millert 6505: if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1 millert 6506: then
6507: sudo_cv_func_fnmatch=yes
6508: else
6509: echo "configure: failed program was:" >&5
6510: cat conftest.$ac_ext >&5
6511: rm -fr conftest*
6512: sudo_cv_func_fnmatch=no
6513: fi
6514: rm -fr conftest*
6515: fi
6516:
6517: rm -f core core.* *.core
6518: fi
6519: echo "$ac_t""$sudo_cv_func_fnmatch" 1>&6
6520: if test $sudo_cv_func_fnmatch = yes; then
6521: cat >> confdefs.h <<\EOF
6522: #define HAVE_FNMATCH 1
6523: EOF
6524:
6525: else
6526: LIBOBJS="$LIBOBJS fnmatch.o"
6527: fi
6528:
6529: for ac_func in strerror strcasecmp
6530: do
6531: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 6532: echo "configure:6533: checking for $ac_func" >&5
1.1 millert 6533: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6534: echo $ac_n "(cached) $ac_c" 1>&6
6535: else
6536: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6537: #line 6538 "configure"
1.1 millert 6538: #include "confdefs.h"
6539: /* System header to define __stub macros and hopefully few prototypes,
6540: which can conflict with char $ac_func(); below. */
6541: #include <assert.h>
6542: /* Override any gcc2 internal prototype to avoid an error. */
6543: /* We use char because int might match the return type of a gcc2
6544: builtin and then its argument prototype would still apply. */
6545: char $ac_func();
6546:
6547: int main() {
6548:
6549: /* The GNU C library defines this for functions which it implements
6550: to always fail with ENOSYS. Some functions are actually named
6551: something starting with __ and the normal name is an alias. */
6552: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6553: choke me
6554: #else
6555: $ac_func();
6556: #endif
6557:
6558: ; return 0; }
6559: EOF
1.7 ! millert 6560: if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6561: rm -rf conftest*
6562: eval "ac_cv_func_$ac_func=yes"
6563: else
6564: echo "configure: failed program was:" >&5
6565: cat conftest.$ac_ext >&5
6566: rm -rf conftest*
6567: eval "ac_cv_func_$ac_func=no"
6568: fi
6569: rm -f conftest*
6570: fi
6571:
6572: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6573: echo "$ac_t""yes" 1>&6
6574: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6575: cat >> confdefs.h <<EOF
6576: #define $ac_tr_func 1
6577: EOF
6578:
6579: else
6580: echo "$ac_t""no" 1>&6
6581: LIBOBJS="$LIBOBJS ${ac_func}.o"
6582: fi
6583: done
6584:
6585:
6586: echo $ac_n "checking for snprintf""... $ac_c" 1>&6
1.7 ! millert 6587: echo "configure:6588: checking for snprintf" >&5
1.1 millert 6588: if eval "test \"`echo '$''{'ac_cv_func_snprintf'+set}'`\" = set"; then
6589: echo $ac_n "(cached) $ac_c" 1>&6
6590: else
6591: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6592: #line 6593 "configure"
1.1 millert 6593: #include "confdefs.h"
6594: /* System header to define __stub macros and hopefully few prototypes,
6595: which can conflict with char snprintf(); below. */
6596: #include <assert.h>
6597: /* Override any gcc2 internal prototype to avoid an error. */
6598: /* We use char because int might match the return type of a gcc2
6599: builtin and then its argument prototype would still apply. */
6600: char snprintf();
6601:
6602: int main() {
6603:
6604: /* The GNU C library defines this for functions which it implements
6605: to always fail with ENOSYS. Some functions are actually named
6606: something starting with __ and the normal name is an alias. */
6607: #if defined (__stub_snprintf) || defined (__stub___snprintf)
6608: choke me
6609: #else
6610: snprintf();
6611: #endif
6612:
6613: ; return 0; }
6614: EOF
1.7 ! millert 6615: if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6616: rm -rf conftest*
6617: eval "ac_cv_func_snprintf=yes"
6618: else
6619: echo "configure: failed program was:" >&5
6620: cat conftest.$ac_ext >&5
6621: rm -rf conftest*
6622: eval "ac_cv_func_snprintf=no"
6623: fi
6624: rm -f conftest*
6625: fi
6626:
6627: if eval "test \"`echo '$ac_cv_func_'snprintf`\" = yes"; then
6628: echo "$ac_t""yes" 1>&6
6629: cat >> confdefs.h <<\EOF
6630: #define HAVE_SNPRINTF 1
6631: EOF
6632:
6633: else
6634: echo "$ac_t""no" 1>&6
6635: NEED_SNPRINTF=1
6636: fi
6637:
6638: echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
1.7 ! millert 6639: echo "configure:6640: checking for vsnprintf" >&5
1.1 millert 6640: if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
6641: echo $ac_n "(cached) $ac_c" 1>&6
6642: else
6643: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6644: #line 6645 "configure"
1.1 millert 6645: #include "confdefs.h"
6646: /* System header to define __stub macros and hopefully few prototypes,
6647: which can conflict with char vsnprintf(); below. */
6648: #include <assert.h>
6649: /* Override any gcc2 internal prototype to avoid an error. */
6650: /* We use char because int might match the return type of a gcc2
6651: builtin and then its argument prototype would still apply. */
6652: char vsnprintf();
6653:
6654: int main() {
6655:
6656: /* The GNU C library defines this for functions which it implements
6657: to always fail with ENOSYS. Some functions are actually named
6658: something starting with __ and the normal name is an alias. */
6659: #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
6660: choke me
6661: #else
6662: vsnprintf();
6663: #endif
6664:
6665: ; return 0; }
6666: EOF
1.7 ! millert 6667: if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6668: rm -rf conftest*
6669: eval "ac_cv_func_vsnprintf=yes"
6670: else
6671: echo "configure: failed program was:" >&5
6672: cat conftest.$ac_ext >&5
6673: rm -rf conftest*
6674: eval "ac_cv_func_vsnprintf=no"
6675: fi
6676: rm -f conftest*
6677: fi
6678:
6679: if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
6680: echo "$ac_t""yes" 1>&6
6681: cat >> confdefs.h <<\EOF
6682: #define HAVE_VSNPRINTF 1
6683: EOF
6684:
6685: else
6686: echo "$ac_t""no" 1>&6
6687: NEED_SNPRINTF=1
6688: fi
6689:
6690: echo $ac_n "checking for asprintf""... $ac_c" 1>&6
1.7 ! millert 6691: echo "configure:6692: checking for asprintf" >&5
1.1 millert 6692: if eval "test \"`echo '$''{'ac_cv_func_asprintf'+set}'`\" = set"; then
6693: echo $ac_n "(cached) $ac_c" 1>&6
6694: else
6695: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6696: #line 6697 "configure"
1.1 millert 6697: #include "confdefs.h"
6698: /* System header to define __stub macros and hopefully few prototypes,
6699: which can conflict with char asprintf(); below. */
6700: #include <assert.h>
6701: /* Override any gcc2 internal prototype to avoid an error. */
6702: /* We use char because int might match the return type of a gcc2
6703: builtin and then its argument prototype would still apply. */
6704: char asprintf();
6705:
6706: int main() {
6707:
6708: /* The GNU C library defines this for functions which it implements
6709: to always fail with ENOSYS. Some functions are actually named
6710: something starting with __ and the normal name is an alias. */
6711: #if defined (__stub_asprintf) || defined (__stub___asprintf)
6712: choke me
6713: #else
6714: asprintf();
6715: #endif
6716:
6717: ; return 0; }
6718: EOF
1.7 ! millert 6719: if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6720: rm -rf conftest*
6721: eval "ac_cv_func_asprintf=yes"
6722: else
6723: echo "configure: failed program was:" >&5
6724: cat conftest.$ac_ext >&5
6725: rm -rf conftest*
6726: eval "ac_cv_func_asprintf=no"
6727: fi
6728: rm -f conftest*
6729: fi
6730:
6731: if eval "test \"`echo '$ac_cv_func_'asprintf`\" = yes"; then
6732: echo "$ac_t""yes" 1>&6
6733: cat >> confdefs.h <<\EOF
6734: #define HAVE_ASPRINTF 1
6735: EOF
6736:
6737: else
6738: echo "$ac_t""no" 1>&6
6739: NEED_SNPRINTF=1
6740: fi
6741:
6742: echo $ac_n "checking for vasprintf""... $ac_c" 1>&6
1.7 ! millert 6743: echo "configure:6744: checking for vasprintf" >&5
1.1 millert 6744: if eval "test \"`echo '$''{'ac_cv_func_vasprintf'+set}'`\" = set"; then
6745: echo $ac_n "(cached) $ac_c" 1>&6
6746: else
6747: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6748: #line 6749 "configure"
1.1 millert 6749: #include "confdefs.h"
6750: /* System header to define __stub macros and hopefully few prototypes,
6751: which can conflict with char vasprintf(); below. */
6752: #include <assert.h>
6753: /* Override any gcc2 internal prototype to avoid an error. */
6754: /* We use char because int might match the return type of a gcc2
6755: builtin and then its argument prototype would still apply. */
6756: char vasprintf();
6757:
6758: int main() {
6759:
6760: /* The GNU C library defines this for functions which it implements
6761: to always fail with ENOSYS. Some functions are actually named
6762: something starting with __ and the normal name is an alias. */
6763: #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
6764: choke me
6765: #else
6766: vasprintf();
6767: #endif
6768:
6769: ; return 0; }
6770: EOF
1.7 ! millert 6771: if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6772: rm -rf conftest*
6773: eval "ac_cv_func_vasprintf=yes"
6774: else
6775: echo "configure: failed program was:" >&5
6776: cat conftest.$ac_ext >&5
6777: rm -rf conftest*
6778: eval "ac_cv_func_vasprintf=no"
6779: fi
6780: rm -f conftest*
6781: fi
6782:
6783: if eval "test \"`echo '$ac_cv_func_'vasprintf`\" = yes"; then
6784: echo "$ac_t""yes" 1>&6
6785: cat >> confdefs.h <<\EOF
6786: #define HAVE_VASPRINTF 1
6787: EOF
6788:
6789: else
6790: echo "$ac_t""no" 1>&6
6791: NEED_SNPRINTF=1
6792: fi
6793:
6794: if test -n "$NEED_SNPRINTF"; then
6795: LIBOBJS="$LIBOBJS snprintf.o"
6796: fi
6797: if test -z "$LIB_CRYPT"; then
6798: echo $ac_n "checking for crypt""... $ac_c" 1>&6
1.7 ! millert 6799: echo "configure:6800: checking for crypt" >&5
1.1 millert 6800: if eval "test \"`echo '$''{'ac_cv_func_crypt'+set}'`\" = set"; then
6801: echo $ac_n "(cached) $ac_c" 1>&6
6802: else
6803: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6804: #line 6805 "configure"
1.1 millert 6805: #include "confdefs.h"
6806: /* System header to define __stub macros and hopefully few prototypes,
6807: which can conflict with char crypt(); below. */
6808: #include <assert.h>
6809: /* Override any gcc2 internal prototype to avoid an error. */
6810: /* We use char because int might match the return type of a gcc2
6811: builtin and then its argument prototype would still apply. */
6812: char crypt();
6813:
6814: int main() {
6815:
6816: /* The GNU C library defines this for functions which it implements
6817: to always fail with ENOSYS. Some functions are actually named
6818: something starting with __ and the normal name is an alias. */
6819: #if defined (__stub_crypt) || defined (__stub___crypt)
6820: choke me
6821: #else
6822: crypt();
6823: #endif
6824:
6825: ; return 0; }
6826: EOF
1.7 ! millert 6827: if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6828: rm -rf conftest*
6829: eval "ac_cv_func_crypt=yes"
6830: else
6831: echo "configure: failed program was:" >&5
6832: cat conftest.$ac_ext >&5
6833: rm -rf conftest*
6834: eval "ac_cv_func_crypt=no"
6835: fi
6836: rm -f conftest*
6837: fi
6838:
6839: if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
6840: echo "$ac_t""yes" 1>&6
6841: :
6842: else
6843: echo "$ac_t""no" 1>&6
6844: echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1.7 ! millert 6845: echo "configure:6846: checking for crypt in -lcrypt" >&5
1.1 millert 6846: if test -n ""; then
6847: ac_lib_var=`echo crypt'_'crypt | sed 'y% ./+-%___p_%'`
6848: else
6849: ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
6850: fi
6851: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6852: echo $ac_n "(cached) $ac_c" 1>&6
6853: else
6854: ac_save_LIBS="$LIBS"
6855: LIBS="-lcrypt $LIBS"
6856: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6857: #line 6858 "configure"
1.1 millert 6858: #include "confdefs.h"
6859: /* Override any gcc2 internal prototype to avoid an error. */
6860: /* We use char because int might match the return type of a gcc2
6861: builtin and then its argument prototype would still apply. */
6862: char crypt();
6863:
6864: int main() {
6865: crypt()
6866: ; return 0; }
6867: EOF
1.7 ! millert 6868: if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6869: rm -rf conftest*
6870: eval "ac_cv_lib_$ac_lib_var=yes"
6871: else
6872: echo "configure: failed program was:" >&5
6873: cat conftest.$ac_ext >&5
6874: rm -rf conftest*
6875: eval "ac_cv_lib_$ac_lib_var=no"
6876: fi
6877: rm -f conftest*
6878: LIBS="$ac_save_LIBS"
6879:
6880: fi
6881: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6882: echo "$ac_t""yes" 1>&6
6883: SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
6884: else
6885: echo "$ac_t""no" 1>&6
6886: echo $ac_n "checking for crypt in -lcrypt_d""... $ac_c" 1>&6
1.7 ! millert 6887: echo "configure:6888: checking for crypt in -lcrypt_d" >&5
1.1 millert 6888: if test -n ""; then
6889: ac_lib_var=`echo crypt_d'_'crypt | sed 'y% ./+-%___p_%'`
6890: else
6891: ac_lib_var=`echo crypt_d'_'crypt | sed 'y%./+-%__p_%'`
6892: fi
6893: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6894: echo $ac_n "(cached) $ac_c" 1>&6
6895: else
6896: ac_save_LIBS="$LIBS"
6897: LIBS="-lcrypt_d $LIBS"
6898: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6899: #line 6900 "configure"
1.1 millert 6900: #include "confdefs.h"
6901: /* Override any gcc2 internal prototype to avoid an error. */
6902: /* We use char because int might match the return type of a gcc2
6903: builtin and then its argument prototype would still apply. */
6904: char crypt();
6905:
6906: int main() {
6907: crypt()
6908: ; return 0; }
6909: EOF
1.7 ! millert 6910: if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6911: rm -rf conftest*
6912: eval "ac_cv_lib_$ac_lib_var=yes"
6913: else
6914: echo "configure: failed program was:" >&5
6915: cat conftest.$ac_ext >&5
6916: rm -rf conftest*
6917: eval "ac_cv_lib_$ac_lib_var=no"
6918: fi
6919: rm -f conftest*
6920: LIBS="$ac_save_LIBS"
6921:
6922: fi
6923: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6924: echo "$ac_t""yes" 1>&6
6925: SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
6926: else
6927: echo "$ac_t""no" 1>&6
6928: echo $ac_n "checking for crypt in -lufc""... $ac_c" 1>&6
1.7 ! millert 6929: echo "configure:6930: checking for crypt in -lufc" >&5
1.1 millert 6930: if test -n ""; then
6931: ac_lib_var=`echo ufc'_'crypt | sed 'y% ./+-%___p_%'`
6932: else
6933: ac_lib_var=`echo ufc'_'crypt | sed 'y%./+-%__p_%'`
6934: fi
6935: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6936: echo $ac_n "(cached) $ac_c" 1>&6
6937: else
6938: ac_save_LIBS="$LIBS"
6939: LIBS="-lufc $LIBS"
6940: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6941: #line 6942 "configure"
1.1 millert 6942: #include "confdefs.h"
6943: /* Override any gcc2 internal prototype to avoid an error. */
6944: /* We use char because int might match the return type of a gcc2
6945: builtin and then its argument prototype would still apply. */
6946: char crypt();
6947:
6948: int main() {
6949: crypt()
6950: ; return 0; }
6951: EOF
1.7 ! millert 6952: if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 6953: rm -rf conftest*
6954: eval "ac_cv_lib_$ac_lib_var=yes"
6955: else
6956: echo "configure: failed program was:" >&5
6957: cat conftest.$ac_ext >&5
6958: rm -rf conftest*
6959: eval "ac_cv_lib_$ac_lib_var=no"
6960: fi
6961: rm -f conftest*
6962: LIBS="$ac_save_LIBS"
6963:
6964: fi
6965: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6966: echo "$ac_t""yes" 1>&6
6967: SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
6968: else
6969: echo "$ac_t""no" 1>&6
6970: fi
6971:
6972: fi
6973:
6974: fi
6975:
6976: fi
6977:
6978: fi
6979: echo $ac_n "checking for socket""... $ac_c" 1>&6
1.7 ! millert 6980: echo "configure:6981: checking for socket" >&5
1.1 millert 6981: if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6982: echo $ac_n "(cached) $ac_c" 1>&6
6983: else
6984: cat > conftest.$ac_ext <<EOF
1.7 ! millert 6985: #line 6986 "configure"
1.1 millert 6986: #include "confdefs.h"
6987: /* System header to define __stub macros and hopefully few prototypes,
6988: which can conflict with char socket(); below. */
6989: #include <assert.h>
6990: /* Override any gcc2 internal prototype to avoid an error. */
6991: /* We use char because int might match the return type of a gcc2
6992: builtin and then its argument prototype would still apply. */
6993: char socket();
6994:
6995: int main() {
6996:
6997: /* The GNU C library defines this for functions which it implements
6998: to always fail with ENOSYS. Some functions are actually named
6999: something starting with __ and the normal name is an alias. */
7000: #if defined (__stub_socket) || defined (__stub___socket)
7001: choke me
7002: #else
7003: socket();
7004: #endif
7005:
7006: ; return 0; }
7007: EOF
1.7 ! millert 7008: if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7009: rm -rf conftest*
7010: eval "ac_cv_func_socket=yes"
7011: else
7012: echo "configure: failed program was:" >&5
7013: cat conftest.$ac_ext >&5
7014: rm -rf conftest*
7015: eval "ac_cv_func_socket=no"
7016: fi
7017: rm -f conftest*
7018: fi
7019:
7020: if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
7021: echo "$ac_t""yes" 1>&6
7022: :
7023: else
7024: echo "$ac_t""no" 1>&6
7025: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.7 ! millert 7026: echo "configure:7027: checking for socket in -lsocket" >&5
1.1 millert 7027: if test -n ""; then
7028: ac_lib_var=`echo socket'_'socket | sed 'y% ./+-%___p_%'`
7029: else
7030: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7031: fi
7032: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7033: echo $ac_n "(cached) $ac_c" 1>&6
7034: else
7035: ac_save_LIBS="$LIBS"
7036: LIBS="-lsocket $LIBS"
7037: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7038: #line 7039 "configure"
1.1 millert 7039: #include "confdefs.h"
7040: /* Override any gcc2 internal prototype to avoid an error. */
7041: /* We use char because int might match the return type of a gcc2
7042: builtin and then its argument prototype would still apply. */
7043: char socket();
7044:
7045: int main() {
7046: socket()
7047: ; return 0; }
7048: EOF
1.7 ! millert 7049: if { (eval echo configure:7050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7050: rm -rf conftest*
7051: eval "ac_cv_lib_$ac_lib_var=yes"
7052: else
7053: echo "configure: failed program was:" >&5
7054: cat conftest.$ac_ext >&5
7055: rm -rf conftest*
7056: eval "ac_cv_lib_$ac_lib_var=no"
7057: fi
7058: rm -f conftest*
7059: LIBS="$ac_save_LIBS"
7060:
7061: fi
7062: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7063: echo "$ac_t""yes" 1>&6
7064: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
7065: else
7066: echo "$ac_t""no" 1>&6
7067: echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
1.7 ! millert 7068: echo "configure:7069: checking for socket in -linet" >&5
1.1 millert 7069: if test -n ""; then
7070: ac_lib_var=`echo inet'_'socket | sed 'y% ./+-%___p_%'`
7071: else
7072: ac_lib_var=`echo inet'_'socket | sed 'y%./+-%__p_%'`
7073: fi
7074: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7075: echo $ac_n "(cached) $ac_c" 1>&6
7076: else
7077: ac_save_LIBS="$LIBS"
7078: LIBS="-linet $LIBS"
7079: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7080: #line 7081 "configure"
1.1 millert 7081: #include "confdefs.h"
7082: /* Override any gcc2 internal prototype to avoid an error. */
7083: /* We use char because int might match the return type of a gcc2
7084: builtin and then its argument prototype would still apply. */
7085: char socket();
7086:
7087: int main() {
7088: socket()
7089: ; return 0; }
7090: EOF
1.7 ! millert 7091: if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7092: rm -rf conftest*
7093: eval "ac_cv_lib_$ac_lib_var=yes"
7094: else
7095: echo "configure: failed program was:" >&5
7096: cat conftest.$ac_ext >&5
7097: rm -rf conftest*
7098: eval "ac_cv_lib_$ac_lib_var=no"
7099: fi
7100: rm -f conftest*
7101: LIBS="$ac_save_LIBS"
7102:
7103: fi
7104: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7105: echo "$ac_t""yes" 1>&6
7106: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
7107: else
7108: echo "$ac_t""no" 1>&6
7109: echo "configure: warning: unable to find socket() trying -lsocket -lnsl" 1>&2
7110: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.7 ! millert 7111: echo "configure:7112: checking for socket in -lsocket" >&5
1.1 millert 7112: if test -n "-lnsl"; then
7113: ac_lib_var=`echo socket'_'socket-lnsl | sed 'y% ./+-%___p_%'`
7114: else
7115: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
7116: fi
7117: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7118: echo $ac_n "(cached) $ac_c" 1>&6
7119: else
7120: ac_save_LIBS="$LIBS"
7121: LIBS="-lsocket -lnsl $LIBS"
7122: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7123: #line 7124 "configure"
1.1 millert 7124: #include "confdefs.h"
7125: /* Override any gcc2 internal prototype to avoid an error. */
7126: /* We use char because int might match the return type of a gcc2
7127: builtin and then its argument prototype would still apply. */
7128: char socket();
7129:
7130: int main() {
7131: socket()
7132: ; return 0; }
7133: EOF
1.7 ! millert 7134: if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7135: rm -rf conftest*
7136: eval "ac_cv_lib_$ac_lib_var=yes"
7137: else
7138: echo "configure: failed program was:" >&5
7139: cat conftest.$ac_ext >&5
7140: rm -rf conftest*
7141: eval "ac_cv_lib_$ac_lib_var=no"
7142: fi
7143: rm -f conftest*
7144: LIBS="$ac_save_LIBS"
7145:
7146: fi
7147: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7148: echo "$ac_t""yes" 1>&6
7149: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
7150: else
7151: echo "$ac_t""no" 1>&6
7152: fi
7153:
7154: fi
7155:
7156: fi
7157:
7158: fi
7159:
7160: echo $ac_n "checking for inet_addr""... $ac_c" 1>&6
1.7 ! millert 7161: echo "configure:7162: checking for inet_addr" >&5
1.1 millert 7162: if eval "test \"`echo '$''{'ac_cv_func_inet_addr'+set}'`\" = set"; then
7163: echo $ac_n "(cached) $ac_c" 1>&6
7164: else
7165: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7166: #line 7167 "configure"
1.1 millert 7167: #include "confdefs.h"
7168: /* System header to define __stub macros and hopefully few prototypes,
7169: which can conflict with char inet_addr(); below. */
7170: #include <assert.h>
7171: /* Override any gcc2 internal prototype to avoid an error. */
7172: /* We use char because int might match the return type of a gcc2
7173: builtin and then its argument prototype would still apply. */
7174: char inet_addr();
7175:
7176: int main() {
7177:
7178: /* The GNU C library defines this for functions which it implements
7179: to always fail with ENOSYS. Some functions are actually named
7180: something starting with __ and the normal name is an alias. */
7181: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
7182: choke me
7183: #else
7184: inet_addr();
7185: #endif
7186:
7187: ; return 0; }
7188: EOF
1.7 ! millert 7189: if { (eval echo configure:7190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7190: rm -rf conftest*
7191: eval "ac_cv_func_inet_addr=yes"
7192: else
7193: echo "configure: failed program was:" >&5
7194: cat conftest.$ac_ext >&5
7195: rm -rf conftest*
7196: eval "ac_cv_func_inet_addr=no"
7197: fi
7198: rm -f conftest*
7199: fi
7200:
7201: if eval "test \"`echo '$ac_cv_func_'inet_addr`\" = yes"; then
7202: echo "$ac_t""yes" 1>&6
7203: :
7204: else
7205: echo "$ac_t""no" 1>&6
1.6 millert 7206: echo $ac_n "checking for __inet_addr""... $ac_c" 1>&6
1.7 ! millert 7207: echo "configure:7208: checking for __inet_addr" >&5
1.6 millert 7208: if eval "test \"`echo '$''{'ac_cv_func___inet_addr'+set}'`\" = set"; then
7209: echo $ac_n "(cached) $ac_c" 1>&6
7210: else
7211: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7212: #line 7213 "configure"
1.6 millert 7213: #include "confdefs.h"
7214: /* System header to define __stub macros and hopefully few prototypes,
7215: which can conflict with char __inet_addr(); below. */
7216: #include <assert.h>
7217: /* Override any gcc2 internal prototype to avoid an error. */
7218: /* We use char because int might match the return type of a gcc2
7219: builtin and then its argument prototype would still apply. */
7220: char __inet_addr();
7221:
7222: int main() {
7223:
7224: /* The GNU C library defines this for functions which it implements
7225: to always fail with ENOSYS. Some functions are actually named
7226: something starting with __ and the normal name is an alias. */
7227: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
7228: choke me
7229: #else
7230: __inet_addr();
7231: #endif
7232:
7233: ; return 0; }
7234: EOF
1.7 ! millert 7235: if { (eval echo configure:7236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.6 millert 7236: rm -rf conftest*
7237: eval "ac_cv_func___inet_addr=yes"
7238: else
7239: echo "configure: failed program was:" >&5
7240: cat conftest.$ac_ext >&5
7241: rm -rf conftest*
7242: eval "ac_cv_func___inet_addr=no"
7243: fi
7244: rm -f conftest*
7245: fi
7246:
7247: if eval "test \"`echo '$ac_cv_func_'__inet_addr`\" = yes"; then
7248: echo "$ac_t""yes" 1>&6
7249: :
7250: else
7251: echo "$ac_t""no" 1>&6
1.1 millert 7252: echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
1.7 ! millert 7253: echo "configure:7254: checking for inet_addr in -lnsl" >&5
1.1 millert 7254: if test -n ""; then
7255: ac_lib_var=`echo nsl'_'inet_addr | sed 'y% ./+-%___p_%'`
7256: else
7257: ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
7258: fi
7259: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7260: echo $ac_n "(cached) $ac_c" 1>&6
7261: else
7262: ac_save_LIBS="$LIBS"
7263: LIBS="-lnsl $LIBS"
7264: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7265: #line 7266 "configure"
1.1 millert 7266: #include "confdefs.h"
7267: /* Override any gcc2 internal prototype to avoid an error. */
7268: /* We use char because int might match the return type of a gcc2
7269: builtin and then its argument prototype would still apply. */
7270: char inet_addr();
7271:
7272: int main() {
7273: inet_addr()
7274: ; return 0; }
7275: EOF
1.7 ! millert 7276: if { (eval echo configure:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7277: rm -rf conftest*
7278: eval "ac_cv_lib_$ac_lib_var=yes"
7279: else
7280: echo "configure: failed program was:" >&5
7281: cat conftest.$ac_ext >&5
7282: rm -rf conftest*
7283: eval "ac_cv_lib_$ac_lib_var=no"
7284: fi
7285: rm -f conftest*
7286: LIBS="$ac_save_LIBS"
7287:
7288: fi
7289: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7290: echo "$ac_t""yes" 1>&6
7291: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
7292: else
7293: echo "$ac_t""no" 1>&6
7294: echo $ac_n "checking for inet_addr in -linet""... $ac_c" 1>&6
1.7 ! millert 7295: echo "configure:7296: checking for inet_addr in -linet" >&5
1.1 millert 7296: if test -n ""; then
7297: ac_lib_var=`echo inet'_'inet_addr | sed 'y% ./+-%___p_%'`
7298: else
7299: ac_lib_var=`echo inet'_'inet_addr | sed 'y%./+-%__p_%'`
7300: fi
7301: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7302: echo $ac_n "(cached) $ac_c" 1>&6
7303: else
7304: ac_save_LIBS="$LIBS"
7305: LIBS="-linet $LIBS"
7306: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7307: #line 7308 "configure"
1.1 millert 7308: #include "confdefs.h"
7309: /* Override any gcc2 internal prototype to avoid an error. */
7310: /* We use char because int might match the return type of a gcc2
7311: builtin and then its argument prototype would still apply. */
7312: char inet_addr();
7313:
7314: int main() {
7315: inet_addr()
7316: ; return 0; }
7317: EOF
1.7 ! millert 7318: if { (eval echo configure:7319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7319: rm -rf conftest*
7320: eval "ac_cv_lib_$ac_lib_var=yes"
7321: else
7322: echo "configure: failed program was:" >&5
7323: cat conftest.$ac_ext >&5
7324: rm -rf conftest*
7325: eval "ac_cv_lib_$ac_lib_var=no"
7326: fi
7327: rm -f conftest*
7328: LIBS="$ac_save_LIBS"
7329:
7330: fi
7331: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7332: echo "$ac_t""yes" 1>&6
7333: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
7334: else
7335: echo "$ac_t""no" 1>&6
1.6 millert 7336: echo "configure: warning: unable to find inet_addr() trying -lsocket -lnsl" 1>&2
1.1 millert 7337: echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
1.7 ! millert 7338: echo "configure:7339: checking for inet_addr in -lsocket" >&5
1.1 millert 7339: if test -n "-lnsl"; then
7340: ac_lib_var=`echo socket'_'inet_addr-lnsl | sed 'y% ./+-%___p_%'`
7341: else
7342: ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
7343: fi
7344: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7345: echo $ac_n "(cached) $ac_c" 1>&6
7346: else
7347: ac_save_LIBS="$LIBS"
7348: LIBS="-lsocket -lnsl $LIBS"
7349: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7350: #line 7351 "configure"
1.1 millert 7351: #include "confdefs.h"
7352: /* Override any gcc2 internal prototype to avoid an error. */
7353: /* We use char because int might match the return type of a gcc2
7354: builtin and then its argument prototype would still apply. */
7355: char inet_addr();
7356:
7357: int main() {
7358: inet_addr()
7359: ; return 0; }
7360: EOF
1.7 ! millert 7361: if { (eval echo configure:7362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7362: rm -rf conftest*
7363: eval "ac_cv_lib_$ac_lib_var=yes"
7364: else
7365: echo "configure: failed program was:" >&5
7366: cat conftest.$ac_ext >&5
7367: rm -rf conftest*
7368: eval "ac_cv_lib_$ac_lib_var=no"
7369: fi
7370: rm -f conftest*
7371: LIBS="$ac_save_LIBS"
7372:
7373: fi
7374: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7375: echo "$ac_t""yes" 1>&6
7376: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
7377: else
7378: echo "$ac_t""no" 1>&6
7379: fi
7380:
7381: fi
7382:
7383: fi
7384:
7385: fi
7386:
1.6 millert 7387: fi
7388:
1.1 millert 7389: echo $ac_n "checking for syslog""... $ac_c" 1>&6
1.7 ! millert 7390: echo "configure:7391: checking for syslog" >&5
1.1 millert 7391: if eval "test \"`echo '$''{'ac_cv_func_syslog'+set}'`\" = set"; then
7392: echo $ac_n "(cached) $ac_c" 1>&6
7393: else
7394: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7395: #line 7396 "configure"
1.1 millert 7396: #include "confdefs.h"
7397: /* System header to define __stub macros and hopefully few prototypes,
7398: which can conflict with char syslog(); below. */
7399: #include <assert.h>
7400: /* Override any gcc2 internal prototype to avoid an error. */
7401: /* We use char because int might match the return type of a gcc2
7402: builtin and then its argument prototype would still apply. */
7403: char syslog();
7404:
7405: int main() {
7406:
7407: /* The GNU C library defines this for functions which it implements
7408: to always fail with ENOSYS. Some functions are actually named
7409: something starting with __ and the normal name is an alias. */
7410: #if defined (__stub_syslog) || defined (__stub___syslog)
7411: choke me
7412: #else
7413: syslog();
7414: #endif
7415:
7416: ; return 0; }
7417: EOF
1.7 ! millert 7418: if { (eval echo configure:7419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7419: rm -rf conftest*
7420: eval "ac_cv_func_syslog=yes"
7421: else
7422: echo "configure: failed program was:" >&5
7423: cat conftest.$ac_ext >&5
7424: rm -rf conftest*
7425: eval "ac_cv_func_syslog=no"
7426: fi
7427: rm -f conftest*
7428: fi
7429:
7430: if eval "test \"`echo '$ac_cv_func_'syslog`\" = yes"; then
7431: echo "$ac_t""yes" 1>&6
7432: :
7433: else
7434: echo "$ac_t""no" 1>&6
7435: echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
1.7 ! millert 7436: echo "configure:7437: checking for syslog in -lsocket" >&5
1.1 millert 7437: if test -n ""; then
7438: ac_lib_var=`echo socket'_'syslog | sed 'y% ./+-%___p_%'`
7439: else
7440: ac_lib_var=`echo socket'_'syslog | sed 'y%./+-%__p_%'`
7441: fi
7442: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7443: echo $ac_n "(cached) $ac_c" 1>&6
7444: else
7445: ac_save_LIBS="$LIBS"
7446: LIBS="-lsocket $LIBS"
7447: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7448: #line 7449 "configure"
1.1 millert 7449: #include "confdefs.h"
7450: /* Override any gcc2 internal prototype to avoid an error. */
7451: /* We use char because int might match the return type of a gcc2
7452: builtin and then its argument prototype would still apply. */
7453: char syslog();
7454:
7455: int main() {
7456: syslog()
7457: ; return 0; }
7458: EOF
1.7 ! millert 7459: if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7460: rm -rf conftest*
7461: eval "ac_cv_lib_$ac_lib_var=yes"
7462: else
7463: echo "configure: failed program was:" >&5
7464: cat conftest.$ac_ext >&5
7465: rm -rf conftest*
7466: eval "ac_cv_lib_$ac_lib_var=no"
7467: fi
7468: rm -f conftest*
7469: LIBS="$ac_save_LIBS"
7470:
7471: fi
7472: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7473: echo "$ac_t""yes" 1>&6
7474: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
7475: else
7476: echo "$ac_t""no" 1>&6
7477: echo $ac_n "checking for syslog in -lnsl""... $ac_c" 1>&6
1.7 ! millert 7478: echo "configure:7479: checking for syslog in -lnsl" >&5
1.1 millert 7479: if test -n ""; then
7480: ac_lib_var=`echo nsl'_'syslog | sed 'y% ./+-%___p_%'`
7481: else
7482: ac_lib_var=`echo nsl'_'syslog | sed 'y%./+-%__p_%'`
7483: fi
7484: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7485: echo $ac_n "(cached) $ac_c" 1>&6
7486: else
7487: ac_save_LIBS="$LIBS"
7488: LIBS="-lnsl $LIBS"
7489: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7490: #line 7491 "configure"
1.1 millert 7491: #include "confdefs.h"
7492: /* Override any gcc2 internal prototype to avoid an error. */
7493: /* We use char because int might match the return type of a gcc2
7494: builtin and then its argument prototype would still apply. */
7495: char syslog();
7496:
7497: int main() {
7498: syslog()
7499: ; return 0; }
7500: EOF
1.7 ! millert 7501: if { (eval echo configure:7502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7502: rm -rf conftest*
7503: eval "ac_cv_lib_$ac_lib_var=yes"
7504: else
7505: echo "configure: failed program was:" >&5
7506: cat conftest.$ac_ext >&5
7507: rm -rf conftest*
7508: eval "ac_cv_lib_$ac_lib_var=no"
7509: fi
7510: rm -f conftest*
7511: LIBS="$ac_save_LIBS"
7512:
7513: fi
7514: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7515: echo "$ac_t""yes" 1>&6
7516: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
7517: else
7518: echo "$ac_t""no" 1>&6
7519: echo $ac_n "checking for syslog in -linet""... $ac_c" 1>&6
1.7 ! millert 7520: echo "configure:7521: checking for syslog in -linet" >&5
1.1 millert 7521: if test -n ""; then
7522: ac_lib_var=`echo inet'_'syslog | sed 'y% ./+-%___p_%'`
7523: else
7524: ac_lib_var=`echo inet'_'syslog | sed 'y%./+-%__p_%'`
7525: fi
7526: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7527: echo $ac_n "(cached) $ac_c" 1>&6
7528: else
7529: ac_save_LIBS="$LIBS"
7530: LIBS="-linet $LIBS"
7531: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7532: #line 7533 "configure"
1.1 millert 7533: #include "confdefs.h"
7534: /* Override any gcc2 internal prototype to avoid an error. */
7535: /* We use char because int might match the return type of a gcc2
7536: builtin and then its argument prototype would still apply. */
7537: char syslog();
7538:
7539: int main() {
7540: syslog()
7541: ; return 0; }
7542: EOF
1.7 ! millert 7543: if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7544: rm -rf conftest*
7545: eval "ac_cv_lib_$ac_lib_var=yes"
7546: else
7547: echo "configure: failed program was:" >&5
7548: cat conftest.$ac_ext >&5
7549: rm -rf conftest*
7550: eval "ac_cv_lib_$ac_lib_var=no"
7551: fi
7552: rm -f conftest*
7553: LIBS="$ac_save_LIBS"
7554:
7555: fi
7556: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7557: echo "$ac_t""yes" 1>&6
7558: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
7559: else
7560: echo "$ac_t""no" 1>&6
7561: fi
7562:
7563: fi
7564:
7565: fi
7566:
7567: fi
7568:
7569: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
7570: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7571: # for constant arguments. Useless!
7572: echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1.7 ! millert 7573: echo "configure:7574: checking for working alloca.h" >&5
1.1 millert 7574: if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
7575: echo $ac_n "(cached) $ac_c" 1>&6
7576: else
7577: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7578: #line 7579 "configure"
1.1 millert 7579: #include "confdefs.h"
7580: #include <alloca.h>
7581: int main() {
7582: char *p = alloca(2 * sizeof(int));
7583: ; return 0; }
7584: EOF
1.7 ! millert 7585: if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7586: rm -rf conftest*
7587: ac_cv_header_alloca_h=yes
7588: else
7589: echo "configure: failed program was:" >&5
7590: cat conftest.$ac_ext >&5
7591: rm -rf conftest*
7592: ac_cv_header_alloca_h=no
7593: fi
7594: rm -f conftest*
7595: fi
7596:
7597: echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
7598: if test $ac_cv_header_alloca_h = yes; then
7599: cat >> confdefs.h <<\EOF
7600: #define HAVE_ALLOCA_H 1
7601: EOF
7602:
7603: fi
7604:
7605: echo $ac_n "checking for alloca""... $ac_c" 1>&6
1.7 ! millert 7606: echo "configure:7607: checking for alloca" >&5
1.1 millert 7607: if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
7608: echo $ac_n "(cached) $ac_c" 1>&6
7609: else
7610: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7611: #line 7612 "configure"
1.1 millert 7612: #include "confdefs.h"
7613:
7614: #ifdef __GNUC__
7615: # define alloca __builtin_alloca
7616: #else
7617: # if HAVE_ALLOCA_H
7618: # include <alloca.h>
7619: # else
7620: # ifdef _AIX
7621: #pragma alloca
7622: # else
7623: # ifndef alloca /* predefined by HP cc +Olibcalls */
7624: char *alloca ();
7625: # endif
7626: # endif
7627: # endif
7628: #endif
7629:
7630: int main() {
7631: char *p = (char *) alloca(1);
7632: ; return 0; }
7633: EOF
1.7 ! millert 7634: if { (eval echo configure:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7635: rm -rf conftest*
7636: ac_cv_func_alloca_works=yes
7637: else
7638: echo "configure: failed program was:" >&5
7639: cat conftest.$ac_ext >&5
7640: rm -rf conftest*
7641: ac_cv_func_alloca_works=no
7642: fi
7643: rm -f conftest*
7644: fi
7645:
7646: echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
7647: if test $ac_cv_func_alloca_works = yes; then
7648: cat >> confdefs.h <<\EOF
7649: #define HAVE_ALLOCA 1
7650: EOF
7651:
7652: fi
7653:
7654: if test $ac_cv_func_alloca_works = no; then
7655: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7656: # that cause trouble. Some versions do not even contain alloca or
7657: # contain a buggy version. If you still want to use their alloca,
7658: # use ar to extract alloca.o from them instead of compiling alloca.c.
7659: ALLOCA=alloca.o
7660: cat >> confdefs.h <<\EOF
7661: #define C_ALLOCA 1
7662: EOF
7663:
7664:
7665: echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1.7 ! millert 7666: echo "configure:7667: checking whether alloca needs Cray hooks" >&5
1.1 millert 7667: if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
7668: echo $ac_n "(cached) $ac_c" 1>&6
7669: else
7670: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7671: #line 7672 "configure"
1.1 millert 7672: #include "confdefs.h"
7673: #if defined(CRAY) && ! defined(CRAY2)
7674: webecray
7675: #else
7676: wenotbecray
7677: #endif
7678:
7679: EOF
7680: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7681: egrep "webecray" >/dev/null 2>&1; then
7682: rm -rf conftest*
7683: ac_cv_os_cray=yes
7684: else
7685: rm -rf conftest*
7686: ac_cv_os_cray=no
7687: fi
7688: rm -f conftest*
7689:
7690: fi
7691:
7692: echo "$ac_t""$ac_cv_os_cray" 1>&6
7693: if test $ac_cv_os_cray = yes; then
7694: for ac_func in _getb67 GETB67 getb67; do
7695: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.7 ! millert 7696: echo "configure:7697: checking for $ac_func" >&5
1.1 millert 7697: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7698: echo $ac_n "(cached) $ac_c" 1>&6
7699: else
7700: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7701: #line 7702 "configure"
1.1 millert 7702: #include "confdefs.h"
7703: /* System header to define __stub macros and hopefully few prototypes,
7704: which can conflict with char $ac_func(); below. */
7705: #include <assert.h>
7706: /* Override any gcc2 internal prototype to avoid an error. */
7707: /* We use char because int might match the return type of a gcc2
7708: builtin and then its argument prototype would still apply. */
7709: char $ac_func();
7710:
7711: int main() {
7712:
7713: /* The GNU C library defines this for functions which it implements
7714: to always fail with ENOSYS. Some functions are actually named
7715: something starting with __ and the normal name is an alias. */
7716: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7717: choke me
7718: #else
7719: $ac_func();
7720: #endif
7721:
7722: ; return 0; }
7723: EOF
1.7 ! millert 7724: if { (eval echo configure:7725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7725: rm -rf conftest*
7726: eval "ac_cv_func_$ac_func=yes"
7727: else
7728: echo "configure: failed program was:" >&5
7729: cat conftest.$ac_ext >&5
7730: rm -rf conftest*
7731: eval "ac_cv_func_$ac_func=no"
7732: fi
7733: rm -f conftest*
7734: fi
7735:
7736: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7737: echo "$ac_t""yes" 1>&6
7738: cat >> confdefs.h <<EOF
7739: #define CRAY_STACKSEG_END $ac_func
7740: EOF
7741:
7742: break
7743: else
7744: echo "$ac_t""no" 1>&6
7745: fi
7746:
7747: done
7748: fi
7749:
7750: echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1.7 ! millert 7751: echo "configure:7752: checking stack direction for C alloca" >&5
1.1 millert 7752: if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
7753: echo $ac_n "(cached) $ac_c" 1>&6
7754: else
7755: if test "$cross_compiling" = yes; then
7756: ac_cv_c_stack_direction=0
7757: else
7758: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7759: #line 7760 "configure"
1.1 millert 7760: #include "confdefs.h"
7761: find_stack_direction ()
7762: {
7763: static char *addr = 0;
7764: auto char dummy;
7765: if (addr == 0)
7766: {
7767: addr = &dummy;
7768: return find_stack_direction ();
7769: }
7770: else
7771: return (&dummy > addr) ? 1 : -1;
7772: }
7773: main ()
7774: {
7775: exit (find_stack_direction() < 0);
7776: }
7777: EOF
1.7 ! millert 7778: if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1 millert 7779: then
7780: ac_cv_c_stack_direction=1
7781: else
7782: echo "configure: failed program was:" >&5
7783: cat conftest.$ac_ext >&5
7784: rm -fr conftest*
7785: ac_cv_c_stack_direction=-1
7786: fi
7787: rm -fr conftest*
7788: fi
7789:
7790: fi
7791:
7792: echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
7793: cat >> confdefs.h <<EOF
7794: #define STACK_DIRECTION $ac_cv_c_stack_direction
7795: EOF
7796:
7797: fi
7798:
7799: fi
7800:
7801: if test "$with_kerb5" = "yes"; then
7802: cat >> confdefs.h <<\EOF
7803: #define HAVE_KERB5 1
7804: EOF
7805:
7806: if test -f "/usr/local/include/krb5.h"; then
7807: CPPFLAGS="$CPPFLAGS -I/usr/local/include"
7808: elif test -f "/usr/local/kerberos/include/krb5.h"; then
7809: CPPFLAGS="$CPPFLAGS -I/usr/local/kerberos/include"
7810: elif test -f "/usr/local/krb5/include/krb5.h"; then
7811: CPPFLAGS="$CPPFLAGS -I/usr/local/krb5/include"
7812: else
7813: echo 'Unable to locate kerberos 5 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
7814: fi
7815:
7816: if test -f "/usr/local/lib/libkrb5.a"; then
7817: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
7818: elif test -f "/usr/local/kerberos/lib/libkrb5.a"; then
7819: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/kerberos/lib"
7820: elif test -f "/usr/local/krb5/lib/libkrb5.a"; then
7821: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/krb5/lib"
7822: else
7823: echo 'Unable to locate kerberos 5 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
7824: fi
7825:
7826: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
7827: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
7828: fi
7829:
1.5 millert 7830: if test "$with_pam" = "yes"; then
7831: echo $ac_n "checking for -ldl""... $ac_c" 1>&6
1.7 ! millert 7832: echo "configure:7833: checking for -ldl" >&5
1.5 millert 7833: if eval "test \"`echo '$''{'ac_cv_lib_dl'+set}'`\" = set"; then
7834: echo $ac_n "(cached) $ac_c" 1>&6
7835: else
7836: ac_save_LIBS="$LIBS"
7837: LIBS="-ldl $LIBS"
7838: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7839: #line 7840 "configure"
1.5 millert 7840: #include "confdefs.h"
7841:
7842: int main() {
7843: main()
7844: ; return 0; }
7845: EOF
1.7 ! millert 7846: if { (eval echo configure:7847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.5 millert 7847: rm -rf conftest*
7848: ac_cv_lib_dl=yes
7849: else
7850: echo "configure: failed program was:" >&5
7851: cat conftest.$ac_ext >&5
7852: rm -rf conftest*
7853: ac_cv_lib_dl=no
7854: fi
7855: rm -f conftest*
7856: LIBS="$ac_save_LIBS"
7857:
7858: fi
7859: echo "$ac_t""$ac_cv_lib_dl" 1>&6
7860: if test "$ac_cv_lib_dl" = yes; then
7861: SUDO_LIBS="${SUDO_LIBS} -ldl -lpam"
7862: else
7863: SUDO_LIBS="${SUDO_LIBS} -lpam"
7864: fi
7865:
7866: fi
7867:
1.1 millert 7868: if test "$with_kerb4" = "yes"; then
7869: cat >> confdefs.h <<\EOF
7870: #define HAVE_KERB4 1
7871: EOF
7872:
7873: if test -f "/usr/include/kerberosIV/krb.h"; then
7874: CPPFLAGS="${CPPFLAGS} -I/usr/include/kerberosIV"
7875: elif test -f "/usr/local/include/kerberosIV/krb.h"; then
7876: CPPFLAGS="${CPPFLAGS} -I/usr/local/include/kerberosIV"
7877: elif test -f "/usr/kerberos/include/krb.h"; then
7878: CPPFLAGS="${CPPFLAGS} -I/usr/kerberos/include"
7879: elif test -f "/usr/local/kerberos/include/krb.h"; then
7880: CPPFLAGS="${CPPFLAGS} -I/usr/local/kerberos/include"
7881: else
7882: echo 'Unable to locate kerberos 4 include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS'
7883: fi
7884:
7885: if test -d "/usr/kerberos/lib"; then
7886: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/kerberos/lib"
7887: elif test -d "/usr/lib/kerberos"; then
7888: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/lib/kerberos"
7889: elif test -f "/usr/local/lib/libkrb.a"; then
7890: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
7891: elif test ! -f "/usr/lib/libkrb.a"; then
7892: echo 'Unable to locate kerberos 4 libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS'
7893: fi
7894:
7895: echo $ac_n "checking for -ldes""... $ac_c" 1>&6
1.7 ! millert 7896: echo "configure:7897: checking for -ldes" >&5
1.1 millert 7897: if eval "test \"`echo '$''{'ac_cv_lib_des'+set}'`\" = set"; then
7898: echo $ac_n "(cached) $ac_c" 1>&6
7899: else
7900: ac_save_LIBS="$LIBS"
7901: LIBS="-ldes $LIBS"
7902: cat > conftest.$ac_ext <<EOF
1.7 ! millert 7903: #line 7904 "configure"
1.1 millert 7904: #include "confdefs.h"
7905:
7906: int main() {
7907: main()
7908: ; return 0; }
7909: EOF
1.7 ! millert 7910: if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 millert 7911: rm -rf conftest*
7912: ac_cv_lib_des=yes
7913: else
7914: echo "configure: failed program was:" >&5
7915: cat conftest.$ac_ext >&5
7916: rm -rf conftest*
7917: ac_cv_lib_des=no
7918: fi
7919: rm -f conftest*
7920: LIBS="$ac_save_LIBS"
7921:
7922: fi
7923: echo "$ac_t""$ac_cv_lib_des" 1>&6
7924: if test "$ac_cv_lib_des" = yes; then
7925: SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes"
7926: else
7927: SUDO_LIBS="${SUDO_LIBS} -lkrb"
7928: fi
7929:
7930: AUTH_OBJS="${AUTH_OBJS} kerb4.o"
7931: fi
7932:
7933: if test "$with_AFS" = "yes"; then
7934:
7935: # looks like the "standard" place for AFS libs is /usr/afsws/lib
7936: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
7937: for i in $AFSLIBDIRS; do
7938: if test -d ${i}; then
7939: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${i}"
7940: FOUND_AFSLIBDIR=true
7941: fi
7942: done
7943: if test -z "$FOUND_AFSLIBDIR"; then
7944: echo 'Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options.'
7945: fi
7946:
7947: # Order is important here. Note that we build AFS_LIBS from right to left
7948: # since AFS_LIBS may be initialized with BSD compat libs that must go last
7949: AFS_LIBS="-laudit ${AFS_LIBS}"
7950: for i in $AFSLIBDIRS; do
7951: if test -f ${i}/util.a; then
7952: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
7953: FOUND_UTIL_A=true
7954: break;
7955: fi
7956: done
7957: if test -z "$FOUND_UTIL_A"; then
7958: AFS_LIBS="-lutil ${AFS_LIBS}"
7959: fi
7960: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
7961:
7962: # AFS includes may live in /usr/include on some machines...
7963: for i in /usr/afsws/include; do
7964: if test -d ${i}; then
7965: CPPFLAGS="${CPPFLAGS} -I${i}"
7966: FOUND_AFSINCDIR=true
7967: fi
7968: done
7969:
7970: if test -z "$FOUND_AFSLIBDIR"; then
7971: echo 'Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options.'
7972: fi
7973: fi
7974:
7975: if test "$with_DCE" = "yes"; then
7976: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
7977: SUDO_LIBS="${SUDO_LIBS} -ldce"
7978: fi
7979:
7980: if test "$with_skey" = "yes"; then
7981: SUDO_LIBS="${SUDO_LIBS} -lskey"
7982: if test -f /usr/include/skey.h -a -f /usr/lib/libskey.a; then
7983: :
7984: elif test -f /usr/local/include/skey.h; then
7985: CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
7986: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
7987: elif test "$with_csops" = "yes" -a -f /tools/cs/skey/include/skey.h -a -f /tools/cs/skey/lib/libskey.a; then
7988: CPPFLAGS="${CPPFLAGS} -I/tools/cs/skey/include"
7989: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/tools/cs/skey/lib"
7990: else
7991: echo 'Unable to locate libskey.a and/or skey.h, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS and/or -I/path/to/skey.h to CPPFLAGS'
7992: fi
7993: fi
7994:
7995: if test "$with_opie" = "yes"; then
7996: SUDO_LIBS="${SUDO_LIBS} -lopie"
7997: if test -f /usr/include/opie.h -a -f /usr/lib/libopie.a; then
7998: :
7999: elif test -f /usr/local/include/opie.h; then
8000: CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
8001: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L/usr/local/lib"
8002: else
8003: echo 'Unable to locate libopie.a and/or opie.h, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS and/or -I/path/to/opie.h to CPPFLAGS'
8004: fi
8005: fi
8006:
8007: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
8008: if test "$with_SecurID" != "yes"; then
8009: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
8010: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
8011: elif test -f /usr/ace/examples/sdiclient.a; then
8012: SUDO_LIBS="${SUDO_LIBS} /usr/ace/examples/sdiclient.a"
8013: CPPFLAGS="${CPPFLAGS} -I/usr/ace/examples"
8014: else
8015: SUDO_LIBS="${SUDO_LIBS} /usr/ace/sdiclient.a"
8016: CPPFLAGS="${CPPFLAGS} -I/usr/ace"
8017: fi
8018: fi
8019:
8020: if test "$with_fwtk" = "yes"; then
8021: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
8022: fi
8023:
8024: if test "$with_authenticate" = "yes"; then
8025: SUDO_LIBS="${SUDO_LIBS} -ls"
8026: fi
8027:
8028: echo $ac_n "checking for log file location""... $ac_c" 1>&6
1.7 ! millert 8029: echo "configure:8030: checking for log file location" >&5
1.1 millert 8030: if test -n "$with_logpath"; then
8031: echo "$ac_t""$with_logpath" 1>&6
8032: cat >> confdefs.h <<EOF
8033: #define _PATH_SUDO_LOGFILE "$with_logpath"
8034: EOF
8035:
8036: elif test -d "/var/log"; then
8037: echo "$ac_t""/var/log/sudo.log" 1>&6
8038: cat >> confdefs.h <<\EOF
8039: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
8040: EOF
8041:
8042: elif test -d "/var/adm"; then
8043: echo "$ac_t""/var/adm/sudo.log" 1>&6
8044: cat >> confdefs.h <<\EOF
8045: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
8046: EOF
8047:
8048: elif test -d "/usr/adm"; then
8049: echo "$ac_t""/usr/adm/sudo.log" 1>&6
8050: cat >> confdefs.h <<\EOF
8051: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
8052: EOF
8053:
8054: else
8055: echo "$ac_t""unknown" 1>&6
8056: fi
8057:
8058: echo $ac_n "checking for timestamp file location""... $ac_c" 1>&6
1.7 ! millert 8059: echo "configure:8060: checking for timestamp file location" >&5
1.1 millert 8060: if test -n "$with_timedir"; then
8061: echo "$ac_t""$with_timedir" 1>&6
8062: cat >> confdefs.h <<EOF
8063: #define _PATH_SUDO_TIMEDIR "$with_timedir"
8064: EOF
8065:
1.6 millert 8066: TIMEDIR="$with_timedir"
1.1 millert 8067: elif test -d "/var/run"; then
8068: echo "$ac_t""/var/run/sudo" 1>&6
8069: cat >> confdefs.h <<\EOF
8070: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
8071: EOF
8072:
1.6 millert 8073: TIMEDIR="/var/run/sudo"
8074: else
1.1 millert 8075: echo "$ac_t""/tmp/.odus" 1>&6
8076: cat >> confdefs.h <<\EOF
8077: #define _PATH_SUDO_TIMEDIR "/tmp/.odus"
8078: EOF
8079:
1.6 millert 8080: TIMEDIR="/tmp/.odus"
1.1 millert 8081: fi
8082:
8083:
8084: if test "$with_passwd" = "no"; then
8085: cat >> confdefs.h <<\EOF
8086: #define WITHOUT_PASSWD 1
8087: EOF
8088:
8089: if test -z "$AUTH_OBJS"; then
8090: { echo "configure: error: no authentication methods defined." 1>&2; exit 1; }
8091: fi
8092: else
8093: if test -n "$SECUREWARE"; then
8094: AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
8095: else
8096: AUTH_OBJS="${AUTH_OBJS} passwd.o"
8097: fi
8098: fi
8099:
8100: if test -n "$LIBS"; then
8101: L="$LIBS"
8102: LIBS=
8103: for l in ${L}; do
8104: dupe=0
8105: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
8106: test $l = $sl && dupe=1
8107: done
8108: test $dupe = 0 && LIBS="${LIBS} $l"
8109: done
8110: fi
8111:
8112: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
8113:
8114: trap '' 1 2 15
8115: cat > confcache <<\EOF
8116: # This file is a shell script that caches the results of configure
8117: # tests run on this system so they can be shared between configure
8118: # scripts and configure runs. It is not useful on other systems.
8119: # If it contains results you don't want to keep, you may remove or edit it.
8120: #
8121: # By default, configure uses ./config.cache as the cache file,
8122: # creating it if it does not exist already. You can give configure
8123: # the --cache-file=FILE option to use a different cache file; that is
8124: # what configure does when it calls configure scripts in
8125: # subdirectories, so they share the cache.
8126: # Giving --cache-file=/dev/null disables caching, for debugging configure.
8127: # config.status only pays attention to the cache file if you give it the
8128: # --recheck option to rerun configure.
8129: #
8130: EOF
8131: # The following way of writing the cache mishandles newlines in values,
8132: # but we know of no workaround that is simple, portable, and efficient.
8133: # So, don't put newlines in cache variables' values.
8134: # Ultrix sh set writes to stderr and can't be redirected directly,
8135: # and sets the high bit in the cache file unless we assign to the vars.
8136: (set) 2>&1 |
8137: case `(ac_space=' '; set) 2>&1` in
8138: *ac_space=\ *)
8139: # `set' does not quote correctly, so add quotes (double-quote substitution
8140: # turns \\\\ into \\, and sed turns \\ into \).
8141: sed -n \
8142: -e "s/'/'\\\\''/g" \
8143: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8144: ;;
8145: *)
8146: # `set' quotes correctly as required by POSIX, so do not add quotes.
8147: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8148: ;;
8149: esac >> confcache
8150: if cmp -s $cache_file confcache; then
8151: :
8152: else
8153: if test -w $cache_file; then
8154: echo "updating cache $cache_file"
8155: cat confcache > $cache_file
8156: else
8157: echo "not updating unwritable cache $cache_file"
8158: fi
8159: fi
8160: rm -f confcache
8161:
8162: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8163:
8164: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8165: # Let make expand exec_prefix.
8166: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8167:
8168: # Any assignment to VPATH causes Sun make to only execute
8169: # the first set of double-colon rules, so remove it if not needed.
8170: # If there is a colon in the path, we need to keep it.
8171: if test "x$srcdir" = x.; then
8172: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8173: fi
8174:
8175: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8176:
8177: DEFS=-DHAVE_CONFIG_H
8178:
8179: # Without the "./", some shells look in PATH for config.status.
8180: : ${CONFIG_STATUS=./config.status}
8181:
8182: echo creating $CONFIG_STATUS
8183: rm -f $CONFIG_STATUS
8184: cat > $CONFIG_STATUS <<EOF
8185: #! /bin/sh
8186: # Generated automatically by configure.
8187: # Run this file to recreate the current configuration.
8188: # This directory was configured as follows,
8189: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8190: #
8191: # $0 $ac_configure_args
8192: #
8193: # Compiler output produced by configure, useful for debugging
8194: # configure, is in ./config.log if it exists.
8195:
8196: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8197: for ac_option
8198: do
8199: case "\$ac_option" in
8200: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8201: echo running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion
8202: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8203: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8204: echo "$CONFIG_STATUS generated by autoconf version 2.12"
8205: exit 0 ;;
8206: -help | --help | --hel | --he | --h)
8207: echo "\$ac_cs_usage"; exit 0 ;;
8208: *) echo "\$ac_cs_usage"; exit 1 ;;
8209: esac
8210: done
8211:
8212: ac_given_srcdir=$srcdir
8213:
1.6 millert 8214: trap 'rm -fr `echo "Makefile sudo.man visudo.man sudoers.man config.h pathnames.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 millert 8215: EOF
8216: cat >> $CONFIG_STATUS <<EOF
8217:
8218: # Protect against being on the right side of a sed subst in config.status.
8219: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8220: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8221: $ac_vpsub
8222: $extrasub
8223: s%@CFLAGS@%$CFLAGS%g
8224: s%@CPPFLAGS@%$CPPFLAGS%g
8225: s%@CXXFLAGS@%$CXXFLAGS%g
8226: s%@DEFS@%$DEFS%g
8227: s%@LDFLAGS@%$LDFLAGS%g
8228: s%@LIBS@%$LIBS%g
8229: s%@exec_prefix@%$exec_prefix%g
8230: s%@prefix@%$prefix%g
8231: s%@program_transform_name@%$program_transform_name%g
8232: s%@bindir@%$bindir%g
8233: s%@sbindir@%$sbindir%g
8234: s%@libexecdir@%$libexecdir%g
8235: s%@datadir@%$datadir%g
8236: s%@sysconfdir@%$sysconfdir%g
8237: s%@sharedstatedir@%$sharedstatedir%g
8238: s%@localstatedir@%$localstatedir%g
8239: s%@libdir@%$libdir%g
8240: s%@includedir@%$includedir%g
8241: s%@oldincludedir@%$oldincludedir%g
8242: s%@infodir@%$infodir%g
8243: s%@mandir@%$mandir%g
8244: s%@PROGS@%$PROGS%g
8245: s%@SUDO_LDFLAGS@%$SUDO_LDFLAGS%g
8246: s%@SUDO_LIBS@%$SUDO_LIBS%g
8247: s%@NET_LIBS@%$NET_LIBS%g
8248: s%@AFS_LIBS@%$AFS_LIBS%g
8249: s%@OSDEFS@%$OSDEFS%g
8250: s%@AUTH_OBJS@%$AUTH_OBJS%g
8251: s%@LIBOBJS@%$LIBOBJS%g
8252: s%@MANTYPE@%$MANTYPE%g
8253: s%@MAN_POSTINSTALL@%$MAN_POSTINSTALL%g
8254: s%@SUDOERS_MODE@%$SUDOERS_MODE%g
8255: s%@SUDOERS_UID@%$SUDOERS_UID%g
8256: s%@SUDOERS_GID@%$SUDOERS_GID%g
1.6 millert 8257: s%@TIMEDIR@%$TIMEDIR%g
1.1 millert 8258: s%@DEV@%$DEV%g
1.6 millert 8259: s%@mansectsu@%$mansectsu%g
8260: s%@mansectform@%$mansectform%g
8261: s%@mansrcdir@%$mansrcdir%g
1.1 millert 8262: s%@EGREPPROG@%$EGREPPROG%g
8263: s%@CC@%$CC%g
8264: s%@CPP@%$CPP%g
8265: s%@UNAMEPROG@%$UNAMEPROG%g
8266: s%@TRPROG@%$TRPROG%g
8267: s%@SEDPROG@%$SEDPROG%g
8268: s%@NROFFPROG@%$NROFFPROG%g
8269: s%@host@%$host%g
8270: s%@host_alias@%$host_alias%g
8271: s%@host_cpu@%$host_cpu%g
8272: s%@host_vendor@%$host_vendor%g
8273: s%@host_os@%$host_os%g
8274: s%@YACC@%$YACC%g
8275: s%@ALLOCA@%$ALLOCA%g
8276:
8277: CEOF
8278: EOF
8279:
8280: cat >> $CONFIG_STATUS <<\EOF
8281:
8282: # Split the substitutions into bite-sized pieces for seds with
8283: # small command number limits, like on Digital OSF/1 and HP-UX.
8284: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8285: ac_file=1 # Number of current file.
8286: ac_beg=1 # First line for current file.
8287: ac_end=$ac_max_sed_cmds # Line after last line for current file.
8288: ac_more_lines=:
8289: ac_sed_cmds=""
8290: while $ac_more_lines; do
8291: if test $ac_beg -gt 1; then
8292: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8293: else
8294: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8295: fi
8296: if test ! -s conftest.s$ac_file; then
8297: ac_more_lines=false
8298: rm -f conftest.s$ac_file
8299: else
8300: if test -z "$ac_sed_cmds"; then
8301: ac_sed_cmds="sed -f conftest.s$ac_file"
8302: else
8303: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8304: fi
8305: ac_file=`expr $ac_file + 1`
8306: ac_beg=$ac_end
8307: ac_end=`expr $ac_end + $ac_max_sed_cmds`
8308: fi
8309: done
8310: if test -z "$ac_sed_cmds"; then
8311: ac_sed_cmds=cat
8312: fi
8313: EOF
8314:
8315: cat >> $CONFIG_STATUS <<EOF
8316:
1.6 millert 8317: CONFIG_FILES=\${CONFIG_FILES-"Makefile sudo.man visudo.man sudoers.man"}
1.1 millert 8318: EOF
8319: cat >> $CONFIG_STATUS <<\EOF
8320: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8321: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8322: case "$ac_file" in
8323: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8324: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8325: *) ac_file_in="${ac_file}.in" ;;
8326: esac
8327:
8328: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8329:
8330: # Remove last slash and all that follows it. Not all systems have dirname.
8331: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8332: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8333: # The file is in a subdirectory.
8334: test ! -d "$ac_dir" && mkdir "$ac_dir"
8335: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8336: # A "../" for each directory in $ac_dir_suffix.
8337: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8338: else
8339: ac_dir_suffix= ac_dots=
8340: fi
8341:
8342: case "$ac_given_srcdir" in
8343: .) srcdir=.
8344: if test -z "$ac_dots"; then top_srcdir=.
8345: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8346: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8347: *) # Relative path.
8348: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8349: top_srcdir="$ac_dots$ac_given_srcdir" ;;
8350: esac
8351:
8352:
8353: echo creating "$ac_file"
8354: rm -f "$ac_file"
8355: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8356: case "$ac_file" in
8357: *Makefile*) ac_comsub="1i\\
8358: # $configure_input" ;;
8359: *) ac_comsub= ;;
8360: esac
8361:
8362: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8363: sed -e "$ac_comsub
8364: s%@configure_input@%$configure_input%g
8365: s%@srcdir@%$srcdir%g
8366: s%@top_srcdir@%$top_srcdir%g
8367: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8368: fi; done
8369: rm -f conftest.s*
8370:
8371: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8372: # NAME is the cpp macro being defined and VALUE is the value it is being given.
8373: #
8374: # ac_d sets the value in "#define NAME VALUE" lines.
8375: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8376: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8377: ac_dC='\3'
8378: ac_dD='%g'
8379: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8380: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8381: ac_uB='\([ ]\)%\1#\2define\3'
8382: ac_uC=' '
8383: ac_uD='\4%g'
8384: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8385: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8386: ac_eB='$%\1#\2define\3'
8387: ac_eC=' '
8388: ac_eD='%g'
8389:
8390: if test "${CONFIG_HEADERS+set}" != set; then
8391: EOF
8392: cat >> $CONFIG_STATUS <<EOF
8393: CONFIG_HEADERS="config.h pathnames.h"
8394: EOF
8395: cat >> $CONFIG_STATUS <<\EOF
8396: fi
8397: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8398: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8399: case "$ac_file" in
8400: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8401: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8402: *) ac_file_in="${ac_file}.in" ;;
8403: esac
8404:
8405: echo creating $ac_file
8406:
8407: rm -f conftest.frag conftest.in conftest.out
8408: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8409: cat $ac_file_inputs > conftest.in
8410:
8411: EOF
8412:
8413: # Transform confdefs.h into a sed script conftest.vals that substitutes
8414: # the proper values into config.h.in to produce config.h. And first:
8415: # Protect against being on the right side of a sed subst in config.status.
8416: # Protect against being in an unquoted here document in config.status.
8417: rm -f conftest.vals
8418: cat > conftest.hdr <<\EOF
8419: s/[\\&%]/\\&/g
8420: s%[\\$`]%\\&%g
8421: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8422: s%ac_d%ac_u%gp
8423: s%ac_u%ac_e%gp
8424: EOF
8425: sed -n -f conftest.hdr confdefs.h > conftest.vals
8426: rm -f conftest.hdr
8427:
8428: # This sed command replaces #undef with comments. This is necessary, for
8429: # example, in the case of _POSIX_SOURCE, which is predefined and required
8430: # on some systems where configure will not decide to define it.
8431: cat >> conftest.vals <<\EOF
8432: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8433: EOF
8434:
8435: # Break up conftest.vals because some shells have a limit on
8436: # the size of here documents, and old seds have small limits too.
8437:
8438: rm -f conftest.tail
8439: while :
8440: do
8441: ac_lines=`grep -c . conftest.vals`
8442: # grep -c gives empty output for an empty file on some AIX systems.
8443: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8444: # Write a limited-size here document to conftest.frag.
8445: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8446: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8447: echo 'CEOF
8448: sed -f conftest.frag conftest.in > conftest.out
8449: rm -f conftest.in
8450: mv conftest.out conftest.in
8451: ' >> $CONFIG_STATUS
8452: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8453: rm -f conftest.vals
8454: mv conftest.tail conftest.vals
8455: done
8456: rm -f conftest.vals
8457:
8458: cat >> $CONFIG_STATUS <<\EOF
8459: rm -f conftest.frag conftest.h
8460: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8461: cat conftest.in >> conftest.h
8462: rm -f conftest.in
8463: if cmp -s $ac_file conftest.h 2>/dev/null; then
8464: echo "$ac_file is unchanged"
8465: rm -f conftest.h
8466: else
8467: # Remove last slash and all that follows it. Not all systems have dirname.
8468: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8469: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8470: # The file is in a subdirectory.
8471: test ! -d "$ac_dir" && mkdir "$ac_dir"
8472: fi
8473: rm -f $ac_file
8474: mv conftest.h $ac_file
8475: fi
8476: fi; done
8477:
8478: EOF
8479: cat >> $CONFIG_STATUS <<EOF
8480:
8481: EOF
8482: cat >> $CONFIG_STATUS <<\EOF
8483:
8484: exit 0
8485: EOF
8486: chmod +x $CONFIG_STATUS
8487: rm -fr confdefs* $ac_clean_files
8488: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8489:
8490:
8491: if test "$with_pam" = "yes"; then
8492: echo ""
8493: case $host in
8494: *-*-linux*)
8495: echo "You will need to customize sample.pam and install it as /etc/pam.d/sudo"
8496: ;;
8497: esac
8498: echo ""
8499: fi