Annotation of src/usr.bin/sudo/configure, Revision 1.25
1.1 millert 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.25 ! millert 3: # Generated by GNU Autoconf 2.59 for sudo 1.6.9.
1.1 millert 4: #
1.25 ! millert 5: # Copyright (C) 2003 Free Software Foundation, Inc.
1.1 millert 6: # This configure script is free software; the Free Software Foundation
7: # gives unlimited permission to copy, distribute and modify it.
1.16 millert 8: ## --------------------- ##
9: ## M4sh Initialization. ##
10: ## --------------------- ##
1.1 millert 11:
1.16 millert 12: # Be Bourne compatible
13: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14: emulate sh
15: NULLCMD=:
16: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17: # is contrary to our usage. Disable this feature.
18: alias -g '${1+"$@"}'='"$@"'
19: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20: set -o posix
21: fi
1.25 ! millert 22: DUALCASE=1; export DUALCASE # for MKS sh
1.16 millert 23:
24: # Support unset when possible.
1.25 ! millert 25: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.16 millert 26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
1.25 ! millert 44: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.16 millert 45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
1.9 millert 79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
1.16 millert 86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
1.9 millert 155:
1.16 millert 156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
1.9 millert 185:
186:
1.16 millert 187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
1.9 millert 193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
1.16 millert 218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
1.25 ! millert 221: test -d ./-p && rmdir ./-p
1.16 millert 222: as_mkdir_p=false
223: fi
224:
1.9 millert 225: as_executable_p="test -f"
226:
1.16 millert 227: # Sed expression to map a string onto a valid CPP name.
1.25 ! millert 228: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16 millert 229:
230: # Sed expression to map a string onto a valid variable name.
1.25 ! millert 231: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9 millert 232:
233:
234: # IFS
235: # We need space, tab and new line, in precisely that order.
236: as_nl='
237: '
238: IFS=" $as_nl"
239:
240: # CDPATH.
1.16 millert 241: $as_unset CDPATH
242:
1.9 millert 243:
1.23 millert 244:
245: # Check that we are running under the correct shell.
246: SHELL=${CONFIG_SHELL-/bin/sh}
247:
1.25 ! millert 248: case $lt_ECHO in
1.23 millert 249: X*--fallback-echo)
250: # Remove one level of quotation (which was required for Make).
1.25 ! millert 251: ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.23 millert 252: ;;
253: esac
254:
1.25 ! millert 255: ECHO=${lt_ECHO-echo}
1.23 millert 256: if test "X$1" = X--no-reexec; then
257: # Discard the --no-reexec flag, and continue.
258: shift
259: elif test "X$1" = X--fallback-echo; then
260: # Avoid inline document here, it may be left over
261: :
1.25 ! millert 262: elif test "X`($ECHO '\t') 2>/dev/null`" = 'X\t' ; then
! 263: # Yippee, $ECHO works!
1.23 millert 264: :
265: else
266: # Restart under the correct shell.
267: exec $SHELL "$0" --no-reexec ${1+"$@"}
268: fi
269:
270: if test "X$1" = X--fallback-echo; then
271: # used as fallback echo
272: shift
1.25 ! millert 273: cat <<_LT_EOF
1.23 millert 274: $*
1.25 ! millert 275: _LT_EOF
1.23 millert 276: exit 0
277: fi
278:
279: # The HP-UX ksh and POSIX shell print the target directory to stdout
280: # if CDPATH is set.
1.25 ! millert 281: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23 millert 282:
1.25 ! millert 283: if test -z "$lt_ECHO"; then
! 284: if test "X${echo_test_string+set}" != Xset; then
! 285: # find a string as large as possible, as long as the shell can cope with it
! 286: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
! 287: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
! 288: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
! 289: echo_test_string="`eval $cmd`" &&
! 290: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
! 291: then
! 292: break
! 293: fi
! 294: done
! 295: fi
1.23 millert 296:
1.25 ! millert 297: if test "X`($ECHO '\t') 2>/dev/null`" = 'X\t' &&
! 298: echo_testing_string=`($ECHO "$echo_test_string") 2>/dev/null` &&
! 299: test "X$echo_testing_string" = "X$echo_test_string"; then
! 300: :
! 301: else
! 302: # The Solaris, AIX, and Digital Unix default echo programs unquote
! 303: # backslashes. This makes it impossible to quote backslashes using
! 304: # echo "$something" | sed 's/\\/\\\\/g'
! 305: #
! 306: # So, first we look for a working echo in the user's PATH.
1.23 millert 307:
1.25 ! millert 308: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 309: for dir in $PATH /usr/ucb; do
! 310: IFS="$lt_save_ifs"
! 311: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
! 312: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
! 313: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
! 314: test "X$echo_testing_string" = "X$echo_test_string"; then
! 315: ECHO="$dir/echo"
! 316: break
! 317: fi
! 318: done
1.23 millert 319: IFS="$lt_save_ifs"
320:
1.25 ! millert 321: if test "X$ECHO" = Xecho; then
! 322: # We didn't find a better echo, so look for alternatives.
! 323: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
! 324: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
! 325: test "X$echo_testing_string" = "X$echo_test_string"; then
! 326: # This shell has a builtin print -r that does the trick.
! 327: ECHO='print -r'
! 328: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
! 329: test "X$CONFIG_SHELL" != X/bin/ksh; then
! 330: # If we have ksh, try running configure again with it.
! 331: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
! 332: export ORIGINAL_CONFIG_SHELL
! 333: CONFIG_SHELL=/bin/ksh
! 334: export CONFIG_SHELL
! 335: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
! 336: else
! 337: # Try using printf.
! 338: ECHO='printf %s\n'
! 339: if test "X`($ECHO '\t') 2>/dev/null`" = 'X\t' &&
! 340: echo_testing_string=`($ECHO "$echo_test_string") 2>/dev/null` &&
1.23 millert 341: test "X$echo_testing_string" = "X$echo_test_string"; then
1.25 ! millert 342: # Cool, printf works
! 343: :
! 344: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 345: test "X$echo_testing_string" = 'X\t' &&
! 346: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 347: test "X$echo_testing_string" = "X$echo_test_string"; then
! 348: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
! 349: export CONFIG_SHELL
! 350: SHELL="$CONFIG_SHELL"
! 351: export SHELL
! 352: ECHO="$CONFIG_SHELL $0 --fallback-echo"
! 353: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 354: test "X$echo_testing_string" = 'X\t' &&
! 355: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 356: test "X$echo_testing_string" = "X$echo_test_string"; then
! 357: ECHO="$CONFIG_SHELL $0 --fallback-echo"
! 358: else
! 359: # maybe with a smaller string...
! 360: prev=:
! 361:
! 362: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
! 363: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
! 364: then
! 365: break
! 366: fi
! 367: prev="$cmd"
! 368: done
1.23 millert 369:
1.25 ! millert 370: if test "$prev" != 'sed 50q "$0"'; then
! 371: echo_test_string=`eval $prev`
! 372: export echo_test_string
! 373: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
! 374: else
! 375: # Oops. We lost completely, so just stick with echo.
! 376: ECHO=echo
1.23 millert 377: fi
1.25 ! millert 378: fi
1.23 millert 379: fi
380: fi
381: fi
382: fi
383:
384: # Copy echo and quote the copy suitably for passing to libtool from
385: # the Makefile, instead of quoting the original, which is used later.
1.25 ! millert 386: lt_ECHO=$ECHO
! 387: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
! 388: lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.23 millert 389: fi
390:
391:
392:
393:
1.9 millert 394: # Name of the host.
395: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
396: # so uname gets run too.
397: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398:
399: exec 6>&1
400:
401: #
402: # Initializations.
403: #
1.1 millert 404: ac_default_prefix=/usr/local
1.16 millert 405: ac_config_libobj_dir=.
1.9 millert 406: cross_compiling=no
407: subdirs=
1.16 millert 408: MFLAGS=
409: MAKEFLAGS=
1.9 millert 410: SHELL=${CONFIG_SHELL-/bin/sh}
411:
412: # Maximum number of lines to put in a shell here document.
413: # This variable seems obsolete. It should probably be removed, and
414: # only ac_max_sed_lines should be used.
415: : ${ac_max_here_lines=38}
416:
1.16 millert 417: # Identity of this package.
418: PACKAGE_NAME='sudo'
419: PACKAGE_TARNAME='sudo'
1.25 ! millert 420: PACKAGE_VERSION='1.6.9'
! 421: PACKAGE_STRING='sudo 1.6.9'
1.16 millert 422: PACKAGE_BUGREPORT=''
423:
1.9 millert 424: # Factoring default headers for most tests.
425: ac_includes_default="\
426: #include <stdio.h>
427: #if HAVE_SYS_TYPES_H
428: # include <sys/types.h>
429: #endif
430: #if HAVE_SYS_STAT_H
431: # include <sys/stat.h>
432: #endif
433: #if STDC_HEADERS
434: # include <stdlib.h>
435: # include <stddef.h>
436: #else
437: # if HAVE_STDLIB_H
438: # include <stdlib.h>
439: # endif
440: #endif
441: #if HAVE_STRING_H
442: # if !STDC_HEADERS && HAVE_MEMORY_H
443: # include <memory.h>
444: # endif
445: # include <string.h>
446: #endif
447: #if HAVE_STRINGS_H
448: # include <strings.h>
449: #endif
450: #if HAVE_INTTYPES_H
451: # include <inttypes.h>
452: #else
453: # if HAVE_STDINT_H
454: # include <stdint.h>
455: # endif
456: #endif
457: #if HAVE_UNISTD_H
458: # include <unistd.h>
459: #endif"
1.1 millert 460:
1.25 ! millert 461: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LIBTOOL CFLAGS PROGS CPPFLAGS LDFLAGS SUDO_LDFLAGS SUDO_OBJS SUDO_LIBS NET_LIBS AFS_LIBS OSDEFS AUTH_OBJS MANTYPE MAN_POSTINSTALL SUDOERS_MODE SUDOERS_UID SUDOERS_GID DEV mansectsu mansectform mansrcdir NOEXECDIR noexec_file INSTALL_NOEXEC DONT_LEAK_PATH_INFO timedir timeout password_timeout sudo_umask passprompt long_otp_prompt lecture logfac goodpri badpri loglen ignore_dot mail_no_user mail_no_host mail_no_perms mailto mailsub badpass_message fqdn runas_default env_editor passwd_tries tty_tickets insults root_sudo path_info EGREPPROG CC ac_ct_CC EXEEXT OBJEXT CPP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SED EGREP FGREP GREP LD NM LN_S AR ac_ct_AR STRIP ac_ct_STRIP RANLIB ac_ct_RANLIB lt_ECHO UNAMEPROG TRPROG NROFFPROG YACC LIBOBJS ALLOCA KRB5CONFIG LTLIBOBJS'
1.16 millert 462: ac_subst_files=''
463:
1.1 millert 464: # Initialize some variables set by options.
1.9 millert 465: ac_init_help=
466: ac_init_version=false
1.1 millert 467: # The variables have the same names as the options, with
468: # dashes changed to underlines.
1.9 millert 469: cache_file=/dev/null
1.1 millert 470: exec_prefix=NONE
471: no_create=
472: no_recursion=
473: prefix=NONE
474: program_prefix=NONE
475: program_suffix=NONE
476: program_transform_name=s,x,x,
477: silent=
478: site=
479: srcdir=
480: verbose=
481: x_includes=NONE
482: x_libraries=NONE
1.9 millert 483:
484: # Installation directory options.
485: # These are left unexpanded so users can "make install exec_prefix=/foo"
486: # and all the variables that are supposed to be based on exec_prefix
487: # by default will actually change.
488: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 millert 489: bindir='${exec_prefix}/bin'
490: sbindir='${exec_prefix}/sbin'
491: libexecdir='${exec_prefix}/libexec'
492: datadir='${prefix}/share'
493: sysconfdir='${prefix}/etc'
494: sharedstatedir='${prefix}/com'
495: localstatedir='${prefix}/var'
496: libdir='${exec_prefix}/lib'
497: includedir='${prefix}/include'
498: oldincludedir='/usr/include'
499: infodir='${prefix}/info'
500: mandir='${prefix}/man'
501:
502: ac_prev=
503: for ac_option
504: do
505: # If the previous option needs an argument, assign it.
506: if test -n "$ac_prev"; then
507: eval "$ac_prev=\$ac_option"
508: ac_prev=
509: continue
510: fi
511:
1.9 millert 512: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 millert 513:
514: # Accept the important Cygnus configure options, so we can diagnose typos.
515:
1.9 millert 516: case $ac_option in
1.1 millert 517:
518: -bindir | --bindir | --bindi | --bind | --bin | --bi)
519: ac_prev=bindir ;;
520: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9 millert 521: bindir=$ac_optarg ;;
1.1 millert 522:
523: -build | --build | --buil | --bui | --bu)
1.9 millert 524: ac_prev=build_alias ;;
1.1 millert 525: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9 millert 526: build_alias=$ac_optarg ;;
1.1 millert 527:
528: -cache-file | --cache-file | --cache-fil | --cache-fi \
529: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530: ac_prev=cache_file ;;
531: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9 millert 533: cache_file=$ac_optarg ;;
534:
535: --config-cache | -C)
536: cache_file=config.cache ;;
1.1 millert 537:
538: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539: ac_prev=datadir ;;
540: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541: | --da=*)
1.9 millert 542: datadir=$ac_optarg ;;
1.1 millert 543:
544: -disable-* | --disable-*)
1.9 millert 545: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 millert 546: # Reject names that are not valid shell variable names.
1.9 millert 547: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549: { (exit 1); exit 1; }; }
550: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551: eval "enable_$ac_feature=no" ;;
1.1 millert 552:
553: -enable-* | --enable-*)
1.9 millert 554: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 millert 555: # Reject names that are not valid shell variable names.
1.9 millert 556: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558: { (exit 1); exit 1; }; }
559: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560: case $ac_option in
561: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 562: *) ac_optarg=yes ;;
563: esac
1.9 millert 564: eval enable_$ac_feature='$ac_optarg' ;;
1.1 millert 565:
566: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568: | --exec | --exe | --ex)
569: ac_prev=exec_prefix ;;
570: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572: | --exec=* | --exe=* | --ex=*)
1.9 millert 573: exec_prefix=$ac_optarg ;;
1.1 millert 574:
575: -gas | --gas | --ga | --g)
576: # Obsolete; use --with-gas.
577: with_gas=yes ;;
578:
1.9 millert 579: -help | --help | --hel | --he | -h)
580: ac_init_help=long ;;
581: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582: ac_init_help=recursive ;;
583: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584: ac_init_help=short ;;
1.1 millert 585:
586: -host | --host | --hos | --ho)
1.9 millert 587: ac_prev=host_alias ;;
1.1 millert 588: -host=* | --host=* | --hos=* | --ho=*)
1.9 millert 589: host_alias=$ac_optarg ;;
1.1 millert 590:
591: -includedir | --includedir | --includedi | --included | --include \
592: | --includ | --inclu | --incl | --inc)
593: ac_prev=includedir ;;
594: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9 millert 596: includedir=$ac_optarg ;;
1.1 millert 597:
598: -infodir | --infodir | --infodi | --infod | --info | --inf)
599: ac_prev=infodir ;;
600: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9 millert 601: infodir=$ac_optarg ;;
1.1 millert 602:
603: -libdir | --libdir | --libdi | --libd)
604: ac_prev=libdir ;;
605: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9 millert 606: libdir=$ac_optarg ;;
1.1 millert 607:
608: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609: | --libexe | --libex | --libe)
610: ac_prev=libexecdir ;;
611: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612: | --libexe=* | --libex=* | --libe=*)
1.9 millert 613: libexecdir=$ac_optarg ;;
1.1 millert 614:
615: -localstatedir | --localstatedir | --localstatedi | --localstated \
616: | --localstate | --localstat | --localsta | --localst \
617: | --locals | --local | --loca | --loc | --lo)
618: ac_prev=localstatedir ;;
619: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.9 millert 622: localstatedir=$ac_optarg ;;
1.1 millert 623:
624: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625: ac_prev=mandir ;;
626: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9 millert 627: mandir=$ac_optarg ;;
1.1 millert 628:
629: -nfp | --nfp | --nf)
630: # Obsolete; use --without-fp.
631: with_fp=no ;;
632:
633: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16 millert 634: | --no-cr | --no-c | -n)
1.1 millert 635: no_create=yes ;;
636:
637: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639: no_recursion=yes ;;
640:
641: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643: | --oldin | --oldi | --old | --ol | --o)
644: ac_prev=oldincludedir ;;
645: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9 millert 648: oldincludedir=$ac_optarg ;;
1.1 millert 649:
650: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651: ac_prev=prefix ;;
652: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9 millert 653: prefix=$ac_optarg ;;
1.1 millert 654:
655: -program-prefix | --program-prefix | --program-prefi | --program-pref \
656: | --program-pre | --program-pr | --program-p)
657: ac_prev=program_prefix ;;
658: -program-prefix=* | --program-prefix=* | --program-prefi=* \
659: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9 millert 660: program_prefix=$ac_optarg ;;
1.1 millert 661:
662: -program-suffix | --program-suffix | --program-suffi | --program-suff \
663: | --program-suf | --program-su | --program-s)
664: ac_prev=program_suffix ;;
665: -program-suffix=* | --program-suffix=* | --program-suffi=* \
666: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9 millert 667: program_suffix=$ac_optarg ;;
1.1 millert 668:
669: -program-transform-name | --program-transform-name \
670: | --program-transform-nam | --program-transform-na \
671: | --program-transform-n | --program-transform- \
672: | --program-transform | --program-transfor \
673: | --program-transfo | --program-transf \
674: | --program-trans | --program-tran \
675: | --progr-tra | --program-tr | --program-t)
676: ac_prev=program_transform_name ;;
677: -program-transform-name=* | --program-transform-name=* \
678: | --program-transform-nam=* | --program-transform-na=* \
679: | --program-transform-n=* | --program-transform-=* \
680: | --program-transform=* | --program-transfor=* \
681: | --program-transfo=* | --program-transf=* \
682: | --program-trans=* | --program-tran=* \
683: | --progr-tra=* | --program-tr=* | --program-t=*)
1.9 millert 684: program_transform_name=$ac_optarg ;;
1.1 millert 685:
686: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687: | -silent | --silent | --silen | --sile | --sil)
688: silent=yes ;;
689:
690: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691: ac_prev=sbindir ;;
692: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693: | --sbi=* | --sb=*)
1.9 millert 694: sbindir=$ac_optarg ;;
1.1 millert 695:
696: -sharedstatedir | --sharedstatedir | --sharedstatedi \
697: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698: | --sharedst | --shareds | --shared | --share | --shar \
699: | --sha | --sh)
700: ac_prev=sharedstatedir ;;
701: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704: | --sha=* | --sh=*)
1.9 millert 705: sharedstatedir=$ac_optarg ;;
1.1 millert 706:
707: -site | --site | --sit)
708: ac_prev=site ;;
709: -site=* | --site=* | --sit=*)
1.9 millert 710: site=$ac_optarg ;;
1.1 millert 711:
712: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713: ac_prev=srcdir ;;
714: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9 millert 715: srcdir=$ac_optarg ;;
1.1 millert 716:
717: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718: | --syscon | --sysco | --sysc | --sys | --sy)
719: ac_prev=sysconfdir ;;
720: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9 millert 722: sysconfdir=$ac_optarg ;;
1.1 millert 723:
724: -target | --target | --targe | --targ | --tar | --ta | --t)
1.9 millert 725: ac_prev=target_alias ;;
1.1 millert 726: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9 millert 727: target_alias=$ac_optarg ;;
1.1 millert 728:
729: -v | -verbose | --verbose | --verbos | --verbo | --verb)
730: verbose=yes ;;
731:
1.9 millert 732: -version | --version | --versio | --versi | --vers | -V)
733: ac_init_version=: ;;
1.1 millert 734:
735: -with-* | --with-*)
1.9 millert 736: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 millert 737: # Reject names that are not valid shell variable names.
1.9 millert 738: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739: { echo "$as_me: error: invalid package name: $ac_package" >&2
740: { (exit 1); exit 1; }; }
1.1 millert 741: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.9 millert 742: case $ac_option in
743: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 744: *) ac_optarg=yes ;;
745: esac
1.9 millert 746: eval with_$ac_package='$ac_optarg' ;;
1.1 millert 747:
748: -without-* | --without-*)
1.9 millert 749: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 millert 750: # Reject names that are not valid shell variable names.
1.9 millert 751: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752: { echo "$as_me: error: invalid package name: $ac_package" >&2
753: { (exit 1); exit 1; }; }
754: ac_package=`echo $ac_package | sed 's/-/_/g'`
755: eval "with_$ac_package=no" ;;
1.1 millert 756:
757: --x)
758: # Obsolete; use --with-x.
759: with_x=yes ;;
760:
761: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762: | --x-incl | --x-inc | --x-in | --x-i)
763: ac_prev=x_includes ;;
764: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9 millert 766: x_includes=$ac_optarg ;;
1.1 millert 767:
768: -x-libraries | --x-libraries | --x-librarie | --x-librari \
769: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770: ac_prev=x_libraries ;;
771: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9 millert 773: x_libraries=$ac_optarg ;;
1.1 millert 774:
1.9 millert 775: -*) { echo "$as_me: error: unrecognized option: $ac_option
776: Try \`$0 --help' for more information." >&2
777: { (exit 1); exit 1; }; }
1.1 millert 778: ;;
779:
1.9 millert 780: *=*)
781: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782: # Reject names that are not valid shell variable names.
783: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785: { (exit 1); exit 1; }; }
786: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787: eval "$ac_envvar='$ac_optarg'"
788: export $ac_envvar ;;
789:
1.1 millert 790: *)
1.9 millert 791: # FIXME: should be removed in autoconf 3.0.
792: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 millert 796: ;;
797:
798: esac
799: done
800:
801: if test -n "$ac_prev"; then
1.9 millert 802: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803: { echo "$as_me: error: missing argument to $ac_option" >&2
804: { (exit 1); exit 1; }; }
1.1 millert 805: fi
806:
1.9 millert 807: # Be sure to have absolute paths.
808: for ac_var in exec_prefix prefix
809: do
810: eval ac_val=$`echo $ac_var`
811: case $ac_val in
812: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1.16 millert 813: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9 millert 814: { (exit 1); exit 1; }; };;
815: esac
816: done
1.1 millert 817:
1.9 millert 818: # Be sure to have absolute paths.
819: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.25 ! millert 820: localstatedir libdir includedir oldincludedir infodir mandir
1.1 millert 821: do
1.9 millert 822: eval ac_val=$`echo $ac_var`
823: case $ac_val in
824: [\\/$]* | ?:[\\/]* ) ;;
1.16 millert 825: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9 millert 826: { (exit 1); exit 1; }; };;
1.1 millert 827: esac
828: done
829:
1.9 millert 830: # There might be people who depend on the old broken behavior: `$host'
831: # used to hold the argument of --host etc.
1.16 millert 832: # FIXME: To remove some day.
1.9 millert 833: build=$build_alias
834: host=$host_alias
835: target=$target_alias
836:
1.16 millert 837: # FIXME: To remove some day.
1.9 millert 838: if test "x$host_alias" != x; then
839: if test "x$build_alias" = x; then
840: cross_compiling=maybe
841: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842: If a cross compiler is detected then cross compile mode will be used." >&2
843: elif test "x$build_alias" != "x$host_alias"; then
844: cross_compiling=yes
845: fi
846: fi
1.1 millert 847:
1.9 millert 848: ac_tool_prefix=
849: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 millert 850:
1.9 millert 851: test "$silent" = yes && exec 6>/dev/null
1.1 millert 852:
1.16 millert 853:
1.1 millert 854: # Find the source files, if location was not specified.
855: if test -z "$srcdir"; then
856: ac_srcdir_defaulted=yes
857: # Try the directory containing this script, then its parent.
1.16 millert 858: ac_confdir=`(dirname "$0") 2>/dev/null ||
859: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 ! millert 860: X"$0" : 'X\(//\)[^/]' \| \
! 861: X"$0" : 'X\(//\)$' \| \
! 862: X"$0" : 'X\(/\)' \| \
! 863: . : '\(.\)' 2>/dev/null ||
1.16 millert 864: echo X"$0" |
865: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867: /^X\(\/\/\)$/{ s//\1/; q; }
868: /^X\(\/\).*/{ s//\1/; q; }
869: s/.*/./; q'`
1.1 millert 870: srcdir=$ac_confdir
871: if test ! -r $srcdir/$ac_unique_file; then
872: srcdir=..
873: fi
874: else
875: ac_srcdir_defaulted=no
876: fi
877: if test ! -r $srcdir/$ac_unique_file; then
878: if test "$ac_srcdir_defaulted" = yes; then
1.16 millert 879: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1.9 millert 880: { (exit 1); exit 1; }; }
1.1 millert 881: else
1.16 millert 882: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.9 millert 883: { (exit 1); exit 1; }; }
1.1 millert 884: fi
885: fi
1.16 millert 886: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888: { (exit 1); exit 1; }; }
1.9 millert 889: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890: ac_env_build_alias_set=${build_alias+set}
891: ac_env_build_alias_value=$build_alias
892: ac_cv_env_build_alias_set=${build_alias+set}
893: ac_cv_env_build_alias_value=$build_alias
894: ac_env_host_alias_set=${host_alias+set}
895: ac_env_host_alias_value=$host_alias
896: ac_cv_env_host_alias_set=${host_alias+set}
897: ac_cv_env_host_alias_value=$host_alias
898: ac_env_target_alias_set=${target_alias+set}
899: ac_env_target_alias_value=$target_alias
900: ac_cv_env_target_alias_set=${target_alias+set}
901: ac_cv_env_target_alias_value=$target_alias
902: ac_env_CC_set=${CC+set}
903: ac_env_CC_value=$CC
904: ac_cv_env_CC_set=${CC+set}
905: ac_cv_env_CC_value=$CC
906: ac_env_CFLAGS_set=${CFLAGS+set}
907: ac_env_CFLAGS_value=$CFLAGS
908: ac_cv_env_CFLAGS_set=${CFLAGS+set}
909: ac_cv_env_CFLAGS_value=$CFLAGS
910: ac_env_LDFLAGS_set=${LDFLAGS+set}
911: ac_env_LDFLAGS_value=$LDFLAGS
912: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913: ac_cv_env_LDFLAGS_value=$LDFLAGS
914: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915: ac_env_CPPFLAGS_value=$CPPFLAGS
916: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918: ac_env_CPP_set=${CPP+set}
919: ac_env_CPP_value=$CPP
920: ac_cv_env_CPP_set=${CPP+set}
921: ac_cv_env_CPP_value=$CPP
922:
923: #
924: # Report the --help message.
925: #
926: if test "$ac_init_help" = "long"; then
927: # Omit some internal or obsolete options to make the list less imposing.
928: # This message is too long to be a string in the A/UX 3.1 sh.
1.16 millert 929: cat <<_ACEOF
1.25 ! millert 930: \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1.9 millert 931:
932: Usage: $0 [OPTION]... [VAR=VALUE]...
933:
934: To assign environment variables (e.g., CC, CFLAGS...), specify them as
935: VAR=VALUE. See below for descriptions of some of the useful variables.
936:
937: Defaults for the options are specified in brackets.
938:
939: Configuration:
940: -h, --help display this help and exit
941: --help=short display options specific to this package
942: --help=recursive display the short help of all the included packages
943: -V, --version display version information and exit
944: -q, --quiet, --silent do not print \`checking...' messages
945: --cache-file=FILE cache test results in FILE [disabled]
946: -C, --config-cache alias for \`--cache-file=config.cache'
947: -n, --no-create do not create output files
948: --srcdir=DIR find the sources in DIR [configure dir or \`..']
949:
1.16 millert 950: _ACEOF
1.9 millert 951:
1.16 millert 952: cat <<_ACEOF
1.9 millert 953: Installation directories:
954: --prefix=PREFIX install architecture-independent files in PREFIX
1.25 ! millert 955: [$ac_default_prefix]
1.9 millert 956: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.25 ! millert 957: [PREFIX]
1.9 millert 958:
959: By default, \`make install' will install all the files in
960: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
961: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962: for instance \`--prefix=\$HOME'.
963:
964: For better control, use the options below.
965:
966: Fine tuning of the installation directories:
967: --bindir=DIR user executables [EPREFIX/bin]
968: --sbindir=DIR system admin executables [EPREFIX/sbin]
969: --libexecdir=DIR program executables [EPREFIX/libexec]
970: --datadir=DIR read-only architecture-independent data [PREFIX/share]
971: --sysconfdir=DIR read-only single-machine data [/etc]
972: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
973: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
974: --libdir=DIR object code libraries [EPREFIX/lib]
975: --includedir=DIR C header files [PREFIX/include]
976: --oldincludedir=DIR C header files for non-gcc [/usr/include]
977: --infodir=DIR info documentation [PREFIX/info]
978: --mandir=DIR man documentation [PREFIX/man]
1.16 millert 979: _ACEOF
1.9 millert 980:
1.16 millert 981: cat <<\_ACEOF
1.9 millert 982:
983: System types:
984: --build=BUILD configure for building on BUILD [guessed]
1.16 millert 985: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.23 millert 986: --target=TARGET configure for building compilers for TARGET [HOST]
1.16 millert 987: _ACEOF
1.9 millert 988: fi
989:
990: if test -n "$ac_init_help"; then
991: case $ac_init_help in
1.25 ! millert 992: short | recursive ) echo "Configuration of sudo 1.6.9:";;
1.9 millert 993: esac
1.16 millert 994: cat <<\_ACEOF
1.9 millert 995:
996: Optional Features:
997: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
998: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
999: --disable-authentication
1000: Do not require authentication by default
1.12 millert 1001: --disable-root-mailer Don't run the mailer as root, run as the user
1.13 millert 1002: --disable-setreuid Don't try to use the setreuid() function
1.25 ! millert 1003: --disable-setresuid Don't try to use the setresuid() function
1.9 millert 1004: --disable-shadow Never use shadow passwords
1.12 millert 1005: --disable-root-sudo Don't allow root to run sudo
1.9 millert 1006: --enable-log-host Log the hostname in the log file
1007: --enable-noargs-shell If sudo is given no arguments run a shell
1008: --enable-shell-sets-home
1009: set $HOME to target user in shell mode
1010: --disable-path-info Print 'command not allowed' not 'command not found'
1.25 ! millert 1011: --enable-static[=PKGS]
! 1012: build static libraries [default=no]
1.23 millert 1013: --enable-shared[=PKGS]
1014: build shared libraries [default=yes]
1015: --enable-fast-install[=PKGS]
1016: optimize for fast installation [default=yes]
1017: --disable-libtool-lock avoid locking (might break parallel builds)
1.25 ! millert 1018: --disable-libtool-lock avoid locking (might break parallel builds)
1.9 millert 1019: --disable-sia Never use SIA on Digital UNIX
1020:
1021: Optional Packages:
1022: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1023: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1024: --with-otp-only deprecated
1025: --with-alertmail deprecated
1026: --with-CC C compiler to use
1.17 millert 1027: --with-rpath pass -R flag in addition to -L for lib paths
1.25 ! millert 1028: --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1.9 millert 1029: --with-incpath additional places to look for include files
1030: --with-libpath additional places to look for libraries
1031: --with-libraries additional libraries to link with
1.15 david 1032: --with-devel add development options
1.11 millert 1033: --with-efence link with -lefence for malloc() debugging
1.9 millert 1034: --with-csops add CSOps standard options
1035: --without-passwd don't use passwd/shadow file for authentication
1.25 ! millert 1036: --with-skey=DIR enable S/Key support
! 1037: --with-opie=DIR enable OPIE support
1.9 millert 1038: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1.17 millert 1039: --with-SecurID[=DIR] enable SecurID support
1040: --with-fwtk[=DIR] enable FWTK AuthSRV support
1041: --with-kerb4[=DIR] enable Kerberos IV support
1042: --with-kerb5[=DIR] enable Kerberos V support
1.25 ! millert 1043: --with-aixauth enable AIX general authentication support
1.9 millert 1044: --with-pam enable PAM support
1045: --with-AFS enable AFS support
1046: --with-DCE enable DCE support
1047: --with-logincap enable BSD login class support
1048: --with-bsdauth enable BSD authentication support
1.25 ! millert 1049: --with-project enable Solaris project support
1.9 millert 1050: --without-lecture don't print lecture for first-time sudoer
1051: --with-logging log via syslog, file, or both
1052: --with-logfac syslog facility to log with (default is "local2")
1053: --with-goodpri syslog priority for commands (def is "notice")
1054: --with-badpri syslog priority for failures (def is "alert")
1055: --with-logpath path to the sudo log file
1056: --with-loglen maximum length of a log file line (default is 80)
1057: --with-ignore-dot ignore '.' in the PATH
1058: --without-mail-if-no-user do not send mail if user not in sudoers
1059: --with-mail-if-no-host send mail if user in sudoers but not for this host
1060: --with-mail-if-noperms send mail if user not allowed to run command
1061: --with-mailto who should get sudo mail (default is "root")
1062: --with-mailsubject subject of sudo mail
1063: --with-passprompt default password prompt
1064: --with-badpass-message message the user sees when the password is wrong
1065: --with-fqdn expect fully qualified hosts in sudoers
1066: --with-timedir path to the sudo timestamp dir
1067: --with-sendmail=path set path to sendmail
1068: --without-sendmail do not send mail at all
1069: --with-sudoers-mode mode of sudoers file (defaults to 0440)
1070: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1071: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1072: --with-umask umask with which the prog should run (default is 022)
1073: --without-umask Preserves the umask of the user invoking sudo.
1074: --with-runas-default User to run commands as (default is "root")
1075: --with-exempt=group no passwd needed for users in this group
1076: --with-editor=path Default editor for visudo (defaults to vi)
1077: --with-env-editor Use the environment variable EDITOR for visudo
1078: --with-passwd-tries number of tries to enter password (default is 3)
1079: --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1080: --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1081: --with-tty-tickets use a different ticket file for each tty
1082: --with-insults insult the user for entering an incorrect password
1083: --with-all-insults include all the sudo insult sets
1084: --with-classic-insults include the insults from the "classic" sudo
1085: --with-csops-insults include CSOps insults
1086: --with-hal-insults include 2001-like insults
1087: --with-goons-insults include the insults from the "Goon Show"
1.25 ! millert 1088: --with-ldap[=DIR] enable LDAP support
1.23 millert 1089: --with-ldap-conf-file path to LDAP configuration file
1.25 ! millert 1090: --with-ldap-secret-file path to LDAP secret pasdword file
1.23 millert 1091: --with-pc-insults replace politically incorrect insults with less offensive ones
1.20 millert 1092: --with-secure-path override the user's path with a built-in one
1.9 millert 1093: --without-interfaces don't try to read the ip addr of ether interfaces
1.16 millert 1094: --with-stow properly handle GNU stow packaging
1.23 millert 1095: --with-pic try to use only PIC/non-PIC objects [default=use
1096: both]
1.25 ! millert 1097: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
! 1098: --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1.9 millert 1099:
1100: Some influential environment variables:
1101: CC C compiler command
1102: CFLAGS C compiler flags
1103: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1104: nonstandard directory <lib dir>
1105: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106: headers in a nonstandard directory <include dir>
1107: CPP C preprocessor
1108:
1109: Use these variables to override the choices made by `configure' or to help
1110: it to find libraries and programs with nonstandard names/locations.
1111:
1.16 millert 1112: _ACEOF
1.9 millert 1113: fi
1114:
1115: if test "$ac_init_help" = "recursive"; then
1116: # If there are subdirs, report their specific --help.
1117: ac_popdir=`pwd`
1.16 millert 1118: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119: test -d $ac_dir || continue
1120: ac_builddir=.
1121:
1122: if test "$ac_dir" != .; then
1123: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124: # A "../" for each directory in $ac_dir_suffix.
1125: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126: else
1127: ac_dir_suffix= ac_top_builddir=
1128: fi
1129:
1130: case $srcdir in
1131: .) # No --srcdir option. We are building in place.
1132: ac_srcdir=.
1133: if test -z "$ac_top_builddir"; then
1134: ac_top_srcdir=.
1135: else
1136: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137: fi ;;
1138: [\\/]* | ?:[\\/]* ) # Absolute path.
1139: ac_srcdir=$srcdir$ac_dir_suffix;
1140: ac_top_srcdir=$srcdir ;;
1141: *) # Relative path.
1142: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144: esac
1.25 ! millert 1145:
! 1146: # Do not use `cd foo && pwd` to compute absolute paths, because
! 1147: # the directories may not exist.
! 1148: case `pwd` in
! 1149: .) ac_abs_builddir="$ac_dir";;
! 1150: *)
! 1151: case "$ac_dir" in
! 1152: .) ac_abs_builddir=`pwd`;;
! 1153: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
! 1154: *) ac_abs_builddir=`pwd`/"$ac_dir";;
! 1155: esac;;
! 1156: esac
! 1157: case $ac_abs_builddir in
! 1158: .) ac_abs_top_builddir=${ac_top_builddir}.;;
! 1159: *)
! 1160: case ${ac_top_builddir}. in
! 1161: .) ac_abs_top_builddir=$ac_abs_builddir;;
! 1162: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
! 1163: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
! 1164: esac;;
! 1165: esac
! 1166: case $ac_abs_builddir in
! 1167: .) ac_abs_srcdir=$ac_srcdir;;
! 1168: *)
! 1169: case $ac_srcdir in
! 1170: .) ac_abs_srcdir=$ac_abs_builddir;;
! 1171: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
! 1172: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
! 1173: esac;;
! 1174: esac
! 1175: case $ac_abs_builddir in
! 1176: .) ac_abs_top_srcdir=$ac_top_srcdir;;
! 1177: *)
! 1178: case $ac_top_srcdir in
! 1179: .) ac_abs_top_srcdir=$ac_abs_builddir;;
! 1180: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
! 1181: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
! 1182: esac;;
! 1183: esac
1.9 millert 1184:
1.16 millert 1185: cd $ac_dir
1.9 millert 1186: # Check for guested configure; otherwise get Cygnus style configure.
1.16 millert 1187: if test -f $ac_srcdir/configure.gnu; then
1.9 millert 1188: echo
1.16 millert 1189: $SHELL $ac_srcdir/configure.gnu --help=recursive
1190: elif test -f $ac_srcdir/configure; then
1.9 millert 1191: echo
1.16 millert 1192: $SHELL $ac_srcdir/configure --help=recursive
1193: elif test -f $ac_srcdir/configure.ac ||
1.25 ! millert 1194: test -f $ac_srcdir/configure.in; then
1.9 millert 1195: echo
1196: $ac_configure --help
1197: else
1.16 millert 1198: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.9 millert 1199: fi
1200: cd $ac_popdir
1201: done
1202: fi
1203:
1204: test -n "$ac_init_help" && exit 0
1205: if $ac_init_version; then
1.16 millert 1206: cat <<\_ACEOF
1.25 ! millert 1207: sudo configure 1.6.9
! 1208: generated by GNU Autoconf 2.59
1.9 millert 1209:
1.25 ! millert 1210: Copyright (C) 2003 Free Software Foundation, Inc.
1.9 millert 1211: This configure script is free software; the Free Software Foundation
1212: gives unlimited permission to copy, distribute and modify it.
1.16 millert 1213: _ACEOF
1.9 millert 1214: exit 0
1215: fi
1216: exec 5>config.log
1.16 millert 1217: cat >&5 <<_ACEOF
1.9 millert 1218: This file contains any messages produced by compilers while
1219: running configure, to aid debugging if configure makes a mistake.
1220:
1.25 ! millert 1221: It was created by sudo $as_me 1.6.9, which was
! 1222: generated by GNU Autoconf 2.59. Invocation command line was
1.9 millert 1223:
1224: $ $0 $@
1225:
1.16 millert 1226: _ACEOF
1.9 millert 1227: {
1228: cat <<_ASUNAME
1.16 millert 1229: ## --------- ##
1230: ## Platform. ##
1231: ## --------- ##
1.9 millert 1232:
1233: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238:
1239: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1241:
1242: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1243: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1244: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1246: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1247: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1248: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1249:
1.16 millert 1250: _ASUNAME
1251:
1252: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253: for as_dir in $PATH
1254: do
1255: IFS=$as_save_IFS
1256: test -z "$as_dir" && as_dir=.
1257: echo "PATH: $as_dir"
1258: done
1.9 millert 1259:
1260: } >&5
1261:
1.16 millert 1262: cat >&5 <<_ACEOF
1263:
1264:
1265: ## ----------- ##
1266: ## Core tests. ##
1267: ## ----------- ##
1268:
1269: _ACEOF
1.9 millert 1270:
1271:
1272: # Keep a trace of the command line.
1273: # Strip out --no-create and --no-recursion so they do not pile up.
1.16 millert 1274: # Strip out --silent because we don't want to record it for future runs.
1.9 millert 1275: # Also quote any args containing shell meta-characters.
1.16 millert 1276: # Make two passes to allow for proper duplicate-argument suppression.
1.9 millert 1277: ac_configure_args=
1.16 millert 1278: ac_configure_args0=
1279: ac_configure_args1=
1.9 millert 1280: ac_sep=
1.16 millert 1281: ac_must_keep_next=false
1282: for ac_pass in 1 2
1.9 millert 1283: do
1.16 millert 1284: for ac_arg
1285: do
1286: case $ac_arg in
1287: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289: | -silent | --silent | --silen | --sile | --sil)
1290: continue ;;
1291: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293: esac
1294: case $ac_pass in
1295: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296: 2)
1297: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298: if test $ac_must_keep_next = true; then
1.25 ! millert 1299: ac_must_keep_next=false # Got value, back to normal.
1.16 millert 1300: else
1.25 ! millert 1301: case $ac_arg in
! 1302: *=* | --config-cache | -C | -disable-* | --disable-* \
! 1303: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
! 1304: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
! 1305: | -with-* | --with-* | -without-* | --without-* | --x)
! 1306: case "$ac_configure_args0 " in
! 1307: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
! 1308: esac
! 1309: ;;
! 1310: -* ) ac_must_keep_next=true ;;
! 1311: esac
1.16 millert 1312: fi
1313: ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
1314: # Get rid of the leading space.
1315: ac_sep=" "
1316: ;;
1317: esac
1318: done
1.9 millert 1319: done
1.16 millert 1320: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9 millert 1322:
1323: # When interrupted or exit'd, cleanup temporary files, and complete
1324: # config.log. We remove comments because anyway the quotes in there
1325: # would cause problems or look ugly.
1.16 millert 1326: # WARNING: Be sure not to use single quotes in there, as some shells,
1327: # such as our DU 5.0 friend, will then `close' the trap.
1.9 millert 1328: trap 'exit_status=$?
1329: # Save into config.log some information that might help in debugging.
1.16 millert 1330: {
1331: echo
1332:
1333: cat <<\_ASBOX
1334: ## ---------------- ##
1335: ## Cache variables. ##
1336: ## ---------------- ##
1337: _ASBOX
1338: echo
1339: # The following way of writing the cache mishandles newlines in values,
1.9 millert 1340: {
1341: (set) 2>&1 |
1342: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343: *ac_space=\ *)
1344: sed -n \
1.25 ! millert 1345: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
! 1346: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.9 millert 1347: ;;
1348: *)
1349: sed -n \
1.25 ! millert 1350: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.9 millert 1351: ;;
1352: esac;
1.16 millert 1353: }
1354: echo
1355:
1356: cat <<\_ASBOX
1357: ## ----------------- ##
1358: ## Output variables. ##
1359: ## ----------------- ##
1360: _ASBOX
1361: echo
1362: for ac_var in $ac_subst_vars
1363: do
1364: eval ac_val=$`echo $ac_var`
1365: echo "$ac_var='"'"'$ac_val'"'"'"
1366: done | sort
1367: echo
1368:
1369: if test -n "$ac_subst_files"; then
1370: cat <<\_ASBOX
1371: ## ------------- ##
1372: ## Output files. ##
1373: ## ------------- ##
1374: _ASBOX
1375: echo
1376: for ac_var in $ac_subst_files
1377: do
1378: eval ac_val=$`echo $ac_var`
1.25 ! millert 1379: echo "$ac_var='"'"'$ac_val'"'"'"
1.16 millert 1380: done | sort
1381: echo
1382: fi
1383:
1384: if test -s confdefs.h; then
1385: cat <<\_ASBOX
1386: ## ----------- ##
1387: ## confdefs.h. ##
1388: ## ----------- ##
1389: _ASBOX
1390: echo
1391: sed "/^$/d" confdefs.h | sort
1392: echo
1393: fi
1394: test "$ac_signal" != 0 &&
1395: echo "$as_me: caught signal $ac_signal"
1396: echo "$as_me: exit $exit_status"
1397: } >&5
1.25 ! millert 1398: rm -f core *.core &&
1.16 millert 1399: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.9 millert 1400: exit $exit_status
1401: ' 0
1402: for ac_signal in 1 2 13 15; do
1403: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404: done
1405: ac_signal=0
1.1 millert 1406:
1.9 millert 1407: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408: rm -rf conftest* confdefs.h
1409: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410: echo >confdefs.h
1411:
1.16 millert 1412: # Predefined preprocessor variables.
1413:
1414: cat >>confdefs.h <<_ACEOF
1415: #define PACKAGE_NAME "$PACKAGE_NAME"
1416: _ACEOF
1417:
1418:
1419: cat >>confdefs.h <<_ACEOF
1420: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421: _ACEOF
1422:
1423:
1424: cat >>confdefs.h <<_ACEOF
1425: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426: _ACEOF
1427:
1428:
1429: cat >>confdefs.h <<_ACEOF
1430: #define PACKAGE_STRING "$PACKAGE_STRING"
1431: _ACEOF
1432:
1433:
1434: cat >>confdefs.h <<_ACEOF
1435: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436: _ACEOF
1437:
1438:
1.9 millert 1439: # Let the site file select an alternate cache file if it wants to.
1.1 millert 1440: # Prefer explicitly selected file to automatically selected ones.
1441: if test -z "$CONFIG_SITE"; then
1442: if test "x$prefix" != xNONE; then
1443: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444: else
1445: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446: fi
1447: fi
1448: for ac_site_file in $CONFIG_SITE; do
1449: if test -r "$ac_site_file"; then
1.16 millert 1450: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9 millert 1451: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16 millert 1452: sed 's/^/| /' "$ac_site_file" >&5
1.1 millert 1453: . "$ac_site_file"
1454: fi
1455: done
1456:
1457: if test -r "$cache_file"; then
1.9 millert 1458: # Some versions of bash will fail to source /dev/null (special
1459: # files actually), so we avoid doing that.
1460: if test -f "$cache_file"; then
1.16 millert 1461: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9 millert 1462: echo "$as_me: loading cache $cache_file" >&6;}
1463: case $cache_file in
1464: [\\/]* | ?:[\\/]* ) . $cache_file;;
1465: *) . ./$cache_file;;
1466: esac
1467: fi
1.1 millert 1468: else
1.16 millert 1469: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9 millert 1470: echo "$as_me: creating cache $cache_file" >&6;}
1471: >$cache_file
1472: fi
1473:
1474: # Check that the precious variables saved in the cache have kept the same
1475: # value.
1476: ac_cache_corrupted=false
1477: for ac_var in `(set) 2>&1 |
1.25 ! millert 1478: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.9 millert 1479: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1480: eval ac_new_set=\$ac_env_${ac_var}_set
1481: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1482: eval ac_new_val="\$ac_env_${ac_var}_value"
1483: case $ac_old_set,$ac_new_set in
1484: set,)
1.16 millert 1485: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9 millert 1486: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1487: ac_cache_corrupted=: ;;
1488: ,set)
1.16 millert 1489: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9 millert 1490: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491: ac_cache_corrupted=: ;;
1492: ,);;
1493: *)
1494: if test "x$ac_old_val" != "x$ac_new_val"; then
1.25 ! millert 1495: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9 millert 1496: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25 ! millert 1497: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.9 millert 1498: echo "$as_me: former value: $ac_old_val" >&2;}
1.25 ! millert 1499: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.9 millert 1500: echo "$as_me: current value: $ac_new_val" >&2;}
1.25 ! millert 1501: ac_cache_corrupted=:
1.9 millert 1502: fi;;
1503: esac
1.16 millert 1504: # Pass precious variables to config.status.
1.9 millert 1505: if test "$ac_new_set" = set; then
1506: case $ac_new_val in
1507: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.16 millert 1508: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1509: *) ac_arg=$ac_var=$ac_new_val ;;
1510: esac
1511: case " $ac_configure_args " in
1512: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1513: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9 millert 1514: esac
1515: fi
1516: done
1517: if $ac_cache_corrupted; then
1.16 millert 1518: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9 millert 1519: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16 millert 1520: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9 millert 1521: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1522: { (exit 1); exit 1; }; }
1.1 millert 1523: fi
1524:
1525: ac_ext=c
1526: ac_cpp='$CPP $CPPFLAGS'
1.9 millert 1527: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1530:
1531:
1532:
1.16 millert 1533:
1534:
1535:
1536:
1537:
1538:
1539:
1540:
1541:
1542:
1543:
1544:
1545:
1546:
1547:
1548:
1549:
1550:
1551:
1552:
1553:
1554:
1555:
1556:
1557: ac_config_headers="$ac_config_headers config.h pathnames.h"
1558:
1.25 ! millert 1559: { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
! 1560: echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
! 1561:
! 1562:
! 1563:
! 1564:
! 1565:
! 1566:
! 1567:
! 1568:
! 1569:
! 1570:
! 1571:
! 1572:
! 1573:
! 1574:
! 1575:
! 1576:
! 1577:
! 1578:
! 1579:
1.23 millert 1580:
1581:
1582:
1583:
1584:
1.16 millert 1585:
1586:
1587:
1588:
1589:
1590:
1591:
1592:
1593:
1594:
1595:
1596:
1597:
1598:
1599:
1600:
1601:
1602:
1603:
1604:
1605:
1606:
1607:
1608:
1609:
1610:
1.9 millert 1611:
1612: timeout=5
1613: password_timeout=5
1614: sudo_umask=0022
1615: passprompt="Password:"
1616: long_otp_prompt=off
1.23 millert 1617: lecture=once
1.9 millert 1618: logfac=local2
1619: goodpri=notice
1620: badpri=alert
1621: loglen=80
1622: ignore_dot=off
1623: mail_no_user=on
1624: mail_no_host=off
1625: mail_no_perms=off
1626: mailto=root
1627: mailsub='*** SECURITY information for %h ***'
1628: badpass_message='Sorry, try again.'
1629: fqdn=off
1630: runas_default=root
1631: env_editor=off
1632: passwd_tries=3
1633: tty_tickets=off
1634: insults=off
1.23 millert 1635: root_sudo=on
1.25 ! millert 1636: path_info=on
1.23 millert 1637: INSTALL_NOEXEC=
1.1 millert 1638: PROGS="sudo visudo"
1.25 ! millert 1639: : ${MANTYPE='man'}
! 1640: : ${mansrcdir='.'}
! 1641: : ${SUDOERS_MODE='0440'}
! 1642: : ${SUDOERS_UID='0'}
! 1643: : ${SUDOERS_GID='0'}
1.1 millert 1644: DEV="#"
1.25 ! millert 1645: AUTH_OBJS=passwd.o
1.1 millert 1646:
1647: CHECKSHADOW=true
1648: CHECKSIA=true
1.25 ! millert 1649: shadow_defs=
! 1650: shadow_funcs=
! 1651: shadow_libs=
! 1652: shadow_libs_optional=
1.1 millert 1653:
1654: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1655: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1656: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16 millert 1657: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
1658:
1659:
1.1 millert 1660:
1661: # Check whether --with-otp-only or --without-otp-only was given.
1662: if test "${with_otp_only+set}" = set; then
1663: withval="$with_otp_only"
1664: case $with_otp_only in
1.25 ! millert 1665: yes) AUTH_OBJS=`echo "$AUTH_OBJS"|sed -e 's/^passwd\.o *//'`
1.17 millert 1666: { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
1667: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1 millert 1668: ;;
1669: esac
1.9 millert 1670: fi;
1.1 millert 1671:
1.16 millert 1672:
1.1 millert 1673: # Check whether --with-alertmail or --without-alertmail was given.
1674: if test "${with_alertmail+set}" = set; then
1675: withval="$with_alertmail"
1676: case $with_alertmail in
1677: *) with_mailto="$with_alertmail"
1.17 millert 1678: { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
1679: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1 millert 1680: ;;
1681: esac
1.9 millert 1682: fi;
1.1 millert 1683:
1.16 millert 1684:
1685:
1.1 millert 1686: # Check whether --with-CC or --without-CC was given.
1687: if test "${with_CC+set}" = set; then
1688: withval="$with_CC"
1689: case $with_CC in
1.16 millert 1690: yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9 millert 1691: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
1692: { (exit 1); exit 1; }; }
1693: ;;
1.16 millert 1694: no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9 millert 1695: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
1696: { (exit 1); exit 1; }; }
1.1 millert 1697: ;;
1698: *) CC=$with_CC
1699: ;;
1700: esac
1.9 millert 1701: fi;
1.1 millert 1702:
1.16 millert 1703:
1.17 millert 1704: # Check whether --with-rpath or --without-rpath was given.
1705: if test "${with_rpath+set}" = set; then
1706: withval="$with_rpath"
1707: case $with_rpath in
1.25 ! millert 1708: yes|no) ;;
1.17 millert 1709: *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
1710: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
1711: { (exit 1); exit 1; }; }
1712: ;;
1713: esac
1714: fi;
1715:
1716:
1717: # Check whether --with-blibpath or --without-blibpath was given.
1718: if test "${with_blibpath+set}" = set; then
1719: withval="$with_blibpath"
1720: case $with_blibpath in
1.25 ! millert 1721: yes|no) ;;
1.17 millert 1722: *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
1723: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
1724: ;;
1725: esac
1726: fi;
1727:
1728:
1.1 millert 1729: # Check whether --with-incpath or --without-incpath was given.
1730: if test "${with_incpath+set}" = set; then
1731: withval="$with_incpath"
1.9 millert 1732: case $with_incpath in
1.16 millert 1733: yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9 millert 1734: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
1735: { (exit 1); exit 1; }; }
1736: ;;
1.16 millert 1737: no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9 millert 1738: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
1739: { (exit 1); exit 1; }; }
1.1 millert 1740: ;;
1.17 millert 1741: *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
1742: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1 millert 1743: for i in ${with_incpath}; do
1744: CPPFLAGS="${CPPFLAGS} -I${i}"
1745: done
1746: ;;
1747: esac
1.9 millert 1748: fi;
1.1 millert 1749:
1.16 millert 1750:
1.1 millert 1751: # Check whether --with-libpath or --without-libpath was given.
1752: if test "${with_libpath+set}" = set; then
1753: withval="$with_libpath"
1.9 millert 1754: case $with_libpath in
1.16 millert 1755: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9 millert 1756: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
1757: { (exit 1); exit 1; }; }
1758: ;;
1.16 millert 1759: no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9 millert 1760: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
1761: { (exit 1); exit 1; }; }
1.1 millert 1762: ;;
1.17 millert 1763: *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
1764: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1 millert 1765: ;;
1766: esac
1.9 millert 1767: fi;
1.1 millert 1768:
1.16 millert 1769:
1.1 millert 1770: # Check whether --with-libraries or --without-libraries was given.
1771: if test "${with_libraries+set}" = set; then
1772: withval="$with_libraries"
1.9 millert 1773: case $with_libraries in
1.16 millert 1774: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9 millert 1775: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
1776: { (exit 1); exit 1; }; }
1777: ;;
1.16 millert 1778: no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9 millert 1779: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
1780: { (exit 1); exit 1; }; }
1.1 millert 1781: ;;
1.17 millert 1782: *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
1783: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1 millert 1784: ;;
1785: esac
1.9 millert 1786: fi;
1.1 millert 1787:
1.16 millert 1788:
1.1 millert 1789: # Check whether --with-devel or --without-devel was given.
1790: if test "${with_devel+set}" = set; then
1791: withval="$with_devel"
1.9 millert 1792: case $with_devel in
1.17 millert 1793: yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
1794: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1 millert 1795: PROGS="${PROGS} testsudoers"
1796: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1797: DEV=""
1798: ;;
1799: no) ;;
1.17 millert 1800: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
1801: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1 millert 1802: ;;
1803: esac
1.9 millert 1804: fi;
1.1 millert 1805:
1.16 millert 1806:
1.11 millert 1807: # Check whether --with-efence or --without-efence was given.
1808: if test "${with_efence+set}" = set; then
1809: withval="$with_efence"
1810: case $with_efence in
1.17 millert 1811: yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
1812: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11 millert 1813: LIBS="${LIBS} -lefence"
1814: if test -f /usr/local/lib/libefence.a; then
1.17 millert 1815: with_libpath="${with_libpath} /usr/local/lib"
1.11 millert 1816: fi
1817: ;;
1818: no) ;;
1.17 millert 1819: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
1820: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11 millert 1821: ;;
1822: esac
1823: fi;
1824:
1.16 millert 1825:
1.1 millert 1826: # Check whether --with-csops or --without-csops was given.
1827: if test "${with_csops+set}" = set; then
1828: withval="$with_csops"
1.9 millert 1829: case $with_csops in
1.17 millert 1830: yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
1831: echo "$as_me: Adding CSOps standard options" >&6;}
1.1 millert 1832: CHECKSIA=false
1833: with_ignore_dot=yes
1.9 millert 1834: insults=on
1.1 millert 1835: with_classic_insults=yes
1836: with_csops_insults=yes
1837: with_env_editor=yes
1.25 ! millert 1838: : ${mansectsu='8'}
! 1839: : ${mansectform='5'}
1.1 millert 1840: ;;
1841: no) ;;
1.17 millert 1842: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
1843: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1 millert 1844: ;;
1845: esac
1.9 millert 1846: fi;
1.1 millert 1847:
1.16 millert 1848:
1.1 millert 1849: # Check whether --with-passwd or --without-passwd was given.
1850: if test "${with_passwd+set}" = set; then
1851: withval="$with_passwd"
1852: case $with_passwd in
1853: yes) ;;
1.25 ! millert 1854: no) AUTH_OBJS=`echo "$AUTH_OBJS"|sed -e 's/^passwd\.o *//'`
1.16 millert 1855: echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
1.9 millert 1856: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1.16 millert 1857: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 1858: echo "${ECHO_T}no" >&6
1.1 millert 1859: ;;
1.16 millert 1860: *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9 millert 1861: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
1862: { (exit 1); exit 1; }; }
1.1 millert 1863: ;;
1864: esac
1.9 millert 1865: fi;
1.1 millert 1866:
1.16 millert 1867:
1.1 millert 1868: # Check whether --with-skey or --without-skey was given.
1869: if test "${with_skey+set}" = set; then
1870: withval="$with_skey"
1871: case $with_skey in
1.25 ! millert 1872: no) with_skey=""
! 1873: ;;
1.17 millert 1874: *) if test -n "$with_opie"; then
1.16 millert 1875: { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9 millert 1876: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1877: { (exit 1); exit 1; }; }
1.1 millert 1878: fi
1.23 millert 1879: cat >>confdefs.h <<\_ACEOF
1.1 millert 1880: #define HAVE_SKEY 1
1.16 millert 1881: _ACEOF
1.1 millert 1882:
1.16 millert 1883: echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
1.9 millert 1884: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1.16 millert 1885: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1886: echo "${ECHO_T}yes" >&6
1.25 ! millert 1887:
! 1888: if test X"$AUTH_EXCL" != X""; then
! 1889: { { echo "$as_me:$LINENO: error: \"cannot mix S/Key with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 1890: echo "$as_me: error: \"cannot mix S/Key with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 1891: { (exit 1); exit 1; }; }
! 1892: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 1893: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 1894: { { echo "$as_me:$LINENO: error: \"cannot mix S/Key with other authentication methods (such as $_AUTH)\"" >&5
! 1895: echo "$as_me: error: \"cannot mix S/Key with other authentication methods (such as $_AUTH)\"" >&2;}
! 1896: { (exit 1); exit 1; }; }
! 1897: fi
! 1898: if test X"" != X""; then
! 1899: AUTH_OBJS="rfc1938.o"
! 1900: AUTH_EXCL="S/Key"
! 1901: elif test X"$AUTH_OBJS" = X""; then
! 1902: AUTH_OBJS="rfc1938.o"
! 1903: else
! 1904: AUTH_OBJS="$AUTH_OBJS rfc1938.o"
! 1905: fi
! 1906:
1.1 millert 1907: ;;
1908: esac
1.9 millert 1909: fi;
1.1 millert 1910:
1.16 millert 1911:
1.1 millert 1912: # Check whether --with-opie or --without-opie was given.
1913: if test "${with_opie+set}" = set; then
1914: withval="$with_opie"
1915: case $with_opie in
1.25 ! millert 1916: no) with_opie=""
! 1917: ;;
1.17 millert 1918: *) if test -n "$with_skey"; then
1.16 millert 1919: { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9 millert 1920: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1921: { (exit 1); exit 1; }; }
1.1 millert 1922: fi
1.23 millert 1923: cat >>confdefs.h <<\_ACEOF
1.1 millert 1924: #define HAVE_OPIE 1
1.16 millert 1925: _ACEOF
1.1 millert 1926:
1.16 millert 1927: echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
1.9 millert 1928: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6
1.16 millert 1929: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1930: echo "${ECHO_T}yes" >&6
1.25 ! millert 1931:
! 1932: if test X"$AUTH_EXCL" != X""; then
! 1933: { { echo "$as_me:$LINENO: error: \"cannot mix NRL OPIE with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 1934: echo "$as_me: error: \"cannot mix NRL OPIE with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 1935: { (exit 1); exit 1; }; }
! 1936: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 1937: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 1938: { { echo "$as_me:$LINENO: error: \"cannot mix NRL OPIE with other authentication methods (such as $_AUTH)\"" >&5
! 1939: echo "$as_me: error: \"cannot mix NRL OPIE with other authentication methods (such as $_AUTH)\"" >&2;}
! 1940: { (exit 1); exit 1; }; }
! 1941: fi
! 1942: if test X"" != X""; then
! 1943: AUTH_OBJS="rfc1938.o"
! 1944: AUTH_EXCL="NRL OPIE"
! 1945: elif test X"$AUTH_OBJS" = X""; then
! 1946: AUTH_OBJS="rfc1938.o"
! 1947: else
! 1948: AUTH_OBJS="$AUTH_OBJS rfc1938.o"
! 1949: fi
! 1950:
1.1 millert 1951: ;;
1952: esac
1.9 millert 1953: fi;
1.1 millert 1954:
1.16 millert 1955:
1.1 millert 1956: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1957: if test "${with_long_otp_prompt+set}" = set; then
1958: withval="$with_long_otp_prompt"
1959: case $with_long_otp_prompt in
1.23 millert 1960: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 1961: #define LONG_OTP_PROMPT 1
1.16 millert 1962: _ACEOF
1.1 millert 1963:
1.16 millert 1964: echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
1.9 millert 1965: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1.16 millert 1966: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1967: echo "${ECHO_T}yes" >&6
1968: long_otp_prompt=on
1.1 millert 1969: ;;
1.9 millert 1970: no) long_otp_prompt=off
1971: ;;
1.16 millert 1972: *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9 millert 1973: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
1974: { (exit 1); exit 1; }; }
1.1 millert 1975: ;;
1976: esac
1.9 millert 1977: fi;
1.1 millert 1978:
1.16 millert 1979:
1.1 millert 1980: # Check whether --with-SecurID or --without-SecurID was given.
1981: if test "${with_SecurID+set}" = set; then
1982: withval="$with_SecurID"
1983: case $with_SecurID in
1.17 millert 1984: no) with_SecurID="";;
1.23 millert 1985: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 1986: #define HAVE_SECURID 1
1.16 millert 1987: _ACEOF
1.1 millert 1988:
1.16 millert 1989: echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
1.9 millert 1990: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1.16 millert 1991: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1992: echo "${ECHO_T}yes" >&6
1.25 ! millert 1993: # AUTH_OBJS updated later
1.1 millert 1994: ;;
1995: esac
1.9 millert 1996: fi;
1.1 millert 1997:
1.16 millert 1998:
1.1 millert 1999: # Check whether --with-fwtk or --without-fwtk was given.
2000: if test "${with_fwtk+set}" = set; then
2001: withval="$with_fwtk"
2002: case $with_fwtk in
1.17 millert 2003: no) with_fwtk="";;
1.23 millert 2004: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2005: #define HAVE_FWTK 1
1.16 millert 2006: _ACEOF
1.1 millert 2007:
1.16 millert 2008: echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
1.9 millert 2009: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1.16 millert 2010: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2011: echo "${ECHO_T}yes" >&6
1.25 ! millert 2012:
! 2013: if test X"$AUTH_EXCL" != X""; then
! 2014: { { echo "$as_me:$LINENO: error: \"cannot mix FWTK AuthSRV with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 2015: echo "$as_me: error: \"cannot mix FWTK AuthSRV with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 2016: { (exit 1); exit 1; }; }
! 2017: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 2018: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 2019: { { echo "$as_me:$LINENO: error: \"cannot mix FWTK AuthSRV with other authentication methods (such as $_AUTH)\"" >&5
! 2020: echo "$as_me: error: \"cannot mix FWTK AuthSRV with other authentication methods (such as $_AUTH)\"" >&2;}
! 2021: { (exit 1); exit 1; }; }
! 2022: fi
! 2023: if test X"true" != X""; then
! 2024: AUTH_OBJS="fwtk.o"
! 2025: AUTH_EXCL="FWTK AuthSRV"
! 2026: elif test X"$AUTH_OBJS" = X""; then
! 2027: AUTH_OBJS="fwtk.o"
! 2028: else
! 2029: AUTH_OBJS="$AUTH_OBJS fwtk.o"
! 2030: fi
! 2031:
1.1 millert 2032: ;;
2033: esac
1.9 millert 2034: fi;
1.1 millert 2035:
1.16 millert 2036:
1.1 millert 2037: # Check whether --with-kerb4 or --without-kerb4 was given.
2038: if test "${with_kerb4+set}" = set; then
2039: withval="$with_kerb4"
2040: case $with_kerb4 in
1.17 millert 2041: no) with_kerb4="";;
2042: *) echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2043: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6
1.16 millert 2044: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2045: echo "${ECHO_T}yes" >&6
1.1 millert 2046: ;;
2047: esac
1.9 millert 2048: fi;
1.1 millert 2049:
1.16 millert 2050:
1.1 millert 2051: # Check whether --with-kerb5 or --without-kerb5 was given.
2052: if test "${with_kerb5+set}" = set; then
2053: withval="$with_kerb5"
2054: case $with_kerb5 in
1.17 millert 2055: no) with_kerb5="";;
2056: *) echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2057: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6
1.16 millert 2058: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2059: echo "${ECHO_T}yes" >&6
1.1 millert 2060: ;;
2061: esac
1.9 millert 2062: fi;
1.1 millert 2063:
1.16 millert 2064:
1.25 ! millert 2065: # Check whether --with-aixauth or --without-aixauth was given.
! 2066: if test "${with_aixauth+set}" = set; then
! 2067: withval="$with_aixauth"
! 2068: case $with_aixauth in
! 2069: yes|no) ;;
! 2070: *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
! 2071: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9 millert 2072: { (exit 1); exit 1; }; }
1.1 millert 2073: ;;
2074: esac
1.9 millert 2075: fi;
1.1 millert 2076:
1.16 millert 2077:
1.1 millert 2078: # Check whether --with-pam or --without-pam was given.
2079: if test "${with_pam+set}" = set; then
2080: withval="$with_pam"
2081: case $with_pam in
1.25 ! millert 2082: yes|no) ;;
1.16 millert 2083: *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9 millert 2084: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2085: { (exit 1); exit 1; }; }
1.1 millert 2086: ;;
2087: esac
1.9 millert 2088: fi;
1.1 millert 2089:
1.16 millert 2090:
1.1 millert 2091: # Check whether --with-AFS or --without-AFS was given.
2092: if test "${with_AFS+set}" = set; then
2093: withval="$with_AFS"
2094: case $with_AFS in
1.23 millert 2095: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2096: #define HAVE_AFS 1
1.16 millert 2097: _ACEOF
1.1 millert 2098:
1.16 millert 2099: echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
1.9 millert 2100: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
1.16 millert 2101: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2102: echo "${ECHO_T}yes" >&6
1.25 ! millert 2103:
! 2104: if test X"$AUTH_EXCL" != X""; then
! 2105: { { echo "$as_me:$LINENO: error: \"cannot mix AFS with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 2106: echo "$as_me: error: \"cannot mix AFS with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 2107: { (exit 1); exit 1; }; }
! 2108: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 2109: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 2110: { { echo "$as_me:$LINENO: error: \"cannot mix AFS with other authentication methods (such as $_AUTH)\"" >&5
! 2111: echo "$as_me: error: \"cannot mix AFS with other authentication methods (such as $_AUTH)\"" >&2;}
! 2112: { (exit 1); exit 1; }; }
! 2113: fi
! 2114: if test X"" != X""; then
! 2115: AUTH_OBJS="afs.o"
! 2116: AUTH_EXCL="AFS"
! 2117: elif test X"$AUTH_OBJS" = X""; then
! 2118: AUTH_OBJS="afs.o"
! 2119: else
! 2120: AUTH_OBJS="$AUTH_OBJS afs.o"
! 2121: fi
! 2122:
1.1 millert 2123: ;;
2124: no) ;;
1.16 millert 2125: *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9 millert 2126: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2127: { (exit 1); exit 1; }; }
1.1 millert 2128: ;;
2129: esac
1.9 millert 2130: fi;
1.1 millert 2131:
1.16 millert 2132:
1.1 millert 2133: # Check whether --with-DCE or --without-DCE was given.
2134: if test "${with_DCE+set}" = set; then
2135: withval="$with_DCE"
2136: case $with_DCE in
1.23 millert 2137: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2138: #define HAVE_DCE 1
1.16 millert 2139: _ACEOF
1.1 millert 2140:
1.16 millert 2141: echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
1.9 millert 2142: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
1.16 millert 2143: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2144: echo "${ECHO_T}yes" >&6
1.25 ! millert 2145:
! 2146: if test X"$AUTH_EXCL" != X""; then
! 2147: { { echo "$as_me:$LINENO: error: \"cannot mix DCE with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 2148: echo "$as_me: error: \"cannot mix DCE with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 2149: { (exit 1); exit 1; }; }
! 2150: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 2151: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 2152: { { echo "$as_me:$LINENO: error: \"cannot mix DCE with other authentication methods (such as $_AUTH)\"" >&5
! 2153: echo "$as_me: error: \"cannot mix DCE with other authentication methods (such as $_AUTH)\"" >&2;}
! 2154: { (exit 1); exit 1; }; }
! 2155: fi
! 2156: if test X"" != X""; then
! 2157: AUTH_OBJS="dce.o"
! 2158: AUTH_EXCL="DCE"
! 2159: elif test X"$AUTH_OBJS" = X""; then
! 2160: AUTH_OBJS="dce.o"
! 2161: else
! 2162: AUTH_OBJS="$AUTH_OBJS dce.o"
! 2163: fi
! 2164:
1.1 millert 2165: ;;
2166: no) ;;
1.16 millert 2167: *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9 millert 2168: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2169: { (exit 1); exit 1; }; }
1.1 millert 2170: ;;
2171: esac
1.9 millert 2172: fi;
1.1 millert 2173:
1.16 millert 2174:
1.6 millert 2175: # Check whether --with-logincap or --without-logincap was given.
2176: if test "${with_logincap+set}" = set; then
2177: withval="$with_logincap"
2178: case $with_logincap in
1.7 millert 2179: yes|no) ;;
1.16 millert 2180: *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9 millert 2181: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2182: { (exit 1); exit 1; }; }
1.7 millert 2183: ;;
2184: esac
1.9 millert 2185: fi;
1.6 millert 2186:
1.16 millert 2187:
1.7 millert 2188: # Check whether --with-bsdauth or --without-bsdauth was given.
2189: if test "${with_bsdauth+set}" = set; then
2190: withval="$with_bsdauth"
2191: case $with_bsdauth in
1.25 ! millert 2192: yes|no) ;;
1.16 millert 2193: *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9 millert 2194: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2195: { (exit 1); exit 1; }; }
1.6 millert 2196: ;;
2197: esac
1.9 millert 2198: fi;
1.6 millert 2199:
1.25 ! millert 2200:
! 2201: # Check whether --with-project or --without-project was given.
! 2202: if test "${with_project+set}" = set; then
! 2203: withval="$with_project"
! 2204: case $with_project in
! 2205: yes|no) ;;
! 2206: no) ;;
! 2207: *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
! 2208: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
! 2209: { (exit 1); exit 1; }; }
! 2210: ;;
! 2211: esac
! 2212: fi;
! 2213:
1.16 millert 2214: echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
1.9 millert 2215: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6 millert 2216:
1.1 millert 2217: # Check whether --with-lecture or --without-lecture was given.
2218: if test "${with_lecture+set}" = set; then
2219: withval="$with_lecture"
1.9 millert 2220: case $with_lecture in
1.23 millert 2221: yes|short|always) lecture=once
1.1 millert 2222: ;;
1.23 millert 2223: no|none|never) lecture=never
1.1 millert 2224: ;;
1.16 millert 2225: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9 millert 2226: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2227: { (exit 1); exit 1; }; }
1.1 millert 2228: ;;
2229: esac
1.9 millert 2230: fi;
1.23 millert 2231: if test "$lecture" = "once"; then
1.16 millert 2232: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2233: echo "${ECHO_T}yes" >&6
1.1 millert 2234: else
1.23 millert 2235: cat >>confdefs.h <<\_ACEOF
1.9 millert 2236: #define NO_LECTURE 1
1.16 millert 2237: _ACEOF
1.9 millert 2238:
1.16 millert 2239: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2240: echo "${ECHO_T}no" >&6
1.1 millert 2241: fi
2242:
1.16 millert 2243: echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
1.9 millert 2244: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1 millert 2245:
2246: # Check whether --with-logging or --without-logging was given.
2247: if test "${with_logging+set}" = set; then
2248: withval="$with_logging"
1.9 millert 2249: case $with_logging in
1.16 millert 2250: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9 millert 2251: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2252: { (exit 1); exit 1; }; }
2253: ;;
1.16 millert 2254: no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9 millert 2255: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2256: { (exit 1); exit 1; }; }
1.1 millert 2257: ;;
1.23 millert 2258: syslog) cat >>confdefs.h <<\_ACEOF
1.1 millert 2259: #define LOGGING SLOG_SYSLOG
1.16 millert 2260: _ACEOF
1.1 millert 2261:
1.16 millert 2262: echo "$as_me:$LINENO: result: syslog" >&5
1.9 millert 2263: echo "${ECHO_T}syslog" >&6
1.1 millert 2264: ;;
1.16 millert 2265: file) cat >>confdefs.h <<\_ACEOF
1.1 millert 2266: #define LOGGING SLOG_FILE
1.16 millert 2267: _ACEOF
1.1 millert 2268:
1.16 millert 2269: echo "$as_me:$LINENO: result: file" >&5
1.9 millert 2270: echo "${ECHO_T}file" >&6
1.1 millert 2271: ;;
1.16 millert 2272: both) cat >>confdefs.h <<\_ACEOF
1.1 millert 2273: #define LOGGING SLOG_BOTH
1.16 millert 2274: _ACEOF
1.1 millert 2275:
1.16 millert 2276: echo "$as_me:$LINENO: result: both" >&5
1.9 millert 2277: echo "${ECHO_T}both" >&6
1.1 millert 2278: ;;
1.16 millert 2279: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9 millert 2280: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2281: { (exit 1); exit 1; }; }
1.1 millert 2282: ;;
2283: esac
2284: else
1.16 millert 2285: cat >>confdefs.h <<\_ACEOF
1.1 millert 2286: #define LOGGING SLOG_SYSLOG
1.16 millert 2287: _ACEOF
2288: echo "$as_me:$LINENO: result: syslog" >&5
1.9 millert 2289: echo "${ECHO_T}syslog" >&6
2290: fi;
1.1 millert 2291:
1.16 millert 2292: echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
1.9 millert 2293: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1 millert 2294:
2295: # Check whether --with-logfac or --without-logfac was given.
2296: if test "${with_logfac+set}" = set; then
2297: withval="$with_logfac"
1.9 millert 2298: case $with_logfac in
1.16 millert 2299: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9 millert 2300: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2301: { (exit 1); exit 1; }; }
2302: ;;
1.16 millert 2303: no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9 millert 2304: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2305: { (exit 1); exit 1; }; }
1.1 millert 2306: ;;
1.9 millert 2307: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1.1 millert 2308: ;;
1.16 millert 2309: *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9 millert 2310: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2311: { (exit 1); exit 1; }; }
1.1 millert 2312: ;;
2313: esac
1.9 millert 2314: fi;
2315:
1.16 millert 2316: cat >>confdefs.h <<_ACEOF
1.9 millert 2317: #define LOGFAC "$logfac"
1.16 millert 2318: _ACEOF
1.1 millert 2319:
1.16 millert 2320: echo "$as_me:$LINENO: result: $logfac" >&5
1.9 millert 2321: echo "${ECHO_T}$logfac" >&6
2322:
1.16 millert 2323: echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
1.9 millert 2324: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1 millert 2325:
2326: # Check whether --with-goodpri or --without-goodpri was given.
2327: if test "${with_goodpri+set}" = set; then
2328: withval="$with_goodpri"
1.9 millert 2329: case $with_goodpri in
1.16 millert 2330: yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9 millert 2331: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2332: { (exit 1); exit 1; }; }
1.1 millert 2333: ;;
1.16 millert 2334: no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9 millert 2335: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2336: { (exit 1); exit 1; }; }
1.1 millert 2337: ;;
1.9 millert 2338: alert|crit|debug|emerg|err|info|notice|warning)
2339: goodpri=$with_goodpri
1.1 millert 2340: ;;
1.16 millert 2341: *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9 millert 2342: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2343: { (exit 1); exit 1; }; }
1.1 millert 2344: ;;
2345: esac
1.9 millert 2346: fi;
2347:
1.16 millert 2348: cat >>confdefs.h <<_ACEOF
1.9 millert 2349: #define PRI_SUCCESS "$goodpri"
1.16 millert 2350: _ACEOF
1.1 millert 2351:
1.16 millert 2352: echo "$as_me:$LINENO: result: $goodpri" >&5
1.9 millert 2353: echo "${ECHO_T}$goodpri" >&6
2354:
1.16 millert 2355: echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
1.9 millert 2356: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1 millert 2357:
2358: # Check whether --with-badpri or --without-badpri was given.
2359: if test "${with_badpri+set}" = set; then
2360: withval="$with_badpri"
1.9 millert 2361: case $with_badpri in
1.16 millert 2362: yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9 millert 2363: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2364: { (exit 1); exit 1; }; }
1.1 millert 2365: ;;
1.16 millert 2366: no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9 millert 2367: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2368: { (exit 1); exit 1; }; }
1.1 millert 2369: ;;
1.9 millert 2370: alert|crit|debug|emerg|err|info|notice|warning)
2371: badpri=$with_badpri
1.1 millert 2372: ;;
1.16 millert 2373: *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9 millert 2374: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2375: { (exit 1); exit 1; }; }
1.1 millert 2376: ;;
2377: esac
1.9 millert 2378: fi;
2379:
1.16 millert 2380: cat >>confdefs.h <<_ACEOF
1.9 millert 2381: #define PRI_FAILURE "$badpri"
1.16 millert 2382: _ACEOF
2383:
2384: echo "$as_me:$LINENO: result: $badpri" >&5
2385: echo "${ECHO_T}$badpri" >&6
1.1 millert 2386:
2387:
2388: # Check whether --with-logpath or --without-logpath was given.
2389: if test "${with_logpath+set}" = set; then
2390: withval="$with_logpath"
1.9 millert 2391: case $with_logpath in
1.16 millert 2392: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9 millert 2393: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2394: { (exit 1); exit 1; }; }
1.1 millert 2395: ;;
1.16 millert 2396: no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9 millert 2397: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2398: { (exit 1); exit 1; }; }
1.1 millert 2399: ;;
2400: esac
1.9 millert 2401: fi;
1.1 millert 2402:
1.16 millert 2403: echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
1.9 millert 2404: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1 millert 2405:
2406: # Check whether --with-loglen or --without-loglen was given.
2407: if test "${with_loglen+set}" = set; then
2408: withval="$with_loglen"
1.9 millert 2409: case $with_loglen in
1.16 millert 2410: yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9 millert 2411: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2412: { (exit 1); exit 1; }; }
1.1 millert 2413: ;;
1.16 millert 2414: no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9 millert 2415: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2416: { (exit 1); exit 1; }; }
1.1 millert 2417: ;;
1.9 millert 2418: [0-9]*) loglen=$with_loglen
1.1 millert 2419: ;;
1.16 millert 2420: *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9 millert 2421: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2422: { (exit 1); exit 1; }; }
1.1 millert 2423: ;;
2424: esac
1.9 millert 2425: fi;
2426:
1.16 millert 2427: cat >>confdefs.h <<_ACEOF
1.9 millert 2428: #define MAXLOGFILELEN $loglen
1.16 millert 2429: _ACEOF
1.1 millert 2430:
1.16 millert 2431: echo "$as_me:$LINENO: result: $loglen" >&5
1.9 millert 2432: echo "${ECHO_T}$loglen" >&6
2433:
1.16 millert 2434: echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.9 millert 2435: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1 millert 2436:
2437: # Check whether --with-ignore-dot or --without-ignore-dot was given.
2438: if test "${with_ignore_dot+set}" = set; then
2439: withval="$with_ignore_dot"
1.9 millert 2440: case $with_ignore_dot in
2441: yes) ignore_dot=on
1.1 millert 2442: ;;
1.9 millert 2443: no) ignore_dot=off
1.1 millert 2444: ;;
1.16 millert 2445: *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9 millert 2446: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2447: { (exit 1); exit 1; }; }
1.1 millert 2448: ;;
2449: esac
1.9 millert 2450: fi;
2451: if test "$ignore_dot" = "on"; then
1.23 millert 2452: cat >>confdefs.h <<\_ACEOF
1.9 millert 2453: #define IGNORE_DOT_PATH 1
1.16 millert 2454: _ACEOF
1.9 millert 2455:
1.16 millert 2456: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2457: echo "${ECHO_T}yes" >&6
1.1 millert 2458: else
1.16 millert 2459: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2460: echo "${ECHO_T}no" >&6
1.1 millert 2461: fi
2462:
1.16 millert 2463: echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
1.9 millert 2464: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1 millert 2465:
1.9 millert 2466: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
2467: if test "${with_mail_if_no_user+set}" = set; then
2468: withval="$with_mail_if_no_user"
2469: case $with_mail_if_no_user in
2470: yes) mail_no_user=on
2471: ;;
2472: no) mail_no_user=off
1.1 millert 2473: ;;
1.16 millert 2474: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9 millert 2475: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2476: { (exit 1); exit 1; }; }
1.1 millert 2477: ;;
1.9 millert 2478: esac
2479: fi;
2480: if test "$mail_no_user" = "on"; then
1.23 millert 2481: cat >>confdefs.h <<\_ACEOF
1.9 millert 2482: #define SEND_MAIL_WHEN_NO_USER 1
1.16 millert 2483: _ACEOF
1.1 millert 2484:
1.16 millert 2485: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2486: echo "${ECHO_T}yes" >&6
1.1 millert 2487: else
1.16 millert 2488: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2489: echo "${ECHO_T}no" >&6
1.1 millert 2490: fi
2491:
1.16 millert 2492: echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
1.9 millert 2493: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1 millert 2494:
1.9 millert 2495: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
2496: if test "${with_mail_if_no_host+set}" = set; then
2497: withval="$with_mail_if_no_host"
2498: case $with_mail_if_no_host in
2499: yes) mail_no_host=on
1.1 millert 2500: ;;
1.9 millert 2501: no) mail_no_host=off
1.1 millert 2502: ;;
1.16 millert 2503: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9 millert 2504: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2505: { (exit 1); exit 1; }; }
1.1 millert 2506: ;;
2507: esac
1.9 millert 2508: fi;
2509: if test "$mail_no_host" = "on"; then
1.23 millert 2510: cat >>confdefs.h <<\_ACEOF
1.9 millert 2511: #define SEND_MAIL_WHEN_NO_HOST 1
1.16 millert 2512: _ACEOF
1.1 millert 2513:
1.16 millert 2514: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2515: echo "${ECHO_T}yes" >&6
2516: else
1.16 millert 2517: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2518: echo "${ECHO_T}no" >&6
1.1 millert 2519: fi
2520:
1.16 millert 2521: echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
1.9 millert 2522: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1 millert 2523:
1.9 millert 2524: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
2525: if test "${with_mail_if_noperms+set}" = set; then
2526: withval="$with_mail_if_noperms"
2527: case $with_mail_if_noperms in
2528: yes) mail_noperms=on
1.1 millert 2529: ;;
1.9 millert 2530: no) mail_noperms=off
1.1 millert 2531: ;;
1.16 millert 2532: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9 millert 2533: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2534: { (exit 1); exit 1; }; }
1.1 millert 2535: ;;
2536: esac
1.9 millert 2537: fi;
2538: if test "$mail_noperms" = "on"; then
1.23 millert 2539: cat >>confdefs.h <<\_ACEOF
1.9 millert 2540: #define SEND_MAIL_WHEN_NOT_OK 1
1.16 millert 2541: _ACEOF
1.9 millert 2542:
1.16 millert 2543: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2544: echo "${ECHO_T}yes" >&6
1.1 millert 2545: else
1.16 millert 2546: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2547: echo "${ECHO_T}no" >&6
1.1 millert 2548: fi
2549:
1.16 millert 2550: echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
1.9 millert 2551: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1.1 millert 2552:
1.9 millert 2553: # Check whether --with-mailto or --without-mailto was given.
2554: if test "${with_mailto+set}" = set; then
2555: withval="$with_mailto"
2556: case $with_mailto in
1.16 millert 2557: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9 millert 2558: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2559: { (exit 1); exit 1; }; }
1.1 millert 2560: ;;
1.16 millert 2561: no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9 millert 2562: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2563: { (exit 1); exit 1; }; }
1.1 millert 2564: ;;
1.9 millert 2565: *) mailto=$with_mailto
1.1 millert 2566: ;;
2567: esac
1.9 millert 2568: fi;
1.1 millert 2569:
1.16 millert 2570: cat >>confdefs.h <<_ACEOF
1.9 millert 2571: #define MAILTO "$mailto"
1.16 millert 2572: _ACEOF
1.1 millert 2573:
1.16 millert 2574: echo "$as_me:$LINENO: result: $mailto" >&5
1.9 millert 2575: echo "${ECHO_T}$mailto" >&6
1.1 millert 2576:
1.16 millert 2577:
1.9 millert 2578: # Check whether --with-mailsubject or --without-mailsubject was given.
2579: if test "${with_mailsubject+set}" = set; then
2580: withval="$with_mailsubject"
2581: case $with_mailsubject in
1.16 millert 2582: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9 millert 2583: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2584: { (exit 1); exit 1; }; }
1.1 millert 2585: ;;
1.17 millert 2586: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2587: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1 millert 2588: ;;
1.9 millert 2589: *) mailsub="$with_mailsubject"
1.16 millert 2590: echo "$as_me:$LINENO: checking sudo mail subject" >&5
1.9 millert 2591: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
1.16 millert 2592: echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
1.9 millert 2593: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1.1 millert 2594: ;;
2595: esac
1.9 millert 2596: fi;
2597:
1.16 millert 2598: cat >>confdefs.h <<_ACEOF
1.9 millert 2599: #define MAILSUBJECT "$mailsub"
1.16 millert 2600: _ACEOF
2601:
1.1 millert 2602:
1.16 millert 2603: echo "$as_me:$LINENO: checking for bad password prompt" >&5
1.9 millert 2604: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1 millert 2605:
2606: # Check whether --with-passprompt or --without-passprompt was given.
2607: if test "${with_passprompt+set}" = set; then
2608: withval="$with_passprompt"
1.9 millert 2609: case $with_passprompt in
1.16 millert 2610: yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9 millert 2611: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2612: { (exit 1); exit 1; }; }
1.1 millert 2613: ;;
1.17 millert 2614: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2615: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1 millert 2616: ;;
1.9 millert 2617: *) passprompt="$with_passprompt"
2618: esac
2619: fi;
1.16 millert 2620: echo "$as_me:$LINENO: result: $passprompt" >&5
1.9 millert 2621: echo "${ECHO_T}$passprompt" >&6
1.1 millert 2622:
1.16 millert 2623: cat >>confdefs.h <<_ACEOF
1.9 millert 2624: #define PASSPROMPT "$passprompt"
1.16 millert 2625: _ACEOF
2626:
1.1 millert 2627:
1.16 millert 2628: echo "$as_me:$LINENO: checking for bad password message" >&5
1.9 millert 2629: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1 millert 2630:
2631: # Check whether --with-badpass-message or --without-badpass-message was given.
2632: if test "${with_badpass_message+set}" = set; then
2633: withval="$with_badpass_message"
1.9 millert 2634: case $with_badpass_message in
1.16 millert 2635: yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9 millert 2636: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
2637: { (exit 1); exit 1; }; }
1.1 millert 2638: ;;
1.17 millert 2639: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
2640: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1 millert 2641: ;;
1.9 millert 2642: *) badpass_message="$with_badpass_message"
1.1 millert 2643: ;;
2644: esac
1.9 millert 2645: fi;
2646:
1.16 millert 2647: cat >>confdefs.h <<_ACEOF
1.9 millert 2648: #define INCORRECT_PASSWORD "$badpass_message"
1.16 millert 2649: _ACEOF
1.1 millert 2650:
1.16 millert 2651: echo "$as_me:$LINENO: result: $badpass_message" >&5
1.9 millert 2652: echo "${ECHO_T}$badpass_message" >&6
2653:
1.16 millert 2654: echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
1.9 millert 2655: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1 millert 2656:
2657: # Check whether --with-fqdn or --without-fqdn was given.
2658: if test "${with_fqdn+set}" = set; then
2659: withval="$with_fqdn"
1.9 millert 2660: case $with_fqdn in
2661: yes) fqdn=on
1.1 millert 2662: ;;
1.9 millert 2663: no) fqdn=off
1.1 millert 2664: ;;
1.16 millert 2665: *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9 millert 2666: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
2667: { (exit 1); exit 1; }; }
1.1 millert 2668: ;;
2669: esac
1.9 millert 2670: fi;
2671: if test "$fqdn" = "on"; then
1.23 millert 2672: cat >>confdefs.h <<\_ACEOF
1.9 millert 2673: #define FQDN 1
1.16 millert 2674: _ACEOF
1.9 millert 2675:
1.16 millert 2676: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2677: echo "${ECHO_T}yes" >&6
1.1 millert 2678: else
1.16 millert 2679: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2680: echo "${ECHO_T}no" >&6
1.1 millert 2681: fi
2682:
1.16 millert 2683:
1.1 millert 2684: # Check whether --with-timedir or --without-timedir was given.
2685: if test "${with_timedir+set}" = set; then
2686: withval="$with_timedir"
1.9 millert 2687: case $with_timedir in
1.16 millert 2688: yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9 millert 2689: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
2690: { (exit 1); exit 1; }; }
1.1 millert 2691: ;;
1.16 millert 2692: no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9 millert 2693: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
2694: { (exit 1); exit 1; }; }
1.1 millert 2695: ;;
2696: esac
1.9 millert 2697: fi;
1.1 millert 2698:
1.16 millert 2699:
1.1 millert 2700: # Check whether --with-sendmail or --without-sendmail was given.
2701: if test "${with_sendmail+set}" = set; then
2702: withval="$with_sendmail"
1.9 millert 2703: case $with_sendmail in
1.1 millert 2704: yes) with_sendmail=""
2705: ;;
2706: no) ;;
1.9 millert 2707: *) cat >>confdefs.h <<EOF
2708: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1 millert 2709: EOF
2710:
2711: ;;
2712: esac
1.9 millert 2713: fi;
1.1 millert 2714:
1.16 millert 2715:
1.1 millert 2716: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2717: if test "${with_sudoers_mode+set}" = set; then
2718: withval="$with_sudoers_mode"
1.9 millert 2719: case $with_sudoers_mode in
1.16 millert 2720: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9 millert 2721: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
2722: { (exit 1); exit 1; }; }
2723: ;;
1.16 millert 2724: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9 millert 2725: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
2726: { (exit 1); exit 1; }; }
1.1 millert 2727: ;;
2728: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
2729: ;;
2730: 0*) SUDOERS_MODE=$with_sudoers_mode
2731: ;;
1.16 millert 2732: *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
2733: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9 millert 2734: { (exit 1); exit 1; }; }
1.1 millert 2735: ;;
2736: esac
1.9 millert 2737: fi;
1.1 millert 2738:
1.16 millert 2739:
1.1 millert 2740: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2741: if test "${with_sudoers_uid+set}" = set; then
2742: withval="$with_sudoers_uid"
1.9 millert 2743: case $with_sudoers_uid in
1.16 millert 2744: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9 millert 2745: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
2746: { (exit 1); exit 1; }; }
2747: ;;
1.16 millert 2748: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9 millert 2749: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
2750: { (exit 1); exit 1; }; }
1.1 millert 2751: ;;
2752: [0-9]*) SUDOERS_UID=$with_sudoers_uid
2753: ;;
1.16 millert 2754: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
2755: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9 millert 2756: { (exit 1); exit 1; }; }
1.1 millert 2757: ;;
2758: esac
1.9 millert 2759: fi;
1.1 millert 2760:
1.16 millert 2761:
1.1 millert 2762: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2763: if test "${with_sudoers_gid+set}" = set; then
2764: withval="$with_sudoers_gid"
1.9 millert 2765: case $with_sudoers_gid in
1.16 millert 2766: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9 millert 2767: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
2768: { (exit 1); exit 1; }; }
2769: ;;
1.16 millert 2770: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9 millert 2771: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
2772: { (exit 1); exit 1; }; }
1.1 millert 2773: ;;
2774: [0-9]*) SUDOERS_GID=$with_sudoers_gid
2775: ;;
1.16 millert 2776: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
2777: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9 millert 2778: { (exit 1); exit 1; }; }
1.1 millert 2779: ;;
2780: esac
1.9 millert 2781: fi;
1.1 millert 2782:
1.16 millert 2783: echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
1.9 millert 2784: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1 millert 2785:
2786: # Check whether --with-umask or --without-umask was given.
2787: if test "${with_umask+set}" = set; then
2788: withval="$with_umask"
1.9 millert 2789: case $with_umask in
1.16 millert 2790: yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9 millert 2791: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
2792: { (exit 1); exit 1; }; }
1.1 millert 2793: ;;
1.9 millert 2794: no) sudo_umask=0777
1.1 millert 2795: ;;
1.9 millert 2796: [0-9]*) sudo_umask=$with_umask
1.1 millert 2797: ;;
1.16 millert 2798: *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9 millert 2799: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
2800: { (exit 1); exit 1; }; }
1.1 millert 2801: ;;
2802: esac
1.9 millert 2803: fi;
2804:
1.16 millert 2805: cat >>confdefs.h <<_ACEOF
1.9 millert 2806: #define SUDO_UMASK $sudo_umask
1.16 millert 2807: _ACEOF
1.9 millert 2808:
2809: if test "$sudo_umask" = "0777"; then
1.16 millert 2810: echo "$as_me:$LINENO: result: user" >&5
1.9 millert 2811: echo "${ECHO_T}user" >&6
1.1 millert 2812: else
1.16 millert 2813: echo "$as_me:$LINENO: result: $sudo_umask" >&5
1.9 millert 2814: echo "${ECHO_T}$sudo_umask" >&6
1.1 millert 2815: fi
2816:
1.16 millert 2817: echo "$as_me:$LINENO: checking for default user to run commands as" >&5
1.9 millert 2818: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1 millert 2819:
2820: # Check whether --with-runas-default or --without-runas-default was given.
2821: if test "${with_runas_default+set}" = set; then
2822: withval="$with_runas_default"
1.9 millert 2823: case $with_runas_default in
1.16 millert 2824: yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9 millert 2825: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
2826: { (exit 1); exit 1; }; }
1.1 millert 2827: ;;
1.16 millert 2828: no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9 millert 2829: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
2830: { (exit 1); exit 1; }; }
1.1 millert 2831: ;;
1.9 millert 2832: *) runas_default="$with_runas_default"
1.1 millert 2833: ;;
2834: esac
1.9 millert 2835: fi;
2836:
1.16 millert 2837: cat >>confdefs.h <<_ACEOF
1.9 millert 2838: #define RUNAS_DEFAULT "$runas_default"
1.16 millert 2839: _ACEOF
1.1 millert 2840:
1.16 millert 2841: echo "$as_me:$LINENO: result: $runas_default" >&5
1.9 millert 2842: echo "${ECHO_T}$runas_default" >&6
1.1 millert 2843:
1.16 millert 2844:
1.1 millert 2845: # Check whether --with-exempt or --without-exempt was given.
2846: if test "${with_exempt+set}" = set; then
2847: withval="$with_exempt"
1.9 millert 2848: case $with_exempt in
1.16 millert 2849: yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9 millert 2850: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
2851: { (exit 1); exit 1; }; }
2852: ;;
1.16 millert 2853: no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9 millert 2854: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
2855: { (exit 1); exit 1; }; }
1.1 millert 2856: ;;
1.9 millert 2857: *)
1.16 millert 2858: cat >>confdefs.h <<_ACEOF
1.1 millert 2859: #define EXEMPTGROUP "$with_exempt"
1.16 millert 2860: _ACEOF
1.1 millert 2861:
1.16 millert 2862: echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
1.9 millert 2863: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
1.16 millert 2864: echo "$as_me:$LINENO: result: $with_exempt" >&5
1.9 millert 2865: echo "${ECHO_T}$with_exempt" >&6
1.1 millert 2866: ;;
2867: esac
1.9 millert 2868: fi;
1.1 millert 2869:
1.16 millert 2870: echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
1.9 millert 2871: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1 millert 2872:
2873: # Check whether --with-editor or --without-editor was given.
2874: if test "${with_editor+set}" = set; then
2875: withval="$with_editor"
1.9 millert 2876: case $with_editor in
1.16 millert 2877: yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9 millert 2878: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
2879: { (exit 1); exit 1; }; }
2880: ;;
1.16 millert 2881: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 2882: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2883: { (exit 1); exit 1; }; }
1.1 millert 2884: ;;
1.9 millert 2885: *)
1.16 millert 2886: cat >>confdefs.h <<_ACEOF
1.1 millert 2887: #define EDITOR "$with_editor"
1.16 millert 2888: _ACEOF
1.1 millert 2889:
1.16 millert 2890: echo "$as_me:$LINENO: result: $with_editor" >&5
1.9 millert 2891: echo "${ECHO_T}$with_editor" >&6
1.1 millert 2892: ;;
2893: esac
2894: else
1.16 millert 2895: cat >>confdefs.h <<\_ACEOF
1.1 millert 2896: #define EDITOR _PATH_VI
1.16 millert 2897: _ACEOF
2898: echo "$as_me:$LINENO: result: vi" >&5
1.9 millert 2899: echo "${ECHO_T}vi" >&6
2900: fi;
1.1 millert 2901:
1.16 millert 2902: echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.9 millert 2903: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1 millert 2904:
2905: # Check whether --with-env-editor or --without-env-editor was given.
2906: if test "${with_env_editor+set}" = set; then
2907: withval="$with_env_editor"
1.9 millert 2908: case $with_env_editor in
2909: yes) env_editor=on
1.1 millert 2910: ;;
1.9 millert 2911: no) env_editor=off
1.1 millert 2912: ;;
1.16 millert 2913: *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9 millert 2914: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
2915: { (exit 1); exit 1; }; }
1.1 millert 2916: ;;
2917: esac
1.9 millert 2918: fi;
2919: if test "$env_editor" = "on"; then
1.23 millert 2920: cat >>confdefs.h <<\_ACEOF
1.9 millert 2921: #define ENV_EDITOR 1
1.16 millert 2922: _ACEOF
1.9 millert 2923:
1.16 millert 2924: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2925: echo "${ECHO_T}yes" >&6
1.1 millert 2926: else
1.16 millert 2927: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2928: echo "${ECHO_T}no" >&6
1.1 millert 2929: fi
2930:
1.16 millert 2931: echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
1.9 millert 2932: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1 millert 2933:
2934: # Check whether --with-passwd-tries or --without-passwd-tries was given.
2935: if test "${with_passwd_tries+set}" = set; then
2936: withval="$with_passwd_tries"
1.9 millert 2937: case $with_passwd_tries in
2938: yes) ;;
1.16 millert 2939: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 2940: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2941: { (exit 1); exit 1; }; }
1.1 millert 2942: ;;
1.9 millert 2943: [1-9]*) passwd_tries=$with_passwd_tries
1.1 millert 2944: ;;
1.16 millert 2945: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9 millert 2946: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
2947: { (exit 1); exit 1; }; }
1.1 millert 2948: ;;
2949: esac
1.9 millert 2950: fi;
2951:
1.16 millert 2952: cat >>confdefs.h <<_ACEOF
1.9 millert 2953: #define TRIES_FOR_PASSWORD $passwd_tries
1.16 millert 2954: _ACEOF
1.1 millert 2955:
1.16 millert 2956: echo "$as_me:$LINENO: result: $passwd_tries" >&5
1.9 millert 2957: echo "${ECHO_T}$passwd_tries" >&6
2958:
1.16 millert 2959: echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
1.9 millert 2960: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1 millert 2961:
2962: # Check whether --with-timeout or --without-timeout was given.
2963: if test "${with_timeout+set}" = set; then
2964: withval="$with_timeout"
1.16 millert 2965: case $with_timeout in
1.9 millert 2966: yes) ;;
2967: no) timeout=0
1.1 millert 2968: ;;
1.9 millert 2969: [0-9]*) timeout=$with_timeout
1.1 millert 2970: ;;
1.16 millert 2971: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2972: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2973: { (exit 1); exit 1; }; }
1.1 millert 2974: ;;
2975: esac
1.9 millert 2976: fi;
2977:
1.16 millert 2978: cat >>confdefs.h <<_ACEOF
1.9 millert 2979: #define TIMEOUT $timeout
1.16 millert 2980: _ACEOF
1.1 millert 2981:
1.16 millert 2982: echo "$as_me:$LINENO: result: $timeout" >&5
1.9 millert 2983: echo "${ECHO_T}$timeout" >&6
2984:
1.16 millert 2985: echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
1.9 millert 2986: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1 millert 2987:
2988: # Check whether --with-password-timeout or --without-password-timeout was given.
2989: if test "${with_password_timeout+set}" = set; then
2990: withval="$with_password_timeout"
1.9 millert 2991: case $with_password_timeout in
2992: yes) ;;
2993: no) password_timeout=0
1.1 millert 2994: ;;
1.9 millert 2995: [0-9]*) password_timeout=$with_password_timeout
1.1 millert 2996: ;;
1.16 millert 2997: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2998: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2999: { (exit 1); exit 1; }; }
1.1 millert 3000: ;;
3001: esac
1.9 millert 3002: fi;
3003:
1.16 millert 3004: cat >>confdefs.h <<_ACEOF
1.9 millert 3005: #define PASSWORD_TIMEOUT $password_timeout
1.16 millert 3006: _ACEOF
1.1 millert 3007:
1.16 millert 3008: echo "$as_me:$LINENO: result: $password_timeout" >&5
1.9 millert 3009: echo "${ECHO_T}$password_timeout" >&6
1.1 millert 3010:
1.16 millert 3011: echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
1.9 millert 3012: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1 millert 3013:
3014: # Check whether --with-tty-tickets or --without-tty-tickets was given.
3015: if test "${with_tty_tickets+set}" = set; then
3016: withval="$with_tty_tickets"
1.9 millert 3017: case $with_tty_tickets in
3018: yes) tty_tickets=on
1.1 millert 3019: ;;
1.9 millert 3020: no) tty_tickets=off
1.1 millert 3021: ;;
1.16 millert 3022: *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9 millert 3023: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3024: { (exit 1); exit 1; }; }
1.1 millert 3025: ;;
3026: esac
1.9 millert 3027: fi;
3028: if test "$tty_tickets" = "on"; then
1.23 millert 3029: cat >>confdefs.h <<\_ACEOF
1.9 millert 3030: #define USE_TTY_TICKETS 1
1.16 millert 3031: _ACEOF
1.9 millert 3032:
1.16 millert 3033: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3034: echo "${ECHO_T}yes" >&6
1.1 millert 3035: else
1.16 millert 3036: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3037: echo "${ECHO_T}no" >&6
1.1 millert 3038: fi
3039:
1.16 millert 3040: echo "$as_me:$LINENO: checking whether to include insults" >&5
1.9 millert 3041: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1 millert 3042:
3043: # Check whether --with-insults or --without-insults was given.
3044: if test "${with_insults+set}" = set; then
3045: withval="$with_insults"
1.9 millert 3046: case $with_insults in
3047: yes) insults=on
1.1 millert 3048: with_classic_insults=yes
3049: with_csops_insults=yes
3050: ;;
1.9 millert 3051: no) insults=off
1.1 millert 3052: ;;
1.16 millert 3053: *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9 millert 3054: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3055: { (exit 1); exit 1; }; }
1.1 millert 3056: ;;
3057: esac
1.9 millert 3058: fi;
3059: if test "$insults" = "on"; then
1.23 millert 3060: cat >>confdefs.h <<\_ACEOF
1.9 millert 3061: #define USE_INSULTS 1
1.16 millert 3062: _ACEOF
1.9 millert 3063:
1.16 millert 3064: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3065: echo "${ECHO_T}yes" >&6
1.1 millert 3066: else
1.16 millert 3067: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3068: echo "${ECHO_T}no" >&6
1.1 millert 3069: fi
3070:
1.16 millert 3071:
1.1 millert 3072: # Check whether --with-all-insults or --without-all-insults was given.
3073: if test "${with_all_insults+set}" = set; then
3074: withval="$with_all_insults"
1.9 millert 3075: case $with_all_insults in
1.1 millert 3076: yes) with_classic_insults=yes
3077: with_csops_insults=yes
3078: with_hal_insults=yes
3079: with_goons_insults=yes
3080: ;;
3081: no) ;;
1.16 millert 3082: *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9 millert 3083: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3084: { (exit 1); exit 1; }; }
1.1 millert 3085: ;;
3086: esac
1.9 millert 3087: fi;
1.1 millert 3088:
1.16 millert 3089:
1.1 millert 3090: # Check whether --with-classic-insults or --without-classic-insults was given.
3091: if test "${with_classic_insults+set}" = set; then
3092: withval="$with_classic_insults"
1.9 millert 3093: case $with_classic_insults in
1.23 millert 3094: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3095: #define CLASSIC_INSULTS 1
1.16 millert 3096: _ACEOF
1.1 millert 3097:
3098: ;;
3099: no) ;;
1.16 millert 3100: *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9 millert 3101: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3102: { (exit 1); exit 1; }; }
1.1 millert 3103: ;;
3104: esac
1.9 millert 3105: fi;
1.1 millert 3106:
1.16 millert 3107:
1.1 millert 3108: # Check whether --with-csops-insults or --without-csops-insults was given.
3109: if test "${with_csops_insults+set}" = set; then
3110: withval="$with_csops_insults"
1.9 millert 3111: case $with_csops_insults in
1.23 millert 3112: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3113: #define CSOPS_INSULTS 1
1.16 millert 3114: _ACEOF
1.1 millert 3115:
3116: ;;
3117: no) ;;
1.16 millert 3118: *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9 millert 3119: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3120: { (exit 1); exit 1; }; }
1.1 millert 3121: ;;
3122: esac
1.9 millert 3123: fi;
1.1 millert 3124:
1.16 millert 3125:
1.1 millert 3126: # Check whether --with-hal-insults or --without-hal-insults was given.
3127: if test "${with_hal_insults+set}" = set; then
3128: withval="$with_hal_insults"
1.9 millert 3129: case $with_hal_insults in
1.23 millert 3130: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3131: #define HAL_INSULTS 1
1.16 millert 3132: _ACEOF
1.1 millert 3133:
3134: ;;
3135: no) ;;
1.16 millert 3136: *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9 millert 3137: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3138: { (exit 1); exit 1; }; }
1.1 millert 3139: ;;
3140: esac
1.9 millert 3141: fi;
1.1 millert 3142:
1.16 millert 3143:
1.1 millert 3144: # Check whether --with-goons-insults or --without-goons-insults was given.
3145: if test "${with_goons_insults+set}" = set; then
3146: withval="$with_goons_insults"
1.9 millert 3147: case $with_goons_insults in
1.23 millert 3148: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3149: #define GOONS_INSULTS 1
1.16 millert 3150: _ACEOF
1.1 millert 3151:
3152: ;;
3153: no) ;;
1.16 millert 3154: *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9 millert 3155: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3156: { (exit 1); exit 1; }; }
1.1 millert 3157: ;;
3158: esac
1.9 millert 3159: fi;
1.1 millert 3160:
1.23 millert 3161:
3162: # Check whether --with-ldap or --without-ldap was given.
3163: if test "${with_ldap+set}" = set; then
3164: withval="$with_ldap"
3165: case $with_ldap in
3166: no) with_ldap="";;
3167: *) cat >>confdefs.h <<\_ACEOF
3168: #define HAVE_LDAP 1
3169: _ACEOF
3170:
3171: echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3172: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6
3173: echo "$as_me:$LINENO: result: yes" >&5
3174: echo "${ECHO_T}yes" >&6
3175: ;;
3176: esac
3177: fi;
3178:
3179: # Check whether --with-ldap-conf-file or --without-ldap-conf-file was given.
3180: if test "${with_ldap_conf_file+set}" = set; then
3181: withval="$with_ldap_conf_file"
3182:
3183: cat >>confdefs.h <<_ACEOF
3184: #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3185: _ACEOF
3186:
3187: fi;
3188:
1.25 ! millert 3189: # Check whether --with-ldap-secret-file or --without-ldap-secret-file was given.
! 3190: if test "${with_ldap_secret_file+set}" = set; then
! 3191: withval="$with_ldap_secret_file"
! 3192:
! 3193: cat >>confdefs.h <<_ACEOF
! 3194: #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
! 3195: _ACEOF
! 3196:
! 3197: fi;
! 3198:
1.23 millert 3199:
3200: # Check whether --with-pc-insults or --without-pc-insults was given.
3201: if test "${with_pc_insults+set}" = set; then
3202: withval="$with_pc_insults"
3203: case $with_pc_insults in
3204: yes) cat >>confdefs.h <<\_ACEOF
3205: #define PC_INSULTS 1
3206: _ACEOF
3207:
3208: ;;
3209: no) ;;
3210: *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3211: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3212: { (exit 1); exit 1; }; }
3213: ;;
3214: esac
3215: fi;
3216:
1.9 millert 3217: if test "$insults" = "on"; then
1.16 millert 3218: echo "$as_me:$LINENO: checking which insult sets to include" >&5
1.9 millert 3219: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1 millert 3220: i=""
3221: test "$with_goons_insults" = "yes" && i="goons ${i}"
3222: test "$with_hal_insults" = "yes" && i="hal ${i}"
3223: test "$with_csops_insults" = "yes" && i="csops ${i}"
3224: test "$with_classic_insults" = "yes" && i="classic ${i}"
1.16 millert 3225: echo "$as_me:$LINENO: result: $i" >&5
1.9 millert 3226: echo "${ECHO_T}$i" >&6
1.1 millert 3227: fi
3228:
1.16 millert 3229: echo "$as_me:$LINENO: checking whether to override the user's path" >&5
1.9 millert 3230: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
3231:
1.1 millert 3232: # Check whether --with-secure-path or --without-secure-path was given.
3233: if test "${with_secure_path+set}" = set; then
3234: withval="$with_secure_path"
1.9 millert 3235: case $with_secure_path in
1.23 millert 3236: yes) cat >>confdefs.h <<_ACEOF
1.1 millert 3237: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16 millert 3238: _ACEOF
1.1 millert 3239:
1.16 millert 3240: echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
1.9 millert 3241: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1 millert 3242: ;;
1.16 millert 3243: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3244: echo "${ECHO_T}no" >&6
1.1 millert 3245: ;;
1.16 millert 3246: *) cat >>confdefs.h <<_ACEOF
1.1 millert 3247: #define SECURE_PATH "$with_secure_path"
1.16 millert 3248: _ACEOF
1.1 millert 3249:
1.16 millert 3250: echo "$as_me:$LINENO: result: $with_secure_path" >&5
1.9 millert 3251: echo "${ECHO_T}$with_secure_path" >&6
1.1 millert 3252: ;;
3253: esac
3254: else
1.16 millert 3255: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3256: echo "${ECHO_T}no" >&6
3257: fi;
1.1 millert 3258:
1.16 millert 3259: echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
1.9 millert 3260: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1 millert 3261:
3262: # Check whether --with-interfaces or --without-interfaces was given.
3263: if test "${with_interfaces+set}" = set; then
3264: withval="$with_interfaces"
1.9 millert 3265: case $with_interfaces in
1.16 millert 3266: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3267: echo "${ECHO_T}yes" >&6
1.1 millert 3268: ;;
1.23 millert 3269: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3270: #define STUB_LOAD_INTERFACES 1
1.16 millert 3271: _ACEOF
1.1 millert 3272:
1.16 millert 3273: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3274: echo "${ECHO_T}no" >&6
1.1 millert 3275: ;;
1.16 millert 3276: *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9 millert 3277: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3278: { (exit 1); exit 1; }; }
1.1 millert 3279: ;;
3280: esac
3281: else
1.16 millert 3282: echo "$as_me:$LINENO: result: yes" >&5
3283: echo "${ECHO_T}yes" >&6
3284: fi;
3285:
3286: echo "$as_me:$LINENO: checking whether stow should be used" >&5
3287: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
3288:
3289: # Check whether --with-stow or --without-stow was given.
3290: if test "${with_stow+set}" = set; then
3291: withval="$with_stow"
3292: case $with_stow in
3293: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3294: echo "${ECHO_T}yes" >&6
1.23 millert 3295: cat >>confdefs.h <<\_ACEOF
1.16 millert 3296: #define USE_STOW 1
3297: _ACEOF
3298:
3299: ;;
3300: no) echo "$as_me:$LINENO: result: no" >&5
3301: echo "${ECHO_T}no" >&6
3302: ;;
3303: *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3304: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3305: { (exit 1); exit 1; }; }
3306: ;;
3307: esac
3308: else
3309: echo "$as_me:$LINENO: result: no" >&5
3310: echo "${ECHO_T}no" >&6
1.9 millert 3311: fi;
1.1 millert 3312:
1.16 millert 3313:
3314: echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
1.9 millert 3315: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1 millert 3316: # Check whether --enable-authentication or --disable-authentication was given.
3317: if test "${enable_authentication+set}" = set; then
3318: enableval="$enable_authentication"
3319: case "$enableval" in
1.16 millert 3320: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3321: echo "${ECHO_T}yes" >&6
1.1 millert 3322: ;;
1.16 millert 3323: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3324: echo "${ECHO_T}no" >&6
1.23 millert 3325: cat >>confdefs.h <<\_ACEOF
1.1 millert 3326: #define NO_AUTHENTICATION 1
1.16 millert 3327: _ACEOF
1.1 millert 3328:
3329: ;;
1.16 millert 3330: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3331: echo "${ECHO_T}no" >&6
1.17 millert 3332: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3333: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1 millert 3334: ;;
3335: esac
3336:
3337: else
1.16 millert 3338: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3339: echo "${ECHO_T}yes" >&6
3340: fi;
1.1 millert 3341:
1.16 millert 3342: echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
1.12 millert 3343: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
3344: # Check whether --enable-root-mailer or --disable-root-mailer was given.
3345: if test "${enable_root_mailer+set}" = set; then
3346: enableval="$enable_root_mailer"
3347: case "$enableval" in
1.16 millert 3348: yes) echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3349: echo "${ECHO_T}no" >&6
3350: ;;
1.16 millert 3351: no) echo "$as_me:$LINENO: result: yes" >&5
1.12 millert 3352: echo "${ECHO_T}yes" >&6
1.23 millert 3353: cat >>confdefs.h <<\_ACEOF
1.12 millert 3354: #define NO_ROOT_MAILER 1
1.16 millert 3355: _ACEOF
1.12 millert 3356:
3357: ;;
1.16 millert 3358: *) echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3359: echo "${ECHO_T}no" >&6
1.17 millert 3360: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3361: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12 millert 3362: ;;
3363: esac
3364:
3365: else
1.16 millert 3366: echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3367: echo "${ECHO_T}no" >&6
3368: fi;
3369:
1.13 millert 3370: # Check whether --enable-setreuid or --disable-setreuid was given.
3371: if test "${enable_setreuid+set}" = set; then
3372: enableval="$enable_setreuid"
3373: case "$enableval" in
1.16 millert 3374: no) SKIP_SETREUID=yes
3375: ;;
3376: *) ;;
3377: esac
3378:
3379: fi;
3380:
3381: # Check whether --enable-setresuid or --disable-setresuid was given.
3382: if test "${enable_setresuid+set}" = set; then
3383: enableval="$enable_setresuid"
3384: case "$enableval" in
3385: no) SKIP_SETRESUID=yes
1.13 millert 3386: ;;
3387: *) ;;
3388: esac
3389:
3390: fi;
3391:
1.16 millert 3392: echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
1.9 millert 3393: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1 millert 3394: # Check whether --enable-shadow or --disable-shadow was given.
3395: if test "${enable_shadow+set}" = set; then
3396: enableval="$enable_shadow"
3397: case "$enableval" in
1.16 millert 3398: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3399: echo "${ECHO_T}no" >&6
1.1 millert 3400: ;;
1.16 millert 3401: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3402: echo "${ECHO_T}yes" >&6
1.1 millert 3403: CHECKSHADOW="false"
3404: ;;
1.16 millert 3405: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3406: echo "${ECHO_T}no" >&6
1.17 millert 3407: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3408: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1 millert 3409: ;;
3410: esac
3411:
3412: else
1.16 millert 3413: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3414: echo "${ECHO_T}no" >&6
3415: fi;
1.1 millert 3416:
1.16 millert 3417: echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
1.9 millert 3418: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1 millert 3419: # Check whether --enable-root-sudo or --disable-root-sudo was given.
3420: if test "${enable_root_sudo+set}" = set; then
3421: enableval="$enable_root_sudo"
1.9 millert 3422: case "$enableval" in
1.16 millert 3423: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3424: echo "${ECHO_T}yes" >&6
1.1 millert 3425: ;;
1.23 millert 3426: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3427: #define NO_ROOT_SUDO 1
1.16 millert 3428: _ACEOF
1.1 millert 3429:
1.16 millert 3430: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3431: echo "${ECHO_T}no" >&6
1.23 millert 3432: root_sudo=off
1.1 millert 3433: ;;
1.16 millert 3434: *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9 millert 3435: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3436: { (exit 1); exit 1; }; }
1.1 millert 3437: ;;
3438: esac
3439:
3440: else
1.16 millert 3441: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3442: echo "${ECHO_T}yes" >&6
3443: fi;
1.1 millert 3444:
1.16 millert 3445: echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
1.9 millert 3446: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1 millert 3447: # Check whether --enable-log-host or --disable-log-host was given.
3448: if test "${enable_log_host+set}" = set; then
3449: enableval="$enable_log_host"
3450: case "$enableval" in
1.16 millert 3451: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3452: echo "${ECHO_T}yes" >&6
1.23 millert 3453: cat >>confdefs.h <<\_ACEOF
1.1 millert 3454: #define HOST_IN_LOG 1
1.16 millert 3455: _ACEOF
1.1 millert 3456:
3457: ;;
1.16 millert 3458: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3459: echo "${ECHO_T}no" >&6
1.1 millert 3460: ;;
1.16 millert 3461: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3462: echo "${ECHO_T}no" >&6
1.17 millert 3463: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3464: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1 millert 3465: ;;
3466: esac
3467:
3468: else
1.16 millert 3469: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3470: echo "${ECHO_T}no" >&6
3471: fi;
1.1 millert 3472:
1.16 millert 3473: echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
1.9 millert 3474: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1 millert 3475: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
3476: if test "${enable_noargs_shell+set}" = set; then
3477: enableval="$enable_noargs_shell"
3478: case "$enableval" in
1.16 millert 3479: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3480: echo "${ECHO_T}yes" >&6
1.23 millert 3481: cat >>confdefs.h <<\_ACEOF
1.1 millert 3482: #define SHELL_IF_NO_ARGS 1
1.16 millert 3483: _ACEOF
1.1 millert 3484:
3485: ;;
1.16 millert 3486: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3487: echo "${ECHO_T}no" >&6
1.1 millert 3488: ;;
1.16 millert 3489: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3490: echo "${ECHO_T}no" >&6
1.17 millert 3491: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3492: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1 millert 3493: ;;
3494: esac
3495:
3496: else
1.16 millert 3497: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3498: echo "${ECHO_T}no" >&6
3499: fi;
1.1 millert 3500:
1.16 millert 3501: echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
1.9 millert 3502: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1 millert 3503: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
3504: if test "${enable_shell_sets_home+set}" = set; then
3505: enableval="$enable_shell_sets_home"
3506: case "$enableval" in
1.16 millert 3507: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3508: echo "${ECHO_T}yes" >&6
1.23 millert 3509: cat >>confdefs.h <<\_ACEOF
1.1 millert 3510: #define SHELL_SETS_HOME 1
1.16 millert 3511: _ACEOF
1.1 millert 3512:
3513: ;;
1.16 millert 3514: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3515: echo "${ECHO_T}no" >&6
1.1 millert 3516: ;;
1.16 millert 3517: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3518: echo "${ECHO_T}no" >&6
1.17 millert 3519: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3520: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1 millert 3521: ;;
3522: esac
3523:
3524: else
1.16 millert 3525: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3526: echo "${ECHO_T}no" >&6
3527: fi;
1.1 millert 3528:
1.16 millert 3529: echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
1.9 millert 3530: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1 millert 3531: # Check whether --enable-path_info or --disable-path_info was given.
3532: if test "${enable_path_info+set}" = set; then
3533: enableval="$enable_path_info"
3534: case "$enableval" in
1.16 millert 3535: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3536: echo "${ECHO_T}no" >&6
1.1 millert 3537: ;;
1.16 millert 3538: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3539: echo "${ECHO_T}yes" >&6
1.23 millert 3540: cat >>confdefs.h <<\_ACEOF
1.1 millert 3541: #define DONT_LEAK_PATH_INFO 1
1.16 millert 3542: _ACEOF
1.1 millert 3543:
1.25 ! millert 3544: path_info=off
1.1 millert 3545: ;;
1.16 millert 3546: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3547: echo "${ECHO_T}no" >&6
1.17 millert 3548: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3549: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1 millert 3550: ;;
3551: esac
3552:
3553: else
1.16 millert 3554: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3555: echo "${ECHO_T}no" >&6
3556: fi;
1.1 millert 3557:
3558: # Extract the first word of "egrep", so it can be a program name with args.
3559: set dummy egrep; ac_word=$2
1.16 millert 3560: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3561: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3562: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3563: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3564: else
3565: if test -n "$EGREPPROG"; then
3566: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3567: else
1.16 millert 3568: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569: for as_dir in $PATH
3570: do
3571: IFS=$as_save_IFS
3572: test -z "$as_dir" && as_dir=.
3573: for ac_exec_ext in '' $ac_executable_extensions; do
3574: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3575: ac_cv_prog_EGREPPROG="egrep"
3576: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3577: break 2
3578: fi
3579: done
1.9 millert 3580: done
3581:
1.1 millert 3582: fi
3583: fi
1.9 millert 3584: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1 millert 3585: if test -n "$EGREPPROG"; then
1.16 millert 3586: echo "$as_me:$LINENO: result: $EGREPPROG" >&5
1.9 millert 3587: echo "${ECHO_T}$EGREPPROG" >&6
1.1 millert 3588: else
1.16 millert 3589: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3590: echo "${ECHO_T}no" >&6
1.1 millert 3591: fi
3592:
3593: if test -z "$EGREPPROG"; then
1.17 millert 3594: { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3595: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3596: { (exit 1); exit 1; }; }
1.1 millert 3597: fi
3598:
1.9 millert 3599: if test "$with_devel" != "yes"; then
3600: ac_cv_prog_cc_g=no
3601: fi
3602:
3603: ac_ext=c
3604: ac_cpp='$CPP $CPPFLAGS'
3605: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608: if test -n "$ac_tool_prefix"; then
3609: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3610: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.16 millert 3611: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3612: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613: if test "${ac_cv_prog_CC+set}" = set; then
3614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3615: else
3616: if test -n "$CC"; then
3617: ac_cv_prog_CC="$CC" # Let the user override the test.
3618: else
1.16 millert 3619: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620: for as_dir in $PATH
3621: do
3622: IFS=$as_save_IFS
3623: test -z "$as_dir" && as_dir=.
3624: for ac_exec_ext in '' $ac_executable_extensions; do
3625: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3627: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628: break 2
3629: fi
3630: done
1.9 millert 3631: done
3632:
1.1 millert 3633: fi
3634: fi
1.9 millert 3635: CC=$ac_cv_prog_CC
1.1 millert 3636: if test -n "$CC"; then
1.16 millert 3637: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3638: echo "${ECHO_T}$CC" >&6
1.1 millert 3639: else
1.16 millert 3640: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3641: echo "${ECHO_T}no" >&6
3642: fi
3643:
3644: fi
3645: if test -z "$ac_cv_prog_CC"; then
3646: ac_ct_CC=$CC
3647: # Extract the first word of "gcc", so it can be a program name with args.
3648: set dummy gcc; ac_word=$2
1.16 millert 3649: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3650: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3652: echo $ECHO_N "(cached) $ECHO_C" >&6
3653: else
3654: if test -n "$ac_ct_CC"; then
3655: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3656: else
1.16 millert 3657: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658: for as_dir in $PATH
3659: do
3660: IFS=$as_save_IFS
3661: test -z "$as_dir" && as_dir=.
3662: for ac_exec_ext in '' $ac_executable_extensions; do
3663: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664: ac_cv_prog_ac_ct_CC="gcc"
3665: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666: break 2
3667: fi
3668: done
1.9 millert 3669: done
3670:
3671: fi
3672: fi
3673: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3674: if test -n "$ac_ct_CC"; then
1.16 millert 3675: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3676: echo "${ECHO_T}$ac_ct_CC" >&6
3677: else
1.16 millert 3678: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3679: echo "${ECHO_T}no" >&6
3680: fi
3681:
3682: CC=$ac_ct_CC
3683: else
3684: CC="$ac_cv_prog_CC"
1.1 millert 3685: fi
3686:
3687: if test -z "$CC"; then
1.9 millert 3688: if test -n "$ac_tool_prefix"; then
3689: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3690: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.16 millert 3691: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3692: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693: if test "${ac_cv_prog_CC+set}" = set; then
3694: echo $ECHO_N "(cached) $ECHO_C" >&6
3695: else
3696: if test -n "$CC"; then
3697: ac_cv_prog_CC="$CC" # Let the user override the test.
3698: else
1.16 millert 3699: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700: for as_dir in $PATH
3701: do
3702: IFS=$as_save_IFS
3703: test -z "$as_dir" && as_dir=.
3704: for ac_exec_ext in '' $ac_executable_extensions; do
3705: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706: ac_cv_prog_CC="${ac_tool_prefix}cc"
3707: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708: break 2
3709: fi
3710: done
1.9 millert 3711: done
3712:
3713: fi
3714: fi
3715: CC=$ac_cv_prog_CC
3716: if test -n "$CC"; then
1.16 millert 3717: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3718: echo "${ECHO_T}$CC" >&6
3719: else
1.16 millert 3720: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3721: echo "${ECHO_T}no" >&6
3722: fi
3723:
3724: fi
3725: if test -z "$ac_cv_prog_CC"; then
3726: ac_ct_CC=$CC
1.1 millert 3727: # Extract the first word of "cc", so it can be a program name with args.
3728: set dummy cc; ac_word=$2
1.16 millert 3729: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3730: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3732: echo $ECHO_N "(cached) $ECHO_C" >&6
3733: else
3734: if test -n "$ac_ct_CC"; then
3735: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736: else
1.16 millert 3737: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738: for as_dir in $PATH
3739: do
3740: IFS=$as_save_IFS
3741: test -z "$as_dir" && as_dir=.
3742: for ac_exec_ext in '' $ac_executable_extensions; do
3743: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744: ac_cv_prog_ac_ct_CC="cc"
3745: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746: break 2
3747: fi
3748: done
1.9 millert 3749: done
3750:
3751: fi
3752: fi
3753: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3754: if test -n "$ac_ct_CC"; then
1.16 millert 3755: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3756: echo "${ECHO_T}$ac_ct_CC" >&6
3757: else
1.16 millert 3758: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3759: echo "${ECHO_T}no" >&6
3760: fi
3761:
3762: CC=$ac_ct_CC
3763: else
3764: CC="$ac_cv_prog_CC"
3765: fi
3766:
3767: fi
3768: if test -z "$CC"; then
3769: # Extract the first word of "cc", so it can be a program name with args.
3770: set dummy cc; ac_word=$2
1.16 millert 3771: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3772: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773: if test "${ac_cv_prog_CC+set}" = set; then
3774: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3775: else
3776: if test -n "$CC"; then
3777: ac_cv_prog_CC="$CC" # Let the user override the test.
3778: else
3779: ac_prog_rejected=no
1.16 millert 3780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781: for as_dir in $PATH
3782: do
3783: IFS=$as_save_IFS
3784: test -z "$as_dir" && as_dir=.
3785: for ac_exec_ext in '' $ac_executable_extensions; do
3786: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3788: ac_prog_rejected=yes
3789: continue
3790: fi
3791: ac_cv_prog_CC="cc"
3792: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793: break 2
3794: fi
3795: done
1.9 millert 3796: done
3797:
1.1 millert 3798: if test $ac_prog_rejected = yes; then
3799: # We found a bogon in the path, so make sure we never use it.
3800: set dummy $ac_cv_prog_CC
3801: shift
1.9 millert 3802: if test $# != 0; then
1.1 millert 3803: # We chose a different compiler from the bogus one.
3804: # However, it has the same basename, so the bogon will be chosen
3805: # first if we set CC to just the basename; use the full file name.
3806: shift
1.16 millert 3807: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 millert 3808: fi
3809: fi
3810: fi
3811: fi
1.9 millert 3812: CC=$ac_cv_prog_CC
1.1 millert 3813: if test -n "$CC"; then
1.16 millert 3814: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3815: echo "${ECHO_T}$CC" >&6
3816: else
1.16 millert 3817: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3818: echo "${ECHO_T}no" >&6
3819: fi
3820:
3821: fi
3822: if test -z "$CC"; then
3823: if test -n "$ac_tool_prefix"; then
3824: for ac_prog in cl
3825: do
3826: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.16 millert 3828: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3829: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830: if test "${ac_cv_prog_CC+set}" = set; then
3831: echo $ECHO_N "(cached) $ECHO_C" >&6
3832: else
3833: if test -n "$CC"; then
3834: ac_cv_prog_CC="$CC" # Let the user override the test.
3835: else
1.16 millert 3836: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837: for as_dir in $PATH
3838: do
3839: IFS=$as_save_IFS
3840: test -z "$as_dir" && as_dir=.
3841: for ac_exec_ext in '' $ac_executable_extensions; do
3842: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3844: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845: break 2
3846: fi
3847: done
1.9 millert 3848: done
3849:
3850: fi
3851: fi
3852: CC=$ac_cv_prog_CC
3853: if test -n "$CC"; then
1.16 millert 3854: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3855: echo "${ECHO_T}$CC" >&6
3856: else
1.16 millert 3857: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3858: echo "${ECHO_T}no" >&6
3859: fi
3860:
3861: test -n "$CC" && break
3862: done
3863: fi
3864: if test -z "$CC"; then
3865: ac_ct_CC=$CC
3866: for ac_prog in cl
3867: do
3868: # Extract the first word of "$ac_prog", so it can be a program name with args.
3869: set dummy $ac_prog; ac_word=$2
1.16 millert 3870: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3871: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3873: echo $ECHO_N "(cached) $ECHO_C" >&6
3874: else
3875: if test -n "$ac_ct_CC"; then
3876: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3877: else
1.16 millert 3878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879: for as_dir in $PATH
3880: do
3881: IFS=$as_save_IFS
3882: test -z "$as_dir" && as_dir=.
3883: for ac_exec_ext in '' $ac_executable_extensions; do
3884: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885: ac_cv_prog_ac_ct_CC="$ac_prog"
3886: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887: break 2
3888: fi
3889: done
1.9 millert 3890: done
3891:
3892: fi
3893: fi
3894: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895: if test -n "$ac_ct_CC"; then
1.16 millert 3896: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3897: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 millert 3898: else
1.16 millert 3899: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3900: echo "${ECHO_T}no" >&6
3901: fi
3902:
3903: test -n "$ac_ct_CC" && break
3904: done
3905:
3906: CC=$ac_ct_CC
1.1 millert 3907: fi
3908:
3909: fi
3910:
1.16 millert 3911:
3912: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3913: See \`config.log' for more details." >&5
3914: echo "$as_me: error: no acceptable C compiler found in \$PATH
3915: See \`config.log' for more details." >&2;}
1.9 millert 3916: { (exit 1); exit 1; }; }
3917:
3918: # Provide some information about the compiler.
1.16 millert 3919: echo "$as_me:$LINENO:" \
1.9 millert 3920: "checking for C compiler version" >&5
3921: ac_compiler=`set X $ac_compile; echo $2`
1.16 millert 3922: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.9 millert 3923: (eval $ac_compiler --version </dev/null >&5) 2>&5
3924: ac_status=$?
1.16 millert 3925: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3926: (exit $ac_status); }
1.16 millert 3927: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.9 millert 3928: (eval $ac_compiler -v </dev/null >&5) 2>&5
3929: ac_status=$?
1.16 millert 3930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3931: (exit $ac_status); }
1.16 millert 3932: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.9 millert 3933: (eval $ac_compiler -V </dev/null >&5) 2>&5
3934: ac_status=$?
1.16 millert 3935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3936: (exit $ac_status); }
3937:
3938: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 3939: /* confdefs.h. */
3940: _ACEOF
3941: cat confdefs.h >>conftest.$ac_ext
3942: cat >>conftest.$ac_ext <<_ACEOF
3943: /* end confdefs.h. */
1.9 millert 3944:
3945: int
3946: main ()
3947: {
1.1 millert 3948:
1.9 millert 3949: ;
3950: return 0;
3951: }
3952: _ACEOF
3953: ac_clean_files_save=$ac_clean_files
1.16 millert 3954: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9 millert 3955: # Try to create an executable without -o first, disregard a.out.
3956: # It will help us diagnose broken compilers, and finding out an intuition
3957: # of exeext.
1.25 ! millert 3958: echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
! 3959: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1.9 millert 3960: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.16 millert 3961: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1.9 millert 3962: (eval $ac_link_default) 2>&5
3963: ac_status=$?
1.16 millert 3964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3965: (exit $ac_status); }; then
3966: # Find the output, starting from the most likely. This scheme is
3967: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3968: # resort.
1.16 millert 3969:
3970: # Be careful to initialize this variable, since it used to be cached.
3971: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3972: ac_cv_exeext=
3973: # b.out is created by i960 compilers.
3974: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3975: do
3976: test -f "$ac_file" || continue
1.9 millert 3977: case $ac_file in
1.16 millert 3978: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.25 ! millert 3979: ;;
1.16 millert 3980: conftest.$ac_ext )
1.25 ! millert 3981: # This is the source file.
! 3982: ;;
1.16 millert 3983: [ab].out )
1.25 ! millert 3984: # We found the default executable, but exeext='' is most
! 3985: # certainly right.
! 3986: break;;
1.16 millert 3987: *.* )
1.25 ! millert 3988: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
! 3989: # FIXME: I believe we export ac_cv_exeext for Libtool,
! 3990: # but it would be cool to find out if it's true. Does anybody
! 3991: # maintain Libtool? --akim.
! 3992: export ac_cv_exeext
! 3993: break;;
1.16 millert 3994: * )
1.25 ! millert 3995: break;;
1.9 millert 3996: esac
3997: done
3998: else
3999: echo "$as_me: failed program was:" >&5
1.16 millert 4000: sed 's/^/| /' conftest.$ac_ext >&5
4001:
4002: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4003: See \`config.log' for more details." >&5
4004: echo "$as_me: error: C compiler cannot create executables
4005: See \`config.log' for more details." >&2;}
1.9 millert 4006: { (exit 77); exit 77; }; }
4007: fi
4008:
4009: ac_exeext=$ac_cv_exeext
1.16 millert 4010: echo "$as_me:$LINENO: result: $ac_file" >&5
1.9 millert 4011: echo "${ECHO_T}$ac_file" >&6
4012:
4013: # Check the compiler produces executables we can run. If not, either
4014: # the compiler is broken, or we cross compile.
1.16 millert 4015: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.9 millert 4016: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4017: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4018: # If not cross compiling, check that we can run a simple program.
4019: if test "$cross_compiling" != yes; then
4020: if { ac_try='./$ac_file'
1.16 millert 4021: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4022: (eval $ac_try) 2>&5
4023: ac_status=$?
1.16 millert 4024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4025: (exit $ac_status); }; }; then
4026: cross_compiling=no
1.1 millert 4027: else
1.9 millert 4028: if test "$cross_compiling" = maybe; then
4029: cross_compiling=yes
4030: else
1.16 millert 4031: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4032: If you meant to cross compile, use \`--host'.
4033: See \`config.log' for more details." >&5
1.9 millert 4034: echo "$as_me: error: cannot run C compiled programs.
1.16 millert 4035: If you meant to cross compile, use \`--host'.
4036: See \`config.log' for more details." >&2;}
1.9 millert 4037: { (exit 1); exit 1; }; }
4038: fi
1.1 millert 4039: fi
1.9 millert 4040: fi
1.16 millert 4041: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 4042: echo "${ECHO_T}yes" >&6
4043:
1.16 millert 4044: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9 millert 4045: ac_clean_files=$ac_clean_files_save
4046: # Check the compiler produces executables we can run. If not, either
4047: # the compiler is broken, or we cross compile.
1.16 millert 4048: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.9 millert 4049: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.16 millert 4050: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.9 millert 4051: echo "${ECHO_T}$cross_compiling" >&6
4052:
1.16 millert 4053: echo "$as_me:$LINENO: checking for suffix of executables" >&5
4054: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4055: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 4056: (eval $ac_link) 2>&5
4057: ac_status=$?
1.16 millert 4058: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4059: (exit $ac_status); }; then
4060: # If both `conftest.exe' and `conftest' are `present' (well, observable)
4061: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4062: # work properly (i.e., refer to `conftest.exe'), while it won't with
4063: # `rm'.
1.16 millert 4064: for ac_file in conftest.exe conftest conftest.*; do
4065: test -f "$ac_file" || continue
1.9 millert 4066: case $ac_file in
1.16 millert 4067: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.9 millert 4068: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 ! millert 4069: export ac_cv_exeext
! 4070: break;;
1.9 millert 4071: * ) break;;
4072: esac
4073: done
1.1 millert 4074: else
1.16 millert 4075: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4076: See \`config.log' for more details." >&5
4077: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4078: See \`config.log' for more details." >&2;}
1.9 millert 4079: { (exit 1); exit 1; }; }
1.1 millert 4080: fi
4081:
1.9 millert 4082: rm -f conftest$ac_cv_exeext
1.16 millert 4083: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.9 millert 4084: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 millert 4085:
1.9 millert 4086: rm -f conftest.$ac_ext
4087: EXEEXT=$ac_cv_exeext
4088: ac_exeext=$EXEEXT
1.16 millert 4089: echo "$as_me:$LINENO: checking for suffix of object files" >&5
4090: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1.9 millert 4091: if test "${ac_cv_objext+set}" = set; then
4092: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4093: else
1.9 millert 4094: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4095: /* confdefs.h. */
4096: _ACEOF
4097: cat confdefs.h >>conftest.$ac_ext
4098: cat >>conftest.$ac_ext <<_ACEOF
4099: /* end confdefs.h. */
1.9 millert 4100:
4101: int
4102: main ()
4103: {
4104:
4105: ;
4106: return 0;
4107: }
4108: _ACEOF
4109: rm -f conftest.o conftest.obj
1.16 millert 4110: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4111: (eval $ac_compile) 2>&5
4112: ac_status=$?
1.16 millert 4113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4114: (exit $ac_status); }; then
4115: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4116: case $ac_file in
1.16 millert 4117: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.9 millert 4118: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4119: break;;
4120: esac
4121: done
1.1 millert 4122: else
1.9 millert 4123: echo "$as_me: failed program was:" >&5
1.16 millert 4124: sed 's/^/| /' conftest.$ac_ext >&5
4125:
4126: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4127: See \`config.log' for more details." >&5
4128: echo "$as_me: error: cannot compute suffix of object files: cannot compile
4129: See \`config.log' for more details." >&2;}
1.9 millert 4130: { (exit 1); exit 1; }; }
1.1 millert 4131: fi
1.9 millert 4132:
4133: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1 millert 4134: fi
1.16 millert 4135: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.9 millert 4136: echo "${ECHO_T}$ac_cv_objext" >&6
4137: OBJEXT=$ac_cv_objext
4138: ac_objext=$OBJEXT
1.16 millert 4139: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.9 millert 4140: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4141: if test "${ac_cv_c_compiler_gnu+set}" = set; then
4142: echo $ECHO_N "(cached) $ECHO_C" >&6
4143: else
4144: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4145: /* confdefs.h. */
4146: _ACEOF
4147: cat confdefs.h >>conftest.$ac_ext
4148: cat >>conftest.$ac_ext <<_ACEOF
4149: /* end confdefs.h. */
1.1 millert 4150:
1.9 millert 4151: int
4152: main ()
4153: {
4154: #ifndef __GNUC__
4155: choke me
4156: #endif
1.1 millert 4157:
1.9 millert 4158: ;
4159: return 0;
4160: }
4161: _ACEOF
4162: rm -f conftest.$ac_objext
1.16 millert 4163: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 4164: (eval $ac_compile) 2>conftest.er1
1.9 millert 4165: ac_status=$?
1.25 ! millert 4166: grep -v '^ *+' conftest.er1 >conftest.err
! 4167: rm -f conftest.er1
! 4168: cat conftest.err >&5
1.16 millert 4169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4170: (exit $ac_status); } &&
1.25 ! millert 4171: { ac_try='test -z "$ac_c_werror_flag"
! 4172: || test ! -s conftest.err'
! 4173: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4174: (eval $ac_try) 2>&5
! 4175: ac_status=$?
! 4176: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4177: (exit $ac_status); }; } &&
! 4178: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4179: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4180: (eval $ac_try) 2>&5
4181: ac_status=$?
1.16 millert 4182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4183: (exit $ac_status); }; }; then
4184: ac_compiler_gnu=yes
4185: else
4186: echo "$as_me: failed program was:" >&5
1.16 millert 4187: sed 's/^/| /' conftest.$ac_ext >&5
4188:
1.9 millert 4189: ac_compiler_gnu=no
4190: fi
1.25 ! millert 4191: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4192: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4193:
4194: fi
1.16 millert 4195: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.9 millert 4196: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4197: GCC=`test $ac_compiler_gnu = yes && echo yes`
4198: ac_test_CFLAGS=${CFLAGS+set}
4199: ac_save_CFLAGS=$CFLAGS
4200: CFLAGS="-g"
1.16 millert 4201: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.9 millert 4202: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4203: if test "${ac_cv_prog_cc_g+set}" = set; then
4204: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4205: else
1.9 millert 4206: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4207: /* confdefs.h. */
4208: _ACEOF
4209: cat confdefs.h >>conftest.$ac_ext
4210: cat >>conftest.$ac_ext <<_ACEOF
4211: /* end confdefs.h. */
1.9 millert 4212:
4213: int
4214: main ()
4215: {
4216:
4217: ;
4218: return 0;
4219: }
4220: _ACEOF
4221: rm -f conftest.$ac_objext
1.16 millert 4222: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 4223: (eval $ac_compile) 2>conftest.er1
1.9 millert 4224: ac_status=$?
1.25 ! millert 4225: grep -v '^ *+' conftest.er1 >conftest.err
! 4226: rm -f conftest.er1
! 4227: cat conftest.err >&5
1.16 millert 4228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4229: (exit $ac_status); } &&
1.25 ! millert 4230: { ac_try='test -z "$ac_c_werror_flag"
! 4231: || test ! -s conftest.err'
! 4232: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4233: (eval $ac_try) 2>&5
! 4234: ac_status=$?
! 4235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4236: (exit $ac_status); }; } &&
! 4237: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4238: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4239: (eval $ac_try) 2>&5
4240: ac_status=$?
1.16 millert 4241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4242: (exit $ac_status); }; }; then
1.1 millert 4243: ac_cv_prog_cc_g=yes
4244: else
1.9 millert 4245: echo "$as_me: failed program was:" >&5
1.16 millert 4246: sed 's/^/| /' conftest.$ac_ext >&5
4247:
1.9 millert 4248: ac_cv_prog_cc_g=no
4249: fi
1.25 ! millert 4250: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4251: fi
1.16 millert 4252: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.9 millert 4253: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4254: if test "$ac_test_CFLAGS" = set; then
4255: CFLAGS=$ac_save_CFLAGS
4256: elif test $ac_cv_prog_cc_g = yes; then
4257: if test "$GCC" = yes; then
4258: CFLAGS="-g -O2"
4259: else
4260: CFLAGS="-g"
4261: fi
4262: else
4263: if test "$GCC" = yes; then
4264: CFLAGS="-O2"
4265: else
4266: CFLAGS=
4267: fi
4268: fi
1.16 millert 4269: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4270: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4271: if test "${ac_cv_prog_cc_stdc+set}" = set; then
4272: echo $ECHO_N "(cached) $ECHO_C" >&6
4273: else
4274: ac_cv_prog_cc_stdc=no
4275: ac_save_CC=$CC
1.9 millert 4276: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4277: /* confdefs.h. */
1.9 millert 4278: _ACEOF
1.16 millert 4279: cat confdefs.h >>conftest.$ac_ext
4280: cat >>conftest.$ac_ext <<_ACEOF
4281: /* end confdefs.h. */
4282: #include <stdarg.h>
4283: #include <stdio.h>
4284: #include <sys/types.h>
4285: #include <sys/stat.h>
4286: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4287: struct buf { int x; };
4288: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4289: static char *e (p, i)
4290: char **p;
4291: int i;
1.9 millert 4292: {
1.16 millert 4293: return p[i];
1.9 millert 4294: }
1.16 millert 4295: static char *f (char * (*g) (char **, int), char **p, ...)
4296: {
4297: char *s;
4298: va_list v;
4299: va_start (v,p);
4300: s = g (p, va_arg (v,int));
4301: va_end (v);
4302: return s;
4303: }
1.25 ! millert 4304:
! 4305: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
! 4306: function prototypes and stuff, but not '\xHH' hex character constants.
! 4307: These don't provoke an error unfortunately, instead are silently treated
! 4308: as 'x'. The following induces an error, until -std1 is added to get
! 4309: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
! 4310: array size at least. It's necessary to write '\x00'==0 to get something
! 4311: that's true only with -std1. */
! 4312: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
! 4313:
1.16 millert 4314: int test (int i, double x);
4315: struct s1 {int (*f) (int a);};
4316: struct s2 {int (*f) (double a);};
4317: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4318: int argc;
4319: char **argv;
4320: int
4321: main ()
4322: {
4323: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4324: ;
4325: return 0;
4326: }
4327: _ACEOF
4328: # Don't try gcc -ansi; that turns off useful extensions and
4329: # breaks some systems' header files.
4330: # AIX -qlanglvl=ansi
4331: # Ultrix and OSF/1 -std1
4332: # HP-UX 10.20 and later -Ae
4333: # HP-UX older versions -Aa -D_HPUX_SOURCE
4334: # SVR4 -Xc -D__EXTENSIONS__
4335: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4336: do
4337: CC="$ac_save_CC $ac_arg"
4338: rm -f conftest.$ac_objext
4339: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 4340: (eval $ac_compile) 2>conftest.er1
1.16 millert 4341: ac_status=$?
1.25 ! millert 4342: grep -v '^ *+' conftest.er1 >conftest.err
! 4343: rm -f conftest.er1
! 4344: cat conftest.err >&5
1.16 millert 4345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346: (exit $ac_status); } &&
1.25 ! millert 4347: { ac_try='test -z "$ac_c_werror_flag"
! 4348: || test ! -s conftest.err'
! 4349: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4350: (eval $ac_try) 2>&5
! 4351: ac_status=$?
! 4352: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4353: (exit $ac_status); }; } &&
! 4354: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4356: (eval $ac_try) 2>&5
4357: ac_status=$?
4358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359: (exit $ac_status); }; }; then
4360: ac_cv_prog_cc_stdc=$ac_arg
4361: break
4362: else
4363: echo "$as_me: failed program was:" >&5
4364: sed 's/^/| /' conftest.$ac_ext >&5
4365:
4366: fi
1.25 ! millert 4367: rm -f conftest.err conftest.$ac_objext
1.16 millert 4368: done
4369: rm -f conftest.$ac_ext conftest.$ac_objext
4370: CC=$ac_save_CC
4371:
4372: fi
4373:
4374: case "x$ac_cv_prog_cc_stdc" in
4375: x|xno)
4376: echo "$as_me:$LINENO: result: none needed" >&5
4377: echo "${ECHO_T}none needed" >&6 ;;
4378: *)
4379: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4380: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4381: CC="$CC $ac_cv_prog_cc_stdc" ;;
4382: esac
4383:
4384: # Some people use a C++ compiler to compile C. Since we use `exit',
4385: # in C++ we need to declare it. In case someone uses the same compiler
4386: # for both compiling C and C++ we need to have the C++ compiler decide
4387: # the declaration of exit, since it's the most demanding environment.
4388: cat >conftest.$ac_ext <<_ACEOF
4389: #ifndef __cplusplus
4390: choke me
4391: #endif
1.9 millert 4392: _ACEOF
4393: rm -f conftest.$ac_objext
1.16 millert 4394: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 4395: (eval $ac_compile) 2>conftest.er1
1.9 millert 4396: ac_status=$?
1.25 ! millert 4397: grep -v '^ *+' conftest.er1 >conftest.err
! 4398: rm -f conftest.er1
! 4399: cat conftest.err >&5
1.16 millert 4400: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4401: (exit $ac_status); } &&
1.25 ! millert 4402: { ac_try='test -z "$ac_c_werror_flag"
! 4403: || test ! -s conftest.err'
! 4404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4405: (eval $ac_try) 2>&5
! 4406: ac_status=$?
! 4407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4408: (exit $ac_status); }; } &&
! 4409: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4410: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4411: (eval $ac_try) 2>&5
4412: ac_status=$?
1.16 millert 4413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414: (exit $ac_status); }; }; then
4415: for ac_declaration in \
1.25 ! millert 4416: '' \
1.16 millert 4417: 'extern "C" void std::exit (int) throw (); using std::exit;' \
4418: 'extern "C" void std::exit (int); using std::exit;' \
4419: 'extern "C" void exit (int) throw ();' \
4420: 'extern "C" void exit (int);' \
4421: 'void exit (int);'
4422: do
4423: cat >conftest.$ac_ext <<_ACEOF
4424: /* confdefs.h. */
4425: _ACEOF
4426: cat confdefs.h >>conftest.$ac_ext
4427: cat >>conftest.$ac_ext <<_ACEOF
4428: /* end confdefs.h. */
1.25 ! millert 4429: $ac_declaration
1.16 millert 4430: #include <stdlib.h>
4431: int
4432: main ()
4433: {
4434: exit (42);
4435: ;
4436: return 0;
4437: }
4438: _ACEOF
4439: rm -f conftest.$ac_objext
4440: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 4441: (eval $ac_compile) 2>conftest.er1
1.16 millert 4442: ac_status=$?
1.25 ! millert 4443: grep -v '^ *+' conftest.er1 >conftest.err
! 4444: rm -f conftest.er1
! 4445: cat conftest.err >&5
1.16 millert 4446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447: (exit $ac_status); } &&
1.25 ! millert 4448: { ac_try='test -z "$ac_c_werror_flag"
! 4449: || test ! -s conftest.err'
! 4450: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4451: (eval $ac_try) 2>&5
! 4452: ac_status=$?
! 4453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4454: (exit $ac_status); }; } &&
! 4455: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4456: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457: (eval $ac_try) 2>&5
4458: ac_status=$?
4459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4460: (exit $ac_status); }; }; then
4461: :
4462: else
4463: echo "$as_me: failed program was:" >&5
1.16 millert 4464: sed 's/^/| /' conftest.$ac_ext >&5
4465:
1.9 millert 4466: continue
4467: fi
1.25 ! millert 4468: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4469: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4470: /* confdefs.h. */
4471: _ACEOF
4472: cat confdefs.h >>conftest.$ac_ext
4473: cat >>conftest.$ac_ext <<_ACEOF
4474: /* end confdefs.h. */
1.9 millert 4475: $ac_declaration
4476: int
4477: main ()
4478: {
4479: exit (42);
4480: ;
4481: return 0;
4482: }
4483: _ACEOF
4484: rm -f conftest.$ac_objext
1.16 millert 4485: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 4486: (eval $ac_compile) 2>conftest.er1
1.9 millert 4487: ac_status=$?
1.25 ! millert 4488: grep -v '^ *+' conftest.er1 >conftest.err
! 4489: rm -f conftest.er1
! 4490: cat conftest.err >&5
1.16 millert 4491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4492: (exit $ac_status); } &&
1.25 ! millert 4493: { ac_try='test -z "$ac_c_werror_flag"
! 4494: || test ! -s conftest.err'
! 4495: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4496: (eval $ac_try) 2>&5
! 4497: ac_status=$?
! 4498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4499: (exit $ac_status); }; } &&
! 4500: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4501: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4502: (eval $ac_try) 2>&5
4503: ac_status=$?
1.16 millert 4504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4505: (exit $ac_status); }; }; then
4506: break
4507: else
4508: echo "$as_me: failed program was:" >&5
1.16 millert 4509: sed 's/^/| /' conftest.$ac_ext >&5
4510:
1.1 millert 4511: fi
1.25 ! millert 4512: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4513: done
1.1 millert 4514: rm -f conftest*
1.9 millert 4515: if test -n "$ac_declaration"; then
4516: echo '#ifdef __cplusplus' >>confdefs.h
4517: echo $ac_declaration >>confdefs.h
4518: echo '#endif' >>confdefs.h
4519: fi
1.1 millert 4520:
1.9 millert 4521: else
4522: echo "$as_me: failed program was:" >&5
1.16 millert 4523: sed 's/^/| /' conftest.$ac_ext >&5
4524:
1.1 millert 4525: fi
1.25 ! millert 4526: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4527: ac_ext=c
4528: ac_cpp='$CPP $CPPFLAGS'
4529: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 4532:
1.9 millert 4533:
1.16 millert 4534: echo "$as_me:$LINENO: checking for library containing strerror" >&5
4535: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4536: if test "${ac_cv_search_strerror+set}" = set; then
1.9 millert 4537: echo $ECHO_N "(cached) $ECHO_C" >&6
4538: else
1.16 millert 4539: ac_func_search_save_LIBS=$LIBS
4540: ac_cv_search_strerror=no
1.9 millert 4541: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4542: /* confdefs.h. */
4543: _ACEOF
4544: cat confdefs.h >>conftest.$ac_ext
4545: cat >>conftest.$ac_ext <<_ACEOF
4546: /* end confdefs.h. */
4547:
4548: /* Override any gcc2 internal prototype to avoid an error. */
4549: #ifdef __cplusplus
4550: extern "C"
4551: #endif
4552: /* We use char because int might match the return type of a gcc2
4553: builtin and then its argument prototype would still apply. */
4554: char strerror ();
4555: int
4556: main ()
1.9 millert 4557: {
1.16 millert 4558: strerror ();
4559: ;
4560: return 0;
1.9 millert 4561: }
1.16 millert 4562: _ACEOF
4563: rm -f conftest.$ac_objext conftest$ac_exeext
4564: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 4565: (eval $ac_link) 2>conftest.er1
1.16 millert 4566: ac_status=$?
1.25 ! millert 4567: grep -v '^ *+' conftest.er1 >conftest.err
! 4568: rm -f conftest.er1
! 4569: cat conftest.err >&5
1.16 millert 4570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571: (exit $ac_status); } &&
1.25 ! millert 4572: { ac_try='test -z "$ac_c_werror_flag"
! 4573: || test ! -s conftest.err'
! 4574: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4575: (eval $ac_try) 2>&5
! 4576: ac_status=$?
! 4577: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4578: (exit $ac_status); }; } &&
! 4579: { ac_try='test -s conftest$ac_exeext'
1.16 millert 4580: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581: (eval $ac_try) 2>&5
4582: ac_status=$?
4583: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584: (exit $ac_status); }; }; then
4585: ac_cv_search_strerror="none required"
4586: else
4587: echo "$as_me: failed program was:" >&5
4588: sed 's/^/| /' conftest.$ac_ext >&5
4589:
4590: fi
1.25 ! millert 4591: rm -f conftest.err conftest.$ac_objext \
! 4592: conftest$ac_exeext conftest.$ac_ext
1.16 millert 4593: if test "$ac_cv_search_strerror" = no; then
4594: for ac_lib in cposix; do
4595: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4596: cat >conftest.$ac_ext <<_ACEOF
4597: /* confdefs.h. */
4598: _ACEOF
4599: cat confdefs.h >>conftest.$ac_ext
4600: cat >>conftest.$ac_ext <<_ACEOF
4601: /* end confdefs.h. */
4602:
4603: /* Override any gcc2 internal prototype to avoid an error. */
4604: #ifdef __cplusplus
4605: extern "C"
4606: #endif
4607: /* We use char because int might match the return type of a gcc2
4608: builtin and then its argument prototype would still apply. */
4609: char strerror ();
1.9 millert 4610: int
4611: main ()
4612: {
1.16 millert 4613: strerror ();
1.9 millert 4614: ;
4615: return 0;
4616: }
4617: _ACEOF
1.16 millert 4618: rm -f conftest.$ac_objext conftest$ac_exeext
4619: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 4620: (eval $ac_link) 2>conftest.er1
1.9 millert 4621: ac_status=$?
1.25 ! millert 4622: grep -v '^ *+' conftest.er1 >conftest.err
! 4623: rm -f conftest.er1
! 4624: cat conftest.err >&5
1.16 millert 4625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4626: (exit $ac_status); } &&
1.25 ! millert 4627: { ac_try='test -z "$ac_c_werror_flag"
! 4628: || test ! -s conftest.err'
! 4629: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4630: (eval $ac_try) 2>&5
! 4631: ac_status=$?
! 4632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4633: (exit $ac_status); }; } &&
! 4634: { ac_try='test -s conftest$ac_exeext'
1.16 millert 4635: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4636: (eval $ac_try) 2>&5
4637: ac_status=$?
1.16 millert 4638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4639: (exit $ac_status); }; }; then
1.16 millert 4640: ac_cv_search_strerror="-l$ac_lib"
1.9 millert 4641: break
4642: else
4643: echo "$as_me: failed program was:" >&5
1.16 millert 4644: sed 's/^/| /' conftest.$ac_ext >&5
4645:
4646: fi
1.25 ! millert 4647: rm -f conftest.err conftest.$ac_objext \
! 4648: conftest$ac_exeext conftest.$ac_ext
1.16 millert 4649: done
4650: fi
4651: LIBS=$ac_func_search_save_LIBS
1.9 millert 4652: fi
1.16 millert 4653: echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4654: echo "${ECHO_T}$ac_cv_search_strerror" >&6
4655: if test "$ac_cv_search_strerror" != no; then
4656: test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1.9 millert 4657:
4658: fi
4659:
4660: ac_ext=c
4661: ac_cpp='$CPP $CPPFLAGS'
4662: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 millert 4665: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.9 millert 4666: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1 millert 4667: # On Suns, sometimes $CPP names a directory.
4668: if test -n "$CPP" && test -d "$CPP"; then
4669: CPP=
4670: fi
4671: if test -z "$CPP"; then
1.9 millert 4672: if test "${ac_cv_prog_CPP+set}" = set; then
4673: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4674: else
1.9 millert 4675: # Double quotes because CPP needs to be expanded
4676: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4677: do
4678: ac_preproc_ok=false
4679: for ac_c_preproc_warn_flag in '' yes
4680: do
4681: # Use a header file that comes with gcc, so configuring glibc
4682: # with a fresh cross-compiler works.
1.16 millert 4683: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4684: # <limits.h> exists even on freestanding compilers.
1.1 millert 4685: # On the NeXT, cc -E runs the code through the compiler's parser,
1.9 millert 4686: # not just through cpp. "Syntax error" is here to catch this case.
4687: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4688: /* confdefs.h. */
4689: _ACEOF
4690: cat confdefs.h >>conftest.$ac_ext
4691: cat >>conftest.$ac_ext <<_ACEOF
4692: /* end confdefs.h. */
4693: #ifdef __STDC__
4694: # include <limits.h>
4695: #else
4696: # include <assert.h>
4697: #endif
1.25 ! millert 4698: Syntax error
1.9 millert 4699: _ACEOF
1.16 millert 4700: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4701: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4702: ac_status=$?
1.16 millert 4703: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4704: rm -f conftest.er1
4705: cat conftest.err >&5
1.16 millert 4706: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4707: (exit $ac_status); } >/dev/null; then
4708: if test -s conftest.err; then
4709: ac_cpp_err=$ac_c_preproc_warn_flag
1.25 ! millert 4710: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9 millert 4711: else
4712: ac_cpp_err=
4713: fi
4714: else
4715: ac_cpp_err=yes
4716: fi
4717: if test -z "$ac_cpp_err"; then
1.1 millert 4718: :
4719: else
1.9 millert 4720: echo "$as_me: failed program was:" >&5
1.16 millert 4721: sed 's/^/| /' conftest.$ac_ext >&5
4722:
1.9 millert 4723: # Broken: fails on valid input.
4724: continue
4725: fi
4726: rm -f conftest.err conftest.$ac_ext
4727:
4728: # OK, works on sane cases. Now check whether non-existent headers
4729: # can be detected and how.
4730: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4731: /* confdefs.h. */
4732: _ACEOF
4733: cat confdefs.h >>conftest.$ac_ext
4734: cat >>conftest.$ac_ext <<_ACEOF
4735: /* end confdefs.h. */
1.9 millert 4736: #include <ac_nonexistent.h>
4737: _ACEOF
1.16 millert 4738: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4739: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4740: ac_status=$?
1.16 millert 4741: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4742: rm -f conftest.er1
4743: cat conftest.err >&5
1.16 millert 4744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4745: (exit $ac_status); } >/dev/null; then
4746: if test -s conftest.err; then
4747: ac_cpp_err=$ac_c_preproc_warn_flag
1.25 ! millert 4748: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9 millert 4749: else
4750: ac_cpp_err=
4751: fi
4752: else
4753: ac_cpp_err=yes
4754: fi
4755: if test -z "$ac_cpp_err"; then
4756: # Broken: success on invalid input.
4757: continue
4758: else
4759: echo "$as_me: failed program was:" >&5
1.16 millert 4760: sed 's/^/| /' conftest.$ac_ext >&5
4761:
1.9 millert 4762: # Passes both tests.
4763: ac_preproc_ok=:
4764: break
4765: fi
4766: rm -f conftest.err conftest.$ac_ext
4767:
4768: done
4769: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4770: rm -f conftest.err conftest.$ac_ext
4771: if $ac_preproc_ok; then
4772: break
4773: fi
4774:
4775: done
4776: ac_cv_prog_CPP=$CPP
4777:
4778: fi
4779: CPP=$ac_cv_prog_CPP
4780: else
4781: ac_cv_prog_CPP=$CPP
4782: fi
1.16 millert 4783: echo "$as_me:$LINENO: result: $CPP" >&5
1.9 millert 4784: echo "${ECHO_T}$CPP" >&6
4785: ac_preproc_ok=false
4786: for ac_c_preproc_warn_flag in '' yes
4787: do
4788: # Use a header file that comes with gcc, so configuring glibc
4789: # with a fresh cross-compiler works.
1.16 millert 4790: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4791: # <limits.h> exists even on freestanding compilers.
1.9 millert 4792: # On the NeXT, cc -E runs the code through the compiler's parser,
4793: # not just through cpp. "Syntax error" is here to catch this case.
4794: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4795: /* confdefs.h. */
4796: _ACEOF
4797: cat confdefs.h >>conftest.$ac_ext
4798: cat >>conftest.$ac_ext <<_ACEOF
4799: /* end confdefs.h. */
4800: #ifdef __STDC__
4801: # include <limits.h>
4802: #else
4803: # include <assert.h>
4804: #endif
1.25 ! millert 4805: Syntax error
1.9 millert 4806: _ACEOF
1.16 millert 4807: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4808: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4809: ac_status=$?
1.16 millert 4810: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4811: rm -f conftest.er1
4812: cat conftest.err >&5
1.16 millert 4813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4814: (exit $ac_status); } >/dev/null; then
4815: if test -s conftest.err; then
4816: ac_cpp_err=$ac_c_preproc_warn_flag
1.25 ! millert 4817: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9 millert 4818: else
4819: ac_cpp_err=
4820: fi
4821: else
4822: ac_cpp_err=yes
4823: fi
4824: if test -z "$ac_cpp_err"; then
1.1 millert 4825: :
4826: else
1.9 millert 4827: echo "$as_me: failed program was:" >&5
1.16 millert 4828: sed 's/^/| /' conftest.$ac_ext >&5
4829:
1.9 millert 4830: # Broken: fails on valid input.
4831: continue
1.1 millert 4832: fi
1.9 millert 4833: rm -f conftest.err conftest.$ac_ext
4834:
4835: # OK, works on sane cases. Now check whether non-existent headers
4836: # can be detected and how.
4837: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4838: /* confdefs.h. */
4839: _ACEOF
4840: cat confdefs.h >>conftest.$ac_ext
4841: cat >>conftest.$ac_ext <<_ACEOF
4842: /* end confdefs.h. */
1.9 millert 4843: #include <ac_nonexistent.h>
4844: _ACEOF
1.16 millert 4845: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4846: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4847: ac_status=$?
1.16 millert 4848: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4849: rm -f conftest.er1
4850: cat conftest.err >&5
1.16 millert 4851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4852: (exit $ac_status); } >/dev/null; then
4853: if test -s conftest.err; then
4854: ac_cpp_err=$ac_c_preproc_warn_flag
1.25 ! millert 4855: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.9 millert 4856: else
4857: ac_cpp_err=
4858: fi
4859: else
4860: ac_cpp_err=yes
1.1 millert 4861: fi
1.9 millert 4862: if test -z "$ac_cpp_err"; then
4863: # Broken: success on invalid input.
4864: continue
1.1 millert 4865: else
1.9 millert 4866: echo "$as_me: failed program was:" >&5
1.16 millert 4867: sed 's/^/| /' conftest.$ac_ext >&5
4868:
1.9 millert 4869: # Passes both tests.
4870: ac_preproc_ok=:
4871: break
1.1 millert 4872: fi
1.9 millert 4873: rm -f conftest.err conftest.$ac_ext
1.1 millert 4874:
1.9 millert 4875: done
4876: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4877: rm -f conftest.err conftest.$ac_ext
4878: if $ac_preproc_ok; then
4879: :
1.1 millert 4880: else
1.16 millert 4881: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4882: See \`config.log' for more details." >&5
4883: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4884: See \`config.log' for more details." >&2;}
1.9 millert 4885: { (exit 1); exit 1; }; }
1.1 millert 4886: fi
4887:
1.9 millert 4888: ac_ext=c
4889: ac_cpp='$CPP $CPPFLAGS'
4890: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 4893:
1.16 millert 4894:
1.23 millert 4895: ac_aux_dir=
4896: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
4897: if test -f $ac_dir/install-sh; then
4898: ac_aux_dir=$ac_dir
4899: ac_install_sh="$ac_aux_dir/install-sh -c"
4900: break
4901: elif test -f $ac_dir/install.sh; then
4902: ac_aux_dir=$ac_dir
4903: ac_install_sh="$ac_aux_dir/install.sh -c"
4904: break
4905: elif test -f $ac_dir/shtool; then
4906: ac_aux_dir=$ac_dir
4907: ac_install_sh="$ac_aux_dir/shtool install -c"
4908: break
4909: fi
4910: done
4911: if test -z "$ac_aux_dir"; then
4912: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
4913: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
4914: { (exit 1); exit 1; }; }
1.1 millert 4915: fi
1.23 millert 4916: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
4917: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
4918: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
4919:
4920: # Make sure we can run config.sub.
4921: $ac_config_sub sun4 >/dev/null 2>&1 ||
4922: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4923: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4924: { (exit 1); exit 1; }; }
1.1 millert 4925:
1.23 millert 4926: echo "$as_me:$LINENO: checking build system type" >&5
4927: echo $ECHO_N "checking build system type... $ECHO_C" >&6
4928: if test "${ac_cv_build+set}" = set; then
1.9 millert 4929: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4930: else
1.23 millert 4931: ac_cv_build_alias=$build_alias
4932: test -z "$ac_cv_build_alias" &&
4933: ac_cv_build_alias=`$ac_config_guess`
4934: test -z "$ac_cv_build_alias" &&
4935: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4936: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4937: { (exit 1); exit 1; }; }
4938: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4939: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4940: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4941: { (exit 1); exit 1; }; }
1.9 millert 4942:
1.1 millert 4943: fi
1.23 millert 4944: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4945: echo "${ECHO_T}$ac_cv_build" >&6
4946: build=$ac_cv_build
4947: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4948: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4949: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4950:
4951:
4952: echo "$as_me:$LINENO: checking host system type" >&5
4953: echo $ECHO_N "checking host system type... $ECHO_C" >&6
4954: if test "${ac_cv_host+set}" = set; then
4955: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4956: else
1.23 millert 4957: ac_cv_host_alias=$host_alias
4958: test -z "$ac_cv_host_alias" &&
4959: ac_cv_host_alias=$ac_cv_build_alias
4960: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4961: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4962: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4963: { (exit 1); exit 1; }; }
4964:
1.1 millert 4965: fi
1.23 millert 4966: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4967: echo "${ECHO_T}$ac_cv_host" >&6
4968: host=$ac_cv_host
4969: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4970: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4971: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 millert 4972:
1.23 millert 4973:
4974: echo "$as_me:$LINENO: checking target system type" >&5
4975: echo $ECHO_N "checking target system type... $ECHO_C" >&6
4976: if test "${ac_cv_target+set}" = set; then
4977: echo $ECHO_N "(cached) $ECHO_C" >&6
4978: else
4979: ac_cv_target_alias=$target_alias
4980: test "x$ac_cv_target_alias" = "x" &&
4981: ac_cv_target_alias=$ac_cv_host_alias
4982: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
4983: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
4984: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
4985: { (exit 1); exit 1; }; }
4986:
4987: fi
4988: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4989: echo "${ECHO_T}$ac_cv_target" >&6
4990: target=$ac_cv_target
4991: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4992: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4993: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4994:
4995:
4996: # The aliases save the names the user supplied, while $host etc.
4997: # will get canonicalized.
4998: test -n "$target_alias" &&
4999: test "$program_prefix$program_suffix$program_transform_name" = \
5000: NONENONEs,x,x, &&
5001: program_prefix=${target_alias}-
5002:
5003:
5004:
1.25 ! millert 5005: macro_version='1.9f'
! 5006: macro_revision='1.1667.2.43'
! 5007:
! 5008:
! 5009:
! 5010:
! 5011:
! 5012:
! 5013:
! 5014:
! 5015:
! 5016:
! 5017:
! 5018:
! 5019: ltmain="$ac_aux_dir/ltmain.sh"
1.23 millert 5020:
5021: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5022: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5023: if test "${lt_cv_path_SED+set}" = set; then
5024: echo $ECHO_N "(cached) $ECHO_C" >&6
5025: else
5026: # Loop through the user's path and test for sed and gsed.
5027: # Then use that list of sed's as ones to test for truncation.
5028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029: for as_dir in $PATH
5030: do
5031: IFS=$as_save_IFS
5032: test -z "$as_dir" && as_dir=.
5033: for lt_ac_prog in sed gsed; do
5034: for ac_exec_ext in '' $ac_executable_extensions; do
5035: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5036: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5037: fi
5038: done
5039: done
5040: done
5041: lt_ac_max=0
5042: lt_ac_count=0
5043: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5044: # along with /bin/sed that truncates output.
5045: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5046: test ! -f $lt_ac_sed && break
5047: cat /dev/null > conftest.in
5048: lt_ac_count=0
1.25 ! millert 5049: $ECHO $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23 millert 5050: # Check for GNU sed and select it if it is found.
5051: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5052: lt_cv_path_SED=$lt_ac_sed
5053: break
5054: fi
5055: while true; do
5056: cat conftest.in conftest.in >conftest.tmp
5057: mv conftest.tmp conftest.in
5058: cp conftest.in conftest.nl
1.25 ! millert 5059: $ECHO >>conftest.nl
1.23 millert 5060: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5061: cmp -s conftest.out conftest.nl || break
5062: # 10000 chars as input seems more than enough
5063: test $lt_ac_count -gt 10 && break
5064: lt_ac_count=`expr $lt_ac_count + 1`
5065: if test $lt_ac_count -gt $lt_ac_max; then
5066: lt_ac_max=$lt_ac_count
5067: lt_cv_path_SED=$lt_ac_sed
5068: fi
5069: done
5070: done
5071:
5072: fi
5073:
1.25 ! millert 5074: SED=$lt_cv_path_SED
! 5075:
1.23 millert 5076: echo "$as_me:$LINENO: result: $SED" >&5
5077: echo "${ECHO_T}$SED" >&6
5078:
1.25 ! millert 5079: test -z "$SED" && SED=sed
! 5080:
! 5081:
! 5082:
! 5083:
! 5084:
! 5085:
! 5086:
! 5087:
! 5088:
! 5089:
! 5090:
1.23 millert 5091: echo "$as_me:$LINENO: checking for egrep" >&5
5092: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5093: if test "${ac_cv_prog_egrep+set}" = set; then
5094: echo $ECHO_N "(cached) $ECHO_C" >&6
5095: else
5096: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5097: then ac_cv_prog_egrep='grep -E'
5098: else ac_cv_prog_egrep='egrep'
5099: fi
5100: fi
5101: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5102: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5103: EGREP=$ac_cv_prog_egrep
5104:
5105:
1.25 ! millert 5106: echo "$as_me:$LINENO: checking for fgrep" >&5
! 5107: echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
! 5108: if test "${ac_cv_prog_fgrep+set}" = set; then
! 5109: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5110: else
! 5111: if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
! 5112: then ac_cv_prog_fgrep='grep -F'
! 5113: else ac_cv_prog_fgrep='fgrep'
! 5114: fi
! 5115: fi
! 5116: echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
! 5117: echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
! 5118: FGREP=$ac_cv_prog_fgrep
! 5119:
! 5120:
! 5121: test -z "$GREP" && GREP=grep
! 5122:
! 5123:
! 5124:
! 5125:
! 5126:
! 5127:
! 5128:
! 5129:
! 5130:
! 5131:
! 5132:
! 5133:
! 5134:
! 5135:
! 5136:
! 5137:
! 5138:
! 5139:
1.23 millert 5140:
5141: # Check whether --with-gnu-ld or --without-gnu-ld was given.
5142: if test "${with_gnu_ld+set}" = set; then
5143: withval="$with_gnu_ld"
5144: test "$withval" = no || with_gnu_ld=yes
5145: else
5146: with_gnu_ld=no
5147: fi;
5148: ac_prog=ld
5149: if test "$GCC" = yes; then
5150: # Check if gcc -print-prog-name=ld gives a path.
5151: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5152: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5153: case $host in
5154: *-*-mingw*)
5155: # gcc leaves a trailing carriage return which upsets mingw
5156: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5157: *)
5158: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5159: esac
5160: case $ac_prog in
5161: # Accept absolute paths.
5162: [\\/]* | ?:[\\/]*)
5163: re_direlt='/[^/][^/]*/\.\./'
1.25 ! millert 5164: # Canonicalize the pathname of ld
! 5165: ac_prog=`$ECHO $ac_prog| $SED 's%\\\\%/%g'`
! 5166: while $ECHO $ac_prog | $GREP "$re_direlt" > /dev/null 2>&1; do
! 5167: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
1.23 millert 5168: done
5169: test -z "$LD" && LD="$ac_prog"
5170: ;;
5171: "")
5172: # If it fails, then pretend we aren't using GCC.
5173: ac_prog=ld
5174: ;;
5175: *)
5176: # If it is relative, then search for the first ld in PATH.
5177: with_gnu_ld=unknown
5178: ;;
5179: esac
5180: elif test "$with_gnu_ld" = yes; then
5181: echo "$as_me:$LINENO: checking for GNU ld" >&5
5182: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5183: else
5184: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5185: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5186: fi
5187: if test "${lt_cv_path_LD+set}" = set; then
5188: echo $ECHO_N "(cached) $ECHO_C" >&6
5189: else
5190: if test -z "$LD"; then
5191: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192: for ac_dir in $PATH; do
5193: IFS="$lt_save_ifs"
5194: test -z "$ac_dir" && ac_dir=.
5195: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196: lt_cv_path_LD="$ac_dir/$ac_prog"
5197: # Check to see if the program is GNU ld. I'd rather use --version,
5198: # but apparently some GNU ld's only accept -v.
5199: # Break only if it was the GNU/non-GNU ld that we prefer.
5200: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5201: *GNU* | *'with BFD'*)
5202: test "$with_gnu_ld" != no && break
5203: ;;
5204: *)
5205: test "$with_gnu_ld" != yes && break
5206: ;;
5207: esac
5208: fi
5209: done
5210: IFS="$lt_save_ifs"
5211: else
5212: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5213: fi
5214: fi
5215:
5216: LD="$lt_cv_path_LD"
5217: if test -n "$LD"; then
5218: echo "$as_me:$LINENO: result: $LD" >&5
5219: echo "${ECHO_T}$LD" >&6
5220: else
5221: echo "$as_me:$LINENO: result: no" >&5
5222: echo "${ECHO_T}no" >&6
5223: fi
5224: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5225: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5226: { (exit 1); exit 1; }; }
5227: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5228: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5229: if test "${lt_cv_prog_gnu_ld+set}" = set; then
5230: echo $ECHO_N "(cached) $ECHO_C" >&6
5231: else
5232: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1.25 ! millert 5233: case `$LD -v 2>&1 </dev/null` in
1.23 millert 5234: *GNU* | *'with BFD'*)
5235: lt_cv_prog_gnu_ld=yes
5236: ;;
5237: *)
5238: lt_cv_prog_gnu_ld=no
5239: ;;
5240: esac
5241: fi
5242: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5243: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5244: with_gnu_ld=$lt_cv_prog_gnu_ld
5245:
5246:
1.25 ! millert 5247:
! 5248:
! 5249:
! 5250:
! 5251:
! 5252:
1.23 millert 5253:
5254: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5255: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5256: if test "${lt_cv_path_NM+set}" = set; then
5257: echo $ECHO_N "(cached) $ECHO_C" >&6
5258: else
5259: if test -n "$NM"; then
5260: # Let the user override the test.
5261: lt_cv_path_NM="$NM"
5262: else
5263: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5264: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5265: IFS="$lt_save_ifs"
5266: test -z "$ac_dir" && ac_dir=.
5267: tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5268: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5269: # Check to see if the nm accepts a BSD-compat flag.
5270: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5271: # nm: unknown option "B" ignored
5272: # Tru64's nm complains that /dev/null is an invalid object file
5273: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5274: */dev/null* | *'Invalid file or object type'*)
5275: lt_cv_path_NM="$tmp_nm -B"
5276: break
5277: ;;
5278: *)
5279: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5280: */dev/null*)
5281: lt_cv_path_NM="$tmp_nm -p"
5282: break
5283: ;;
5284: *)
5285: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5286: continue # so that we can try to find one that supports BSD flags
5287: ;;
5288: esac
5289: esac
5290: fi
5291: done
5292: IFS="$lt_save_ifs"
5293: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5294: fi
5295: fi
5296: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5297: echo "${ECHO_T}$lt_cv_path_NM" >&6
5298: NM="$lt_cv_path_NM"
1.25 ! millert 5299: test -z "$NM" && NM=nm
! 5300:
! 5301:
! 5302:
! 5303:
! 5304:
1.23 millert 5305:
5306: echo "$as_me:$LINENO: checking whether ln -s works" >&5
5307: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5308: LN_S=$as_ln_s
5309: if test "$LN_S" = "ln -s"; then
5310: echo "$as_me:$LINENO: result: yes" >&5
5311: echo "${ECHO_T}yes" >&6
5312: else
5313: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5314: echo "${ECHO_T}no, using $LN_S" >&6
5315: fi
5316:
1.25 ! millert 5317: # find the maximum length of command line arguments
! 5318: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 5319: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
! 5320: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
! 5321: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5322: else
! 5323: i=0
! 5324: teststring="ABCD"
! 5325:
! 5326: case $build_os in
! 5327: msdosdjgpp*)
! 5328: # On DJGPP, this test can blow up pretty badly due to problems in libc
! 5329: # (any single argument exceeding 2000 bytes causes a buffer overrun
! 5330: # during glob expansion). Even if it were fixed, the result of this
! 5331: # check would be larger than it should be.
! 5332: lt_cv_sys_max_cmd_len=12288; # 12K is about right
! 5333: ;;
! 5334:
! 5335: gnu*)
! 5336: # Under GNU Hurd, this test is not required because there is
! 5337: # no limit to the length of command line arguments.
! 5338: # Libtool will interpret -1 as no limit whatsoever
! 5339: lt_cv_sys_max_cmd_len=-1;
! 5340: ;;
! 5341:
! 5342: cygwin* | mingw*)
! 5343: # On Win9x/ME, this test blows up -- it succeeds, but takes
! 5344: # about 5 minutes as the teststring grows exponentially.
! 5345: # Worse, since 9x/ME are not pre-emptively multitasking,
! 5346: # you end up with a "frozen" computer, even though with patience
! 5347: # the test eventually succeeds (with a max line length of 256k).
! 5348: # Instead, let's just punt: use the minimum linelength reported by
! 5349: # all of the supported platforms: 8192 (on NT/2K/XP).
! 5350: lt_cv_sys_max_cmd_len=8192;
! 5351: ;;
! 5352:
! 5353: amigaos*)
! 5354: # On AmigaOS with pdksh, this test takes hours, literally.
! 5355: # So we just punt and use a minimum line length of 8192.
! 5356: lt_cv_sys_max_cmd_len=8192;
! 5357: ;;
! 5358:
! 5359: netbsd* | freebsd* | openbsd* | darwin* )
! 5360: # This has been around since 386BSD, at least. Likely further.
! 5361: if test -x /sbin/sysctl; then
! 5362: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
! 5363: elif test -x /usr/sbin/sysctl; then
! 5364: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
! 5365: else
! 5366: lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
! 5367: fi
! 5368: # And add a safety zone
! 5369: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
! 5370: ;;
! 5371: *)
! 5372: # Make teststring a little bigger before we do anything with it.
! 5373: # a 1K string should be a reasonable start.
! 5374: for i in 1 2 3 4 5 6 7 8 ; do
! 5375: teststring=$teststring$teststring
! 5376: done
! 5377: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
! 5378: # If test is not a shell built-in, we'll probably end up computing a
! 5379: # maximum length that is only half of the actual maximum length, but
! 5380: # we can't tell.
! 5381: while (test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
! 5382: = "XX$teststring$teststring") >/dev/null 2>&1 &&
! 5383: test $i != 17 # 1/2 MB should be enough
! 5384: do
! 5385: i=`expr $i + 1`
! 5386: teststring=$teststring$teststring
! 5387: done
! 5388: # Only check the string length outside the loop.
! 5389: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
! 5390: teststring=
! 5391: # Add a significant safety factor because C++ compilers can tack on massive
! 5392: # amounts of additional arguments before passing them to the linker.
! 5393: # It appears as though 1/2 is a usable value.
! 5394: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
! 5395: ;;
! 5396: esac
! 5397:
! 5398: fi
! 5399:
! 5400: if test -n $lt_cv_sys_max_cmd_len ; then
! 5401: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 5402: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
! 5403: else
! 5404: echo "$as_me:$LINENO: result: none" >&5
! 5405: echo "${ECHO_T}none" >&6
! 5406: fi
! 5407: max_cmd_len=$lt_cv_sys_max_cmd_len
! 5408:
! 5409:
! 5410:
! 5411:
! 5412:
! 5413:
! 5414:
! 5415:
! 5416: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 5417: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
! 5418: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 5419: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5420: else
! 5421: lt_cv_ld_reload_flag='-r'
! 5422: fi
! 5423: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 5424: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
! 5425: reload_flag=$lt_cv_ld_reload_flag
! 5426: case $reload_flag in
! 5427: "" | " "*) ;;
! 5428: *) reload_flag=" $reload_flag" ;;
! 5429: esac
! 5430: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5431: case $host_os in
! 5432: darwin*)
! 5433: if test "$GCC" = yes; then
! 5434: reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
! 5435: else
! 5436: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5437: fi
! 5438: ;;
! 5439: esac
! 5440:
! 5441:
! 5442:
! 5443:
! 5444:
! 5445:
! 5446:
! 5447:
! 5448:
! 5449:
1.23 millert 5450: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5451: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5452: if test "${lt_cv_deplibs_check_method+set}" = set; then
5453: echo $ECHO_N "(cached) $ECHO_C" >&6
5454: else
5455: lt_cv_file_magic_cmd='$MAGIC_CMD'
5456: lt_cv_file_magic_test_file=
5457: lt_cv_deplibs_check_method='unknown'
5458: # Need to set the preceding variable on all platforms that support
5459: # interlibrary dependencies.
5460: # 'none' -- dependencies not supported.
5461: # `unknown' -- same as none, but documents that we really don't know.
5462: # 'pass_all' -- all dependencies passed with no checks.
5463: # 'test_compile' -- check by making test program.
5464: # 'file_magic [[regex]]' -- check by looking for files in library path
5465: # which responds to the $file_magic_cmd with a given extended regex.
5466: # If you have `file' or equivalent on your system and you're not sure
5467: # whether `pass_all' will *always* work, you probably want this one.
5468:
5469: case $host_os in
5470: aix4* | aix5*)
5471: lt_cv_deplibs_check_method=pass_all
5472: ;;
5473:
5474: beos*)
5475: lt_cv_deplibs_check_method=pass_all
5476: ;;
5477:
1.25 ! millert 5478: bsdi[45]*)
1.23 millert 5479: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5480: lt_cv_file_magic_cmd='/usr/bin/file -L'
5481: lt_cv_file_magic_test_file=/shlib/libc.so
5482: ;;
5483:
1.25 ! millert 5484: cygwin*)
! 5485: # func_win32_libid is a shell function defined in ltmain.sh
1.23 millert 5486: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25 ! millert 5487: lt_cv_file_magic_cmd='func_win32_libid'
! 5488: ;;
! 5489:
! 5490: # Base MSYS/MinGW do not provide the 'file' command needed by
! 5491: # func_win32_libid shell function, so use a weaker test based on 'objdump'.
! 5492: mingw* | pw32*)
! 5493: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
! 5494: lt_cv_file_magic_cmd='$OBJDUMP -f'
1.23 millert 5495: ;;
5496:
5497: darwin* | rhapsody*)
1.25 ! millert 5498: lt_cv_deplibs_check_method=pass_all
! 5499: ;;
1.23 millert 5500:
1.25 ! millert 5501: freebsd* | kfreebsd*-gnu)
! 5502: if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.23 millert 5503: case $host_cpu in
5504: i*86 )
5505: # Not sure whether the presence of OpenBSD here was a mistake.
5506: # Let's accept both of them until this is cleared up.
5507: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5508: lt_cv_file_magic_cmd=/usr/bin/file
1.25 ! millert 5509: lt_cv_file_magic_test_file=`$ECHO /usr/lib/libc.so.*`
1.23 millert 5510: ;;
5511: esac
5512: else
5513: lt_cv_deplibs_check_method=pass_all
5514: fi
5515: ;;
5516:
5517: gnu*)
5518: lt_cv_deplibs_check_method=pass_all
5519: ;;
5520:
5521: hpux10.20* | hpux11*)
5522: lt_cv_file_magic_cmd=/usr/bin/file
5523: case "$host_cpu" in
5524: ia64*)
5525: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5526: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5527: ;;
5528: hppa*64*)
5529: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5530: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5531: ;;
5532: *)
5533: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5534: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5535: ;;
5536: esac
5537: ;;
5538:
5539: irix5* | irix6* | nonstopux*)
1.25 ! millert 5540: case $LD in
! 5541: *-32|*"-32 ") libmagic=32-bit;;
! 5542: *-n32|*"-n32 ") libmagic=N32;;
! 5543: *-64|*"-64 ") libmagic=64-bit;;
! 5544: *) libmagic=never-match;;
1.23 millert 5545: esac
5546: lt_cv_deplibs_check_method=pass_all
5547: ;;
5548:
5549: # This must be Linux ELF.
5550: linux*)
1.25 ! millert 5551: lt_cv_deplibs_check_method=pass_all
1.23 millert 5552: ;;
5553:
1.25 ! millert 5554: netbsd* | knetbsd*-gnu)
! 5555: if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
1.23 millert 5556: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5557: else
5558: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5559: fi
5560: ;;
5561:
5562: newos6*)
5563: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5564: lt_cv_file_magic_cmd=/usr/bin/file
5565: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5566: ;;
5567:
1.25 ! millert 5568: *nto* | *qnx*)
! 5569: lt_cv_deplibs_check_method=pass_all
1.23 millert 5570: ;;
5571:
5572: openbsd*)
1.25 ! millert 5573: if test -z "`$ECHO __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 5574: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23 millert 5575: else
1.25 ! millert 5576: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23 millert 5577: fi
5578: ;;
5579:
5580: osf3* | osf4* | osf5*)
5581: lt_cv_deplibs_check_method=pass_all
5582: ;;
5583:
5584: sco3.2v5*)
5585: lt_cv_deplibs_check_method=pass_all
5586: ;;
5587:
5588: solaris*)
5589: lt_cv_deplibs_check_method=pass_all
5590: ;;
5591:
5592: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5593: case $host_vendor in
5594: motorola)
5595: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1.25 ! millert 5596: lt_cv_file_magic_test_file=`$ECHO /usr/lib/libc.so*`
1.23 millert 5597: ;;
5598: ncr)
5599: lt_cv_deplibs_check_method=pass_all
5600: ;;
5601: sequent)
5602: lt_cv_file_magic_cmd='/bin/file'
5603: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5604: ;;
5605: sni)
5606: lt_cv_file_magic_cmd='/bin/file'
5607: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5608: lt_cv_file_magic_test_file=/lib/libc.so
5609: ;;
5610: siemens)
5611: lt_cv_deplibs_check_method=pass_all
5612: ;;
5613: esac
5614: ;;
5615:
5616: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5617: lt_cv_deplibs_check_method=pass_all
5618: ;;
1.25 ! millert 5619:
! 5620: tpf*)
! 5621: lt_cv_deplibs_check_method=pass_all
! 5622: ;;
1.23 millert 5623: esac
5624:
5625: fi
5626: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5627: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5628: file_magic_cmd=$lt_cv_file_magic_cmd
5629: deplibs_check_method=$lt_cv_deplibs_check_method
5630: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5631:
5632:
5633:
5634:
5635:
5636:
5637:
5638:
5639:
5640:
1.25 ! millert 5641:
! 5642:
! 5643: if test -n "$ac_tool_prefix"; then
! 5644: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
! 5645: set dummy ${ac_tool_prefix}ar; ac_word=$2
! 5646: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5647: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5648: if test "${ac_cv_prog_AR+set}" = set; then
1.23 millert 5649: echo $ECHO_N "(cached) $ECHO_C" >&6
5650: else
1.25 ! millert 5651: if test -n "$AR"; then
! 5652: ac_cv_prog_AR="$AR" # Let the user override the test.
! 5653: else
! 5654: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5655: for as_dir in $PATH
! 5656: do
! 5657: IFS=$as_save_IFS
! 5658: test -z "$as_dir" && as_dir=.
! 5659: for ac_exec_ext in '' $ac_executable_extensions; do
! 5660: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5661: ac_cv_prog_AR="${ac_tool_prefix}ar"
! 5662: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5663: break 2
! 5664: fi
! 5665: done
! 5666: done
1.23 millert 5667:
1.25 ! millert 5668: fi
! 5669: fi
! 5670: AR=$ac_cv_prog_AR
! 5671: if test -n "$AR"; then
! 5672: echo "$as_me:$LINENO: result: $AR" >&5
! 5673: echo "${ECHO_T}$AR" >&6
! 5674: else
! 5675: echo "$as_me:$LINENO: result: no" >&5
! 5676: echo "${ECHO_T}no" >&6
! 5677: fi
1.23 millert 5678:
1.25 ! millert 5679: fi
! 5680: if test -z "$ac_cv_prog_AR"; then
! 5681: ac_ct_AR=$AR
! 5682: # Extract the first word of "ar", so it can be a program name with args.
! 5683: set dummy ar; ac_word=$2
! 5684: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5685: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5686: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
! 5687: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5688: else
! 5689: if test -n "$ac_ct_AR"; then
! 5690: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
! 5691: else
! 5692: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5693: for as_dir in $PATH
! 5694: do
! 5695: IFS=$as_save_IFS
! 5696: test -z "$as_dir" && as_dir=.
! 5697: for ac_exec_ext in '' $ac_executable_extensions; do
! 5698: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5699: ac_cv_prog_ac_ct_AR="ar"
! 5700: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5701: break 2
! 5702: fi
! 5703: done
! 5704: done
1.23 millert 5705:
1.25 ! millert 5706: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
! 5707: fi
! 5708: fi
! 5709: ac_ct_AR=$ac_cv_prog_ac_ct_AR
! 5710: if test -n "$ac_ct_AR"; then
! 5711: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 5712: echo "${ECHO_T}$ac_ct_AR" >&6
1.23 millert 5713: else
1.25 ! millert 5714: echo "$as_me:$LINENO: result: no" >&5
! 5715: echo "${ECHO_T}no" >&6
! 5716: fi
1.23 millert 5717:
1.25 ! millert 5718: AR=$ac_ct_AR
! 5719: else
! 5720: AR="$ac_cv_prog_AR"
1.23 millert 5721: fi
5722:
1.25 ! millert 5723: test -z "$AR" && AR=ar
! 5724: test -z "$AR_FLAGS" && AR_FLAGS=cru
! 5725:
! 5726:
! 5727:
! 5728:
! 5729:
! 5730:
1.23 millert 5731:
5732:
5733:
5734:
5735:
1.25 ! millert 5736: if test -n "$ac_tool_prefix"; then
! 5737: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 5738: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 5739: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5740: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5741: if test "${ac_cv_prog_STRIP+set}" = set; then
1.23 millert 5742: echo $ECHO_N "(cached) $ECHO_C" >&6
5743: else
1.25 ! millert 5744: if test -n "$STRIP"; then
! 5745: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 5746: else
! 5747: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5748: for as_dir in $PATH
! 5749: do
! 5750: IFS=$as_save_IFS
! 5751: test -z "$as_dir" && as_dir=.
! 5752: for ac_exec_ext in '' $ac_executable_extensions; do
! 5753: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5754: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 5755: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5756: break 2
! 5757: fi
! 5758: done
! 5759: done
1.23 millert 5760:
1.25 ! millert 5761: fi
! 5762: fi
! 5763: STRIP=$ac_cv_prog_STRIP
! 5764: if test -n "$STRIP"; then
! 5765: echo "$as_me:$LINENO: result: $STRIP" >&5
! 5766: echo "${ECHO_T}$STRIP" >&6
! 5767: else
! 5768: echo "$as_me:$LINENO: result: no" >&5
! 5769: echo "${ECHO_T}no" >&6
! 5770: fi
1.23 millert 5771:
1.25 ! millert 5772: fi
! 5773: if test -z "$ac_cv_prog_STRIP"; then
! 5774: ac_ct_STRIP=$STRIP
! 5775: # Extract the first word of "strip", so it can be a program name with args.
! 5776: set dummy strip; ac_word=$2
! 5777: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5778: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5779: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 5780: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5781: else
! 5782: if test -n "$ac_ct_STRIP"; then
! 5783: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23 millert 5784: else
1.25 ! millert 5785: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5786: for as_dir in $PATH
! 5787: do
! 5788: IFS=$as_save_IFS
! 5789: test -z "$as_dir" && as_dir=.
! 5790: for ac_exec_ext in '' $ac_executable_extensions; do
! 5791: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5792: ac_cv_prog_ac_ct_STRIP="strip"
! 5793: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5794: break 2
! 5795: fi
! 5796: done
! 5797: done
1.23 millert 5798:
1.25 ! millert 5799: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
! 5800: fi
! 5801: fi
! 5802: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 5803: if test -n "$ac_ct_STRIP"; then
! 5804: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 5805: echo "${ECHO_T}$ac_ct_STRIP" >&6
! 5806: else
! 5807: echo "$as_me:$LINENO: result: no" >&5
! 5808: echo "${ECHO_T}no" >&6
1.23 millert 5809: fi
5810:
1.25 ! millert 5811: STRIP=$ac_ct_STRIP
1.23 millert 5812: else
1.25 ! millert 5813: STRIP="$ac_cv_prog_STRIP"
1.23 millert 5814: fi
5815:
1.25 ! millert 5816: test -z "$STRIP" && STRIP=:
! 5817:
! 5818:
! 5819:
! 5820:
! 5821:
1.23 millert 5822:
1.25 ! millert 5823: if test -n "$ac_tool_prefix"; then
! 5824: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 5825: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 5826: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5827: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5828: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 5829: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5830: else
! 5831: if test -n "$RANLIB"; then
! 5832: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 5833: else
! 5834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5835: for as_dir in $PATH
! 5836: do
! 5837: IFS=$as_save_IFS
! 5838: test -z "$as_dir" && as_dir=.
! 5839: for ac_exec_ext in '' $ac_executable_extensions; do
! 5840: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5841: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 5842: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5843: break 2
! 5844: fi
! 5845: done
! 5846: done
1.23 millert 5847:
1.25 ! millert 5848: fi
! 5849: fi
! 5850: RANLIB=$ac_cv_prog_RANLIB
! 5851: if test -n "$RANLIB"; then
! 5852: echo "$as_me:$LINENO: result: $RANLIB" >&5
! 5853: echo "${ECHO_T}$RANLIB" >&6
1.23 millert 5854: else
1.25 ! millert 5855: echo "$as_me:$LINENO: result: no" >&5
! 5856: echo "${ECHO_T}no" >&6
1.23 millert 5857: fi
5858:
5859: fi
1.25 ! millert 5860: if test -z "$ac_cv_prog_RANLIB"; then
! 5861: ac_ct_RANLIB=$RANLIB
! 5862: # Extract the first word of "ranlib", so it can be a program name with args.
! 5863: set dummy ranlib; ac_word=$2
! 5864: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5865: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5866: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 5867: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 millert 5868: else
1.25 ! millert 5869: if test -n "$ac_ct_RANLIB"; then
! 5870: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23 millert 5871: else
1.25 ! millert 5872: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5873: for as_dir in $PATH
! 5874: do
! 5875: IFS=$as_save_IFS
! 5876: test -z "$as_dir" && as_dir=.
! 5877: for ac_exec_ext in '' $ac_executable_extensions; do
! 5878: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5879: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 5880: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5881: break 2
! 5882: fi
! 5883: done
! 5884: done
1.23 millert 5885:
1.25 ! millert 5886: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.23 millert 5887: fi
5888: fi
1.25 ! millert 5889: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 5890: if test -n "$ac_ct_RANLIB"; then
! 5891: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 5892: echo "${ECHO_T}$ac_ct_RANLIB" >&6
! 5893: else
! 5894: echo "$as_me:$LINENO: result: no" >&5
! 5895: echo "${ECHO_T}no" >&6
1.23 millert 5896: fi
5897:
1.25 ! millert 5898: RANLIB=$ac_ct_RANLIB
! 5899: else
! 5900: RANLIB="$ac_cv_prog_RANLIB"
1.23 millert 5901: fi
5902:
1.25 ! millert 5903: test -z "$RANLIB" && RANLIB=:
1.23 millert 5904:
5905:
5906:
5907:
5908:
5909:
1.25 ! millert 5910: # Determine commands to create old-style static archives.
! 5911: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
! 5912: old_postinstall_cmds='chmod 644 $oldlib'
! 5913: old_postuninstall_cmds=
1.23 millert 5914:
1.25 ! millert 5915: if test -n "$RANLIB"; then
! 5916: case $host_os in
! 5917: openbsd*)
! 5918: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
! 5919: ;;
! 5920: *)
! 5921: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
! 5922: ;;
! 5923: esac
! 5924: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
! 5925: fi
1.23 millert 5926:
5927:
5928:
5929:
5930:
5931:
5932:
5933:
5934:
5935:
5936:
5937:
5938:
5939:
5940:
5941:
5942:
1.25 ! millert 5943: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 5944: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 5945: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
! 5946: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.23 millert 5947: echo $ECHO_N "(cached) $ECHO_C" >&6
5948: else
5949:
1.25 ! millert 5950: # These are sane defaults that work on at least a few old systems.
! 5951: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.23 millert 5952:
1.25 ! millert 5953: # Character class describing NM global symbol codes.
! 5954: symcode='[BCDEGRST]'
1.23 millert 5955:
1.25 ! millert 5956: # Regexp to match symbols that can be accessed directly from C.
! 5957: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.23 millert 5958:
1.25 ! millert 5959: # Transform the above into a raw symbol and a C symbol.
! 5960: symxfrm='\1 \2\3 \3'
1.23 millert 5961:
1.25 ! millert 5962: # Define system-specific variables.
! 5963: case $host_os in
! 5964: aix*)
! 5965: symcode='[BCDT]'
! 5966: ;;
! 5967: cygwin* | mingw* | pw32*)
! 5968: symcode='[ABCDGISTW]'
! 5969: ;;
! 5970: hpux*)
! 5971: if test "$host_cpu" = ia64; then
! 5972: symcode='[ABCDEGRST]'
! 5973: fi
! 5974: ;;
! 5975: irix* | nonstopux*)
! 5976: symcode='[BCDEGRST]'
! 5977: ;;
! 5978: osf*)
! 5979: symcode='[BCDEGQRST]'
! 5980: ;;
! 5981: solaris* | sysv5*)
! 5982: symcode='[BDRT]'
! 5983: ;;
! 5984: sysv4)
! 5985: symcode='[DFNSTU]'
! 5986: ;;
! 5987: esac
1.23 millert 5988:
1.25 ! millert 5989: # If we're using GNU nm, then use its standard symbol codes.
! 5990: case `$NM -V 2>&1` in
! 5991: *GNU* | *'with BFD'*)
! 5992: symcode='[ABCDGIRSTW]' ;;
! 5993: esac
! 5994:
! 5995: # Transform an extracted symbol line into a proper C declaration.
! 5996: # Some systems (esp. on ia64) link data and code symbols differently,
! 5997: # so use this general approach.
! 5998: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 5999:
! 6000: # Transform an extracted symbol line into symbol name and symbol address
! 6001: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
! 6002:
! 6003: # Handle CRLF in mingw tool chain
! 6004: opt_cr=
! 6005: case $build_os in
! 6006: mingw*)
! 6007: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
! 6008: ;;
! 6009: esac
! 6010:
! 6011: # Try without a prefix underscore, then with it.
! 6012: for ac_symprfx in "" "_"; do
! 6013:
! 6014: # Write the raw and C identifiers.
! 6015: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1.23 millert 6016:
1.25 ! millert 6017: # Check to see that the pipe works correctly.
! 6018: pipe_works=no
! 6019:
! 6020: rm -f conftest*
! 6021: cat > conftest.$ac_ext <<_LT_EOF
! 6022: #ifdef __cplusplus
! 6023: extern "C" {
! 6024: #endif
! 6025: char nm_test_var;
! 6026: void nm_test_func(){}
! 6027: #ifdef __cplusplus
! 6028: }
! 6029: #endif
! 6030: int main(){nm_test_var='a';nm_test_func();return(0);}
! 6031: _LT_EOF
! 6032:
! 6033: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6034: (eval $ac_compile) 2>&5
1.23 millert 6035: ac_status=$?
6036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6037: (exit $ac_status); }; then
! 6038: # Now try to grab the symbols.
! 6039: nlist=conftest.nm
! 6040: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
! 6041: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23 millert 6042: ac_status=$?
6043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6044: (exit $ac_status); } && test -s "$nlist"; then
! 6045: # Try sorting and uniquifying the output.
! 6046: if sort "$nlist" | uniq > "$nlist"T; then
! 6047: mv -f "$nlist"T "$nlist"
! 6048: else
! 6049: rm -f "$nlist"T
! 6050: fi
! 6051:
! 6052: # Make sure that we snagged all the symbols we need.
! 6053: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
! 6054: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
! 6055: cat <<_LT_EOF > conftest.$ac_ext
! 6056: #ifdef __cplusplus
! 6057: extern "C" {
! 6058: #endif
! 6059:
! 6060: _LT_EOF
! 6061: # Now generate the symbol file.
! 6062: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
1.23 millert 6063:
1.25 ! millert 6064: cat <<_LT_EOF >> conftest.$ac_ext
1.23 millert 6065:
1.25 ! millert 6066: /* The mapping between symbol names and symbols. */
! 6067: const struct {
! 6068: const char *name;
! 6069: void *address;
! 6070: }
! 6071: lt__PROGRAM__LTX_preloaded_symbols[] =
1.23 millert 6072: {
1.25 ! millert 6073: { "@PROGRAM@", (void *) 0 },
! 6074: _LT_EOF
! 6075: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
! 6076: cat <<\_LT_EOF >> conftest.$ac_ext
! 6077: {0, (void *) 0}
! 6078: };
! 6079:
! 6080: /* This works around a problem in FreeBSD linker */
! 6081: #ifdef FREEBSD_WORKAROUND
! 6082: static const void *lt_preloaded_setup() {
! 6083: return lt__PROGRAM__LTX_preloaded_symbols;
! 6084: }
1.23 millert 6085: #endif
6086:
1.25 ! millert 6087: #ifdef __cplusplus
1.23 millert 6088: }
1.25 ! millert 6089: #endif
! 6090: _LT_EOF
! 6091: # Now try linking the two files.
! 6092: mv conftest.$ac_objext conftstm.$ac_objext
! 6093: lt_save_LIBS="$LIBS"
! 6094: lt_save_CFLAGS="$CFLAGS"
! 6095: LIBS="conftstm.$ac_objext"
! 6096: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
! 6097: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6098: (eval $ac_link) 2>&5
1.23 millert 6099: ac_status=$?
6100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6101: (exit $ac_status); } && test -s conftest${ac_exeext}; then
! 6102: pipe_works=yes
! 6103: fi
! 6104: LIBS="$lt_save_LIBS"
! 6105: CFLAGS="$lt_save_CFLAGS"
! 6106: else
! 6107: echo "cannot find nm_test_func in $nlist" >&5
! 6108: fi
! 6109: else
! 6110: echo "cannot find nm_test_var in $nlist" >&5
! 6111: fi
! 6112: else
! 6113: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
! 6114: fi
! 6115: else
! 6116: echo "$progname: failed program was:" >&5
! 6117: cat conftest.$ac_ext >&5
! 6118: fi
! 6119: rm -f conftest* conftst*
! 6120:
! 6121: # Do not use the global_symbol_pipe unless it works.
! 6122: if test "$pipe_works" = yes; then
! 6123: break
! 6124: else
! 6125: lt_cv_sys_global_symbol_pipe=
! 6126: fi
! 6127: done
1.23 millert 6128:
6129: fi
6130:
1.25 ! millert 6131: if test -z "$lt_cv_sys_global_symbol_pipe"; then
! 6132: lt_cv_sys_global_symbol_to_cdecl=
! 6133: fi
! 6134: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
! 6135: echo "$as_me:$LINENO: result: failed" >&5
! 6136: echo "${ECHO_T}failed" >&6
! 6137: else
! 6138: echo "$as_me:$LINENO: result: ok" >&5
! 6139: echo "${ECHO_T}ok" >&6
1.23 millert 6140: fi
1.25 ! millert 6141:
! 6142:
! 6143:
! 6144:
! 6145:
! 6146:
! 6147:
! 6148:
! 6149:
! 6150:
! 6151:
! 6152:
! 6153:
! 6154:
! 6155:
! 6156:
! 6157:
! 6158:
! 6159:
! 6160:
! 6161:
! 6162:
! 6163:
! 6164:
! 6165:
! 6166:
! 6167:
! 6168:
! 6169:
! 6170:
! 6171:
! 6172:
! 6173:
! 6174:
! 6175:
! 6176: # If no C compiler was specified, use CC.
! 6177: LTCC=${LTCC-"$CC"}
! 6178:
! 6179: # If no C compiler flags were specified, use CFLAGS.
! 6180: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
! 6181:
! 6182: # Allow CC to be a program name with arguments.
! 6183: compiler=$CC
! 6184:
! 6185:
! 6186: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 6187: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 6188: if test "${ac_cv_header_stdc+set}" = set; then
1.23 millert 6189: echo $ECHO_N "(cached) $ECHO_C" >&6
6190: else
6191: cat >conftest.$ac_ext <<_ACEOF
6192: /* confdefs.h. */
6193: _ACEOF
6194: cat confdefs.h >>conftest.$ac_ext
6195: cat >>conftest.$ac_ext <<_ACEOF
6196: /* end confdefs.h. */
1.25 ! millert 6197: #include <stdlib.h>
! 6198: #include <stdarg.h>
! 6199: #include <string.h>
! 6200: #include <float.h>
1.23 millert 6201:
6202: int
6203: main ()
6204: {
6205:
6206: ;
6207: return 0;
6208: }
6209: _ACEOF
6210: rm -f conftest.$ac_objext
6211: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 6212: (eval $ac_compile) 2>conftest.er1
1.23 millert 6213: ac_status=$?
1.25 ! millert 6214: grep -v '^ *+' conftest.er1 >conftest.err
! 6215: rm -f conftest.er1
! 6216: cat conftest.err >&5
1.23 millert 6217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218: (exit $ac_status); } &&
1.25 ! millert 6219: { ac_try='test -z "$ac_c_werror_flag"
! 6220: || test ! -s conftest.err'
! 6221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6222: (eval $ac_try) 2>&5
! 6223: ac_status=$?
! 6224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6225: (exit $ac_status); }; } &&
! 6226: { ac_try='test -s conftest.$ac_objext'
1.23 millert 6227: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228: (eval $ac_try) 2>&5
6229: ac_status=$?
6230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231: (exit $ac_status); }; }; then
1.25 ! millert 6232: ac_cv_header_stdc=yes
1.23 millert 6233: else
6234: echo "$as_me: failed program was:" >&5
6235: sed 's/^/| /' conftest.$ac_ext >&5
6236:
1.25 ! millert 6237: ac_cv_header_stdc=no
1.23 millert 6238: fi
1.25 ! millert 6239: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 6240:
! 6241: if test $ac_cv_header_stdc = yes; then
! 6242: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.23 millert 6243: cat >conftest.$ac_ext <<_ACEOF
6244: /* confdefs.h. */
6245: _ACEOF
6246: cat confdefs.h >>conftest.$ac_ext
6247: cat >>conftest.$ac_ext <<_ACEOF
6248: /* end confdefs.h. */
1.25 ! millert 6249: #include <string.h>
! 6250:
1.23 millert 6251: _ACEOF
1.25 ! millert 6252: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6253: $EGREP "memchr" >/dev/null 2>&1; then
1.23 millert 6254: :
6255: else
1.25 ! millert 6256: ac_cv_header_stdc=no
! 6257: fi
! 6258: rm -f conftest*
1.23 millert 6259:
6260: fi
1.25 ! millert 6261:
! 6262: if test $ac_cv_header_stdc = yes; then
! 6263: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.23 millert 6264: cat >conftest.$ac_ext <<_ACEOF
6265: /* confdefs.h. */
6266: _ACEOF
6267: cat confdefs.h >>conftest.$ac_ext
6268: cat >>conftest.$ac_ext <<_ACEOF
6269: /* end confdefs.h. */
1.25 ! millert 6270: #include <stdlib.h>
! 6271:
! 6272: _ACEOF
! 6273: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 6274: $EGREP "free" >/dev/null 2>&1; then
! 6275: :
! 6276: else
! 6277: ac_cv_header_stdc=no
! 6278: fi
! 6279: rm -f conftest*
! 6280:
! 6281: fi
! 6282:
! 6283: if test $ac_cv_header_stdc = yes; then
! 6284: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 6285: if test "$cross_compiling" = yes; then
! 6286: :
! 6287: else
! 6288: cat >conftest.$ac_ext <<_ACEOF
! 6289: /* confdefs.h. */
! 6290: _ACEOF
! 6291: cat confdefs.h >>conftest.$ac_ext
! 6292: cat >>conftest.$ac_ext <<_ACEOF
! 6293: /* end confdefs.h. */
! 6294: #include <ctype.h>
! 6295: #if ((' ' & 0x0FF) == 0x020)
! 6296: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 6297: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 6298: #else
! 6299: # define ISLOWER(c) \
! 6300: (('a' <= (c) && (c) <= 'i') \
! 6301: || ('j' <= (c) && (c) <= 'r') \
! 6302: || ('s' <= (c) && (c) <= 'z'))
! 6303: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 6304: #endif
! 6305:
! 6306: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.23 millert 6307: int
6308: main ()
6309: {
1.25 ! millert 6310: int i;
! 6311: for (i = 0; i < 256; i++)
! 6312: if (XOR (islower (i), ISLOWER (i))
! 6313: || toupper (i) != TOUPPER (i))
! 6314: exit(2);
! 6315: exit (0);
1.23 millert 6316: }
6317: _ACEOF
1.25 ! millert 6318: rm -f conftest$ac_exeext
! 6319: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6320: (eval $ac_link) 2>&5
1.23 millert 6321: ac_status=$?
6322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6323: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.23 millert 6324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325: (eval $ac_try) 2>&5
6326: ac_status=$?
6327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328: (exit $ac_status); }; }; then
1.25 ! millert 6329: :
1.23 millert 6330: else
1.25 ! millert 6331: echo "$as_me: program exited with status $ac_status" >&5
! 6332: echo "$as_me: failed program was:" >&5
1.23 millert 6333: sed 's/^/| /' conftest.$ac_ext >&5
6334:
1.25 ! millert 6335: ( exit $ac_status )
! 6336: ac_cv_header_stdc=no
! 6337: fi
! 6338: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 6339: fi
! 6340: fi
1.23 millert 6341: fi
1.25 ! millert 6342: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 6343: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 6344: if test $ac_cv_header_stdc = yes; then
! 6345:
! 6346: cat >>confdefs.h <<\_ACEOF
! 6347: #define STDC_HEADERS 1
! 6348: _ACEOF
! 6349:
1.23 millert 6350: fi
6351:
1.25 ! millert 6352: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 6353:
! 6354:
! 6355:
! 6356:
! 6357:
! 6358:
! 6359:
! 6360:
! 6361:
! 6362: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 6363: inttypes.h stdint.h unistd.h
! 6364: do
! 6365: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6366: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6367: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 6368: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.23 millert 6369: echo $ECHO_N "(cached) $ECHO_C" >&6
6370: else
6371: cat >conftest.$ac_ext <<_ACEOF
6372: /* confdefs.h. */
6373: _ACEOF
6374: cat confdefs.h >>conftest.$ac_ext
6375: cat >>conftest.$ac_ext <<_ACEOF
6376: /* end confdefs.h. */
1.25 ! millert 6377: $ac_includes_default
! 6378:
! 6379: #include <$ac_header>
1.23 millert 6380: _ACEOF
1.25 ! millert 6381: rm -f conftest.$ac_objext
! 6382: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6383: (eval $ac_compile) 2>conftest.er1
1.23 millert 6384: ac_status=$?
6385: grep -v '^ *+' conftest.er1 >conftest.err
6386: rm -f conftest.er1
6387: cat conftest.err >&5
6388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6389: (exit $ac_status); } &&
! 6390: { ac_try='test -z "$ac_c_werror_flag"
! 6391: || test ! -s conftest.err'
! 6392: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6393: (eval $ac_try) 2>&5
! 6394: ac_status=$?
! 6395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6396: (exit $ac_status); }; } &&
! 6397: { ac_try='test -s conftest.$ac_objext'
! 6398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6399: (eval $ac_try) 2>&5
! 6400: ac_status=$?
! 6401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6402: (exit $ac_status); }; }; then
! 6403: eval "$as_ac_Header=yes"
1.23 millert 6404: else
6405: echo "$as_me: failed program was:" >&5
6406: sed 's/^/| /' conftest.$ac_ext >&5
6407:
1.25 ! millert 6408: eval "$as_ac_Header=no"
! 6409: fi
! 6410: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 6411: fi
! 6412: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 6413: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 6414: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6415: cat >>confdefs.h <<_ACEOF
! 6416: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 6417: _ACEOF
! 6418:
1.23 millert 6419: fi
6420:
1.25 ! millert 6421: done
! 6422:
! 6423:
! 6424:
! 6425: for ac_header in dlfcn.h
! 6426: do
! 6427: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 6428: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 6429: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 6430: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 6431: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6432: else
1.23 millert 6433: cat >conftest.$ac_ext <<_ACEOF
6434: /* confdefs.h. */
6435: _ACEOF
6436: cat confdefs.h >>conftest.$ac_ext
6437: cat >>conftest.$ac_ext <<_ACEOF
6438: /* end confdefs.h. */
1.25 ! millert 6439: $ac_includes_default
! 6440:
! 6441: #include <$ac_header>
1.23 millert 6442: _ACEOF
1.25 ! millert 6443: rm -f conftest.$ac_objext
! 6444: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6445: (eval $ac_compile) 2>conftest.er1
1.23 millert 6446: ac_status=$?
6447: grep -v '^ *+' conftest.er1 >conftest.err
6448: rm -f conftest.er1
6449: cat conftest.err >&5
6450: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6451: (exit $ac_status); } &&
! 6452: { ac_try='test -z "$ac_c_werror_flag"
! 6453: || test ! -s conftest.err'
! 6454: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6455: (eval $ac_try) 2>&5
! 6456: ac_status=$?
! 6457: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6458: (exit $ac_status); }; } &&
! 6459: { ac_try='test -s conftest.$ac_objext'
! 6460: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6461: (eval $ac_try) 2>&5
! 6462: ac_status=$?
! 6463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6464: (exit $ac_status); }; }; then
! 6465: eval "$as_ac_Header=yes"
1.23 millert 6466: else
6467: echo "$as_me: failed program was:" >&5
6468: sed 's/^/| /' conftest.$ac_ext >&5
6469:
1.25 ! millert 6470: eval "$as_ac_Header=no"
! 6471: fi
! 6472: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 6473: fi
! 6474: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 6475: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 6476: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 6477: cat >>confdefs.h <<_ACEOF
! 6478: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 6479: _ACEOF
! 6480:
1.23 millert 6481: fi
6482:
6483: done
6484:
1.25 ! millert 6485: if test "x$enable_dlopen" != xyes; then
! 6486: enable_dlopen=unknown
! 6487: enable_dlopen_self=unknown
! 6488: enable_dlopen_self_static=unknown
! 6489: else
! 6490: lt_cv_dlopen=no
! 6491: lt_cv_dlopen_libs=
! 6492:
! 6493: case $host_os in
! 6494: beos*)
! 6495: lt_cv_dlopen="load_add_on"
! 6496: lt_cv_dlopen_libs=
! 6497: lt_cv_dlopen_self=yes
! 6498: ;;
! 6499:
! 6500: mingw* | pw32*)
! 6501: lt_cv_dlopen="LoadLibrary"
! 6502: lt_cv_dlopen_libs=
! 6503: ;;
! 6504:
! 6505: cygwin*)
! 6506: lt_cv_dlopen="dlopen"
! 6507: lt_cv_dlopen_libs=
! 6508: ;;
1.23 millert 6509:
1.25 ! millert 6510: darwin*)
! 6511: # if libdl is installed we need to link against it
! 6512: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 6513: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 6514: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 6515: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 millert 6516: else
1.25 ! millert 6517: ac_check_lib_save_LIBS=$LIBS
! 6518: LIBS="-ldl $LIBS"
! 6519: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 6520: /* confdefs.h. */
6521: _ACEOF
6522: cat confdefs.h >>conftest.$ac_ext
6523: cat >>conftest.$ac_ext <<_ACEOF
6524: /* end confdefs.h. */
1.25 ! millert 6525:
! 6526: /* Override any gcc2 internal prototype to avoid an error. */
! 6527: #ifdef __cplusplus
! 6528: extern "C"
1.23 millert 6529: #endif
1.25 ! millert 6530: /* We use char because int might match the return type of a gcc2
! 6531: builtin and then its argument prototype would still apply. */
! 6532: char dlopen ();
! 6533: int
! 6534: main ()
! 6535: {
! 6536: dlopen ();
! 6537: ;
! 6538: return 0;
! 6539: }
1.23 millert 6540: _ACEOF
1.25 ! millert 6541: rm -f conftest.$ac_objext conftest$ac_exeext
! 6542: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6543: (eval $ac_link) 2>conftest.er1
1.23 millert 6544: ac_status=$?
6545: grep -v '^ *+' conftest.er1 >conftest.err
6546: rm -f conftest.er1
6547: cat conftest.err >&5
6548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6549: (exit $ac_status); } &&
! 6550: { ac_try='test -z "$ac_c_werror_flag"
! 6551: || test ! -s conftest.err'
! 6552: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6553: (eval $ac_try) 2>&5
! 6554: ac_status=$?
! 6555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6556: (exit $ac_status); }; } &&
! 6557: { ac_try='test -s conftest$ac_exeext'
! 6558: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6559: (eval $ac_try) 2>&5
! 6560: ac_status=$?
! 6561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6562: (exit $ac_status); }; }; then
! 6563: ac_cv_lib_dl_dlopen=yes
1.23 millert 6564: else
6565: echo "$as_me: failed program was:" >&5
6566: sed 's/^/| /' conftest.$ac_ext >&5
6567:
1.25 ! millert 6568: ac_cv_lib_dl_dlopen=no
1.23 millert 6569: fi
1.25 ! millert 6570: rm -f conftest.err conftest.$ac_objext \
! 6571: conftest$ac_exeext conftest.$ac_ext
! 6572: LIBS=$ac_check_lib_save_LIBS
1.23 millert 6573: fi
1.25 ! millert 6574: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 6575: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 6576: if test $ac_cv_lib_dl_dlopen = yes; then
! 6577: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.23 millert 6578: else
6579:
1.25 ! millert 6580: lt_cv_dlopen="dyld"
! 6581: lt_cv_dlopen_libs=
! 6582: lt_cv_dlopen_self=yes
1.23 millert 6583:
6584: fi
6585:
1.25 ! millert 6586: ;;
1.23 millert 6587:
1.25 ! millert 6588: *)
! 6589: echo "$as_me:$LINENO: checking for shl_load" >&5
! 6590: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 6591: if test "${ac_cv_func_shl_load+set}" = set; then
1.23 millert 6592: echo $ECHO_N "(cached) $ECHO_C" >&6
6593: else
1.25 ! millert 6594: cat >conftest.$ac_ext <<_ACEOF
! 6595: /* confdefs.h. */
! 6596: _ACEOF
! 6597: cat confdefs.h >>conftest.$ac_ext
! 6598: cat >>conftest.$ac_ext <<_ACEOF
! 6599: /* end confdefs.h. */
! 6600: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
! 6601: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 6602: #define shl_load innocuous_shl_load
1.23 millert 6603:
1.25 ! millert 6604: /* System header to define __stub macros and hopefully few prototypes,
! 6605: which can conflict with char shl_load (); below.
! 6606: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 6607: <limits.h> exists even on freestanding compilers. */
1.23 millert 6608:
1.25 ! millert 6609: #ifdef __STDC__
! 6610: # include <limits.h>
! 6611: #else
! 6612: # include <assert.h>
! 6613: #endif
1.23 millert 6614:
1.25 ! millert 6615: #undef shl_load
1.23 millert 6616:
1.25 ! millert 6617: /* Override any gcc2 internal prototype to avoid an error. */
! 6618: #ifdef __cplusplus
! 6619: extern "C"
! 6620: {
! 6621: #endif
! 6622: /* We use char because int might match the return type of a gcc2
! 6623: builtin and then its argument prototype would still apply. */
! 6624: char shl_load ();
! 6625: /* The GNU C library defines this for functions which it implements
! 6626: to always fail with ENOSYS. Some functions are actually named
! 6627: something starting with __ and the normal name is an alias. */
! 6628: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 6629: choke me
! 6630: #else
! 6631: char (*f) () = shl_load;
! 6632: #endif
! 6633: #ifdef __cplusplus
! 6634: }
1.23 millert 6635: #endif
6636:
1.25 ! millert 6637: int
! 6638: main ()
! 6639: {
! 6640: return f != shl_load;
! 6641: ;
! 6642: return 0;
! 6643: }
1.23 millert 6644: _ACEOF
1.25 ! millert 6645: rm -f conftest.$ac_objext conftest$ac_exeext
! 6646: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6647: (eval $ac_link) 2>conftest.er1
1.23 millert 6648: ac_status=$?
1.25 ! millert 6649: grep -v '^ *+' conftest.er1 >conftest.err
! 6650: rm -f conftest.er1
! 6651: cat conftest.err >&5
1.23 millert 6652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653: (exit $ac_status); } &&
1.25 ! millert 6654: { ac_try='test -z "$ac_c_werror_flag"
! 6655: || test ! -s conftest.err'
! 6656: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6657: (eval $ac_try) 2>&5
! 6658: ac_status=$?
! 6659: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6660: (exit $ac_status); }; } &&
! 6661: { ac_try='test -s conftest$ac_exeext'
1.23 millert 6662: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663: (eval $ac_try) 2>&5
6664: ac_status=$?
6665: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666: (exit $ac_status); }; }; then
1.25 ! millert 6667: ac_cv_func_shl_load=yes
1.23 millert 6668: else
6669: echo "$as_me: failed program was:" >&5
6670: sed 's/^/| /' conftest.$ac_ext >&5
6671:
1.25 ! millert 6672: ac_cv_func_shl_load=no
1.23 millert 6673: fi
1.25 ! millert 6674: rm -f conftest.err conftest.$ac_objext \
! 6675: conftest$ac_exeext conftest.$ac_ext
1.23 millert 6676: fi
1.25 ! millert 6677: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 6678: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 6679: if test $ac_cv_func_shl_load = yes; then
! 6680: lt_cv_dlopen="shl_load"
! 6681: else
! 6682: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 6683: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 6684: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.23 millert 6685: echo $ECHO_N "(cached) $ECHO_C" >&6
6686: else
1.25 ! millert 6687: ac_check_lib_save_LIBS=$LIBS
! 6688: LIBS="-ldld $LIBS"
1.23 millert 6689: cat >conftest.$ac_ext <<_ACEOF
1.25 ! millert 6690: /* confdefs.h. */
! 6691: _ACEOF
! 6692: cat confdefs.h >>conftest.$ac_ext
! 6693: cat >>conftest.$ac_ext <<_ACEOF
! 6694: /* end confdefs.h. */
1.23 millert 6695:
1.25 ! millert 6696: /* Override any gcc2 internal prototype to avoid an error. */
! 6697: #ifdef __cplusplus
! 6698: extern "C"
! 6699: #endif
! 6700: /* We use char because int might match the return type of a gcc2
! 6701: builtin and then its argument prototype would still apply. */
! 6702: char shl_load ();
! 6703: int
! 6704: main ()
! 6705: {
! 6706: shl_load ();
! 6707: ;
! 6708: return 0;
! 6709: }
1.23 millert 6710: _ACEOF
1.25 ! millert 6711: rm -f conftest.$ac_objext conftest$ac_exeext
! 6712: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6713: (eval $ac_link) 2>conftest.er1
1.23 millert 6714: ac_status=$?
1.25 ! millert 6715: grep -v '^ *+' conftest.er1 >conftest.err
! 6716: rm -f conftest.er1
! 6717: cat conftest.err >&5
1.23 millert 6718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719: (exit $ac_status); } &&
1.25 ! millert 6720: { ac_try='test -z "$ac_c_werror_flag"
! 6721: || test ! -s conftest.err'
! 6722: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6723: (eval $ac_try) 2>&5
! 6724: ac_status=$?
! 6725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6726: (exit $ac_status); }; } &&
! 6727: { ac_try='test -s conftest$ac_exeext'
1.23 millert 6728: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729: (eval $ac_try) 2>&5
6730: ac_status=$?
6731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732: (exit $ac_status); }; }; then
1.25 ! millert 6733: ac_cv_lib_dld_shl_load=yes
1.23 millert 6734: else
6735: echo "$as_me: failed program was:" >&5
6736: sed 's/^/| /' conftest.$ac_ext >&5
6737:
1.25 ! millert 6738: ac_cv_lib_dld_shl_load=no
1.23 millert 6739: fi
1.25 ! millert 6740: rm -f conftest.err conftest.$ac_objext \
! 6741: conftest$ac_exeext conftest.$ac_ext
! 6742: LIBS=$ac_check_lib_save_LIBS
1.23 millert 6743: fi
1.25 ! millert 6744: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 6745: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 6746: if test $ac_cv_lib_dld_shl_load = yes; then
! 6747: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
1.23 millert 6748: else
1.25 ! millert 6749: echo "$as_me:$LINENO: checking for dlopen" >&5
! 6750: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 6751: if test "${ac_cv_func_dlopen+set}" = set; then
1.23 millert 6752: echo $ECHO_N "(cached) $ECHO_C" >&6
6753: else
1.25 ! millert 6754: cat >conftest.$ac_ext <<_ACEOF
! 6755: /* confdefs.h. */
! 6756: _ACEOF
! 6757: cat confdefs.h >>conftest.$ac_ext
! 6758: cat >>conftest.$ac_ext <<_ACEOF
! 6759: /* end confdefs.h. */
! 6760: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
! 6761: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 6762: #define dlopen innocuous_dlopen
1.23 millert 6763:
1.25 ! millert 6764: /* System header to define __stub macros and hopefully few prototypes,
! 6765: which can conflict with char dlopen (); below.
! 6766: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 6767: <limits.h> exists even on freestanding compilers. */
1.23 millert 6768:
1.25 ! millert 6769: #ifdef __STDC__
! 6770: # include <limits.h>
! 6771: #else
! 6772: # include <assert.h>
! 6773: #endif
1.23 millert 6774:
1.25 ! millert 6775: #undef dlopen
1.23 millert 6776:
1.25 ! millert 6777: /* Override any gcc2 internal prototype to avoid an error. */
1.23 millert 6778: #ifdef __cplusplus
1.25 ! millert 6779: extern "C"
! 6780: {
! 6781: #endif
! 6782: /* We use char because int might match the return type of a gcc2
! 6783: builtin and then its argument prototype would still apply. */
! 6784: char dlopen ();
! 6785: /* The GNU C library defines this for functions which it implements
! 6786: to always fail with ENOSYS. Some functions are actually named
! 6787: something starting with __ and the normal name is an alias. */
! 6788: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 6789: choke me
! 6790: #else
! 6791: char (*f) () = dlopen;
1.23 millert 6792: #endif
6793: #ifdef __cplusplus
6794: }
6795: #endif
6796:
1.25 ! millert 6797: int
! 6798: main ()
! 6799: {
! 6800: return f != dlopen;
! 6801: ;
! 6802: return 0;
! 6803: }
! 6804: _ACEOF
! 6805: rm -f conftest.$ac_objext conftest$ac_exeext
! 6806: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6807: (eval $ac_link) 2>conftest.er1
! 6808: ac_status=$?
! 6809: grep -v '^ *+' conftest.er1 >conftest.err
! 6810: rm -f conftest.er1
! 6811: cat conftest.err >&5
! 6812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6813: (exit $ac_status); } &&
! 6814: { ac_try='test -z "$ac_c_werror_flag"
! 6815: || test ! -s conftest.err'
! 6816: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6817: (eval $ac_try) 2>&5
1.23 millert 6818: ac_status=$?
6819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6820: (exit $ac_status); }; } &&
! 6821: { ac_try='test -s conftest$ac_exeext'
! 6822: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6823: (eval $ac_try) 2>&5
1.23 millert 6824: ac_status=$?
6825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6826: (exit $ac_status); }; }; then
! 6827: ac_cv_func_dlopen=yes
! 6828: else
! 6829: echo "$as_me: failed program was:" >&5
! 6830: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6831:
1.25 ! millert 6832: ac_cv_func_dlopen=no
! 6833: fi
! 6834: rm -f conftest.err conftest.$ac_objext \
! 6835: conftest$ac_exeext conftest.$ac_ext
! 6836: fi
! 6837: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 6838: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 6839: if test $ac_cv_func_dlopen = yes; then
! 6840: lt_cv_dlopen="dlopen"
! 6841: else
! 6842: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 6843: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 6844: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 6845: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6846: else
! 6847: ac_check_lib_save_LIBS=$LIBS
! 6848: LIBS="-ldl $LIBS"
! 6849: cat >conftest.$ac_ext <<_ACEOF
! 6850: /* confdefs.h. */
! 6851: _ACEOF
! 6852: cat confdefs.h >>conftest.$ac_ext
! 6853: cat >>conftest.$ac_ext <<_ACEOF
! 6854: /* end confdefs.h. */
! 6855:
! 6856: /* Override any gcc2 internal prototype to avoid an error. */
1.23 millert 6857: #ifdef __cplusplus
1.25 ! millert 6858: extern "C"
1.23 millert 6859: #endif
1.25 ! millert 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 dlopen ();
! 6863: int
! 6864: main ()
! 6865: {
! 6866: dlopen ();
! 6867: ;
! 6868: return 0;
! 6869: }
! 6870: _ACEOF
! 6871: rm -f conftest.$ac_objext conftest$ac_exeext
! 6872: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6873: (eval $ac_link) 2>conftest.er1
! 6874: ac_status=$?
! 6875: grep -v '^ *+' conftest.er1 >conftest.err
! 6876: rm -f conftest.er1
! 6877: cat conftest.err >&5
! 6878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6879: (exit $ac_status); } &&
! 6880: { ac_try='test -z "$ac_c_werror_flag"
! 6881: || test ! -s conftest.err'
! 6882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6883: (eval $ac_try) 2>&5
! 6884: ac_status=$?
! 6885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6886: (exit $ac_status); }; } &&
! 6887: { ac_try='test -s conftest$ac_exeext'
! 6888: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6889: (eval $ac_try) 2>&5
! 6890: ac_status=$?
! 6891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6892: (exit $ac_status); }; }; then
! 6893: ac_cv_lib_dl_dlopen=yes
! 6894: else
! 6895: echo "$as_me: failed program was:" >&5
! 6896: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6897:
1.25 ! millert 6898: ac_cv_lib_dl_dlopen=no
! 6899: fi
! 6900: rm -f conftest.err conftest.$ac_objext \
! 6901: conftest$ac_exeext conftest.$ac_ext
! 6902: LIBS=$ac_check_lib_save_LIBS
! 6903: fi
! 6904: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 6905: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 6906: if test $ac_cv_lib_dl_dlopen = yes; then
! 6907: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 6908: else
! 6909: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 6910: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 6911: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 6912: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6913: else
! 6914: ac_check_lib_save_LIBS=$LIBS
! 6915: LIBS="-lsvld $LIBS"
! 6916: cat >conftest.$ac_ext <<_ACEOF
! 6917: /* confdefs.h. */
! 6918: _ACEOF
! 6919: cat confdefs.h >>conftest.$ac_ext
! 6920: cat >>conftest.$ac_ext <<_ACEOF
! 6921: /* end confdefs.h. */
1.23 millert 6922:
1.25 ! millert 6923: /* Override any gcc2 internal prototype to avoid an error. */
! 6924: #ifdef __cplusplus
! 6925: extern "C"
1.23 millert 6926: #endif
1.25 ! millert 6927: /* We use char because int might match the return type of a gcc2
! 6928: builtin and then its argument prototype would still apply. */
! 6929: char dlopen ();
! 6930: int
! 6931: main ()
1.23 millert 6932: {
1.25 ! millert 6933: dlopen ();
! 6934: ;
! 6935: return 0;
1.23 millert 6936: }
1.25 ! millert 6937: _ACEOF
! 6938: rm -f conftest.$ac_objext conftest$ac_exeext
! 6939: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6940: (eval $ac_link) 2>conftest.er1
! 6941: ac_status=$?
! 6942: grep -v '^ *+' conftest.er1 >conftest.err
! 6943: rm -f conftest.er1
! 6944: cat conftest.err >&5
! 6945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6946: (exit $ac_status); } &&
! 6947: { ac_try='test -z "$ac_c_werror_flag"
! 6948: || test ! -s conftest.err'
! 6949: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6950: (eval $ac_try) 2>&5
! 6951: ac_status=$?
! 6952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6953: (exit $ac_status); }; } &&
! 6954: { ac_try='test -s conftest$ac_exeext'
! 6955: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6956: (eval $ac_try) 2>&5
1.23 millert 6957: ac_status=$?
6958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 6959: (exit $ac_status); }; }; then
! 6960: ac_cv_lib_svld_dlopen=yes
! 6961: else
! 6962: echo "$as_me: failed program was:" >&5
! 6963: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6964:
1.25 ! millert 6965: ac_cv_lib_svld_dlopen=no
1.23 millert 6966: fi
1.25 ! millert 6967: rm -f conftest.err conftest.$ac_objext \
! 6968: conftest$ac_exeext conftest.$ac_ext
! 6969: LIBS=$ac_check_lib_save_LIBS
1.23 millert 6970: fi
1.25 ! millert 6971: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 6972: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 6973: if test $ac_cv_lib_svld_dlopen = yes; then
! 6974: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1.23 millert 6975: else
1.25 ! millert 6976: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 6977: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 6978: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.23 millert 6979: echo $ECHO_N "(cached) $ECHO_C" >&6
6980: else
1.25 ! millert 6981: ac_check_lib_save_LIBS=$LIBS
! 6982: LIBS="-ldld $LIBS"
! 6983: cat >conftest.$ac_ext <<_ACEOF
! 6984: /* confdefs.h. */
! 6985: _ACEOF
! 6986: cat confdefs.h >>conftest.$ac_ext
! 6987: cat >>conftest.$ac_ext <<_ACEOF
! 6988: /* end confdefs.h. */
! 6989:
! 6990: /* Override any gcc2 internal prototype to avoid an error. */
! 6991: #ifdef __cplusplus
! 6992: extern "C"
! 6993: #endif
! 6994: /* We use char because int might match the return type of a gcc2
! 6995: builtin and then its argument prototype would still apply. */
! 6996: char dld_link ();
! 6997: int
! 6998: main ()
! 6999: {
! 7000: dld_link ();
! 7001: ;
! 7002: return 0;
! 7003: }
! 7004: _ACEOF
! 7005: rm -f conftest.$ac_objext conftest$ac_exeext
! 7006: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7007: (eval $ac_link) 2>conftest.er1
! 7008: ac_status=$?
! 7009: grep -v '^ *+' conftest.er1 >conftest.err
! 7010: rm -f conftest.er1
! 7011: cat conftest.err >&5
! 7012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7013: (exit $ac_status); } &&
! 7014: { ac_try='test -z "$ac_c_werror_flag"
! 7015: || test ! -s conftest.err'
! 7016: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7017: (eval $ac_try) 2>&5
! 7018: ac_status=$?
! 7019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7020: (exit $ac_status); }; } &&
! 7021: { ac_try='test -s conftest$ac_exeext'
! 7022: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7023: (eval $ac_try) 2>&5
! 7024: ac_status=$?
! 7025: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7026: (exit $ac_status); }; }; then
! 7027: ac_cv_lib_dld_dld_link=yes
1.23 millert 7028: else
1.25 ! millert 7029: echo "$as_me: failed program was:" >&5
! 7030: sed 's/^/| /' conftest.$ac_ext >&5
! 7031:
! 7032: ac_cv_lib_dld_dld_link=no
! 7033: fi
! 7034: rm -f conftest.err conftest.$ac_objext \
! 7035: conftest$ac_exeext conftest.$ac_ext
! 7036: LIBS=$ac_check_lib_save_LIBS
! 7037: fi
! 7038: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 7039: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 7040: if test $ac_cv_lib_dld_dld_link = yes; then
! 7041: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
1.23 millert 7042: fi
1.25 ! millert 7043:
! 7044:
1.23 millert 7045: fi
7046:
7047:
1.25 ! millert 7048: fi
1.23 millert 7049:
7050:
1.25 ! millert 7051: fi
1.23 millert 7052:
7053:
1.25 ! millert 7054: fi
1.23 millert 7055:
7056:
1.25 ! millert 7057: fi
! 7058:
! 7059: ;;
! 7060: esac
1.23 millert 7061:
1.25 ! millert 7062: if test "x$lt_cv_dlopen" != xno; then
! 7063: enable_dlopen=yes
! 7064: else
! 7065: enable_dlopen=no
! 7066: fi
1.23 millert 7067:
1.25 ! millert 7068: case $lt_cv_dlopen in
! 7069: dlopen)
! 7070: save_CPPFLAGS="$CPPFLAGS"
! 7071: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23 millert 7072:
1.25 ! millert 7073: save_LDFLAGS="$LDFLAGS"
! 7074: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.23 millert 7075:
1.25 ! millert 7076: save_LIBS="$LIBS"
! 7077: LIBS="$lt_cv_dlopen_libs $LIBS"
1.23 millert 7078:
1.25 ! millert 7079: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 7080: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 7081: if test "${lt_cv_dlopen_self+set}" = set; then
1.23 millert 7082: echo $ECHO_N "(cached) $ECHO_C" >&6
7083: else
1.25 ! millert 7084: if test "$cross_compiling" = yes; then :
! 7085: lt_cv_dlopen_self=cross
1.23 millert 7086: else
1.25 ! millert 7087: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 7088: lt_status=$lt_dlunknown
! 7089: cat > conftest.$ac_ext <<_LT_EOF
! 7090: #line 7090 "configure"
! 7091: #include "confdefs.h"
! 7092:
! 7093: #if HAVE_DLFCN_H
! 7094: #include <dlfcn.h>
! 7095: #endif
! 7096:
! 7097: #include <stdio.h>
! 7098:
! 7099: #ifdef RTLD_GLOBAL
! 7100: # define LT_DLGLOBAL RTLD_GLOBAL
! 7101: #else
! 7102: # ifdef DL_GLOBAL
! 7103: # define LT_DLGLOBAL DL_GLOBAL
! 7104: # else
! 7105: # define LT_DLGLOBAL 0
! 7106: # endif
! 7107: #endif
! 7108:
! 7109: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 7110: find out it does not work in some platform. */
! 7111: #ifndef LT_DLLAZY_OR_NOW
! 7112: # ifdef RTLD_LAZY
! 7113: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 7114: # else
! 7115: # ifdef DL_LAZY
! 7116: # define LT_DLLAZY_OR_NOW DL_LAZY
! 7117: # else
! 7118: # ifdef RTLD_NOW
! 7119: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 7120: # else
! 7121: # ifdef DL_NOW
! 7122: # define LT_DLLAZY_OR_NOW DL_NOW
! 7123: # else
! 7124: # define LT_DLLAZY_OR_NOW 0
! 7125: # endif
! 7126: # endif
! 7127: # endif
! 7128: # endif
! 7129: #endif
! 7130:
! 7131: #ifdef __cplusplus
! 7132: extern "C" void exit (int);
! 7133: #endif
! 7134:
! 7135: void fnord() { int i=42;}
! 7136: int main ()
! 7137: {
! 7138: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 7139: int status = $lt_dlunknown;
1.23 millert 7140:
1.25 ! millert 7141: if (self)
! 7142: {
! 7143: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 7144: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 7145: /* dlclose (self); */
! 7146: }
1.23 millert 7147:
1.25 ! millert 7148: exit (status);
! 7149: }
! 7150: _LT_EOF
! 7151: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7152: (eval $ac_link) 2>&5
! 7153: ac_status=$?
! 7154: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7155: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 7156: (./conftest; exit; ) 2>/dev/null
! 7157: lt_status=$?
! 7158: case x$lt_status in
! 7159: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 7160: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 7161: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 7162: esac
! 7163: else :
! 7164: # compilation failed
! 7165: lt_cv_dlopen_self=no
! 7166: fi
1.23 millert 7167: fi
1.25 ! millert 7168: rm -fr conftest*
1.23 millert 7169:
7170:
7171: fi
1.25 ! millert 7172: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 7173: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.23 millert 7174:
1.25 ! millert 7175: if test "x$lt_cv_dlopen_self" = xyes; then
! 7176: LDFLAGS="$LDFLAGS $link_static_flag"
! 7177: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 7178: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 7179: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.23 millert 7180: echo $ECHO_N "(cached) $ECHO_C" >&6
7181: else
1.25 ! millert 7182: if test "$cross_compiling" = yes; then :
! 7183: lt_cv_dlopen_self_static=cross
1.23 millert 7184: else
1.25 ! millert 7185: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 7186: lt_status=$lt_dlunknown
! 7187: cat > conftest.$ac_ext <<_LT_EOF
! 7188: #line 7188 "configure"
! 7189: #include "confdefs.h"
1.23 millert 7190:
1.25 ! millert 7191: #if HAVE_DLFCN_H
! 7192: #include <dlfcn.h>
! 7193: #endif
1.23 millert 7194:
1.25 ! millert 7195: #include <stdio.h>
1.23 millert 7196:
1.25 ! millert 7197: #ifdef RTLD_GLOBAL
! 7198: # define LT_DLGLOBAL RTLD_GLOBAL
! 7199: #else
! 7200: # ifdef DL_GLOBAL
! 7201: # define LT_DLGLOBAL DL_GLOBAL
! 7202: # else
! 7203: # define LT_DLGLOBAL 0
! 7204: # endif
! 7205: #endif
! 7206:
! 7207: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 7208: find out it does not work in some platform. */
! 7209: #ifndef LT_DLLAZY_OR_NOW
! 7210: # ifdef RTLD_LAZY
! 7211: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 7212: # else
! 7213: # ifdef DL_LAZY
! 7214: # define LT_DLLAZY_OR_NOW DL_LAZY
! 7215: # else
! 7216: # ifdef RTLD_NOW
! 7217: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 7218: # else
! 7219: # ifdef DL_NOW
! 7220: # define LT_DLLAZY_OR_NOW DL_NOW
! 7221: # else
! 7222: # define LT_DLLAZY_OR_NOW 0
! 7223: # endif
! 7224: # endif
! 7225: # endif
! 7226: # endif
! 7227: #endif
! 7228:
! 7229: #ifdef __cplusplus
! 7230: extern "C" void exit (int);
! 7231: #endif
! 7232:
! 7233: void fnord() { int i=42;}
! 7234: int main ()
! 7235: {
! 7236: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 7237: int status = $lt_dlunknown;
! 7238:
! 7239: if (self)
! 7240: {
! 7241: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 7242: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 7243: /* dlclose (self); */
! 7244: }
! 7245:
! 7246: exit (status);
! 7247: }
! 7248: _LT_EOF
! 7249: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7250: (eval $ac_link) 2>&5
! 7251: ac_status=$?
! 7252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7253: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 7254: (./conftest; exit; ) 2>/dev/null
! 7255: lt_status=$?
! 7256: case x$lt_status in
! 7257: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 7258: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 7259: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 7260: esac
! 7261: else :
! 7262: # compilation failed
! 7263: lt_cv_dlopen_self_static=no
! 7264: fi
1.23 millert 7265: fi
1.25 ! millert 7266: rm -fr conftest*
! 7267:
! 7268:
1.23 millert 7269: fi
1.25 ! millert 7270: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 7271: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 7272: fi
! 7273:
! 7274: CPPFLAGS="$save_CPPFLAGS"
! 7275: LDFLAGS="$save_LDFLAGS"
! 7276: LIBS="$save_LIBS"
! 7277: ;;
! 7278: esac
! 7279:
! 7280: case $lt_cv_dlopen_self in
! 7281: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 7282: *) enable_dlopen_self=unknown ;;
! 7283: esac
! 7284:
! 7285: case $lt_cv_dlopen_self_static in
! 7286: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 7287: *) enable_dlopen_self_static=unknown ;;
! 7288: esac
1.23 millert 7289: fi
7290:
7291:
7292:
7293:
7294:
7295:
7296:
7297:
7298:
7299:
7300:
7301:
7302:
7303:
7304:
7305:
1.25 ! millert 7306: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 7307: if test "${enable_libtool_lock+set}" = set; then
! 7308: enableval="$enable_libtool_lock"
! 7309:
! 7310: fi;
! 7311: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 7312:
! 7313: # Some flags need to be propagated to the compiler or linker for good
! 7314: # libtool support.
! 7315: case $host in
! 7316: ia64-*-hpux*)
! 7317: # Find out which ABI we are using.
! 7318: $ECHO 'int i;' > conftest.$ac_ext
! 7319: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7320: (eval $ac_compile) 2>&5
! 7321: ac_status=$?
! 7322: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7323: (exit $ac_status); }; then
! 7324: case `/usr/bin/file conftest.$ac_objext` in
! 7325: *ELF-32*)
! 7326: HPUX_IA64_MODE="32"
! 7327: ;;
! 7328: *ELF-64*)
! 7329: HPUX_IA64_MODE="64"
! 7330: ;;
! 7331: esac
! 7332: fi
! 7333: rm -rf conftest*
! 7334: ;;
! 7335: *-*-irix6*)
! 7336: # Find out which ABI we are using.
! 7337: $ECHO '#line 7337 "configure"' > conftest.$ac_ext
! 7338: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7339: (eval $ac_compile) 2>&5
! 7340: ac_status=$?
! 7341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7342: (exit $ac_status); }; then
! 7343: if test "$lt_cv_prog_gnu_ld" = yes; then
! 7344: case `/usr/bin/file conftest.$ac_objext` in
! 7345: *32-bit*)
! 7346: LD="${LD-ld} -melf32bsmip"
! 7347: ;;
! 7348: *N32*)
! 7349: LD="${LD-ld} -melf32bmipn32"
! 7350: ;;
! 7351: *64-bit*)
! 7352: LD="${LD-ld} -melf64bmip"
! 7353: ;;
! 7354: esac
! 7355: else
! 7356: case `/usr/bin/file conftest.$ac_objext` in
! 7357: *32-bit*)
! 7358: LD="${LD-ld} -32"
! 7359: ;;
! 7360: *N32*)
! 7361: LD="${LD-ld} -n32"
! 7362: ;;
! 7363: *64-bit*)
! 7364: LD="${LD-ld} -64"
! 7365: ;;
! 7366: esac
! 7367: fi
! 7368: fi
! 7369: rm -rf conftest*
! 7370: ;;
! 7371:
! 7372: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
! 7373: # Find out which ABI we are using.
! 7374: $ECHO 'int i;' > conftest.$ac_ext
! 7375: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 7376: (eval $ac_compile) 2>&5
! 7377: ac_status=$?
! 7378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7379: (exit $ac_status); }; then
! 7380: case "`/usr/bin/file conftest.o`" in
! 7381: *32-bit*)
! 7382: case $host in
! 7383: x86_64-*linux*)
! 7384: LD="${LD-ld} -m elf_i386"
! 7385: ;;
! 7386: ppc64-*linux*|powerpc64-*linux*)
! 7387: LD="${LD-ld} -m elf32ppclinux"
! 7388: ;;
! 7389: s390x-*linux*)
! 7390: LD="${LD-ld} -m elf_s390"
! 7391: ;;
! 7392: sparc64-*linux*)
! 7393: LD="${LD-ld} -m elf32_sparc"
! 7394: ;;
! 7395: esac
! 7396: ;;
! 7397: *64-bit*)
! 7398: case $host in
! 7399: x86_64-*linux*)
! 7400: LD="${LD-ld} -m elf_x86_64"
! 7401: ;;
! 7402: ppc*-*linux*|powerpc*-*linux*)
! 7403: LD="${LD-ld} -m elf64ppc"
! 7404: ;;
! 7405: s390*-*linux*|s390*-*tpf*)
! 7406: LD="${LD-ld} -m elf64_s390"
! 7407: ;;
! 7408: sparc*-*linux*)
! 7409: LD="${LD-ld} -m elf64_sparc"
! 7410: ;;
! 7411: esac
! 7412: ;;
! 7413: esac
! 7414: fi
! 7415: rm -rf conftest*
! 7416: ;;
! 7417:
! 7418: *-*-sco3.2v5*)
! 7419: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
! 7420: SAVE_CFLAGS="$CFLAGS"
! 7421: CFLAGS="$CFLAGS -belf"
! 7422: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 7423: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
! 7424: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23 millert 7425: echo $ECHO_N "(cached) $ECHO_C" >&6
7426: else
1.25 ! millert 7427: ac_ext=c
! 7428: ac_cpp='$CPP $CPPFLAGS'
! 7429: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 7430: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 7431: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 7432:
1.25 ! millert 7433: cat >conftest.$ac_ext <<_ACEOF
! 7434: /* confdefs.h. */
! 7435: _ACEOF
! 7436: cat confdefs.h >>conftest.$ac_ext
! 7437: cat >>conftest.$ac_ext <<_ACEOF
! 7438: /* end confdefs.h. */
1.23 millert 7439:
1.25 ! millert 7440: int
! 7441: main ()
! 7442: {
1.23 millert 7443:
1.25 ! millert 7444: ;
! 7445: return 0;
! 7446: }
! 7447: _ACEOF
! 7448: rm -f conftest.$ac_objext conftest$ac_exeext
! 7449: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 7450: (eval $ac_link) 2>conftest.er1
! 7451: ac_status=$?
! 7452: grep -v '^ *+' conftest.er1 >conftest.err
! 7453: rm -f conftest.er1
! 7454: cat conftest.err >&5
! 7455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7456: (exit $ac_status); } &&
! 7457: { ac_try='test -z "$ac_c_werror_flag"
! 7458: || test ! -s conftest.err'
! 7459: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7460: (eval $ac_try) 2>&5
! 7461: ac_status=$?
! 7462: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7463: (exit $ac_status); }; } &&
! 7464: { ac_try='test -s conftest$ac_exeext'
! 7465: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 7466: (eval $ac_try) 2>&5
! 7467: ac_status=$?
! 7468: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 7469: (exit $ac_status); }; }; then
! 7470: lt_cv_cc_needs_belf=yes
1.23 millert 7471: else
1.25 ! millert 7472: echo "$as_me: failed program was:" >&5
! 7473: sed 's/^/| /' conftest.$ac_ext >&5
! 7474:
! 7475: lt_cv_cc_needs_belf=no
1.23 millert 7476: fi
1.25 ! millert 7477: rm -f conftest.err conftest.$ac_objext \
! 7478: conftest$ac_exeext conftest.$ac_ext
! 7479: ac_ext=c
! 7480: ac_cpp='$CPP $CPPFLAGS'
! 7481: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 7482: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 7483: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 7484:
7485: fi
1.25 ! millert 7486: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 7487: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
! 7488: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 7489: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 7490: CFLAGS="$SAVE_CFLAGS"
1.23 millert 7491: fi
7492: ;;
7493: esac
7494:
1.25 ! millert 7495: need_locks="$enable_libtool_lock"
! 7496:
1.23 millert 7497:
1.25 ! millert 7498: # This can be used to rebuild libtool when needed
! 7499: LIBTOOL_DEPS="$ltmain"
1.23 millert 7500:
1.25 ! millert 7501: # Always use our own libtool.
! 7502: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23 millert 7503:
1.25 ! millert 7504: # Set options
1.23 millert 7505:
1.25 ! millert 7506: # Check whether --enable-static or --disable-static was given.
! 7507: if test "${enable_static+set}" = set; then
! 7508: enableval="$enable_static"
! 7509: p=${PACKAGE-default}
! 7510: case $enableval in
! 7511: yes) enable_static=yes ;;
! 7512: no) enable_static=no ;;
! 7513: *)
! 7514: enable_static=no
! 7515: # Look at the argument we got. We use all the common list separators.
! 7516: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 7517: for pkg in $enableval; do
! 7518: IFS="$lt_save_ifs"
! 7519: if test "X$pkg" = "X$p"; then
! 7520: enable_static=yes
! 7521: fi
! 7522: done
! 7523: IFS="$lt_save_ifs"
! 7524: ;;
! 7525: esac
1.23 millert 7526: else
1.25 ! millert 7527: enable_static=no
1.23 millert 7528: fi;
7529:
7530:
7531:
7532:
7533:
7534:
1.25 ! millert 7535:
! 7536: enable_dlopen=no
! 7537:
! 7538: enable_win32_dll=no
! 7539:
! 7540: # Check whether --enable-shared or --disable-shared was given.
! 7541: if test "${enable_shared+set}" = set; then
! 7542: enableval="$enable_shared"
! 7543: p=${PACKAGE-default}
! 7544: case $enableval in
! 7545: yes) enable_shared=yes ;;
! 7546: no) enable_shared=no ;;
! 7547: *)
! 7548: enable_shared=no
! 7549: # Look at the argument we got. We use all the common list separators.
! 7550: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 7551: for pkg in $enableval; do
! 7552: IFS="$lt_save_ifs"
! 7553: if test "X$pkg" = "X$p"; then
! 7554: enable_shared=yes
! 7555: fi
! 7556: done
! 7557: IFS="$lt_save_ifs"
! 7558: ;;
! 7559: esac
! 7560: else
! 7561: enable_shared=yes
! 7562: fi;
! 7563:
1.23 millert 7564:
7565:
7566:
7567:
7568:
7569:
7570:
7571:
7572:
1.25 ! millert 7573: # Check whether --with-pic or --without-pic was given.
! 7574: if test "${with_pic+set}" = set; then
! 7575: withval="$with_pic"
! 7576: pic_mode="$withval"
1.23 millert 7577: else
1.25 ! millert 7578: pic_mode=default
! 7579: fi;
1.23 millert 7580:
1.25 ! millert 7581: test -z "$pic_mode" && pic_mode=default
1.23 millert 7582:
7583:
7584:
7585:
7586:
7587:
7588:
1.25 ! millert 7589: # Check whether --enable-fast-install or --disable-fast-install was given.
! 7590: if test "${enable_fast_install+set}" = set; then
! 7591: enableval="$enable_fast_install"
! 7592: p=${PACKAGE-default}
! 7593: case $enableval in
! 7594: yes) enable_fast_install=yes ;;
! 7595: no) enable_fast_install=no ;;
! 7596: *)
! 7597: enable_fast_install=no
! 7598: # Look at the argument we got. We use all the common list separators.
! 7599: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 7600: for pkg in $enableval; do
! 7601: IFS="$lt_save_ifs"
! 7602: if test "X$pkg" = "X$p"; then
! 7603: enable_fast_install=yes
! 7604: fi
! 7605: done
! 7606: IFS="$lt_save_ifs"
! 7607: ;;
! 7608: esac
1.23 millert 7609: else
1.25 ! millert 7610: enable_fast_install=yes
! 7611: fi;
1.23 millert 7612:
7613:
7614:
7615:
7616:
7617:
7618:
7619:
7620:
7621:
7622:
7623:
7624:
7625:
7626:
7627:
1.25 ! millert 7628: test -z "$LN_S" && LN_S="ln -s"
! 7629:
1.23 millert 7630:
7631:
7632:
7633:
7634:
7635:
7636:
7637:
7638:
7639:
7640:
7641:
7642:
1.25 ! millert 7643: if test -n "${ZSH_VERSION+set}" ; then
! 7644: setopt NO_GLOB_SUBST
1.23 millert 7645: fi
7646:
1.25 ! millert 7647: echo "$as_me:$LINENO: checking for objdir" >&5
! 7648: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
! 7649: if test "${lt_cv_objdir+set}" = set; then
! 7650: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7651: else
! 7652: rm -f .libs 2>/dev/null
! 7653: mkdir .libs 2>/dev/null
! 7654: if test -d .libs; then
! 7655: lt_cv_objdir=.libs
1.23 millert 7656: else
1.25 ! millert 7657: # MS-DOS does not allow filenames that begin with a dot.
! 7658: lt_cv_objdir=_libs
! 7659: fi
! 7660: rmdir .libs 2>/dev/null
1.23 millert 7661: fi
1.25 ! millert 7662: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 7663: echo "${ECHO_T}$lt_cv_objdir" >&6
! 7664: objdir=$lt_cv_objdir
! 7665:
! 7666:
! 7667:
1.23 millert 7668:
7669:
1.25 ! millert 7670: cat >>confdefs.h <<_ACEOF
! 7671: #define LT_OBJDIR "$lt_cv_objdir/"
! 7672: _ACEOF
1.23 millert 7673:
7674:
7675:
7676:
7677:
7678:
7679:
7680:
7681:
7682:
7683:
7684:
7685:
7686:
7687:
7688:
7689:
1.25 ! millert 7690: case $host_os in
! 7691: aix3*)
! 7692: # AIX sometimes has problems with the GCC collect2 program. For some
! 7693: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 7694: # vanish in a puff of smoke.
! 7695: if test "X${COLLECT_NAMES+set}" != Xset; then
! 7696: COLLECT_NAMES=
! 7697: export COLLECT_NAMES
! 7698: fi
! 7699: ;;
! 7700: esac
1.23 millert 7701:
1.25 ! millert 7702: # Sed substitution that helps us do robust quoting. It backslashifies
! 7703: # metacharacters that are still active within double-quoted strings.
! 7704: Xsed='sed -e s/^X//'
! 7705: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
1.23 millert 7706:
1.25 ! millert 7707: # Same as above, but do not quote variable references.
! 7708: double_quote_subst='s/\(["`\\]\)/\\\1/g'
1.23 millert 7709:
1.25 ! millert 7710: # Sed substitution to delay expansion of an escaped shell variable in a
! 7711: # double_quote_subst'ed string.
! 7712: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.23 millert 7713:
1.25 ! millert 7714: # Sed substitution to delay expansion of an escaped single quote.
! 7715: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1.23 millert 7716:
1.25 ! millert 7717: # Sed substitution to avoid accidental globbing in evaled expressions
! 7718: no_glob_subst='s/\*/\\\*/g'
1.23 millert 7719:
1.25 ! millert 7720: # Constants:
! 7721: RM="rm -f"
1.23 millert 7722:
1.25 ! millert 7723: # Global variables:
! 7724: default_ofile=libtool
! 7725: ofile="$default_ofile"
! 7726: can_build_shared=yes
1.23 millert 7727:
1.25 ! millert 7728: # All known linkers require a `.a' archive for static linking (except M$VC,
! 7729: # which needs '.lib').
! 7730: libext=a
1.23 millert 7731:
1.25 ! millert 7732: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.23 millert 7733:
1.25 ! millert 7734: old_CC="$CC"
! 7735: old_CFLAGS="$CFLAGS"
1.23 millert 7736:
1.25 ! millert 7737: # Set sane defaults for various variables
! 7738: test -z "$CC" && CC=cc
! 7739: test -z "$LTCC" && LTCC=$CC
! 7740: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
! 7741: test -z "$LD" && LD=ld
! 7742: test -z "$ac_objext" && ac_objext=o
1.23 millert 7743:
1.25 ! millert 7744: cc_basename=`$ECHO X"$compiler" | $Xsed -e 's%^.*/%%'`
1.23 millert 7745:
1.25 ! millert 7746: # Only perform the check for file, if the check method requires it
! 7747: test -z "$MAGIC_CMD" && MAGIC_CMD=file
! 7748: case $deplibs_check_method in
! 7749: file_magic*)
! 7750: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 7751: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 7752: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
! 7753: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7754: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7755: else
! 7756: case $MAGIC_CMD in
! 7757: [\\/*] | ?:[\\/]*)
! 7758: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7759: ;;
! 7760: *)
! 7761: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7762: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7763: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7764: for ac_dir in $ac_dummy; do
! 7765: IFS="$lt_save_ifs"
! 7766: test -z "$ac_dir" && ac_dir=.
! 7767: if test -f $ac_dir/${ac_tool_prefix}file; then
! 7768: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 7769: if test -n "$file_magic_test_file"; then
! 7770: case $deplibs_check_method in
! 7771: "file_magic "*)
! 7772: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
! 7773: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7774: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7775: $EGREP "$file_magic_regex" > /dev/null; then
! 7776: :
1.23 millert 7777: else
1.25 ! millert 7778: cat <<_LT_EOF 1>&2
! 7779:
! 7780: *** Warning: the command libtool uses to detect shared libraries,
! 7781: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7782: *** The result is that libtool may fail to recognize shared libraries
! 7783: *** as such. This will affect the creation of libtool libraries that
! 7784: *** depend on shared libraries, but programs linked with such libtool
! 7785: *** libraries will work regardless of this problem. Nevertheless, you
! 7786: *** may want to report the problem to your system manager and/or to
! 7787: *** bug-libtool@gnu.org
! 7788:
! 7789: _LT_EOF
! 7790: fi ;;
1.23 millert 7791: esac
7792: fi
1.25 ! millert 7793: break
! 7794: fi
! 7795: done
! 7796: IFS="$lt_save_ifs"
! 7797: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7798: ;;
! 7799: esac
! 7800: fi
! 7801:
! 7802: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7803: if test -n "$MAGIC_CMD"; then
! 7804: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7805: echo "${ECHO_T}$MAGIC_CMD" >&6
! 7806: else
! 7807: echo "$as_me:$LINENO: result: no" >&5
! 7808: echo "${ECHO_T}no" >&6
! 7809: fi
! 7810:
! 7811:
1.23 millert 7812:
7813:
7814:
1.25 ! millert 7815: if test -z "$lt_cv_path_MAGIC_CMD"; then
! 7816: if test -n "$ac_tool_prefix"; then
! 7817: echo "$as_me:$LINENO: checking for file" >&5
! 7818: echo $ECHO_N "checking for file... $ECHO_C" >&6
! 7819: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7820: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7821: else
! 7822: case $MAGIC_CMD in
! 7823: [\\/*] | ?:[\\/]*)
! 7824: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7825: ;;
! 7826: *)
! 7827: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7828: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7829: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7830: for ac_dir in $ac_dummy; do
! 7831: IFS="$lt_save_ifs"
! 7832: test -z "$ac_dir" && ac_dir=.
! 7833: if test -f $ac_dir/file; then
! 7834: lt_cv_path_MAGIC_CMD="$ac_dir/file"
! 7835: if test -n "$file_magic_test_file"; then
! 7836: case $deplibs_check_method in
! 7837: "file_magic "*)
! 7838: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
! 7839: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7840: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7841: $EGREP "$file_magic_regex" > /dev/null; then
! 7842: :
! 7843: else
! 7844: cat <<_LT_EOF 1>&2
! 7845:
! 7846: *** Warning: the command libtool uses to detect shared libraries,
! 7847: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7848: *** The result is that libtool may fail to recognize shared libraries
! 7849: *** as such. This will affect the creation of libtool libraries that
! 7850: *** depend on shared libraries, but programs linked with such libtool
! 7851: *** libraries will work regardless of this problem. Nevertheless, you
! 7852: *** may want to report the problem to your system manager and/or to
! 7853: *** bug-libtool@gnu.org
! 7854:
! 7855: _LT_EOF
! 7856: fi ;;
! 7857: esac
! 7858: fi
! 7859: break
! 7860: fi
! 7861: done
! 7862: IFS="$lt_save_ifs"
! 7863: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7864: ;;
! 7865: esac
! 7866: fi
1.23 millert 7867:
1.25 ! millert 7868: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7869: if test -n "$MAGIC_CMD"; then
! 7870: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7871: echo "${ECHO_T}$MAGIC_CMD" >&6
1.23 millert 7872: else
1.25 ! millert 7873: echo "$as_me:$LINENO: result: no" >&5
! 7874: echo "${ECHO_T}no" >&6
! 7875: fi
! 7876:
1.23 millert 7877:
1.25 ! millert 7878: else
! 7879: MAGIC_CMD=:
! 7880: fi
1.23 millert 7881: fi
7882:
1.25 ! millert 7883: fi
! 7884: ;;
! 7885: esac
! 7886:
! 7887: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 7888: if test "${enable_libtool_lock+set}" = set; then
! 7889: enableval="$enable_libtool_lock"
! 7890:
! 7891: fi;
! 7892: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 7893:
! 7894: # Use C for the default configuration in the libtool script
1.23 millert 7895:
1.25 ! millert 7896: lt_save_CC="$CC"
! 7897: ac_ext=c
! 7898: ac_cpp='$CPP $CPPFLAGS'
! 7899: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 7900: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 7901: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 7902:
7903:
1.25 ! millert 7904: # Source file extension for C test sources.
! 7905: ac_ext=c
1.23 millert 7906:
1.25 ! millert 7907: # Object file extension for compiled C test sources.
! 7908: objext=o
! 7909: objext=$objext
1.23 millert 7910:
1.25 ! millert 7911: # Code to be used in simple compile tests
! 7912: lt_simple_compile_test_code="int some_variable = 0;\n"
1.23 millert 7913:
1.25 ! millert 7914: # Code to be used in simple link tests
! 7915: lt_simple_link_test_code='int main(){return(0);}\n'
1.23 millert 7916:
7917:
7918:
7919:
7920:
7921:
7922:
1.25 ! millert 7923: # If no C compiler was specified, use CC.
! 7924: LTCC=${LTCC-"$CC"}
1.23 millert 7925:
1.25 ! millert 7926: # If no C compiler flags were specified, use CFLAGS.
! 7927: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23 millert 7928:
1.25 ! millert 7929: # Allow CC to be a program name with arguments.
! 7930: compiler=$CC
1.23 millert 7931:
1.25 ! millert 7932: # Save the default compiler, since it gets overwritten when the other
! 7933: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
! 7934: compiler_DEFAULT=$CC
1.23 millert 7935:
1.25 ! millert 7936: #
! 7937: # Check for any special shared library compilation flags.
! 7938: #
! 7939: lt_prog_cc_shlib=
! 7940: if test "$GCC" = no; then
! 7941: case $host_os in
! 7942: sco3.2v5*)
! 7943: lt_prog_cc_shlib='-belf'
! 7944: ;;
! 7945: esac
! 7946: fi
! 7947: if test -n "$lt_prog_cc_shlib"; then
! 7948: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
! 7949: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
! 7950: if $ECHO "$old_CC $old_CFLAGS " | $GREP "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
! 7951: else
! 7952: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
! 7953: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
! 7954: lt_cv_prog_cc_can_build_shared=no
! 7955: fi
! 7956: fi
! 7957:
! 7958:
! 7959: ## CAVEAT EMPTOR:
! 7960: ## There is no encapsulation within the following macros, do not change
! 7961: ## the running order or otherwise move them around unless you know exactly
! 7962: ## what you are doing...
! 7963: if test -n "$compiler"; then
! 7964:
! 7965: lt_prog_compiler_no_builtin_flag=
! 7966:
! 7967: if test "$GCC" = yes; then
! 7968: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
! 7969:
! 7970: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 7971: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 7972: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 7973: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7974: else
! 7975: lt_cv_prog_compiler_rtti_exceptions=no
! 7976: ac_outfile=conftest.$ac_objext
! 7977: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7978: lt_compiler_flag="-fno-rtti -fno-exceptions"
! 7979: # Insert the option either (1) after the last *FLAGS variable, or
! 7980: # (2) before a word containing "conftest.", or (3) at the end.
! 7981: # Note that $ac_compile itself does not contain backslashes and begins
! 7982: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7983: # The option is referenced via a variable to avoid confusing sed.
! 7984: lt_compile=`$ECHO "$ac_compile" | $SED \
! 7985: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 7986: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7987: -e 's:$: $lt_compiler_flag:'`
! 7988: (eval echo "\"\$as_me:7988: $lt_compile\"" >&5)
! 7989: (eval "$lt_compile" 2>conftest.err)
! 7990: ac_status=$?
! 7991: cat conftest.err >&5
! 7992: echo "$as_me:7992: \$? = $ac_status" >&5
! 7993: if (exit $ac_status) && test -s "$ac_outfile"; then
! 7994: # The compiler can only warn and ignore the option if not recognized
! 7995: # So say no if there are warnings
! 7996: if test ! -s conftest.err; then
! 7997: lt_cv_prog_compiler_rtti_exceptions=yes
! 7998: fi
! 7999: fi
! 8000: $RM conftest*
! 8001:
! 8002: fi
! 8003: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 8004: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
! 8005:
! 8006: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 8007: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
! 8008: else
! 8009: :
! 8010: fi
! 8011:
! 8012: fi
! 8013:
! 8014:
! 8015:
! 8016:
! 8017:
! 8018:
! 8019: lt_prog_compiler_wl=
! 8020: lt_prog_compiler_pic=
! 8021: lt_prog_compiler_static=
! 8022:
! 8023: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 8024: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1.23 millert 8025:
1.25 ! millert 8026: if test "$GCC" = yes; then
! 8027: lt_prog_compiler_wl='-Wl,'
! 8028: lt_prog_compiler_static='-static'
1.23 millert 8029:
1.25 ! millert 8030: case $host_os in
! 8031: aix*)
! 8032: # All AIX code is PIC.
! 8033: if test "$host_cpu" = ia64; then
! 8034: # AIX 5 now supports IA64 processor
! 8035: lt_prog_compiler_static='-Bstatic'
1.23 millert 8036: fi
8037: ;;
8038:
1.25 ! millert 8039: amigaos*)
! 8040: if test "$host_cpu" = m68k; then
! 8041: # FIXME: we need at least 68020 code to build shared libraries, but
! 8042: # adding the `-m68020' flag to GCC prevents building anything better,
! 8043: # like `-m68040'.
! 8044: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
1.23 millert 8045: fi
8046: ;;
8047:
1.25 ! millert 8048: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 8049: # PIC is the default for these OSes.
! 8050: ;;
! 8051:
! 8052: mingw* | pw32* | os2*)
! 8053: # This hack is so that the source file can tell whether it is being
! 8054: # built for inclusion in a dll (and should export symbols for example).
! 8055: lt_prog_compiler_pic='-DDLL_EXPORT'
1.23 millert 8056: ;;
8057:
1.25 ! millert 8058: darwin* | rhapsody*)
! 8059: # PIC is the default on this platform
! 8060: # Common symbols not allowed in MH_DYLIB files
! 8061: lt_prog_compiler_pic='-fno-common'
1.23 millert 8062: ;;
8063:
1.25 ! millert 8064: hpux*)
! 8065: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 8066: # not for PA HP-UX.
1.23 millert 8067: case "$host_cpu" in
1.25 ! millert 8068: hppa*64*|ia64*)
! 8069: # +Z the default
! 8070: ;;
! 8071: *)
! 8072: lt_prog_compiler_pic='-fPIC'
! 8073: ;;
1.23 millert 8074: esac
8075: ;;
8076:
1.25 ! millert 8077: msdosdjgpp*)
! 8078: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 8079: # on systems that don't support them.
! 8080: lt_prog_compiler_can_build_shared=no
! 8081: enable_shared=no
1.23 millert 8082: ;;
8083:
1.25 ! millert 8084: *nto* | *qnx*)
! 8085: # QNX uses GNU C++, but need to define -shared option too, otherwise
! 8086: # it will coredump.
! 8087: lt_prog_compiler_pic='-fPIC -shared'
1.23 millert 8088: ;;
8089:
1.25 ! millert 8090: sysv4*MP*)
! 8091: if test -d /usr/nec; then
! 8092: lt_prog_compiler_pic=-Kconform_pic
1.23 millert 8093: fi
8094: ;;
8095:
1.25 ! millert 8096: *)
! 8097: lt_prog_compiler_pic='-fPIC'
1.23 millert 8098: ;;
1.25 ! millert 8099: esac
! 8100: else
! 8101: # PORTME Check for flag to pass linker flags through the system compiler.
! 8102: case $host_os in
! 8103: aix*)
! 8104: lt_prog_compiler_wl='-Wl,'
! 8105: if test "$host_cpu" = ia64; then
! 8106: # AIX 5 now supports IA64 processor
! 8107: lt_prog_compiler_static='-Bstatic'
1.23 millert 8108: else
1.25 ! millert 8109: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
1.23 millert 8110: fi
1.25 ! millert 8111: ;;
! 8112: darwin*)
! 8113: # PIC is the default on this platform
! 8114: # Common symbols not allowed in MH_DYLIB files
! 8115: case "$cc_basename" in
! 8116: xlc*)
! 8117: lt_prog_compiler_pic='-qnocommon'
! 8118: lt_prog_compiler_wl='-Wl,'
! 8119: ;;
! 8120: esac
! 8121: ;;
! 8122:
! 8123: mingw* | pw32* | os2*)
! 8124: # This hack is so that the source file can tell whether it is being
! 8125: # built for inclusion in a dll (and should export symbols for example).
! 8126: lt_prog_compiler_pic='-DDLL_EXPORT'
1.23 millert 8127: ;;
8128:
1.25 ! millert 8129: hpux9* | hpux10* | hpux11*)
! 8130: lt_prog_compiler_wl='-Wl,'
! 8131: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 8132: # not for PA HP-UX.
! 8133: case "$host_cpu" in
! 8134: hppa*64*|ia64*)
! 8135: # +Z the default
! 8136: ;;
! 8137: *)
! 8138: lt_prog_compiler_pic='+Z'
! 8139: ;;
! 8140: esac
! 8141: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 8142: lt_prog_compiler_static='${wl}-a ${wl}archive'
! 8143: ;;
! 8144:
! 8145: irix5* | irix6* | nonstopux*)
! 8146: lt_prog_compiler_wl='-Wl,'
! 8147: # PIC (with -KPIC) is the default.
! 8148: lt_prog_compiler_static='-non_shared'
1.23 millert 8149: ;;
8150:
1.25 ! millert 8151: linux*)
! 8152: case $CC in
! 8153: icc* | ecc*)
! 8154: lt_prog_compiler_wl='-Wl,'
! 8155: lt_prog_compiler_pic='-KPIC'
! 8156: lt_prog_compiler_static='-static'
! 8157: ;;
! 8158: ccc*)
! 8159: lt_prog_compiler_wl='-Wl,'
! 8160: # All Alpha code is PIC.
! 8161: lt_prog_compiler_static='-non_shared'
1.23 millert 8162: ;;
8163: esac
8164: ;;
8165:
1.25 ! millert 8166: newsos6)
! 8167: lt_prog_compiler_pic='-KPIC'
! 8168: lt_prog_compiler_static='-Bstatic'
! 8169: ;;
! 8170:
! 8171: *nto* | *qnx*)
! 8172: # QNX uses GNU C++, but need to define -shared option too, otherwise
! 8173: # it will coredump.
! 8174: lt_prog_compiler_pic='-fPIC -shared'
! 8175: ;;
! 8176:
! 8177: osf3* | osf4* | osf5*)
! 8178: lt_prog_compiler_wl='-Wl,'
! 8179: # All OSF/1 code is PIC.
! 8180: lt_prog_compiler_static='-non_shared'
! 8181: ;;
! 8182:
! 8183: sco3.2v5*)
! 8184: lt_prog_compiler_pic='-Kpic'
! 8185: lt_prog_compiler_static='-dn'
1.23 millert 8186: ;;
8187:
1.25 ! millert 8188: solaris*)
! 8189: lt_prog_compiler_wl='-Wl,'
! 8190: lt_prog_compiler_pic='-KPIC'
! 8191: lt_prog_compiler_static='-Bstatic'
1.23 millert 8192: ;;
8193:
1.25 ! millert 8194: sunos4*)
! 8195: lt_prog_compiler_wl='-Qoption ld '
! 8196: lt_prog_compiler_pic='-PIC'
! 8197: lt_prog_compiler_static='-Bstatic'
1.23 millert 8198: ;;
8199:
1.25 ! millert 8200: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 8201: lt_prog_compiler_wl='-Wl,'
! 8202: lt_prog_compiler_pic='-KPIC'
! 8203: lt_prog_compiler_static='-Bstatic'
1.23 millert 8204: ;;
8205:
1.25 ! millert 8206: sysv4*MP*)
! 8207: if test -d /usr/nec ;then
! 8208: lt_prog_compiler_pic='-Kconform_pic'
! 8209: lt_prog_compiler_static='-Bstatic'
! 8210: fi
1.23 millert 8211: ;;
8212:
8213: uts4*)
1.25 ! millert 8214: lt_prog_compiler_pic='-pic'
! 8215: lt_prog_compiler_static='-Bstatic'
1.23 millert 8216: ;;
8217:
8218: *)
1.25 ! millert 8219: lt_prog_compiler_can_build_shared=no
1.23 millert 8220: ;;
8221: esac
8222: fi
8223:
1.25 ! millert 8224: case "$host_os" in
! 8225: # For platforms which do not support PIC, -DPIC is meaningless:
! 8226: *djgpp*)
! 8227: lt_prog_compiler_pic=
! 8228: ;;
! 8229: *)
! 8230: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
! 8231: ;;
! 8232: esac
! 8233: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
! 8234: echo "${ECHO_T}$lt_prog_compiler_pic" >&6
1.23 millert 8235:
8236:
8237:
8238:
8239:
8240:
1.25 ! millert 8241: #
! 8242: # Check to make sure the PIC flag actually works.
! 8243: #
! 8244: if test -n "$lt_prog_compiler_pic"; then
! 8245: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 8246: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
! 8247: if test "${lt_prog_compiler_pic_works+set}" = set; then
! 8248: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 millert 8249: else
1.25 ! millert 8250: lt_prog_compiler_pic_works=no
! 8251: ac_outfile=conftest.$ac_objext
! 8252: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 8253: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
! 8254: # Insert the option either (1) after the last *FLAGS variable, or
! 8255: # (2) before a word containing "conftest.", or (3) at the end.
! 8256: # Note that $ac_compile itself does not contain backslashes and begins
! 8257: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 8258: # The option is referenced via a variable to avoid confusing sed.
! 8259: lt_compile=`$ECHO "$ac_compile" | $SED \
! 8260: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 8261: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 8262: -e 's:$: $lt_compiler_flag:'`
! 8263: (eval echo "\"\$as_me:8263: $lt_compile\"" >&5)
! 8264: (eval "$lt_compile" 2>conftest.err)
! 8265: ac_status=$?
! 8266: cat conftest.err >&5
! 8267: echo "$as_me:8267: \$? = $ac_status" >&5
! 8268: if (exit $ac_status) && test -s "$ac_outfile"; then
! 8269: # The compiler can only warn and ignore the option if not recognized
! 8270: # So say no if there are warnings
! 8271: if test ! -s conftest.err; then
! 8272: lt_prog_compiler_pic_works=yes
! 8273: fi
! 8274: fi
! 8275: $RM conftest*
! 8276:
! 8277: fi
! 8278: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
! 8279: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
! 8280:
! 8281: if test x"$lt_prog_compiler_pic_works" = xyes; then
! 8282: case $lt_prog_compiler_pic in
! 8283: "" | " "*) ;;
! 8284: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
! 8285: esac
! 8286: else
! 8287: lt_prog_compiler_pic=
! 8288: lt_prog_compiler_can_build_shared=no
1.23 millert 8289: fi
8290:
8291: fi
8292:
1.25 ! millert 8293:
! 8294:
! 8295:
! 8296:
! 8297:
! 8298: #
! 8299: # Check to make sure the static flag actually works.
! 8300: #
! 8301: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
! 8302: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
! 8303: if test "${lt_prog_compiler_static_works+set}" = set; then
! 8304: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 millert 8305: else
1.25 ! millert 8306: lt_prog_compiler_static_works=no
! 8307: save_LDFLAGS="$LDFLAGS"
! 8308: LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
! 8309: printf "$lt_simple_link_test_code" > conftest.$ac_ext
! 8310: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 8311: # The compiler can only warn and ignore the option if not recognized
! 8312: # So say no if there are warnings
! 8313: if test -s conftest.err; then
! 8314: # Append any errors to the config.log.
! 8315: cat conftest.err 1>&5
! 8316: else
! 8317: lt_prog_compiler_static_works=yes
! 8318: fi
! 8319: fi
! 8320: $RM conftest*
! 8321: LDFLAGS="$save_LDFLAGS"
! 8322:
1.23 millert 8323: fi
1.25 ! millert 8324: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
! 8325: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
1.23 millert 8326:
1.25 ! millert 8327: if test x"$lt_prog_compiler_static_works" = xyes; then
! 8328: :
1.23 millert 8329: else
1.25 ! millert 8330: lt_prog_compiler_static=
1.23 millert 8331: fi
8332:
8333:
8334:
8335:
8336:
8337:
8338:
1.25 ! millert 8339: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 8340: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 8341: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 8342: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8343: else
! 8344: lt_cv_prog_compiler_c_o=no
! 8345: $RM -r conftest 2>/dev/null
! 8346: mkdir conftest
! 8347: cd conftest
! 8348: mkdir out
! 8349: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 8350:
! 8351: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 8352: # Insert the option either (1) after the last *FLAGS variable, or
! 8353: # (2) before a word containing "conftest.", or (3) at the end.
! 8354: # Note that $ac_compile itself does not contain backslashes and begins
! 8355: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 8356: lt_compile=`$ECHO "$ac_compile" | $SED \
! 8357: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 8358: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 8359: -e 's:$: $lt_compiler_flag:'`
! 8360: (eval echo "\"\$as_me:8360: $lt_compile\"" >&5)
! 8361: (eval "$lt_compile" 2>out/conftest.err)
! 8362: ac_status=$?
! 8363: cat out/conftest.err >&5
! 8364: echo "$as_me:8364: \$? = $ac_status" >&5
! 8365: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 8366: then
! 8367: # The compiler can only warn and ignore the option if not recognized
! 8368: # So say no if there are warnings
! 8369: if test ! -s out/conftest.err; then
! 8370: lt_cv_prog_compiler_c_o=yes
! 8371: fi
! 8372: fi
! 8373: chmod u+w .
! 8374: $RM conftest*
! 8375: # SGI C++ compiler will create directory out/ii_files/ for
! 8376: # template instantiation
! 8377: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
! 8378: $RM out/* && rmdir out
! 8379: cd ..
! 8380: rmdir conftest
! 8381: $RM conftest*
1.23 millert 8382:
1.25 ! millert 8383: fi
! 8384: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 8385: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.23 millert 8386:
8387:
8388:
8389:
8390:
8391:
8392:
1.25 ! millert 8393: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 8394: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 8395: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 8396: echo $ECHO_N "(cached) $ECHO_C" >&6
! 8397: else
! 8398: lt_cv_prog_compiler_c_o=no
! 8399: $RM -r conftest 2>/dev/null
! 8400: mkdir conftest
! 8401: cd conftest
! 8402: mkdir out
! 8403: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.23 millert 8404:
1.25 ! millert 8405: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 8406: # Insert the option either (1) after the last *FLAGS variable, or
! 8407: # (2) before a word containing "conftest.", or (3) at the end.
! 8408: # Note that $ac_compile itself does not contain backslashes and begins
! 8409: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 8410: lt_compile=`$ECHO "$ac_compile" | $SED \
! 8411: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 8412: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 8413: -e 's:$: $lt_compiler_flag:'`
! 8414: (eval echo "\"\$as_me:8414: $lt_compile\"" >&5)
! 8415: (eval "$lt_compile" 2>out/conftest.err)
! 8416: ac_status=$?
! 8417: cat out/conftest.err >&5
! 8418: echo "$as_me:8418: \$? = $ac_status" >&5
! 8419: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 8420: then
! 8421: # The compiler can only warn and ignore the option if not recognized
! 8422: # So say no if there are warnings
! 8423: if test ! -s out/conftest.err; then
! 8424: lt_cv_prog_compiler_c_o=yes
! 8425: fi
! 8426: fi
! 8427: chmod u+w .
! 8428: $RM conftest*
! 8429: # SGI C++ compiler will create directory out/ii_files/ for
! 8430: # template instantiation
! 8431: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
! 8432: $RM out/* && rmdir out
! 8433: cd ..
! 8434: rmdir conftest
! 8435: $RM conftest*
1.23 millert 8436:
1.25 ! millert 8437: fi
! 8438: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 8439: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.23 millert 8440:
8441:
8442:
8443:
1.25 ! millert 8444: hard_links="nottested"
! 8445: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
! 8446: # do not overwrite the value of need_locks provided by the user
! 8447: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 8448: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 8449: hard_links=yes
! 8450: $RM conftest*
! 8451: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 8452: touch conftest.a
! 8453: ln conftest.a conftest.b 2>&5 || hard_links=no
! 8454: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 8455: echo "$as_me:$LINENO: result: $hard_links" >&5
! 8456: echo "${ECHO_T}$hard_links" >&6
! 8457: if test "$hard_links" = no; then
! 8458: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 8459: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 8460: need_locks=warn
1.23 millert 8461: fi
1.25 ! millert 8462: else
! 8463: need_locks=no
! 8464: fi
1.23 millert 8465:
8466:
8467:
8468:
8469:
8470:
1.25 ! millert 8471: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 8472: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.23 millert 8473:
1.25 ! millert 8474: runpath_var=
! 8475: allow_undefined_flag=
! 8476: always_export_symbols=no
! 8477: archive_cmds=
! 8478: archive_expsym_cmds=
! 8479: enable_shared_with_static_runtimes=no
! 8480: export_dynamic_flag_spec=
! 8481: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 8482: hardcode_automatic=no
! 8483: hardcode_direct=no
! 8484: hardcode_libdir_flag_spec=
! 8485: hardcode_libdir_flag_spec_ld=
! 8486: hardcode_libdir_separator=
! 8487: hardcode_minus_L=no
! 8488: hardcode_shlibpath_var=unsupported
! 8489: inherit_rpath=no
! 8490: link_all_deplibs=unknown
! 8491: module_cmds=
! 8492: module_expsym_cmds=
! 8493: old_archive_from_new_cmds=
! 8494: old_archive_from_expsyms_cmds=
! 8495: thread_safe_flag_spec=
! 8496: whole_archive_flag_spec=
! 8497: # include_expsyms should be a list of space-separated symbols to be *always*
! 8498: # included in the symbol list
! 8499: include_expsyms=
! 8500: # exclude_expsyms can be an extended regexp of symbols to exclude
! 8501: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 8502: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 8503: # as well as any symbol that contains `d'.
! 8504: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
! 8505: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 8506: # platforms (ab)use it in PIC code, but their linkers get confused if
! 8507: # the symbol is explicitly referenced. Since portable code cannot
! 8508: # rely on this symbol name, it's probably fine to never include it in
! 8509: # preloaded symbol tables.
! 8510: extract_expsyms_cmds=
! 8511:
! 8512: case $host_os in
! 8513: cygwin* | mingw* | pw32*)
! 8514: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 8515: # When not using gcc, we currently assume that we are using
! 8516: # Microsoft Visual C++.
! 8517: if test "$GCC" != yes; then
! 8518: with_gnu_ld=no
! 8519: fi
! 8520: ;;
! 8521: openbsd*)
! 8522: with_gnu_ld=no
! 8523: ;;
! 8524: esac
1.23 millert 8525:
1.25 ! millert 8526: ld_shlibs=yes
! 8527: if test "$with_gnu_ld" = yes; then
! 8528: # If archive_cmds runs LD, not CC, wlarc should be empty
! 8529: wlarc='${wl}'
1.23 millert 8530:
1.25 ! millert 8531: # See if GNU ld supports shared libraries.
! 8532: case $host_os in
! 8533: aix3* | aix4* | aix5*)
! 8534: # On AIX/PPC, the GNU linker is very broken
! 8535: if test "$host_cpu" != ia64; then
! 8536: ld_shlibs=no
! 8537: cat <<_LT_EOF 1>&2
1.23 millert 8538:
1.25 ! millert 8539: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 8540: *** to be unable to reliably create shared libraries on AIX.
! 8541: *** Therefore, libtool is disabling shared libraries support. If you
! 8542: *** really care for shared libraries, you may want to modify your PATH
! 8543: *** so that a non-GNU linker is found, and then restart.
1.23 millert 8544:
1.25 ! millert 8545: _LT_EOF
! 8546: fi
! 8547: ;;
1.23 millert 8548:
1.25 ! millert 8549: amigaos*)
! 8550: if test "$host_cpu" = m68k; then
! 8551: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
! 8552: hardcode_libdir_flag_spec='-L$libdir'
! 8553: hardcode_minus_L=yes
! 8554: fi
1.23 millert 8555:
1.25 ! millert 8556: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 8557: # that the semantics of dynamic libraries on AmigaOS, at least up
! 8558: # to version 4, is to share data among multiple programs linked
! 8559: # with the same dynamic library. Since this doesn't match the
! 8560: # behavior of shared libraries on other platforms, we can't use
! 8561: # them.
! 8562: ld_shlibs=no
! 8563: ;;
1.23 millert 8564:
1.25 ! millert 8565: beos*)
! 8566: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
! 8567: allow_undefined_flag=unsupported
! 8568: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 8569: # support --undefined. This deserves some investigation. FIXME
! 8570: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8571: else
! 8572: ld_shlibs=no
! 8573: fi
! 8574: ;;
1.23 millert 8575:
1.25 ! millert 8576: cygwin* | mingw* | pw32*)
! 8577: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
! 8578: # as there is no search path for DLLs.
! 8579: hardcode_libdir_flag_spec='-L$libdir'
! 8580: allow_undefined_flag=unsupported
! 8581: always_export_symbols=no
! 8582: enable_shared_with_static_runtimes=yes
! 8583: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1.23 millert 8584:
1.25 ! millert 8585: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
! 8586: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 8587: # If the export-symbols file already is a .def file (1st line
! 8588: # is EXPORTS), use it as is; otherwise, prepend...
! 8589: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 8590: cp $export_symbols $output_objdir/$soname.def;
! 8591: else
! 8592: $ECHO EXPORTS > $output_objdir/$soname.def;
! 8593: cat $export_symbols >> $output_objdir/$soname.def;
! 8594: fi~
! 8595: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 8596: else
! 8597: ld_shlibs=no
! 8598: fi
! 8599: ;;
1.23 millert 8600:
1.25 ! millert 8601: linux*|tpf*)
! 8602: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null; then
! 8603: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8604: case `$LD -v 2>&1` in
! 8605: *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
! 8606: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
! 8607: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
! 8608: *\ 2.11.*) ;; # other 2.11 versions
! 8609: *) supports_anon_versioning=yes ;;
! 8610: esac
! 8611: if test "x$supports_anon_versioning" = xyes; then
! 8612: archive_expsym_cmds='$ECHO "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~$ECHO "local: *; };" >> $output_objdir/$libname.ver~$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
! 8613: else
! 8614: archive_expsym_cmds=$archive_cmds
! 8615: fi
! 8616: else
! 8617: ld_shlibs=no
! 8618: fi
! 8619: ;;
1.23 millert 8620:
1.25 ! millert 8621: netbsd*)
! 8622: if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
! 8623: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 8624: wlarc=
! 8625: else
! 8626: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8627: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8628: fi
! 8629: ;;
1.23 millert 8630:
1.25 ! millert 8631: solaris* | sysv5*)
! 8632: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
! 8633: ld_shlibs=no
! 8634: cat <<_LT_EOF 1>&2
1.23 millert 8635:
1.25 ! millert 8636: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 8637: *** create shared libraries on Solaris systems. Therefore, libtool
! 8638: *** is disabling shared libraries support. We urge you to upgrade GNU
! 8639: *** binutils to release 2.9.1 or newer. Another option is to modify
! 8640: *** your PATH or compiler configuration so that the native linker is
! 8641: *** used, and then restart.
1.23 millert 8642:
1.25 ! millert 8643: _LT_EOF
! 8644: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
! 8645: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8646: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8647: else
! 8648: ld_shlibs=no
! 8649: fi
! 8650: ;;
1.23 millert 8651:
1.25 ! millert 8652: sunos4*)
! 8653: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8654: wlarc=
! 8655: hardcode_direct=yes
! 8656: hardcode_shlibpath_var=no
! 8657: ;;
1.23 millert 8658:
1.25 ! millert 8659: *)
! 8660: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
! 8661: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8662: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8663: else
! 8664: ld_shlibs=no
! 8665: fi
! 8666: ;;
! 8667: esac
! 8668:
! 8669: if test "$ld_shlibs" = yes; then
! 8670: runpath_var=LD_RUN_PATH
! 8671: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 8672: export_dynamic_flag_spec='${wl}--export-dynamic'
! 8673: # ancient GNU ld didn't support --whole-archive et. al.
! 8674: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
! 8675: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 8676: else
! 8677: whole_archive_flag_spec=
! 8678: fi
! 8679: fi
! 8680: else
! 8681: # PORTME fill in a description of your system's linker (not GNU ld)
! 8682: case $host_os in
! 8683: aix3*)
! 8684: allow_undefined_flag=unsupported
! 8685: always_export_symbols=yes
! 8686: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
! 8687: # Note: this linker hardcodes the directories in LIBPATH if there
! 8688: # are no directories specified by -L.
! 8689: hardcode_minus_L=yes
! 8690: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 8691: # Neither direct hardcoding nor static linking is supported with a
! 8692: # broken collect2.
! 8693: hardcode_direct=unsupported
! 8694: fi
! 8695: ;;
! 8696:
! 8697: aix4* | aix5*)
! 8698: if test "$host_cpu" = ia64; then
! 8699: # On IA64, the linker does run time linking by default, so we don't
! 8700: # have to do anything special.
! 8701: aix_use_runtimelinking=no
! 8702: exp_sym_flag='-Bexport'
! 8703: no_entry_flag=""
! 8704: else
! 8705: # If we're using GNU nm, then we don't want the "-C" option.
! 8706: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 8707: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
! 8708: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 8709: else
! 8710: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 8711: fi
! 8712: aix_use_runtimelinking=no
! 8713:
! 8714: # Test if we are trying to use run time linking or normal
! 8715: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 8716: # need to do runtime linking.
! 8717: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 8718: for ld_flag in $LDFLAGS; do
! 8719: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 8720: aix_use_runtimelinking=yes
! 8721: break
! 8722: fi
! 8723: done
! 8724: esac
! 8725:
! 8726: exp_sym_flag='-bexport'
! 8727: no_entry_flag='-bnoentry'
! 8728: fi
! 8729:
! 8730: # When large executables or shared objects are built, AIX ld can
! 8731: # have problems creating the table of contents. If linking a library
! 8732: # or program results in "error TOC overflow" add -mminimal-toc to
! 8733: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 8734: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 8735:
! 8736: archive_cmds=''
! 8737: hardcode_direct=yes
! 8738: hardcode_libdir_separator=':'
! 8739: link_all_deplibs=yes
! 8740:
! 8741: if test "$GCC" = yes; then
! 8742: case $host_os in aix4.012|aix4.012.*)
! 8743: # We only want to do this on AIX 4.2 and lower, the check
! 8744: # below for broken collect2 doesn't work under 4.3+
! 8745: collect2name=`${CC} -print-prog-name=collect2`
! 8746: if test -f "$collect2name" &&
! 8747: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
! 8748: then
! 8749: # We have reworked collect2
! 8750: hardcode_direct=yes
! 8751: else
! 8752: # We have old collect2
! 8753: hardcode_direct=unsupported
! 8754: # It fails to find uninstalled libraries when the uninstalled
! 8755: # path is not listed in the libpath. Setting hardcode_minus_L
! 8756: # to unsupported forces relinking
! 8757: hardcode_minus_L=yes
! 8758: hardcode_libdir_flag_spec='-L$libdir'
! 8759: hardcode_libdir_separator=
! 8760: fi
! 8761: esac
! 8762: shared_flag='-shared'
! 8763: else
! 8764: # not using gcc
! 8765: if test "$host_cpu" = ia64; then
! 8766: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 8767: # chokes on -Wl,-G. The following line is correct:
! 8768: shared_flag='-G'
! 8769: else
! 8770: if test "$aix_use_runtimelinking" = yes; then
! 8771: shared_flag='${wl}-G'
! 8772: else
! 8773: shared_flag='${wl}-bM:SRE'
! 8774: fi
! 8775: fi
! 8776: fi
! 8777:
! 8778: # It seems that -bexpall does not export symbols beginning with
! 8779: # underscore (_), so it is better to generate a list of symbols to export.
! 8780: always_export_symbols=yes
! 8781: if test "$aix_use_runtimelinking" = yes; then
! 8782: # Warning - without using the other runtime loading flags (-brtl),
! 8783: # -berok will link without error, but may produce a broken library.
! 8784: allow_undefined_flag='-berok'
! 8785: # Determine the default libpath from the value encoded in an
! 8786: # empty executable.
! 8787: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 8788: /* confdefs.h. */
8789: _ACEOF
8790: cat confdefs.h >>conftest.$ac_ext
8791: cat >>conftest.$ac_ext <<_ACEOF
8792: /* end confdefs.h. */
8793:
8794: int
8795: main ()
8796: {
1.25 ! millert 8797:
1.23 millert 8798: ;
8799: return 0;
8800: }
8801: _ACEOF
8802: rm -f conftest.$ac_objext conftest$ac_exeext
8803: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 8804: (eval $ac_link) 2>conftest.er1
1.23 millert 8805: ac_status=$?
1.25 ! millert 8806: grep -v '^ *+' conftest.er1 >conftest.err
! 8807: rm -f conftest.er1
! 8808: cat conftest.err >&5
1.23 millert 8809: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810: (exit $ac_status); } &&
1.25 ! millert 8811: { ac_try='test -z "$ac_c_werror_flag"
! 8812: || test ! -s conftest.err'
! 8813: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8814: (eval $ac_try) 2>&5
! 8815: ac_status=$?
! 8816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8817: (exit $ac_status); }; } &&
! 8818: { ac_try='test -s conftest$ac_exeext'
1.23 millert 8819: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820: (eval $ac_try) 2>&5
8821: ac_status=$?
8822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823: (exit $ac_status); }; }; then
1.25 ! millert 8824:
! 8825: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8826: }'`
! 8827: # Check for a 64-bit object if we didn't find anything.
! 8828: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8829: }'`; fi
1.23 millert 8830: else
8831: echo "$as_me: failed program was:" >&5
8832: sed 's/^/| /' conftest.$ac_ext >&5
8833:
8834: fi
1.25 ! millert 8835: rm -f conftest.err conftest.$ac_objext \
! 8836: conftest$ac_exeext conftest.$ac_ext
! 8837: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8838:
! 8839: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8840: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 8841: else
! 8842: if test "$host_cpu" = ia64; then
! 8843: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
! 8844: allow_undefined_flag="-z nodefs"
! 8845: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
! 8846: else
! 8847: # Determine the default libpath from the value encoded in an
! 8848: # empty executable.
! 8849: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 8850: /* confdefs.h. */
8851: _ACEOF
8852: cat confdefs.h >>conftest.$ac_ext
8853: cat >>conftest.$ac_ext <<_ACEOF
8854: /* end confdefs.h. */
8855:
8856: int
8857: main ()
8858: {
1.25 ! millert 8859:
1.23 millert 8860: ;
8861: return 0;
8862: }
8863: _ACEOF
8864: rm -f conftest.$ac_objext conftest$ac_exeext
8865: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 8866: (eval $ac_link) 2>conftest.er1
1.23 millert 8867: ac_status=$?
1.25 ! millert 8868: grep -v '^ *+' conftest.er1 >conftest.err
! 8869: rm -f conftest.er1
! 8870: cat conftest.err >&5
1.23 millert 8871: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872: (exit $ac_status); } &&
1.25 ! millert 8873: { ac_try='test -z "$ac_c_werror_flag"
! 8874: || test ! -s conftest.err'
! 8875: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8876: (eval $ac_try) 2>&5
! 8877: ac_status=$?
! 8878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8879: (exit $ac_status); }; } &&
! 8880: { ac_try='test -s conftest$ac_exeext'
1.23 millert 8881: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882: (eval $ac_try) 2>&5
8883: ac_status=$?
8884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885: (exit $ac_status); }; }; then
1.25 ! millert 8886:
! 8887: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8888: }'`
! 8889: # Check for a 64-bit object if we didn't find anything.
! 8890: if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8891: }'`; fi
1.23 millert 8892: else
8893: echo "$as_me: failed program was:" >&5
8894: sed 's/^/| /' conftest.$ac_ext >&5
8895:
8896: fi
1.25 ! millert 8897: rm -f conftest.err conftest.$ac_objext \
! 8898: conftest$ac_exeext conftest.$ac_ext
! 8899: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8900:
! 8901: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8902: # Warning - without using the other run time loading flags,
! 8903: # -berok will link without error, but may produce a broken library.
! 8904: no_undefined_flag=' ${wl}-bernotok'
! 8905: allow_undefined_flag=' ${wl}-berok'
! 8906: # -bexpall does not export symbols beginning with underscore (_)
! 8907: always_export_symbols=yes
! 8908: # Exported symbols can be pulled into shared objects from archives
! 8909: whole_archive_flag_spec=' '
! 8910: archive_cmds_need_lc=yes
! 8911: # This is similar to how AIX traditionally builds it's shared libraries.
! 8912: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
! 8913: fi
! 8914: fi
! 8915: ;;
! 8916:
! 8917: amigaos*)
! 8918: if test "$host_cpu" = m68k; then
! 8919: archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
! 8920: hardcode_libdir_flag_spec='-L$libdir'
! 8921: hardcode_minus_L=yes
! 8922: fi
! 8923: # see comment about different semantics on the GNU ld section
! 8924: ld_shlibs=no
! 8925: ;;
! 8926:
! 8927: bsdi[45]*)
! 8928: export_dynamic_flag_spec=-rdynamic
! 8929: ;;
! 8930:
! 8931: cygwin* | mingw* | pw32*)
! 8932: # When not using gcc, we currently assume that we are using
! 8933: # Microsoft Visual C++.
! 8934: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 8935: # no search path for DLLs.
! 8936: hardcode_libdir_flag_spec=' '
! 8937: allow_undefined_flag=unsupported
! 8938: # Tell ltmain to make .lib files, not .a files.
! 8939: libext=lib
1.23 millert 8940: # Tell ltmain to make .dll files, not .so files.
1.25 ! millert 8941: shrext_cmds=".dll"
1.23 millert 8942: # FIXME: Setting linknames here is a bad hack.
1.25 ! millert 8943: archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1.23 millert 8944: # The linker will automatically build a .lib file if we build a DLL.
1.25 ! millert 8945: old_archive_from_new_cmds='true'
1.23 millert 8946: # FIXME: Should let the user specify the lib program.
1.25 ! millert 8947: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
1.23 millert 8948: fix_srcfile_path='`cygpath -w "$srcfile"`'
1.25 ! millert 8949: enable_shared_with_static_runtimes=yes
1.23 millert 8950: ;;
8951:
8952: darwin* | rhapsody*)
8953: case "$host_os" in
1.25 ! millert 8954: rhapsody* | darwin1.[012])
! 8955: allow_undefined_flag='${wl}-undefined ${wl}suppress'
! 8956: ;;
! 8957: *) # Darwin 1.3 on
! 8958: case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
! 8959: 10.[012])
! 8960: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
! 8961: ;;
! 8962: 10.*)
! 8963: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
! 8964: ;;
! 8965: esac
! 8966: ;;
1.23 millert 8967: esac
1.25 ! millert 8968: archive_cmds_need_lc=no
! 8969: hardcode_direct=no
! 8970: hardcode_automatic=yes
! 8971: hardcode_shlibpath_var=unsupported
! 8972: whole_archive_flag_spec=''
! 8973: link_all_deplibs=yes
! 8974: if test "$GCC" = yes ; then
! 8975: output_verbose_link_cmd=echo
! 8976: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 8977: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.23 millert 8978: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
1.25 ! millert 8979: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8980: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8981: else
! 8982: case "$cc_basename" in
! 8983: xlc*)
! 8984: output_verbose_link_cmd=echo
! 8985: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
! 8986: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
! 8987: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
! 8988: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8989: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8990: ;;
! 8991: *)
! 8992: ld_shlibs=no
! 8993: ;;
! 8994: esac
1.23 millert 8995: fi
8996: ;;
8997: dgux*)
1.25 ! millert 8998: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8999: hardcode_libdir_flag_spec='-L$libdir'
! 9000: hardcode_shlibpath_var=no
1.23 millert 9001: ;;
9002:
9003: freebsd1*)
1.25 ! millert 9004: ld_shlibs=no
1.23 millert 9005: ;;
9006:
9007: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9008: # support. Future versions do this automatically, but an explicit c++rt0.o
9009: # does not break anything, and helps significantly (at the cost of a little
9010: # extra space).
9011: freebsd2.2*)
1.25 ! millert 9012: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 9013: hardcode_libdir_flag_spec='-R$libdir'
! 9014: hardcode_direct=yes
! 9015: hardcode_shlibpath_var=no
1.23 millert 9016: ;;
9017:
9018: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9019: freebsd2*)
1.25 ! millert 9020: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 9021: hardcode_direct=yes
! 9022: hardcode_minus_L=yes
! 9023: hardcode_shlibpath_var=no
1.23 millert 9024: ;;
9025:
9026: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.25 ! millert 9027: freebsd* | kfreebsd*-gnu)
! 9028: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 9029: hardcode_libdir_flag_spec='-R$libdir'
! 9030: hardcode_direct=yes
! 9031: hardcode_shlibpath_var=no
1.23 millert 9032: ;;
9033:
9034: hpux9*)
9035: if test "$GCC" = yes; then
1.25 ! millert 9036: archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.23 millert 9037: else
1.25 ! millert 9038: archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.23 millert 9039: fi
1.25 ! millert 9040: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 9041: hardcode_libdir_separator=:
! 9042: hardcode_direct=yes
1.23 millert 9043:
9044: # hardcode_minus_L: Not really in the search PATH,
9045: # but as the default location of the library.
1.25 ! millert 9046: hardcode_minus_L=yes
! 9047: export_dynamic_flag_spec='${wl}-E'
1.23 millert 9048: ;;
9049:
1.25 ! millert 9050: hpux10*)
! 9051: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 9052: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 9053: else
! 9054: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 9055: fi
! 9056: if test "$with_gnu_ld" = no; then
! 9057: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 9058: hardcode_libdir_flag_spec_ld='+b $libdir'
! 9059: hardcode_libdir_separator=:
! 9060: hardcode_direct=yes
! 9061: export_dynamic_flag_spec='${wl}-E'
! 9062: # hardcode_minus_L: Not really in the search PATH,
! 9063: # but as the default location of the library.
! 9064: hardcode_minus_L=yes
! 9065: fi
! 9066: ;;
! 9067:
! 9068: hpux11*)
1.23 millert 9069: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9070: case "$host_cpu" in
9071: hppa*64*|ia64*)
1.25 ! millert 9072: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23 millert 9073: ;;
9074: *)
1.25 ! millert 9075: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.23 millert 9076: ;;
9077: esac
9078: else
9079: case "$host_cpu" in
9080: hppa*64*|ia64*)
1.25 ! millert 9081: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23 millert 9082: ;;
9083: *)
1.25 ! millert 9084: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.23 millert 9085: ;;
9086: esac
9087: fi
9088: if test "$with_gnu_ld" = no; then
9089: case "$host_cpu" in
9090: hppa*64*)
1.25 ! millert 9091: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 9092: hardcode_libdir_separator=:
! 9093: hardcode_direct=no
! 9094: hardcode_shlibpath_var=no
1.23 millert 9095: ;;
9096: ia64*)
1.25 ! millert 9097: hardcode_libdir_flag_spec='-L$libdir'
! 9098: hardcode_direct=no
! 9099: hardcode_shlibpath_var=no
1.23 millert 9100:
9101: # hardcode_minus_L: Not really in the search PATH,
9102: # but as the default location of the library.
1.25 ! millert 9103: hardcode_minus_L=yes
1.23 millert 9104: ;;
9105: *)
1.25 ! millert 9106: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 9107: hardcode_libdir_separator=:
! 9108: hardcode_direct=yes
! 9109: export_dynamic_flag_spec='${wl}-E'
1.23 millert 9110:
9111: # hardcode_minus_L: Not really in the search PATH,
9112: # but as the default location of the library.
1.25 ! millert 9113: hardcode_minus_L=yes
1.23 millert 9114: ;;
9115: esac
9116: fi
9117: ;;
9118:
9119: irix5* | irix6* | nonstopux*)
9120: if test "$GCC" = yes; then
1.25 ! millert 9121: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
! 9122: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
1.23 millert 9123: else
1.25 ! millert 9124: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 9125: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
1.23 millert 9126: fi
1.25 ! millert 9127: archive_cmds_need_lc='no'
! 9128: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 9129: hardcode_libdir_separator=:
! 9130: inherit_rpath=yes
! 9131: link_all_deplibs=yes
1.23 millert 9132: ;;
9133:
9134: netbsd*)
1.25 ! millert 9135: if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
! 9136: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1.23 millert 9137: else
1.25 ! millert 9138: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 9139: fi
! 9140: hardcode_libdir_flag_spec='-R$libdir'
! 9141: hardcode_direct=yes
! 9142: hardcode_shlibpath_var=no
! 9143: ;;
! 9144:
! 9145: newsos6)
! 9146: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9147: hardcode_direct=yes
! 9148: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 9149: hardcode_libdir_separator=:
! 9150: hardcode_shlibpath_var=no
1.23 millert 9151: ;;
9152:
1.25 ! millert 9153: *nto* | *qnx*)
1.23 millert 9154: ;;
9155:
9156: openbsd*)
1.25 ! millert 9157: hardcode_direct=yes
! 9158: hardcode_shlibpath_var=no
! 9159: if test -z "`$ECHO __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 9160: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 9161: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
! 9162: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 9163: export_dynamic_flag_spec='${wl}-E'
! 9164: else
! 9165: case $host_os in
! 9166: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 9167: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 9168: hardcode_libdir_flag_spec='-R$libdir'
! 9169: ;;
! 9170: *)
! 9171: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 9172: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 9173: ;;
! 9174: esac
! 9175: fi
1.23 millert 9176: ;;
9177:
9178: os2*)
1.25 ! millert 9179: hardcode_libdir_flag_spec='-L$libdir'
! 9180: hardcode_minus_L=yes
! 9181: allow_undefined_flag=unsupported
! 9182: archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
! 9183: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1.23 millert 9184: ;;
9185:
9186: osf3*)
9187: if test "$GCC" = yes; then
1.25 ! millert 9188: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 9189: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.23 millert 9190: else
1.25 ! millert 9191: allow_undefined_flag=' -expect_unresolved \*'
! 9192: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.23 millert 9193: fi
1.25 ! millert 9194: archive_cmds_need_lc='no'
! 9195: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 9196: hardcode_libdir_separator=:
1.23 millert 9197: ;;
9198:
9199: osf4* | osf5*) # as osf3* with the addition of -msym flag
9200: if test "$GCC" = yes; then
1.25 ! millert 9201: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 9202: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
! 9203: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.23 millert 9204: else
1.25 ! millert 9205: allow_undefined_flag=' -expect_unresolved \*'
! 9206: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 9207: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; $ECHO "-hidden">> $lib.exp~
! 9208: $CC -shared${allow_undefined_flag} -input $lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$RM $lib.exp'
1.23 millert 9209:
9210: # Both c and cxx compiler support -rpath directly
1.25 ! millert 9211: hardcode_libdir_flag_spec='-rpath $libdir'
1.23 millert 9212: fi
1.25 ! millert 9213: archive_cmds_need_lc='no'
! 9214: hardcode_libdir_separator=:
1.23 millert 9215: ;;
9216:
9217: sco3.2v5*)
1.25 ! millert 9218: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9219: hardcode_shlibpath_var=no
! 9220: export_dynamic_flag_spec='${wl}-Bexport'
1.23 millert 9221: runpath_var=LD_RUN_PATH
9222: hardcode_runpath_var=yes
9223: ;;
9224:
9225: solaris*)
1.25 ! millert 9226: no_undefined_flag=' -z text'
1.23 millert 9227: if test "$GCC" = yes; then
1.25 ! millert 9228: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 9229: archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
! 9230: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
1.23 millert 9231: else
1.25 ! millert 9232: case `$CC -V 2>&1` in
! 9233: *"Compilers 5.0"*)
! 9234: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9235: archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
! 9236: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
! 9237: ;;
! 9238: *)
! 9239: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 9240: archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
! 9241: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
! 9242: ;;
! 9243: esac
1.23 millert 9244: fi
1.25 ! millert 9245: hardcode_libdir_flag_spec='-R$libdir'
! 9246: hardcode_shlibpath_var=no
1.23 millert 9247: case $host_os in
9248: solaris2.[0-5] | solaris2.[0-5].*) ;;
9249: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
1.25 ! millert 9250: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
1.23 millert 9251: esac
1.25 ! millert 9252: link_all_deplibs=yes
1.23 millert 9253: ;;
9254:
9255: sunos4*)
9256: if test "x$host_vendor" = xsequent; then
9257: # Use $CC to link under sequent, because it throws in some extra .o
9258: # files that make .init and .fini sections work.
1.25 ! millert 9259: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.23 millert 9260: else
1.25 ! millert 9261: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1.23 millert 9262: fi
1.25 ! millert 9263: hardcode_libdir_flag_spec='-L$libdir'
! 9264: hardcode_direct=yes
! 9265: hardcode_minus_L=yes
! 9266: hardcode_shlibpath_var=no
1.23 millert 9267: ;;
9268:
9269: sysv4)
9270: case $host_vendor in
9271: sni)
1.25 ! millert 9272: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9273: hardcode_direct=yes # is this really true???
1.23 millert 9274: ;;
9275: siemens)
9276: ## LD is ld it makes a PLAMLIB
9277: ## CC just makes a GrossModule.
1.25 ! millert 9278: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 9279: reload_cmds='$CC -r -o $output$reload_objs'
! 9280: hardcode_direct=no
1.23 millert 9281: ;;
9282: motorola)
1.25 ! millert 9283: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9284: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1.23 millert 9285: ;;
9286: esac
9287: runpath_var='LD_RUN_PATH'
1.25 ! millert 9288: hardcode_shlibpath_var=no
1.23 millert 9289: ;;
9290:
9291: sysv4.3*)
1.25 ! millert 9292: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9293: hardcode_shlibpath_var=no
! 9294: export_dynamic_flag_spec='-Bexport'
1.23 millert 9295: ;;
9296:
9297: sysv4*MP*)
9298: if test -d /usr/nec; then
1.25 ! millert 9299: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9300: hardcode_shlibpath_var=no
1.23 millert 9301: runpath_var=LD_RUN_PATH
9302: hardcode_runpath_var=yes
1.25 ! millert 9303: ld_shlibs=yes
1.23 millert 9304: fi
9305: ;;
9306:
9307: sysv4.2uw2*)
1.25 ! millert 9308: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 9309: hardcode_direct=yes
! 9310: hardcode_minus_L=no
! 9311: hardcode_shlibpath_var=no
1.23 millert 9312: hardcode_runpath_var=yes
9313: runpath_var=LD_RUN_PATH
9314: ;;
9315:
9316: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
1.25 ! millert 9317: no_undefined_flag='${wl}-z ${wl}text'
1.23 millert 9318: if test "$GCC" = yes; then
1.25 ! millert 9319: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23 millert 9320: else
1.25 ! millert 9321: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.23 millert 9322: fi
9323: runpath_var='LD_RUN_PATH'
1.25 ! millert 9324: hardcode_shlibpath_var=no
1.23 millert 9325: ;;
9326:
9327: sysv5*)
1.25 ! millert 9328: no_undefined_flag=' -z text'
1.23 millert 9329: # $CC -shared without GNU ld will not create a library from C++
9330: # object files and a static libstdc++, better avoid it by now
1.25 ! millert 9331: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9332: archive_expsym_cmds='$ECHO "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$ECHO "local: *; };" >> $lib.exp~
! 9333: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
! 9334: hardcode_libdir_flag_spec=
! 9335: hardcode_shlibpath_var=no
1.23 millert 9336: runpath_var='LD_RUN_PATH'
9337: ;;
9338:
9339: uts4*)
1.25 ! millert 9340: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 9341: hardcode_libdir_flag_spec='-L$libdir'
! 9342: hardcode_shlibpath_var=no
1.23 millert 9343: ;;
9344:
9345: *)
1.25 ! millert 9346: ld_shlibs=no
1.23 millert 9347: ;;
9348: esac
1.25 ! millert 9349:
! 9350: if test x$host_vendor = xsni; then
! 9351: case $host in
! 9352: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 9353: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 9354: ;;
! 9355: esac
! 9356: fi
1.23 millert 9357: fi
9358:
1.25 ! millert 9359: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 9360: echo "${ECHO_T}$ld_shlibs" >&6
! 9361: test "$ld_shlibs" = no && can_build_shared=no
! 9362:
! 9363: with_gnu_ld=$with_gnu_ld
! 9364:
! 9365:
! 9366:
! 9367:
! 9368:
! 9369:
! 9370:
! 9371:
! 9372:
! 9373:
! 9374:
! 9375:
! 9376:
! 9377:
1.23 millert 9378:
9379: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9380: if test "$GCC" = yes; then
9381: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9382: fi
9383:
1.25 ! millert 9384:
! 9385:
! 9386:
! 9387:
! 9388:
1.23 millert 9389: #
9390: # Do we need to explicitly link libc?
9391: #
1.25 ! millert 9392: case "x$archive_cmds_need_lc" in
1.23 millert 9393: x|xyes)
9394: # Assume -lc should be added
1.25 ! millert 9395: archive_cmds_need_lc=yes
1.23 millert 9396:
9397: if test "$enable_shared" = yes && test "$GCC" = yes; then
1.25 ! millert 9398: case $archive_cmds in
1.23 millert 9399: *'~'*)
9400: # FIXME: we may have to deal with multi-command sequences.
9401: ;;
9402: '$CC '*)
9403: # Test whether the compiler implicitly links with -lc since on some
9404: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9405: # to ld, don't add -lc before -lgcc.
9406: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9407: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1.25 ! millert 9408: $RM conftest*
1.23 millert 9409: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9410:
9411: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9412: (eval $ac_compile) 2>&5
9413: ac_status=$?
9414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415: (exit $ac_status); } 2>conftest.err; then
9416: soname=conftest
9417: lib=conftest
9418: libobjs=conftest.$ac_objext
9419: deplibs=
1.25 ! millert 9420: wl=$lt_prog_compiler_wl
1.23 millert 9421: compiler_flags=-v
9422: linker_flags=-v
9423: verstring=
9424: output_objdir=.
9425: libname=conftest
1.25 ! millert 9426: lt_save_allow_undefined_flag=$allow_undefined_flag
! 9427: allow_undefined_flag=
! 9428: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 9429: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.23 millert 9430: ac_status=$?
9431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432: (exit $ac_status); }
9433: then
1.25 ! millert 9434: archive_cmds_need_lc=no
1.23 millert 9435: else
1.25 ! millert 9436: archive_cmds_need_lc=yes
1.23 millert 9437: fi
1.25 ! millert 9438: allow_undefined_flag=$lt_save_allow_undefined_flag
1.23 millert 9439: else
9440: cat conftest.err 1>&5
9441: fi
1.25 ! millert 9442: $RM conftest*
! 9443: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
! 9444: echo "${ECHO_T}$archive_cmds_need_lc" >&6
1.23 millert 9445: ;;
9446: esac
9447: fi
9448: ;;
9449: esac
9450:
9451:
9452:
9453:
1.25 ! millert 9454:
! 9455:
! 9456:
! 9457:
! 9458:
! 9459:
! 9460:
! 9461:
! 9462:
! 9463:
! 9464:
! 9465:
! 9466:
! 9467:
! 9468:
! 9469:
! 9470:
! 9471:
! 9472:
! 9473:
! 9474:
! 9475:
! 9476:
! 9477:
! 9478:
! 9479:
! 9480:
! 9481:
! 9482:
! 9483:
! 9484:
! 9485:
! 9486:
! 9487:
! 9488:
! 9489:
! 9490:
! 9491:
! 9492:
! 9493:
! 9494:
! 9495:
! 9496:
! 9497:
! 9498:
! 9499:
! 9500:
! 9501:
! 9502:
! 9503:
! 9504:
! 9505:
! 9506:
! 9507:
! 9508:
! 9509:
! 9510:
! 9511:
! 9512:
! 9513:
! 9514:
! 9515:
! 9516:
! 9517:
! 9518:
! 9519:
! 9520:
! 9521:
! 9522:
! 9523:
! 9524:
! 9525:
! 9526:
! 9527:
! 9528:
! 9529:
! 9530:
! 9531:
! 9532:
! 9533:
! 9534:
! 9535:
! 9536:
! 9537:
! 9538:
! 9539:
! 9540:
! 9541:
! 9542:
! 9543:
! 9544:
! 9545:
! 9546:
! 9547:
! 9548:
! 9549:
! 9550:
! 9551:
! 9552:
! 9553:
! 9554:
! 9555:
! 9556:
! 9557:
! 9558:
! 9559:
! 9560:
! 9561:
! 9562:
! 9563:
! 9564:
! 9565:
! 9566:
! 9567:
! 9568:
! 9569:
! 9570:
! 9571:
! 9572:
! 9573:
! 9574:
! 9575:
! 9576:
! 9577:
! 9578:
! 9579:
! 9580:
! 9581:
! 9582:
! 9583:
! 9584:
! 9585:
! 9586:
1.23 millert 9587:
9588: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9589: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.25 ! millert 9590: withGCC=$GCC
1.23 millert 9591: library_names_spec=
9592: libname_spec='lib$name'
9593: soname_spec=
1.25 ! millert 9594: shrext_cmds=".so"
1.23 millert 9595: postinstall_cmds=
9596: postuninstall_cmds=
9597: finish_cmds=
9598: finish_eval=
9599: shlibpath_var=
9600: shlibpath_overrides_runpath=unknown
9601: version_type=none
9602: dynamic_linker="$host_os ld.so"
9603: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.25 ! millert 9604: if test "$withGCC" = yes; then
! 9605: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 9606: if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
1.23 millert 9607: # if the path contains ";" then we assume it to be the separator
9608: # otherwise default to the standard path separator (i.e. ":") - it is
9609: # assumed that no part of a normal pathname contains ";" but that should
9610: # okay in the real world where ";" in dirpaths is itself problematic.
1.25 ! millert 9611: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.23 millert 9612: else
1.25 ! millert 9613: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.23 millert 9614: fi
9615: else
9616: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9617: fi
9618: need_lib_prefix=no
9619: hardcode_into_libs=no
9620:
9621: # when you set need_version to no, make sure it does not cause -set_version
9622: # flags to be left without arguments
9623: need_version=no
9624:
9625: case $host_os in
9626: aix3*)
9627: version_type=linux
9628: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9629: shlibpath_var=LIBPATH
9630:
9631: # AIX 3 has no versioning support, so we append a major version to the name.
9632: soname_spec='${libname}${release}${shared_ext}$major'
9633: ;;
9634:
9635: aix4* | aix5*)
9636: version_type=linux
1.25 ! millert 9637: need_lib_prefix=no
! 9638: need_version=no
1.23 millert 9639: hardcode_into_libs=yes
9640: if test "$host_cpu" = ia64; then
9641: # AIX 5 supports IA64
9642: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9643: shlibpath_var=LD_LIBRARY_PATH
9644: else
9645: # With GCC up to 2.95.x, collect2 would create an import file
9646: # for dependence libraries. The import file would start with
9647: # the line `#! .'. This would cause the generated library to
9648: # depend on `.', always an invalid library. This was fixed in
9649: # development snapshots of GCC prior to 3.0.
9650: case $host_os in
9651: aix4 | aix4.[01] | aix4.[01].*)
1.25 ! millert 9652: if { $ECHO '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 9653: $ECHO ' yes '
! 9654: $ECHO '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
1.23 millert 9655: :
9656: else
9657: can_build_shared=no
9658: fi
9659: ;;
9660: esac
9661: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9662: # soname into executable. Probably we can add versioning support to
9663: # collect2, so additional links can be useful in future.
9664: if test "$aix_use_runtimelinking" = yes; then
9665: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9666: # instead of lib<name>.a to let people know that these are not
9667: # typical AIX shared libraries.
9668: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669: else
9670: # We preserve .a as extension for shared libraries through AIX4.2
9671: # and later when we are not doing run time linking.
9672: library_names_spec='${libname}${release}.a $libname.a'
9673: soname_spec='${libname}${release}${shared_ext}$major'
9674: fi
9675: shlibpath_var=LIBPATH
9676: fi
9677: ;;
9678:
9679: amigaos*)
1.25 ! millert 9680: if test "$host_cpu" = m68k; then
! 9681: library_names_spec='$libname.ixlibrary $libname.a'
! 9682: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 9683: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
! 9684: else
! 9685: dynamic_linker=no
! 9686: fi
1.23 millert 9687: ;;
9688:
9689: beos*)
9690: library_names_spec='${libname}${shared_ext}'
9691: dynamic_linker="$host_os ld.so"
9692: shlibpath_var=LIBRARY_PATH
9693: ;;
9694:
1.25 ! millert 9695: bsdi[45]*)
1.23 millert 9696: version_type=linux
1.25 ! millert 9697: need_version=no
1.23 millert 9698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699: soname_spec='${libname}${release}${shared_ext}$major'
1.25 ! millert 9700: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1.23 millert 9701: shlibpath_var=LD_LIBRARY_PATH
9702: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9703: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9704: # the default ld.so.conf also contains /usr/contrib/lib and
9705: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9706: # libtool to hard-code these into programs
9707: ;;
9708:
9709: cygwin* | mingw* | pw32*)
9710: version_type=windows
1.25 ! millert 9711: shrext_cmds=".dll"
! 9712: need_version=no
! 9713: need_lib_prefix=no
1.23 millert 9714:
1.25 ! millert 9715: case $withGCC,$host_os in
1.23 millert 9716: yes,cygwin* | yes,mingw* | yes,pw32*)
9717: library_names_spec='$libname.dll.a'
9718: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9719: postinstall_cmds='base_file=`basename \${file}`~
1.25 ! millert 9720: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;$ECHO \$dlname'\''`~
1.23 millert 9721: dldir=$destdir/`dirname \$dlpath`~
9722: test -d \$dldir || mkdir -p \$dldir~
9723: $install_prog $dir/$dlname \$dldir/$dlname'
1.25 ! millert 9724: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
1.23 millert 9725: dlpath=$dir/\$dldll~
1.25 ! millert 9726: $RM \$dlpath'
1.23 millert 9727: shlibpath_overrides_runpath=yes
9728:
9729: case $host_os in
9730: cygwin*)
9731: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.25 ! millert 9732: soname_spec='`$ECHO ${libname} | sed -e 's/^lib/cyg/'``$ECHO ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9733: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.23 millert 9734: ;;
9735: mingw*)
9736: # MinGW DLLs use traditional 'lib' prefix
1.25 ! millert 9737: soname_spec='${libname}`$ECHO ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9738: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 9739: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1.23 millert 9740: # It is most probably a Windows format PATH printed by
9741: # mingw gcc, but we are running on Cygwin. Gcc prints its search
9742: # path with ; separators, and with drive letters. We can handle the
9743: # drive letters (cygwin fileutils understands them), so leave them,
9744: # especially as we might pass files found there to a mingw objdump,
9745: # which wouldn't understand a cygwinified path. Ahh.
1.25 ! millert 9746: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.23 millert 9747: else
1.25 ! millert 9748: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.23 millert 9749: fi
9750: ;;
9751: pw32*)
9752: # pw32 DLLs use 'pw' prefix rather than 'lib'
1.25 ! millert 9753: library_names_spec='`$ECHO ${libname} | sed -e 's/^lib/pw/'``$ECHO ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
1.23 millert 9754: ;;
9755: esac
9756: ;;
9757:
9758: *)
1.25 ! millert 9759: library_names_spec='${libname}`$ECHO ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.23 millert 9760: ;;
9761: esac
9762: dynamic_linker='Win32 ld.exe'
9763: # FIXME: first we should search . and the directory the executable is in
9764: shlibpath_var=PATH
9765: ;;
9766:
9767: darwin* | rhapsody*)
9768: dynamic_linker="$host_os dyld"
9769: version_type=darwin
1.25 ! millert 9770: need_lib_prefix=no
! 9771: need_version=no
! 9772: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.23 millert 9773: soname_spec='${libname}${release}${major}$shared_ext'
9774: shlibpath_overrides_runpath=yes
9775: shlibpath_var=DYLD_LIBRARY_PATH
1.25 ! millert 9776: shrext_cmds='$(test .$module = .yes && $ECHO .so || $ECHO .dylib)'
1.23 millert 9777: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.25 ! millert 9778: if test "$withGCC" = yes; then
! 9779: sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
! 9780: else
! 9781: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1.23 millert 9782: fi
9783: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9784: ;;
9785:
9786: dgux*)
9787: version_type=linux
1.25 ! millert 9788: need_lib_prefix=no
! 9789: need_version=no
1.23 millert 9790: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9791: soname_spec='${libname}${release}${shared_ext}$major'
9792: shlibpath_var=LD_LIBRARY_PATH
9793: ;;
9794:
9795: freebsd1*)
9796: dynamic_linker=no
9797: ;;
9798:
1.25 ! millert 9799: kfreebsd*-gnu)
! 9800: version_type=linux
! 9801: need_lib_prefix=no
! 9802: need_version=no
! 9803: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9804: soname_spec='${libname}${release}${shared_ext}$major'
! 9805: shlibpath_var=LD_LIBRARY_PATH
! 9806: shlibpath_overrides_runpath=no
! 9807: hardcode_into_libs=yes
! 9808: dynamic_linker='GNU ld.so'
! 9809: ;;
! 9810:
1.23 millert 9811: freebsd*)
1.25 ! millert 9812: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || $ECHO aout`
1.23 millert 9813: version_type=freebsd-$objformat
9814: case $version_type in
9815: freebsd-elf*)
9816: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.25 ! millert 9817: need_version=no
! 9818: need_lib_prefix=no
1.23 millert 9819: ;;
9820: freebsd-*)
9821: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.25 ! millert 9822: need_version=no
1.23 millert 9823: ;;
9824: esac
9825: shlibpath_var=LD_LIBRARY_PATH
9826: case $host_os in
9827: freebsd2*)
9828: shlibpath_overrides_runpath=yes
9829: ;;
9830: freebsd3.01* | freebsdelf3.01*)
9831: shlibpath_overrides_runpath=yes
9832: hardcode_into_libs=yes
9833: ;;
9834: *) # from 3.2 on
9835: shlibpath_overrides_runpath=no
9836: hardcode_into_libs=yes
9837: ;;
9838: esac
9839: ;;
9840:
9841: gnu*)
9842: version_type=linux
1.25 ! millert 9843: need_lib_prefix=no
! 9844: need_version=no
1.23 millert 9845: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9846: soname_spec='${libname}${release}${shared_ext}$major'
9847: shlibpath_var=LD_LIBRARY_PATH
9848: hardcode_into_libs=yes
9849: ;;
9850:
9851: hpux9* | hpux10* | hpux11*)
9852: # Give a soname corresponding to the major version so that dld.sl refuses to
9853: # link against other versions.
9854: version_type=sunos
1.25 ! millert 9855: need_lib_prefix=no
! 9856: need_version=no
1.23 millert 9857: case "$host_cpu" in
9858: ia64*)
1.25 ! millert 9859: shrext_cmds='.so'
1.23 millert 9860: hardcode_into_libs=yes
9861: dynamic_linker="$host_os dld.so"
9862: shlibpath_var=LD_LIBRARY_PATH
9863: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865: soname_spec='${libname}${release}${shared_ext}$major'
9866: if test "X$HPUX_IA64_MODE" = X32; then
9867: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9868: else
9869: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9870: fi
9871: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9872: ;;
9873: hppa*64*)
1.25 ! millert 9874: shrext_cmds='.sl'
1.23 millert 9875: hardcode_into_libs=yes
9876: dynamic_linker="$host_os dld.sl"
9877: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9878: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9879: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880: soname_spec='${libname}${release}${shared_ext}$major'
9881: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9882: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9883: ;;
9884: *)
1.25 ! millert 9885: shrext_cmds='.sl'
1.23 millert 9886: dynamic_linker="$host_os dld.sl"
9887: shlibpath_var=SHLIB_PATH
9888: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9889: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890: soname_spec='${libname}${release}${shared_ext}$major'
9891: ;;
9892: esac
9893: # HP-UX runs *really* slowly unless shared libraries are mode 555.
9894: postinstall_cmds='chmod 555 $lib'
9895: ;;
9896:
9897: irix5* | irix6* | nonstopux*)
9898: case $host_os in
9899: nonstopux*) version_type=nonstopux ;;
9900: *)
9901: if test "$lt_cv_prog_gnu_ld" = yes; then
9902: version_type=linux
9903: else
9904: version_type=irix
9905: fi ;;
9906: esac
1.25 ! millert 9907: need_lib_prefix=no
! 9908: need_version=no
1.23 millert 9909: soname_spec='${libname}${release}${shared_ext}$major'
9910: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9911: case $host_os in
9912: irix5* | nonstopux*)
9913: libsuff= shlibsuff=
9914: ;;
9915: *)
9916: case $LD in # libtool.m4 will add one of these switches to LD
9917: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9918: libsuff= shlibsuff= libmagic=32-bit;;
9919: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9920: libsuff=32 shlibsuff=N32 libmagic=N32;;
9921: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9922: libsuff=64 shlibsuff=64 libmagic=64-bit;;
9923: *) libsuff= shlibsuff= libmagic=never-match;;
9924: esac
9925: ;;
9926: esac
9927: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9928: shlibpath_overrides_runpath=no
9929: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9930: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9931: hardcode_into_libs=yes
9932: ;;
9933:
9934: # No shared lib support for Linux oldld, aout, or coff.
9935: linux*oldld* | linux*aout* | linux*coff*)
9936: dynamic_linker=no
9937: ;;
9938:
9939: # This must be Linux ELF.
9940: linux*)
9941: version_type=linux
1.25 ! millert 9942: need_lib_prefix=no
! 9943: need_version=no
1.23 millert 9944: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945: soname_spec='${libname}${release}${shared_ext}$major'
1.25 ! millert 9946: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1.23 millert 9947: shlibpath_var=LD_LIBRARY_PATH
9948: shlibpath_overrides_runpath=no
9949: # This implies no fast_install, which is unacceptable.
9950: # Some rework will be needed to allow for fast_install
9951: # before this can be enabled.
9952: hardcode_into_libs=yes
9953:
1.25 ! millert 9954: # Append ld.so.conf contents to the search path
! 9955: if test -f /etc/ld.so.conf; then
! 9956: lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
! 9957: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
! 9958: fi
! 9959:
1.23 millert 9960: # We used to test for /lib/ld.so.1 and disable shared libraries on
9961: # powerpc, because MkLinux only supported shared libraries with the
9962: # GNU dynamic linker. Since this was broken with cross compilers,
9963: # most powerpc-linux boxes support dynamic linking these days and
9964: # people can always --disable-shared, the test was removed, and we
9965: # assume the GNU/Linux dynamic linker is in use.
9966: dynamic_linker='GNU/Linux ld.so'
9967: ;;
9968:
1.25 ! millert 9969: knetbsd*-gnu)
! 9970: version_type=linux
! 9971: need_lib_prefix=no
! 9972: need_version=no
! 9973: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
! 9974: soname_spec='${libname}${release}${shared_ext}$major'
! 9975: shlibpath_var=LD_LIBRARY_PATH
! 9976: shlibpath_overrides_runpath=no
! 9977: hardcode_into_libs=yes
! 9978: dynamic_linker='GNU ld.so'
! 9979: ;;
! 9980:
1.23 millert 9981: netbsd*)
9982: version_type=sunos
1.25 ! millert 9983: need_lib_prefix=no
! 9984: need_version=no
! 9985: if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
1.23 millert 9986: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.25 ! millert 9987: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.23 millert 9988: dynamic_linker='NetBSD (a.out) ld.so'
9989: else
1.25 ! millert 9990: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.23 millert 9991: soname_spec='${libname}${release}${shared_ext}$major'
9992: dynamic_linker='NetBSD ld.elf_so'
9993: fi
9994: shlibpath_var=LD_LIBRARY_PATH
9995: shlibpath_overrides_runpath=yes
9996: hardcode_into_libs=yes
9997: ;;
9998:
9999: newsos6)
10000: version_type=linux
10001: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002: shlibpath_var=LD_LIBRARY_PATH
10003: shlibpath_overrides_runpath=yes
10004: ;;
10005:
1.25 ! millert 10006: *nto* | *qnx*)
! 10007: version_type=qnx
! 10008: need_lib_prefix=no
! 10009: need_version=no
1.23 millert 10010: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011: soname_spec='${libname}${release}${shared_ext}$major'
10012: shlibpath_var=LD_LIBRARY_PATH
1.25 ! millert 10013: shlibpath_overrides_runpath=no
! 10014: hardcode_into_libs=yes
! 10015: dynamic_linker='ldqnx.so'
1.23 millert 10016: ;;
10017:
10018: openbsd*)
10019: version_type=sunos
1.25 ! millert 10020: need_lib_prefix=no
! 10021: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
! 10022: case $host_os in
! 10023: openbsd3.3 | openbsd3.3.*) need_version=no ;;
! 10024: *) need_version=no ;;
! 10025: esac
1.23 millert 10026: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.25 ! millert 10027: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.23 millert 10028: shlibpath_var=LD_LIBRARY_PATH
1.25 ! millert 10029: if test -z "`$ECHO __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.23 millert 10030: case $host_os in
10031: openbsd2.[89] | openbsd2.[89].*)
10032: shlibpath_overrides_runpath=no
10033: ;;
10034: *)
10035: shlibpath_overrides_runpath=yes
10036: ;;
10037: esac
10038: else
10039: shlibpath_overrides_runpath=yes
10040: fi
10041: ;;
10042:
10043: os2*)
10044: libname_spec='$name'
1.25 ! millert 10045: shrext_cmds=".dll"
! 10046: need_lib_prefix=no
1.23 millert 10047: library_names_spec='$libname${shared_ext} $libname.a'
10048: dynamic_linker='OS/2 ld.exe'
10049: shlibpath_var=LIBPATH
10050: ;;
10051:
10052: osf3* | osf4* | osf5*)
10053: version_type=osf
1.25 ! millert 10054: need_lib_prefix=no
! 10055: need_version=no
1.23 millert 10056: soname_spec='${libname}${release}${shared_ext}$major'
10057: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058: shlibpath_var=LD_LIBRARY_PATH
10059: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10060: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10061: ;;
10062:
10063: sco3.2v5*)
10064: version_type=osf
10065: soname_spec='${libname}${release}${shared_ext}$major'
10066: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067: shlibpath_var=LD_LIBRARY_PATH
10068: ;;
10069:
10070: solaris*)
10071: version_type=linux
1.25 ! millert 10072: need_lib_prefix=no
! 10073: need_version=no
1.23 millert 10074: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075: soname_spec='${libname}${release}${shared_ext}$major'
10076: shlibpath_var=LD_LIBRARY_PATH
10077: shlibpath_overrides_runpath=yes
10078: hardcode_into_libs=yes
10079: # ldd complains unless libraries are executable
10080: postinstall_cmds='chmod +x $lib'
10081: ;;
10082:
10083: sunos4*)
10084: version_type=sunos
10085: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.25 ! millert 10086: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1.23 millert 10087: shlibpath_var=LD_LIBRARY_PATH
10088: shlibpath_overrides_runpath=yes
1.25 ! millert 10089: if test "$with_gnu_ld" = yes; then
! 10090: need_lib_prefix=no
! 10091: fi
! 10092: need_version=no
1.23 millert 10093: ;;
10094:
10095: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10096: version_type=linux
10097: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098: soname_spec='${libname}${release}${shared_ext}$major'
10099: shlibpath_var=LD_LIBRARY_PATH
10100: case $host_vendor in
10101: sni)
10102: shlibpath_overrides_runpath=no
1.25 ! millert 10103: need_lib_prefix=no
1.23 millert 10104: runpath_var=LD_RUN_PATH
10105: ;;
1.25 ! millert 10106: siemens)
! 10107: need_lib_prefix=no
! 10108: ;;
1.23 millert 10109: motorola)
1.25 ! millert 10110: need_lib_prefix=no
! 10111: need_version=no
1.23 millert 10112: shlibpath_overrides_runpath=no
10113: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10114: ;;
10115: esac
10116: ;;
10117:
10118: sysv4*MP*)
10119: if test -d /usr/nec ;then
10120: version_type=linux
10121: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10122: soname_spec='$libname${shared_ext}.$major'
10123: shlibpath_var=LD_LIBRARY_PATH
10124: fi
10125: ;;
10126:
1.25 ! millert 10127: tpf*)
! 10128: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
! 10129: version_type=linux
! 10130: need_lib_prefix=no
! 10131: need_version=no
! 10132: library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 10133: shlibpath_var=LD_LIBRARY_PATH
! 10134: shlibpath_overrides_runpath=no
! 10135: hardcode_into_libs=yes
! 10136: ;;
! 10137:
1.23 millert 10138: uts4*)
10139: version_type=linux
10140: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141: soname_spec='${libname}${release}${shared_ext}$major'
10142: shlibpath_var=LD_LIBRARY_PATH
10143: ;;
10144:
10145: *)
10146: dynamic_linker=no
10147: ;;
10148: esac
10149: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10150: echo "${ECHO_T}$dynamic_linker" >&6
10151: test "$dynamic_linker" = no && can_build_shared=no
10152:
10153:
10154:
10155:
10156:
10157:
10158:
10159:
10160:
10161:
10162:
10163:
10164:
10165:
10166:
10167:
10168:
10169:
10170:
10171:
10172:
10173:
10174:
10175:
10176:
10177:
10178:
10179:
10180:
10181:
10182:
10183:
10184:
10185:
10186:
10187:
10188:
10189:
10190:
10191:
10192:
10193:
10194:
10195:
10196:
10197:
10198:
10199:
10200:
10201:
10202:
10203:
10204:
10205:
10206:
10207:
10208:
10209:
1.25 ! millert 10210:
! 10211:
! 10212:
! 10213:
! 10214:
! 10215:
! 10216:
! 10217:
! 10218:
! 10219:
! 10220:
! 10221:
! 10222:
! 10223:
! 10224:
! 10225:
! 10226:
! 10227:
! 10228:
! 10229:
! 10230:
! 10231:
! 10232:
! 10233: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 10234: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 10235: hardcode_action=
! 10236: if test -n "$hardcode_libdir_flag_spec" ||
! 10237: test -n "$runpath_var" ||
! 10238: test "X$hardcode_automatic" = "Xyes" ; then
! 10239:
! 10240: # We can hardcode non-existant directories.
! 10241: if test "$hardcode_direct" != no &&
! 10242: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 10243: # have to relink, otherwise we might link with an installed library
! 10244: # when we should be linking with a yet-to-be-installed one
! 10245: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
! 10246: test "$hardcode_minus_L" != no; then
! 10247: # Linking always hardcodes the temporary library directory.
! 10248: hardcode_action=relink
! 10249: else
! 10250: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 10251: hardcode_action=immediate
1.23 millert 10252: fi
1.25 ! millert 10253: else
! 10254: # We cannot hardcode anything, or else we can only hardcode existing
! 10255: # directories.
! 10256: hardcode_action=unsupported
! 10257: fi
! 10258: echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 10259: echo "${ECHO_T}$hardcode_action" >&6
! 10260:
! 10261: if test "$hardcode_action" = relink ||
! 10262: test "$inherit_rpath" = yes; then
! 10263: # Fast installation is not supported
! 10264: enable_fast_install=no
! 10265: elif test "$shlibpath_overrides_runpath" = yes ||
! 10266: test "$enable_shared" = no; then
! 10267: # Fast installation is not necessary
! 10268: enable_fast_install=needless
1.23 millert 10269: fi
10270:
10271:
1.25 ! millert 10272:
! 10273:
! 10274:
! 10275:
! 10276:
! 10277: striplib=
! 10278: old_striplib=
! 10279: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 10280: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 10281: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
! 10282: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 10283: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 10284: echo "$as_me:$LINENO: result: yes" >&5
! 10285: echo "${ECHO_T}yes" >&6
! 10286: else
! 10287: # FIXME - insert some real tests, host_os isn't really good enough
! 10288: case $host_os in
! 10289: darwin*)
! 10290: if test -n "$STRIP" ; then
! 10291: striplib="$STRIP -x"
! 10292: old_striplib="$STRIP -S"
! 10293: echo "$as_me:$LINENO: result: yes" >&5
! 10294: echo "${ECHO_T}yes" >&6
! 10295: else
! 10296: echo "$as_me:$LINENO: result: no" >&5
! 10297: echo "${ECHO_T}no" >&6
! 10298: fi
! 10299: ;;
! 10300: *)
! 10301: echo "$as_me:$LINENO: result: no" >&5
! 10302: echo "${ECHO_T}no" >&6
1.23 millert 10303: ;;
10304: esac
10305: fi
10306:
10307:
10308:
10309:
10310:
10311:
10312:
10313:
10314:
10315:
10316:
10317:
1.25 ! millert 10318: # Report which library types will actually be built
! 10319: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 10320: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
! 10321: echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 10322: echo "${ECHO_T}$can_build_shared" >&6
1.23 millert 10323:
1.25 ! millert 10324: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 10325: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
! 10326: test "$can_build_shared" = "no" && enable_shared=no
1.23 millert 10327:
1.25 ! millert 10328: # On AIX, shared libraries and static libraries use the same namespace, and
! 10329: # are all built from PIC.
! 10330: case "$host_os" in
! 10331: aix3*)
! 10332: test "$enable_shared" = yes && enable_static=no
! 10333: if test -n "$RANLIB"; then
! 10334: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 10335: postinstall_cmds='$RANLIB $lib'
! 10336: fi
! 10337: ;;
1.23 millert 10338:
1.25 ! millert 10339: aix4* | aix5*)
! 10340: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 10341: test "$enable_shared" = yes && enable_static=no
! 10342: fi
! 10343: ;;
! 10344: esac
! 10345: echo "$as_me:$LINENO: result: $enable_shared" >&5
! 10346: echo "${ECHO_T}$enable_shared" >&6
1.23 millert 10347:
1.25 ! millert 10348: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 10349: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
! 10350: # Make sure either enable_shared or enable_static is yes.
! 10351: test "$enable_shared" = yes || enable_static=yes
! 10352: echo "$as_me:$LINENO: result: $enable_static" >&5
! 10353: echo "${ECHO_T}$enable_static" >&6
1.23 millert 10354:
10355:
10356:
10357:
1.25 ! millert 10358: fi
! 10359: ac_ext=c
! 10360: ac_cpp='$CPP $CPPFLAGS'
! 10361: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 10362: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 10363: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 10364:
1.25 ! millert 10365: CC="$lt_save_CC"
1.23 millert 10366:
10367:
10368:
10369:
10370:
10371:
10372:
10373:
10374:
10375:
10376:
1.25 ! millert 10377: ac_config_commands="$ac_config_commands libtool"
1.23 millert 10378:
10379:
10380:
10381:
1.25 ! millert 10382: # Only expand once:
1.23 millert 10383:
10384:
10385:
1.25 ! millert 10386: if test "$enable_shared" = "no"; then
! 10387: with_noexec=no
! 10388: else
! 10389: eval _shrext="$shrext"
! 10390: fi
! 10391: echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
! 10392: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6
1.23 millert 10393:
1.25 ! millert 10394: # Check whether --with-noexec or --without-noexec was given.
! 10395: if test "${with_noexec+set}" = set; then
! 10396: withval="$with_noexec"
! 10397: case $with_noexec in
! 10398: yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
! 10399: ;;
! 10400: no) ;;
! 10401: *) ;;
! 10402: esac
! 10403: else
! 10404: with_noexec="$libexecdir/sudo_noexec$_shrext"
! 10405: fi;
! 10406: echo "$as_me:$LINENO: result: $with_noexec" >&5
! 10407: echo "${ECHO_T}$with_noexec" >&6
! 10408: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23 millert 10409:
1.25 ! millert 10410: if test "$with_devel" = "yes" -a -n "$GCC"; then
! 10411: CFLAGS="${CFLAGS} -Wall"
! 10412: fi
1.23 millert 10413:
1.25 ! millert 10414: # Extract the first word of "uname", so it can be a program name with args.
! 10415: set dummy uname; ac_word=$2
! 10416: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 10417: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 10418: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
! 10419: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10420: else
! 10421: if test -n "$UNAMEPROG"; then
! 10422: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
! 10423: else
! 10424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 10425: for as_dir in $PATH
! 10426: do
! 10427: IFS=$as_save_IFS
! 10428: test -z "$as_dir" && as_dir=.
! 10429: for ac_exec_ext in '' $ac_executable_extensions; do
! 10430: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 10431: ac_cv_prog_UNAMEPROG="uname"
! 10432: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 10433: break 2
! 10434: fi
! 10435: done
! 10436: done
1.23 millert 10437:
1.25 ! millert 10438: fi
! 10439: fi
! 10440: UNAMEPROG=$ac_cv_prog_UNAMEPROG
! 10441: if test -n "$UNAMEPROG"; then
! 10442: echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
! 10443: echo "${ECHO_T}$UNAMEPROG" >&6
! 10444: else
! 10445: echo "$as_me:$LINENO: result: no" >&5
! 10446: echo "${ECHO_T}no" >&6
! 10447: fi
1.23 millert 10448:
1.25 ! millert 10449: # Extract the first word of "tr", so it can be a program name with args.
! 10450: set dummy tr; ac_word=$2
! 10451: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 10452: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 10453: if test "${ac_cv_prog_TRPROG+set}" = set; then
! 10454: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10455: else
! 10456: if test -n "$TRPROG"; then
! 10457: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
! 10458: else
! 10459: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 10460: for as_dir in $PATH
! 10461: do
! 10462: IFS=$as_save_IFS
! 10463: test -z "$as_dir" && as_dir=.
! 10464: for ac_exec_ext in '' $ac_executable_extensions; do
! 10465: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 10466: ac_cv_prog_TRPROG="tr"
! 10467: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 10468: break 2
! 10469: fi
! 10470: done
! 10471: done
1.23 millert 10472:
1.25 ! millert 10473: fi
! 10474: fi
! 10475: TRPROG=$ac_cv_prog_TRPROG
! 10476: if test -n "$TRPROG"; then
! 10477: echo "$as_me:$LINENO: result: $TRPROG" >&5
! 10478: echo "${ECHO_T}$TRPROG" >&6
! 10479: else
! 10480: echo "$as_me:$LINENO: result: no" >&5
! 10481: echo "${ECHO_T}no" >&6
! 10482: fi
1.23 millert 10483:
1.25 ! millert 10484: # Extract the first word of "nroff", so it can be a program name with args.
! 10485: set dummy nroff; ac_word=$2
! 10486: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 10487: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 10488: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
! 10489: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10490: else
! 10491: if test -n "$NROFFPROG"; then
! 10492: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
! 10493: else
! 10494: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 10495: for as_dir in $PATH
! 10496: do
! 10497: IFS=$as_save_IFS
! 10498: test -z "$as_dir" && as_dir=.
! 10499: for ac_exec_ext in '' $ac_executable_extensions; do
! 10500: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 10501: ac_cv_prog_NROFFPROG="nroff"
! 10502: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 10503: break 2
! 10504: fi
! 10505: done
! 10506: done
1.23 millert 10507:
1.25 ! millert 10508: fi
! 10509: fi
! 10510: NROFFPROG=$ac_cv_prog_NROFFPROG
! 10511: if test -n "$NROFFPROG"; then
! 10512: echo "$as_me:$LINENO: result: $NROFFPROG" >&5
! 10513: echo "${ECHO_T}$NROFFPROG" >&6
! 10514: else
! 10515: echo "$as_me:$LINENO: result: no" >&5
! 10516: echo "${ECHO_T}no" >&6
! 10517: fi
1.23 millert 10518:
1.25 ! millert 10519: if test -z "$NROFFPROG"; then
! 10520: MANTYPE="cat"
! 10521: mansrcdir='$(srcdir)'
! 10522: fi
1.23 millert 10523:
1.25 ! millert 10524: if test -n "$sudo_cv_prev_host"; then
! 10525: if test "$sudo_cv_prev_host" != "$host"; then
! 10526: { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
! 10527: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
! 10528: { (exit 1); exit 1; }; }
! 10529: else
! 10530: echo "$as_me:$LINENO: checking previous host type" >&5
! 10531: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
! 10532: if test "${sudo_cv_prev_host+set}" = set; then
! 10533: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10534: else
! 10535: sudo_cv_prev_host="$host"
! 10536: fi
1.23 millert 10537:
1.25 ! millert 10538: echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
! 10539: echo "${ECHO_T}$sudo_cv_prev_host" >&6
! 10540: fi
! 10541: else
! 10542: # this will produce no output since there is no cached value
! 10543: if test "${sudo_cv_prev_host+set}" = set; then
! 10544: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10545: else
! 10546: sudo_cv_prev_host="$host"
! 10547: fi
1.23 millert 10548:
1.25 ! millert 10549: fi
1.23 millert 10550:
1.25 ! millert 10551: if test -n "$host_os"; then
! 10552: OS=`echo $host_os | sed 's/[0-9].*//'`
! 10553: OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
! 10554: OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
! 10555: else
! 10556: OS="unknown"
! 10557: OSREV=0
! 10558: OSMAJOR=0
! 10559: fi
1.23 millert 10560:
1.25 ! millert 10561: case "$host" in
! 10562: *-*-sunos4*)
! 10563: # getcwd(3) opens a pipe to getpwd(1)!?!
! 10564: BROKEN_GETCWD=1
1.23 millert 10565:
1.25 ! millert 10566: # system headers lack prototypes but gcc helps...
! 10567: if test -n "$GCC"; then
! 10568: OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
! 10569: fi
1.23 millert 10570:
1.25 ! millert 10571: shadow_funcs="getpwanam issecure"
! 10572: ;;
! 10573: *-*-solaris2*)
! 10574: # To get the crypt(3) prototype (so we pass -Wall)
! 10575: OSDEFS="${OSDEFS} -D__EXTENSIONS__"
! 10576: # AFS support needs -lucb
! 10577: if test "$with_AFS" = "yes"; then
! 10578: AFS_LIBS="-lc -lucb"
! 10579: fi
! 10580: : ${mansectsu='1m'}
! 10581: : ${mansectform='4'}
! 10582: : ${with_rpath='yes'}
! 10583: : ${with_pam='maybe'}
! 10584: ;;
! 10585: *-*-aix*)
! 10586: # To get all prototypes (so we pass -Wall)
! 10587: OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
! 10588: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
! 10589: if test X"$with_blibpath" != X"no"; then
! 10590: echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
! 10591: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6
! 10592: O_LDFLAGS="$LDFLAGS"
! 10593: LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
! 10594: cat >conftest.$ac_ext <<_ACEOF
! 10595: /* confdefs.h. */
! 10596: _ACEOF
! 10597: cat confdefs.h >>conftest.$ac_ext
! 10598: cat >>conftest.$ac_ext <<_ACEOF
! 10599: /* end confdefs.h. */
1.23 millert 10600:
1.25 ! millert 10601: int
! 10602: main ()
! 10603: {
1.23 millert 10604:
1.25 ! millert 10605: ;
! 10606: return 0;
! 10607: }
! 10608: _ACEOF
! 10609: rm -f conftest.$ac_objext conftest$ac_exeext
! 10610: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10611: (eval $ac_link) 2>conftest.er1
! 10612: ac_status=$?
! 10613: grep -v '^ *+' conftest.er1 >conftest.err
! 10614: rm -f conftest.er1
! 10615: cat conftest.err >&5
! 10616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10617: (exit $ac_status); } &&
! 10618: { ac_try='test -z "$ac_c_werror_flag"
! 10619: || test ! -s conftest.err'
! 10620: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10621: (eval $ac_try) 2>&5
! 10622: ac_status=$?
! 10623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10624: (exit $ac_status); }; } &&
! 10625: { ac_try='test -s conftest$ac_exeext'
! 10626: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10627: (eval $ac_try) 2>&5
! 10628: ac_status=$?
! 10629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10630: (exit $ac_status); }; }; then
1.23 millert 10631:
1.25 ! millert 10632: if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
! 10633: blibpath="$with_blibpath"
! 10634: elif test -n "$GCC"; then
! 10635: blibpath="/usr/lib:/lib:/usr/local/lib"
! 10636: else
! 10637: blibpath="/usr/lib:/lib"
! 10638: fi
! 10639: echo "$as_me:$LINENO: result: yes" >&5
! 10640: echo "${ECHO_T}yes" >&6
1.23 millert 10641:
1.25 ! millert 10642: else
! 10643: echo "$as_me: failed program was:" >&5
! 10644: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 10645:
1.25 ! millert 10646: echo "$as_me:$LINENO: result: no" >&5
! 10647: echo "${ECHO_T}no" >&6
! 10648: fi
! 10649: rm -f conftest.err conftest.$ac_objext \
! 10650: conftest$ac_exeext conftest.$ac_ext
! 10651: fi
! 10652: LDFLAGS="$O_LDFLAGS"
1.23 millert 10653:
1.25 ! millert 10654: # check for authenticate(3)
! 10655: if test X"$with_aixauth" = X""; then
1.23 millert 10656:
1.25 ! millert 10657: for ac_func in authenticate
! 10658: do
! 10659: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 10660: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 10661: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 10662: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 10663: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10664: else
! 10665: cat >conftest.$ac_ext <<_ACEOF
! 10666: /* confdefs.h. */
! 10667: _ACEOF
! 10668: cat confdefs.h >>conftest.$ac_ext
! 10669: cat >>conftest.$ac_ext <<_ACEOF
! 10670: /* end confdefs.h. */
! 10671: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 10672: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 10673: #define $ac_func innocuous_$ac_func
1.23 millert 10674:
1.25 ! millert 10675: /* System header to define __stub macros and hopefully few prototypes,
! 10676: which can conflict with char $ac_func (); below.
! 10677: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 10678: <limits.h> exists even on freestanding compilers. */
1.23 millert 10679:
1.25 ! millert 10680: #ifdef __STDC__
! 10681: # include <limits.h>
! 10682: #else
! 10683: # include <assert.h>
! 10684: #endif
1.23 millert 10685:
1.25 ! millert 10686: #undef $ac_func
1.23 millert 10687:
1.25 ! millert 10688: /* Override any gcc2 internal prototype to avoid an error. */
! 10689: #ifdef __cplusplus
! 10690: extern "C"
! 10691: {
! 10692: #endif
! 10693: /* We use char because int might match the return type of a gcc2
! 10694: builtin and then its argument prototype would still apply. */
! 10695: char $ac_func ();
! 10696: /* The GNU C library defines this for functions which it implements
! 10697: to always fail with ENOSYS. Some functions are actually named
! 10698: something starting with __ and the normal name is an alias. */
! 10699: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 10700: choke me
! 10701: #else
! 10702: char (*f) () = $ac_func;
! 10703: #endif
! 10704: #ifdef __cplusplus
! 10705: }
! 10706: #endif
1.23 millert 10707:
1.25 ! millert 10708: int
! 10709: main ()
! 10710: {
! 10711: return f != $ac_func;
! 10712: ;
! 10713: return 0;
! 10714: }
! 10715: _ACEOF
! 10716: rm -f conftest.$ac_objext conftest$ac_exeext
! 10717: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10718: (eval $ac_link) 2>conftest.er1
! 10719: ac_status=$?
! 10720: grep -v '^ *+' conftest.er1 >conftest.err
! 10721: rm -f conftest.er1
! 10722: cat conftest.err >&5
! 10723: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10724: (exit $ac_status); } &&
! 10725: { ac_try='test -z "$ac_c_werror_flag"
! 10726: || test ! -s conftest.err'
! 10727: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10728: (eval $ac_try) 2>&5
! 10729: ac_status=$?
! 10730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10731: (exit $ac_status); }; } &&
! 10732: { ac_try='test -s conftest$ac_exeext'
! 10733: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10734: (eval $ac_try) 2>&5
! 10735: ac_status=$?
! 10736: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10737: (exit $ac_status); }; }; then
! 10738: eval "$as_ac_var=yes"
! 10739: else
! 10740: echo "$as_me: failed program was:" >&5
! 10741: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 10742:
1.25 ! millert 10743: eval "$as_ac_var=no"
! 10744: fi
! 10745: rm -f conftest.err conftest.$ac_objext \
! 10746: conftest$ac_exeext conftest.$ac_ext
! 10747: fi
! 10748: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 10749: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 10750: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 10751: cat >>confdefs.h <<_ACEOF
! 10752: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 10753: _ACEOF
! 10754: with_aixauth=maybe
! 10755: fi
! 10756: done
1.23 millert 10757:
1.25 ! millert 10758: fi
! 10759: ;;
! 10760: *-*-hiuxmpp*)
! 10761: : ${mansectsu='1m'}
! 10762: : ${mansectform='4'}
! 10763: ;;
! 10764: *-*-hpux*)
! 10765: # AFS support needs -lBSD
! 10766: if test "$with_AFS" = "yes"; then
! 10767: AFS_LIBS="-lc -lBSD"
! 10768: fi
! 10769: : ${mansectsu='1m'}
! 10770: : ${mansectform='4'}
1.23 millert 10771:
1.25 ! millert 10772: case "$host" in
! 10773: *-*-hpux1-8.*)
! 10774: cat >>confdefs.h <<\_ACEOF
! 10775: #define BROKEN_SYSLOG 1
! 10776: _ACEOF
1.23 millert 10777:
10778:
1.25 ! millert 10779: # Not sure if setuid binaries are safe in < 9.x
! 10780: if test -n "$GCC"; then
! 10781: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
! 10782: else
! 10783: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
! 10784: fi
! 10785: ;;
! 10786: *-*-hpux9.*)
! 10787: cat >>confdefs.h <<\_ACEOF
! 10788: #define BROKEN_SYSLOG 1
! 10789: _ACEOF
1.23 millert 10790:
10791:
1.25 ! millert 10792: shadow_funcs="getspwuid"
1.23 millert 10793:
1.25 ! millert 10794: # DCE support (requires ANSI C compiler)
! 10795: if test "$with_DCE" = "yes"; then
! 10796: # order of libs in 9.X is important. -lc_r must be last
! 10797: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
! 10798: LIBS="${LIBS} -ldce -lM -lc_r"
! 10799: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
! 10800: fi
! 10801: ;;
! 10802: *-*-hpux10.*)
! 10803: shadow_funcs="getprpwnam iscomsec"
! 10804: shadow_libs="-lsec"
! 10805: ;;
! 10806: *)
! 10807: shadow_funcs="getspnam iscomsec"
! 10808: shadow_libs="-lsec"
! 10809: : ${with_pam='maybe'}
! 10810: ;;
! 10811: esac
! 10812: ;;
! 10813: *-dec-osf*)
! 10814: # ignore envariables wrt dynamic lib path
! 10815: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23 millert 10816:
1.25 ! millert 10817: echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
! 10818: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
! 10819: # Check whether --enable-sia or --disable-sia was given.
! 10820: if test "${enable_sia+set}" = set; then
! 10821: enableval="$enable_sia"
! 10822: case "$enableval" in
! 10823: yes) echo "$as_me:$LINENO: result: no" >&5
! 10824: echo "${ECHO_T}no" >&6
! 10825: ;;
! 10826: no) echo "$as_me:$LINENO: result: yes" >&5
! 10827: echo "${ECHO_T}yes" >&6
! 10828: CHECKSIA=false
! 10829: ;;
! 10830: *) echo "$as_me:$LINENO: result: no" >&5
! 10831: echo "${ECHO_T}no" >&6
! 10832: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
! 10833: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
! 10834: ;;
! 10835: esac
1.23 millert 10836:
1.25 ! millert 10837: else
! 10838: echo "$as_me:$LINENO: result: no" >&5
! 10839: echo "${ECHO_T}no" >&6
! 10840: fi;
1.23 millert 10841:
1.25 ! millert 10842: shadow_funcs="getprpwnam dispcrypt"
! 10843: # OSF/1 4.x and higher need -ldb too
! 10844: if test $OSMAJOR -lt 4; then
! 10845: shadow_libs="-lsecurity -laud -lm"
! 10846: else
! 10847: shadow_libs="-lsecurity -ldb -laud -lm"
! 10848: fi
1.23 millert 10849:
1.25 ! millert 10850: # use SIA by default, if we have it
! 10851: if test "$CHECKSIA" = "true"; then
1.23 millert 10852:
1.25 ! millert 10853: for ac_func in sia_ses_init
! 10854: do
! 10855: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 10856: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 10857: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 10858: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 10859: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10860: else
! 10861: cat >conftest.$ac_ext <<_ACEOF
! 10862: /* confdefs.h. */
! 10863: _ACEOF
! 10864: cat confdefs.h >>conftest.$ac_ext
! 10865: cat >>conftest.$ac_ext <<_ACEOF
! 10866: /* end confdefs.h. */
! 10867: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 10868: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 10869: #define $ac_func innocuous_$ac_func
1.23 millert 10870:
1.25 ! millert 10871: /* System header to define __stub macros and hopefully few prototypes,
! 10872: which can conflict with char $ac_func (); below.
! 10873: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 10874: <limits.h> exists even on freestanding compilers. */
1.23 millert 10875:
1.25 ! millert 10876: #ifdef __STDC__
! 10877: # include <limits.h>
! 10878: #else
! 10879: # include <assert.h>
! 10880: #endif
1.23 millert 10881:
1.25 ! millert 10882: #undef $ac_func
1.23 millert 10883:
1.25 ! millert 10884: /* Override any gcc2 internal prototype to avoid an error. */
! 10885: #ifdef __cplusplus
! 10886: extern "C"
! 10887: {
! 10888: #endif
! 10889: /* We use char because int might match the return type of a gcc2
! 10890: builtin and then its argument prototype would still apply. */
! 10891: char $ac_func ();
! 10892: /* The GNU C library defines this for functions which it implements
! 10893: to always fail with ENOSYS. Some functions are actually named
! 10894: something starting with __ and the normal name is an alias. */
! 10895: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 10896: choke me
! 10897: #else
! 10898: char (*f) () = $ac_func;
! 10899: #endif
! 10900: #ifdef __cplusplus
! 10901: }
! 10902: #endif
1.23 millert 10903:
1.25 ! millert 10904: int
! 10905: main ()
! 10906: {
! 10907: return f != $ac_func;
! 10908: ;
! 10909: return 0;
! 10910: }
! 10911: _ACEOF
! 10912: rm -f conftest.$ac_objext conftest$ac_exeext
! 10913: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10914: (eval $ac_link) 2>conftest.er1
! 10915: ac_status=$?
! 10916: grep -v '^ *+' conftest.er1 >conftest.err
! 10917: rm -f conftest.er1
! 10918: cat conftest.err >&5
! 10919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10920: (exit $ac_status); } &&
! 10921: { ac_try='test -z "$ac_c_werror_flag"
! 10922: || test ! -s conftest.err'
! 10923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10924: (eval $ac_try) 2>&5
! 10925: ac_status=$?
! 10926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10927: (exit $ac_status); }; } &&
! 10928: { ac_try='test -s conftest$ac_exeext'
! 10929: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 10930: (eval $ac_try) 2>&5
! 10931: ac_status=$?
! 10932: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10933: (exit $ac_status); }; }; then
! 10934: eval "$as_ac_var=yes"
! 10935: else
! 10936: echo "$as_me: failed program was:" >&5
! 10937: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 10938:
1.25 ! millert 10939: eval "$as_ac_var=no"
! 10940: fi
! 10941: rm -f conftest.err conftest.$ac_objext \
! 10942: conftest$ac_exeext conftest.$ac_ext
! 10943: fi
! 10944: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 10945: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 10946: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 10947: cat >>confdefs.h <<_ACEOF
! 10948: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 10949: _ACEOF
! 10950: found=true
1.23 millert 10951: else
1.25 ! millert 10952: found=false
1.23 millert 10953: fi
1.25 ! millert 10954: done
1.23 millert 10955:
1.25 ! millert 10956: if test "$found" = "true"; then
1.23 millert 10957:
1.25 ! millert 10958: if test X"$AUTH_EXCL" != X""; then
! 10959: { { echo "$as_me:$LINENO: error: \"cannot mix SIA with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 10960: echo "$as_me: error: \"cannot mix SIA with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 10961: { (exit 1); exit 1; }; }
! 10962: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 10963: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 10964: { { echo "$as_me:$LINENO: error: \"cannot mix SIA with other authentication methods (such as $_AUTH)\"" >&5
! 10965: echo "$as_me: error: \"cannot mix SIA with other authentication methods (such as $_AUTH)\"" >&2;}
! 10966: { (exit 1); exit 1; }; }
! 10967: fi
! 10968: if test X"true" != X""; then
! 10969: AUTH_OBJS="sia.o"
! 10970: AUTH_EXCL="SIA"
! 10971: elif test X"$AUTH_OBJS" = X""; then
! 10972: AUTH_OBJS="sia.o"
! 10973: else
! 10974: AUTH_OBJS="$AUTH_OBJS sia.o"
! 10975: fi
1.23 millert 10976:
1.25 ! millert 10977: CHECKSHADOW=false
! 10978: fi
! 10979: fi
! 10980: if test "$CHECKSHADOW" = "true"; then
! 10981: # prot.h is included when using shadow passwords
! 10982: echo "$as_me:$LINENO: checking for broken prot.h" >&5
! 10983: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6
! 10984: cat >conftest.$ac_ext <<_ACEOF
! 10985: /* confdefs.h. */
! 10986: _ACEOF
! 10987: cat confdefs.h >>conftest.$ac_ext
! 10988: cat >>conftest.$ac_ext <<_ACEOF
! 10989: /* end confdefs.h. */
1.23 millert 10990:
1.25 ! millert 10991: #include <sys/types.h>
! 10992: #include <sys/security.h>
! 10993: #include <prot.h>
1.23 millert 10994:
1.25 ! millert 10995: int
! 10996: main ()
! 10997: {
! 10998: exit(0);
! 10999: ;
! 11000: return 0;
! 11001: }
! 11002: _ACEOF
! 11003: rm -f conftest.$ac_objext
! 11004: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 11005: (eval $ac_compile) 2>conftest.er1
! 11006: ac_status=$?
! 11007: grep -v '^ *+' conftest.er1 >conftest.err
! 11008: rm -f conftest.er1
! 11009: cat conftest.err >&5
! 11010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11011: (exit $ac_status); } &&
! 11012: { ac_try='test -z "$ac_c_werror_flag"
! 11013: || test ! -s conftest.err'
! 11014: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11015: (eval $ac_try) 2>&5
! 11016: ac_status=$?
! 11017: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11018: (exit $ac_status); }; } &&
! 11019: { ac_try='test -s conftest.$ac_objext'
! 11020: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11021: (eval $ac_try) 2>&5
! 11022: ac_status=$?
! 11023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11024: (exit $ac_status); }; }; then
! 11025: echo "$as_me:$LINENO: result: no" >&5
! 11026: echo "${ECHO_T}no" >&6
! 11027: else
! 11028: echo "$as_me: failed program was:" >&5
! 11029: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11030:
1.25 ! millert 11031: echo "$as_me:$LINENO: result: yes, fixing locally" >&5
! 11032: echo "${ECHO_T}yes, fixing locally" >&6
! 11033: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23 millert 11034:
1.25 ! millert 11035: fi
! 11036: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 11037: fi
! 11038: : ${mansectsu='8'}
! 11039: : ${mansectform='4'}
! 11040: ;;
! 11041: *-*-irix*)
! 11042: OSDEFS="${OSDEFS} -D_BSD_TYPES"
! 11043: if test -z "$NROFFPROG"; then
! 11044: MAN_POSTINSTALL=' /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
! 11045: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
! 11046: if test -d /usr/share/catman/local; then
! 11047: mandir="/usr/share/catman/local"
! 11048: else
! 11049: mandir="/usr/catman/local"
! 11050: fi
! 11051: fi
! 11052: else
! 11053: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
! 11054: if test -d "/usr/share/man/local"; then
! 11055: mandir="/usr/share/man/local"
! 11056: else
! 11057: mandir="/usr/man/local"
! 11058: fi
! 11059: fi
! 11060: fi
! 11061: # IRIX <= 4 needs -lsun
! 11062: if test "$OSMAJOR" -le 4; then
! 11063: echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
! 11064: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
! 11065: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
! 11066: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11067: else
! 11068: ac_check_lib_save_LIBS=$LIBS
! 11069: LIBS="-lsun $LIBS"
! 11070: cat >conftest.$ac_ext <<_ACEOF
! 11071: /* confdefs.h. */
! 11072: _ACEOF
! 11073: cat confdefs.h >>conftest.$ac_ext
! 11074: cat >>conftest.$ac_ext <<_ACEOF
! 11075: /* end confdefs.h. */
1.23 millert 11076:
1.25 ! millert 11077: /* Override any gcc2 internal prototype to avoid an error. */
! 11078: #ifdef __cplusplus
! 11079: extern "C"
! 11080: #endif
! 11081: /* We use char because int might match the return type of a gcc2
! 11082: builtin and then its argument prototype would still apply. */
! 11083: char getpwnam ();
! 11084: int
! 11085: main ()
! 11086: {
! 11087: getpwnam ();
! 11088: ;
! 11089: return 0;
! 11090: }
! 11091: _ACEOF
! 11092: rm -f conftest.$ac_objext conftest$ac_exeext
! 11093: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 11094: (eval $ac_link) 2>conftest.er1
! 11095: ac_status=$?
! 11096: grep -v '^ *+' conftest.er1 >conftest.err
! 11097: rm -f conftest.er1
! 11098: cat conftest.err >&5
! 11099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11100: (exit $ac_status); } &&
! 11101: { ac_try='test -z "$ac_c_werror_flag"
! 11102: || test ! -s conftest.err'
! 11103: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11104: (eval $ac_try) 2>&5
! 11105: ac_status=$?
! 11106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11107: (exit $ac_status); }; } &&
! 11108: { ac_try='test -s conftest$ac_exeext'
! 11109: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11110: (eval $ac_try) 2>&5
! 11111: ac_status=$?
! 11112: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11113: (exit $ac_status); }; }; then
! 11114: ac_cv_lib_sun_getpwnam=yes
! 11115: else
! 11116: echo "$as_me: failed program was:" >&5
! 11117: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11118:
1.25 ! millert 11119: ac_cv_lib_sun_getpwnam=no
! 11120: fi
! 11121: rm -f conftest.err conftest.$ac_objext \
! 11122: conftest$ac_exeext conftest.$ac_ext
! 11123: LIBS=$ac_check_lib_save_LIBS
! 11124: fi
! 11125: echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
! 11126: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
! 11127: if test $ac_cv_lib_sun_getpwnam = yes; then
! 11128: LIBS="${LIBS} -lsun"
! 11129: fi
1.23 millert 11130:
1.25 ! millert 11131: fi
! 11132: : ${mansectsu='1m'}
! 11133: : ${mansectform='4'}
! 11134: ;;
! 11135: *-*-linux*)
! 11136: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
! 11137: # Some Linux versions need to link with -lshadow
! 11138: shadow_funcs="getspnam"
! 11139: shadow_libs_optional="-lshadow"
! 11140: : ${with_pam='maybe'}
! 11141: ;;
! 11142: *-convex-bsd*)
! 11143: OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
! 11144: if test -z "$GCC"; then
! 11145: CFLAGS="${CFLAGS} -D__STDC__"
! 11146: fi
1.23 millert 11147:
1.25 ! millert 11148: shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
! 11149: shadow_funcs="getprpwnam"
! 11150: shadow_libs="-lprot"
! 11151: ;;
! 11152: *-*-ultrix*)
! 11153: OS="ultrix"
! 11154: shadow_funcs="getauthuid"
! 11155: shadow_libs="-lauth"
! 11156: ;;
! 11157: *-*-riscos*)
! 11158: LIBS="${LIBS} -lsun -lbsd"
! 11159: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
! 11160: OSDEFS="${OSDEFS} -D_MIPS"
! 11161: : ${mansectsu='1m'}
! 11162: : ${mansectform='4'}
! 11163: ;;
! 11164: *-*-isc*)
! 11165: OSDEFS="${OSDEFS} -D_ISC"
! 11166: LIB_CRYPT=1
! 11167: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
! 11168: LIBS="${LIBS} -lcrypt"
1.23 millert 11169:
1.25 ! millert 11170: shadow_funcs="getspnam"
! 11171: shadow_libs="-lsec"
1.23 millert 11172:
1.25 ! millert 11173: : ${mansectsu='1m'}
! 11174: : ${mansectform='4'}
! 11175: ;;
! 11176: *-*-sco*|*-sco-*)
! 11177: shadow_funcs="getprpwnam"
! 11178: shadow_libs="-lprot -lx"
! 11179: : ${mansectsu='1m'}
! 11180: : ${mansectform='4'}
! 11181: ;;
! 11182: m88k-motorola-sysv*)
! 11183: # motorolla's cc (a variant of gcc) does -O but not -O2
! 11184: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
! 11185: : ${mansectsu='1m'}
! 11186: : ${mansectform='4'}
! 11187: ;;
! 11188: *-sequent-sysv*)
! 11189: shadow_funcs="getspnam"
! 11190: shadow_libs="-lsec"
! 11191: : ${mansectsu='1m'}
! 11192: : ${mansectform='4'}
! 11193: : ${with_rpath='yes'}
! 11194: ;;
! 11195: *-ncr-sysv4*|*-ncr-sysvr4*)
! 11196: echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
! 11197: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
! 11198: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
! 11199: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11200: else
! 11201: ac_check_lib_save_LIBS=$LIBS
! 11202: LIBS="-lc89 $LIBS"
! 11203: cat >conftest.$ac_ext <<_ACEOF
! 11204: /* confdefs.h. */
! 11205: _ACEOF
! 11206: cat confdefs.h >>conftest.$ac_ext
! 11207: cat >>conftest.$ac_ext <<_ACEOF
! 11208: /* end confdefs.h. */
1.23 millert 11209:
1.25 ! millert 11210: /* Override any gcc2 internal prototype to avoid an error. */
! 11211: #ifdef __cplusplus
! 11212: extern "C"
! 11213: #endif
! 11214: /* We use char because int might match the return type of a gcc2
! 11215: builtin and then its argument prototype would still apply. */
! 11216: char strcasecmp ();
! 11217: int
! 11218: main ()
! 11219: {
! 11220: strcasecmp ();
! 11221: ;
! 11222: return 0;
! 11223: }
! 11224: _ACEOF
! 11225: rm -f conftest.$ac_objext conftest$ac_exeext
! 11226: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 11227: (eval $ac_link) 2>conftest.er1
! 11228: ac_status=$?
! 11229: grep -v '^ *+' conftest.er1 >conftest.err
! 11230: rm -f conftest.er1
! 11231: cat conftest.err >&5
! 11232: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11233: (exit $ac_status); } &&
! 11234: { ac_try='test -z "$ac_c_werror_flag"
! 11235: || test ! -s conftest.err'
! 11236: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11237: (eval $ac_try) 2>&5
! 11238: ac_status=$?
! 11239: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11240: (exit $ac_status); }; } &&
! 11241: { ac_try='test -s conftest$ac_exeext'
! 11242: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11243: (eval $ac_try) 2>&5
! 11244: ac_status=$?
! 11245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11246: (exit $ac_status); }; }; then
! 11247: ac_cv_lib_c89_strcasecmp=yes
! 11248: else
! 11249: echo "$as_me: failed program was:" >&5
! 11250: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11251:
1.25 ! millert 11252: ac_cv_lib_c89_strcasecmp=no
! 11253: fi
! 11254: rm -f conftest.err conftest.$ac_objext \
! 11255: conftest$ac_exeext conftest.$ac_ext
! 11256: LIBS=$ac_check_lib_save_LIBS
! 11257: fi
! 11258: echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
! 11259: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
! 11260: if test $ac_cv_lib_c89_strcasecmp = yes; then
! 11261: cat >>confdefs.h <<\_ACEOF
! 11262: #define HAVE_STRCASECMP 1
! 11263: _ACEOF
! 11264: LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
! 11265: fi
1.23 millert 11266:
1.25 ! millert 11267: : ${mansectsu='1m'}
! 11268: : ${mansectform='4'}
! 11269: : ${with_rpath='yes'}
! 11270: ;;
! 11271: *-ccur-sysv4*|*-ccur-sysvr4*)
! 11272: LIBS="${LIBS} -lgen"
! 11273: SUDO_LIBS="${SUDO_LIBS} -lgen"
! 11274: : ${mansectsu='1m'}
! 11275: : ${mansectform='4'}
! 11276: : ${with_rpath='yes'}
! 11277: ;;
! 11278: *-*-bsdi*)
! 11279: SKIP_SETREUID=yes
! 11280: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
! 11281: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
! 11282: case "$OSMAJOR" in
! 11283: 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
! 11284: echo "$as_me: using shlicc as CC" >&6;}
! 11285: ac_cv_prog_CC=shlicc
! 11286: CC="$ac_cv_prog_CC"
! 11287: ;;
! 11288: esac
! 11289: fi
! 11290: # Check for newer BSD auth API (just check for >= 3.0?)
! 11291: if test -z "$with_bsdauth"; then
1.23 millert 11292:
1.25 ! millert 11293: for ac_func in auth_challenge
! 11294: do
! 11295: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 11296: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 11297: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 11298: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 11299: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11300: else
! 11301: cat >conftest.$ac_ext <<_ACEOF
! 11302: /* confdefs.h. */
! 11303: _ACEOF
! 11304: cat confdefs.h >>conftest.$ac_ext
! 11305: cat >>conftest.$ac_ext <<_ACEOF
! 11306: /* end confdefs.h. */
! 11307: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 11308: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 11309: #define $ac_func innocuous_$ac_func
1.23 millert 11310:
1.25 ! millert 11311: /* System header to define __stub macros and hopefully few prototypes,
! 11312: which can conflict with char $ac_func (); below.
! 11313: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 11314: <limits.h> exists even on freestanding compilers. */
1.23 millert 11315:
1.25 ! millert 11316: #ifdef __STDC__
! 11317: # include <limits.h>
! 11318: #else
! 11319: # include <assert.h>
! 11320: #endif
1.23 millert 11321:
1.25 ! millert 11322: #undef $ac_func
1.23 millert 11323:
1.25 ! millert 11324: /* Override any gcc2 internal prototype to avoid an error. */
! 11325: #ifdef __cplusplus
! 11326: extern "C"
! 11327: {
! 11328: #endif
! 11329: /* We use char because int might match the return type of a gcc2
! 11330: builtin and then its argument prototype would still apply. */
! 11331: char $ac_func ();
! 11332: /* The GNU C library defines this for functions which it implements
! 11333: to always fail with ENOSYS. Some functions are actually named
! 11334: something starting with __ and the normal name is an alias. */
! 11335: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 11336: choke me
! 11337: #else
! 11338: char (*f) () = $ac_func;
! 11339: #endif
! 11340: #ifdef __cplusplus
! 11341: }
! 11342: #endif
1.23 millert 11343:
1.25 ! millert 11344: int
! 11345: main ()
! 11346: {
! 11347: return f != $ac_func;
! 11348: ;
! 11349: return 0;
! 11350: }
! 11351: _ACEOF
! 11352: rm -f conftest.$ac_objext conftest$ac_exeext
! 11353: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 11354: (eval $ac_link) 2>conftest.er1
! 11355: ac_status=$?
! 11356: grep -v '^ *+' conftest.er1 >conftest.err
! 11357: rm -f conftest.er1
! 11358: cat conftest.err >&5
! 11359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11360: (exit $ac_status); } &&
! 11361: { ac_try='test -z "$ac_c_werror_flag"
! 11362: || test ! -s conftest.err'
! 11363: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11364: (eval $ac_try) 2>&5
! 11365: ac_status=$?
! 11366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11367: (exit $ac_status); }; } &&
! 11368: { ac_try='test -s conftest$ac_exeext'
! 11369: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11370: (eval $ac_try) 2>&5
! 11371: ac_status=$?
! 11372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11373: (exit $ac_status); }; }; then
! 11374: eval "$as_ac_var=yes"
! 11375: else
! 11376: echo "$as_me: failed program was:" >&5
! 11377: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11378:
1.25 ! millert 11379: eval "$as_ac_var=no"
! 11380: fi
! 11381: rm -f conftest.err conftest.$ac_objext \
! 11382: conftest$ac_exeext conftest.$ac_ext
! 11383: fi
! 11384: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 11385: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 11386: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 11387: cat >>confdefs.h <<_ACEOF
! 11388: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 11389: _ACEOF
! 11390: with_bsdauth=maybe
! 11391: fi
! 11392: done
1.23 millert 11393:
1.25 ! millert 11394: fi
! 11395: ;;
! 11396: *-*-freebsd*)
! 11397: # FreeBSD has a real setreuid(2) starting with 2.1 and
! 11398: # backported to 2.0.5. We just take 2.1 and above...
! 11399: case "$OSREV" in
! 11400: 0.*|1.*|2.0*)
! 11401: SKIP_SETREUID=yes
! 11402: ;;
! 11403: esac
! 11404: if test "$with_skey" = "yes"; then
! 11405: SUDO_LIBS="${SUDO_LIBS} -lmd"
! 11406: fi
! 11407: if test "$CHECKSHADOW" = "true"; then
! 11408: CHECKSHADOW="false"
! 11409: fi
! 11410: : ${with_pam='maybe'}
! 11411: : ${with_logincap='maybe'}
! 11412: ;;
! 11413: *-*-*openbsd*)
! 11414: # OpenBSD has a real setreuid(2) starting with 3.3 but
! 11415: # we will use setreuid(2) instead.
! 11416: SKIP_SETREUID=yes
! 11417: if test "$CHECKSHADOW" = "true"; then
! 11418: CHECKSHADOW="false"
! 11419: fi
! 11420: # OpenBSD >= 3.0 supports BSD auth
! 11421: if test -z "$with_bsdauth"; then
! 11422: case "$OSREV" in
! 11423: 0-2.*)
! 11424: ;;
! 11425: *)
! 11426: with_bsdauth=maybe
! 11427: ;;
! 11428: esac
! 11429: fi
! 11430: : ${with_logincap='maybe'}
! 11431: ;;
! 11432: *-*-*netbsd*)
! 11433: # NetBSD has a real setreuid(2) starting with 1.3.2
! 11434: case "$OSREV" in
! 11435: 0.9*|1.012*|1.3|1.3.1)
! 11436: SKIP_SETREUID=yes
! 11437: ;;
! 11438: esac
! 11439: if test "$CHECKSHADOW" = "true"; then
! 11440: CHECKSHADOW="false"
! 11441: fi
! 11442: : ${with_logincap='maybe'}
! 11443: : ${with_pam='maybe'}
! 11444: ;;
! 11445: *-*-dragonfly*)
! 11446: if test "$with_skey" = "yes"; then
! 11447: SUDO_LIBS="${SUDO_LIBS} -lmd"
! 11448: fi
! 11449: if test "$CHECKSHADOW" = "true"; then
! 11450: CHECKSHADOW="false"
! 11451: fi
! 11452: : ${with_pam='yes'}
! 11453: : ${with_logincap='yes'}
! 11454: ;;
! 11455: *-*-*bsd*)
! 11456: if test "$CHECKSHADOW" = "true"; then
! 11457: CHECKSHADOW="false"
! 11458: fi
! 11459: ;;
! 11460: *-*-darwin*)
! 11461: SKIP_SETREUID=yes
! 11462: if test "$CHECKSHADOW" = "true"; then
! 11463: CHECKSHADOW="false"
! 11464: fi
! 11465: : ${with_pam='yes'}
! 11466: : ${with_logincap='yes'}
! 11467: ;;
! 11468: *-*-nextstep*)
! 11469: # lockf() on is broken on the NeXT -- use flock instead
! 11470: ac_cv_func_lockf=no
! 11471: ac_cv_func_flock=yes
! 11472: ;;
! 11473: *-*-*sysv4*)
! 11474: : ${mansectsu='1m'}
! 11475: : ${mansectform='4'}
! 11476: : ${with_rpath='yes'}
! 11477: ;;
! 11478: *-*-sysv*)
! 11479: : ${mansectsu='1m'}
! 11480: : ${mansectform='4'}
! 11481: ;;
! 11482: *-gnu*)
! 11483: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
! 11484: ;;
! 11485: esac
1.23 millert 11486:
1.25 ! millert 11487: : ${mansectsu='8'}
! 11488: : ${mansectform='5'}
1.23 millert 11489:
1.25 ! millert 11490: if test -n "$with_libpath"; then
! 11491: for i in ${with_libpath}; do
1.23 millert 11492:
1.25 ! millert 11493: if test X"$with_rpath" = X"yes"; then
! 11494: LDFLAGS="${LDFLAGS} -L$i -R$i"
! 11495: else
! 11496: LDFLAGS="${LDFLAGS} -L$i"
! 11497: fi
! 11498: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 11499: blibpath_add="${blibpath_add}:$i"
! 11500: fi
1.23 millert 11501:
1.25 ! millert 11502: done
! 11503: fi
! 11504: if test -n "$with_libraries"; then
! 11505: for i in ${with_libraries}; do
! 11506: case $i in
! 11507: -l*) ;;
! 11508: *.a) ;;
! 11509: *.o) ;;
! 11510: *) i="-l${i}";;
! 11511: esac
! 11512: LIBS="${LIBS} ${i}"
! 11513: done
! 11514: fi
1.23 millert 11515:
1.25 ! millert 11516: if test $ac_cv_c_compiler_gnu = yes; then
! 11517: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
! 11518: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
! 11519: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
! 11520: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11521: else
! 11522: ac_pattern="Autoconf.*'x'"
! 11523: cat >conftest.$ac_ext <<_ACEOF
! 11524: /* confdefs.h. */
! 11525: _ACEOF
! 11526: cat confdefs.h >>conftest.$ac_ext
! 11527: cat >>conftest.$ac_ext <<_ACEOF
! 11528: /* end confdefs.h. */
! 11529: #include <sgtty.h>
! 11530: Autoconf TIOCGETP
! 11531: _ACEOF
! 11532: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 11533: $EGREP "$ac_pattern" >/dev/null 2>&1; then
! 11534: ac_cv_prog_gcc_traditional=yes
! 11535: else
! 11536: ac_cv_prog_gcc_traditional=no
! 11537: fi
! 11538: rm -f conftest*
1.23 millert 11539:
11540:
1.25 ! millert 11541: if test $ac_cv_prog_gcc_traditional = no; then
! 11542: cat >conftest.$ac_ext <<_ACEOF
! 11543: /* confdefs.h. */
! 11544: _ACEOF
! 11545: cat confdefs.h >>conftest.$ac_ext
! 11546: cat >>conftest.$ac_ext <<_ACEOF
! 11547: /* end confdefs.h. */
! 11548: #include <termio.h>
! 11549: Autoconf TCGETA
! 11550: _ACEOF
! 11551: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 11552: $EGREP "$ac_pattern" >/dev/null 2>&1; then
! 11553: ac_cv_prog_gcc_traditional=yes
! 11554: fi
! 11555: rm -f conftest*
1.23 millert 11556:
1.25 ! millert 11557: fi
! 11558: fi
! 11559: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
! 11560: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
! 11561: if test $ac_cv_prog_gcc_traditional = yes; then
! 11562: CC="$CC -traditional"
! 11563: fi
! 11564: fi
1.23 millert 11565:
1.25 ! millert 11566: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
! 11567: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
! 11568: if test "${ac_cv_c_const+set}" = set; then
! 11569: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11570: else
! 11571: cat >conftest.$ac_ext <<_ACEOF
! 11572: /* confdefs.h. */
! 11573: _ACEOF
! 11574: cat confdefs.h >>conftest.$ac_ext
! 11575: cat >>conftest.$ac_ext <<_ACEOF
! 11576: /* end confdefs.h. */
1.23 millert 11577:
1.25 ! millert 11578: int
! 11579: main ()
! 11580: {
! 11581: /* FIXME: Include the comments suggested by Paul. */
! 11582: #ifndef __cplusplus
! 11583: /* Ultrix mips cc rejects this. */
! 11584: typedef int charset[2];
! 11585: const charset x;
! 11586: /* SunOS 4.1.1 cc rejects this. */
! 11587: char const *const *ccp;
! 11588: char **p;
! 11589: /* NEC SVR4.0.2 mips cc rejects this. */
! 11590: struct point {int x, y;};
! 11591: static struct point const zero = {0,0};
! 11592: /* AIX XL C 1.02.0.0 rejects this.
! 11593: It does not let you subtract one const X* pointer from another in
! 11594: an arm of an if-expression whose if-part is not a constant
! 11595: expression */
! 11596: const char *g = "string";
! 11597: ccp = &g + (g ? g-g : 0);
! 11598: /* HPUX 7.0 cc rejects these. */
! 11599: ++ccp;
! 11600: p = (char**) ccp;
! 11601: ccp = (char const *const *) p;
! 11602: { /* SCO 3.2v4 cc rejects this. */
! 11603: char *t;
! 11604: char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23 millert 11605:
1.25 ! millert 11606: *t++ = 0;
! 11607: }
! 11608: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
! 11609: int x[] = {25, 17};
! 11610: const int *foo = &x[0];
! 11611: ++foo;
! 11612: }
! 11613: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
! 11614: typedef const int *iptr;
! 11615: iptr p = 0;
! 11616: ++p;
! 11617: }
! 11618: { /* AIX XL C 1.02.0.0 rejects this saying
! 11619: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
! 11620: struct s { int j; const int *ap[3]; };
! 11621: struct s *b; b->j = 5;
! 11622: }
! 11623: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
! 11624: const int foo = 10;
! 11625: }
! 11626: #endif
1.23 millert 11627:
1.25 ! millert 11628: ;
! 11629: return 0;
! 11630: }
! 11631: _ACEOF
! 11632: rm -f conftest.$ac_objext
! 11633: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 11634: (eval $ac_compile) 2>conftest.er1
! 11635: ac_status=$?
! 11636: grep -v '^ *+' conftest.er1 >conftest.err
! 11637: rm -f conftest.er1
! 11638: cat conftest.err >&5
! 11639: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11640: (exit $ac_status); } &&
! 11641: { ac_try='test -z "$ac_c_werror_flag"
! 11642: || test ! -s conftest.err'
! 11643: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11644: (eval $ac_try) 2>&5
! 11645: ac_status=$?
! 11646: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11647: (exit $ac_status); }; } &&
! 11648: { ac_try='test -s conftest.$ac_objext'
! 11649: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11650: (eval $ac_try) 2>&5
! 11651: ac_status=$?
! 11652: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11653: (exit $ac_status); }; }; then
! 11654: ac_cv_c_const=yes
! 11655: else
! 11656: echo "$as_me: failed program was:" >&5
! 11657: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11658:
1.25 ! millert 11659: ac_cv_c_const=no
! 11660: fi
! 11661: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 11662: fi
! 11663: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
! 11664: echo "${ECHO_T}$ac_cv_c_const" >&6
! 11665: if test $ac_cv_c_const = no; then
1.23 millert 11666:
1.25 ! millert 11667: cat >>confdefs.h <<\_ACEOF
! 11668: #define const
! 11669: _ACEOF
1.23 millert 11670:
1.25 ! millert 11671: fi
1.23 millert 11672:
1.25 ! millert 11673: echo "$as_me:$LINENO: checking for working volatile" >&5
! 11674: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
! 11675: if test "${ac_cv_c_volatile+set}" = set; then
! 11676: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11677: else
! 11678: cat >conftest.$ac_ext <<_ACEOF
! 11679: /* confdefs.h. */
! 11680: _ACEOF
! 11681: cat confdefs.h >>conftest.$ac_ext
! 11682: cat >>conftest.$ac_ext <<_ACEOF
! 11683: /* end confdefs.h. */
1.23 millert 11684:
1.25 ! millert 11685: int
! 11686: main ()
! 11687: {
1.23 millert 11688:
1.25 ! millert 11689: volatile int x;
! 11690: int * volatile y;
! 11691: ;
! 11692: return 0;
! 11693: }
! 11694: _ACEOF
! 11695: rm -f conftest.$ac_objext
! 11696: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 11697: (eval $ac_compile) 2>conftest.er1
! 11698: ac_status=$?
! 11699: grep -v '^ *+' conftest.er1 >conftest.err
! 11700: rm -f conftest.er1
! 11701: cat conftest.err >&5
! 11702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11703: (exit $ac_status); } &&
! 11704: { ac_try='test -z "$ac_c_werror_flag"
! 11705: || test ! -s conftest.err'
! 11706: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11707: (eval $ac_try) 2>&5
! 11708: ac_status=$?
! 11709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11710: (exit $ac_status); }; } &&
! 11711: { ac_try='test -s conftest.$ac_objext'
! 11712: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11713: (eval $ac_try) 2>&5
! 11714: ac_status=$?
! 11715: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11716: (exit $ac_status); }; }; then
! 11717: ac_cv_c_volatile=yes
! 11718: else
! 11719: echo "$as_me: failed program was:" >&5
! 11720: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11721:
1.25 ! millert 11722: ac_cv_c_volatile=no
! 11723: fi
! 11724: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 11725: fi
! 11726: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
! 11727: echo "${ECHO_T}$ac_cv_c_volatile" >&6
! 11728: if test $ac_cv_c_volatile = no; then
1.23 millert 11729:
1.25 ! millert 11730: cat >>confdefs.h <<\_ACEOF
! 11731: #define volatile
! 11732: _ACEOF
1.23 millert 11733:
1.25 ! millert 11734: fi
1.23 millert 11735:
1.25 ! millert 11736: for ac_prog in 'bison -y' byacc
! 11737: do
! 11738: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 11739: set dummy $ac_prog; ac_word=$2
! 11740: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 11741: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 11742: if test "${ac_cv_prog_YACC+set}" = set; then
! 11743: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11744: else
! 11745: if test -n "$YACC"; then
! 11746: ac_cv_prog_YACC="$YACC" # Let the user override the test.
! 11747: else
! 11748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 11749: for as_dir in $PATH
! 11750: do
! 11751: IFS=$as_save_IFS
! 11752: test -z "$as_dir" && as_dir=.
! 11753: for ac_exec_ext in '' $ac_executable_extensions; do
! 11754: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 11755: ac_cv_prog_YACC="$ac_prog"
! 11756: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 11757: break 2
! 11758: fi
! 11759: done
! 11760: done
1.23 millert 11761:
1.25 ! millert 11762: fi
! 11763: fi
! 11764: YACC=$ac_cv_prog_YACC
! 11765: if test -n "$YACC"; then
! 11766: echo "$as_me:$LINENO: result: $YACC" >&5
! 11767: echo "${ECHO_T}$YACC" >&6
! 11768: else
! 11769: echo "$as_me:$LINENO: result: no" >&5
! 11770: echo "${ECHO_T}no" >&6
! 11771: fi
1.23 millert 11772:
1.25 ! millert 11773: test -n "$YACC" && break
! 11774: done
! 11775: test -n "$YACC" || YACC="yacc"
1.23 millert 11776:
1.25 ! millert 11777: echo "$as_me:$LINENO: checking for mv" >&5
! 11778: echo $ECHO_N "checking for mv... $ECHO_C" >&6
! 11779: if test -f "/usr/bin/mv"; then
! 11780: echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
! 11781: echo "${ECHO_T}/usr/bin/mv" >&6
! 11782: cat >>confdefs.h <<\EOF
! 11783: #define _PATH_MV "/usr/bin/mv"
! 11784: EOF
1.23 millert 11785:
1.25 ! millert 11786: elif test -f "/bin/mv"; then
! 11787: echo "$as_me:$LINENO: result: /bin/mv" >&5
! 11788: echo "${ECHO_T}/bin/mv" >&6
! 11789: cat >>confdefs.h <<\EOF
! 11790: #define _PATH_MV "/bin/mv"
! 11791: EOF
1.23 millert 11792:
1.25 ! millert 11793: elif test -f "/usr/ucb/mv"; then
! 11794: echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
! 11795: echo "${ECHO_T}/usr/ucb/mv" >&6
! 11796: cat >>confdefs.h <<\EOF
! 11797: #define _PATH_MV "/usr/ucb/mv"
! 11798: EOF
1.23 millert 11799:
1.25 ! millert 11800: elif test -f "/usr/sbin/mv"; then
! 11801: echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
! 11802: echo "${ECHO_T}/usr/sbin/mv" >&6
! 11803: cat >>confdefs.h <<\EOF
! 11804: #define _PATH_MV "/usr/sbin/mv"
! 11805: EOF
1.23 millert 11806:
1.25 ! millert 11807: else
! 11808: echo "$as_me:$LINENO: result: not found" >&5
! 11809: echo "${ECHO_T}not found" >&6
! 11810: fi
1.23 millert 11811:
1.25 ! millert 11812: echo "$as_me:$LINENO: checking for bourne shell" >&5
! 11813: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
! 11814: if test -f "/bin/sh"; then
! 11815: echo "$as_me:$LINENO: result: /bin/sh" >&5
! 11816: echo "${ECHO_T}/bin/sh" >&6
! 11817: cat >>confdefs.h <<\EOF
! 11818: #define _PATH_BSHELL "/bin/sh"
! 11819: EOF
1.23 millert 11820:
1.25 ! millert 11821: elif test -f "/usr/bin/sh"; then
! 11822: echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
! 11823: echo "${ECHO_T}/usr/bin/sh" >&6
! 11824: cat >>confdefs.h <<\EOF
! 11825: #define _PATH_BSHELL "/usr/bin/sh"
! 11826: EOF
1.23 millert 11827:
1.25 ! millert 11828: elif test -f "/sbin/sh"; then
! 11829: echo "$as_me:$LINENO: result: /sbin/sh" >&5
! 11830: echo "${ECHO_T}/sbin/sh" >&6
! 11831: cat >>confdefs.h <<\EOF
! 11832: #define _PATH_BSHELL "/sbin/sh"
! 11833: EOF
1.23 millert 11834:
1.25 ! millert 11835: elif test -f "/usr/sbin/sh"; then
! 11836: echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
! 11837: echo "${ECHO_T}/usr/sbin/sh" >&6
! 11838: cat >>confdefs.h <<\EOF
! 11839: #define _PATH_BSHELL "/usr/sbin/sh"
! 11840: EOF
1.23 millert 11841:
1.25 ! millert 11842: elif test -f "/bin/ksh"; then
! 11843: echo "$as_me:$LINENO: result: /bin/ksh" >&5
! 11844: echo "${ECHO_T}/bin/ksh" >&6
! 11845: cat >>confdefs.h <<\EOF
! 11846: #define _PATH_BSHELL "/bin/ksh"
! 11847: EOF
1.23 millert 11848:
1.25 ! millert 11849: elif test -f "/usr/bin/ksh"; then
! 11850: echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
! 11851: echo "${ECHO_T}/usr/bin/ksh" >&6
! 11852: cat >>confdefs.h <<\EOF
! 11853: #define _PATH_BSHELL "/usr/bin/ksh"
! 11854: EOF
1.23 millert 11855:
1.25 ! millert 11856: elif test -f "/bin/bash"; then
! 11857: echo "$as_me:$LINENO: result: /bin/bash" >&5
! 11858: echo "${ECHO_T}/bin/bash" >&6
! 11859: cat >>confdefs.h <<\EOF
! 11860: #define _PATH_BSHELL "/bin/bash"
! 11861: EOF
1.23 millert 11862:
1.25 ! millert 11863: elif test -f "/usr/bin/bash"; then
! 11864: echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
! 11865: echo "${ECHO_T}/usr/bin/bash" >&6
! 11866: cat >>confdefs.h <<\EOF
! 11867: #define _PATH_BSHELL "/usr/bin/bash"
! 11868: EOF
1.23 millert 11869:
1.25 ! millert 11870: else
! 11871: echo "$as_me:$LINENO: result: not found" >&5
! 11872: echo "${ECHO_T}not found" >&6
! 11873: fi
1.23 millert 11874:
1.25 ! millert 11875: if test -z "$with_sendmail"; then
! 11876: echo "$as_me:$LINENO: checking for sendmail" >&5
! 11877: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
! 11878: if test -f "/usr/sbin/sendmail"; then
! 11879: echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
! 11880: echo "${ECHO_T}/usr/sbin/sendmail" >&6
! 11881: cat >>confdefs.h <<\EOF
! 11882: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
! 11883: EOF
1.23 millert 11884:
1.25 ! millert 11885: elif test -f "/usr/lib/sendmail"; then
! 11886: echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
! 11887: echo "${ECHO_T}/usr/lib/sendmail" >&6
! 11888: cat >>confdefs.h <<\EOF
! 11889: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
! 11890: EOF
1.23 millert 11891:
1.25 ! millert 11892: elif test -f "/usr/etc/sendmail"; then
! 11893: echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
! 11894: echo "${ECHO_T}/usr/etc/sendmail" >&6
! 11895: cat >>confdefs.h <<\EOF
! 11896: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
! 11897: EOF
1.23 millert 11898:
1.25 ! millert 11899: elif test -f "/usr/ucblib/sendmail"; then
! 11900: echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
! 11901: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
! 11902: cat >>confdefs.h <<\EOF
! 11903: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
! 11904: EOF
1.23 millert 11905:
1.25 ! millert 11906: elif test -f "/usr/local/lib/sendmail"; then
! 11907: echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
! 11908: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
! 11909: cat >>confdefs.h <<\EOF
! 11910: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
! 11911: EOF
1.23 millert 11912:
1.25 ! millert 11913: elif test -f "/usr/local/bin/sendmail"; then
! 11914: echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
! 11915: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
! 11916: cat >>confdefs.h <<\EOF
! 11917: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
! 11918: EOF
1.23 millert 11919:
1.25 ! millert 11920: else
! 11921: echo "$as_me:$LINENO: result: not found" >&5
! 11922: echo "${ECHO_T}not found" >&6
! 11923: fi
1.23 millert 11924:
1.25 ! millert 11925: fi
! 11926: if test -z "$with_editor"; then
! 11927: echo "$as_me:$LINENO: checking for vi" >&5
! 11928: echo $ECHO_N "checking for vi... $ECHO_C" >&6
! 11929: if test -f "/usr/bin/vi"; then
! 11930: echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
! 11931: echo "${ECHO_T}/usr/bin/vi" >&6
! 11932: cat >>confdefs.h <<\EOF
! 11933: #define _PATH_VI "/usr/bin/vi"
! 11934: EOF
1.23 millert 11935:
1.25 ! millert 11936: elif test -f "/usr/ucb/vi"; then
! 11937: echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
! 11938: echo "${ECHO_T}/usr/ucb/vi" >&6
! 11939: cat >>confdefs.h <<\EOF
! 11940: #define _PATH_VI "/usr/ucb/vi"
! 11941: EOF
1.23 millert 11942:
1.25 ! millert 11943: elif test -f "/usr/bsd/vi"; then
! 11944: echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
! 11945: echo "${ECHO_T}/usr/bsd/vi" >&6
! 11946: cat >>confdefs.h <<\EOF
! 11947: #define _PATH_VI "/usr/bsd/vi"
! 11948: EOF
1.23 millert 11949:
1.25 ! millert 11950: elif test -f "/bin/vi"; then
! 11951: echo "$as_me:$LINENO: result: /bin/vi" >&5
! 11952: echo "${ECHO_T}/bin/vi" >&6
! 11953: cat >>confdefs.h <<\EOF
! 11954: #define _PATH_VI "/bin/vi"
! 11955: EOF
1.23 millert 11956:
1.25 ! millert 11957: elif test -f "/usr/local/bin/vi"; then
! 11958: echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
! 11959: echo "${ECHO_T}/usr/local/bin/vi" >&6
! 11960: cat >>confdefs.h <<\EOF
! 11961: #define _PATH_VI "/usr/local/bin/vi"
! 11962: EOF
1.23 millert 11963:
11964: else
1.25 ! millert 11965: echo "$as_me:$LINENO: result: not found" >&5
! 11966: echo "${ECHO_T}not found" >&6
1.23 millert 11967: fi
11968:
1.25 ! millert 11969: fi
! 11970: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 11971: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 11972: if test "${ac_cv_header_stdc+set}" = set; then
! 11973: echo $ECHO_N "(cached) $ECHO_C" >&6
! 11974: else
! 11975: cat >conftest.$ac_ext <<_ACEOF
! 11976: /* confdefs.h. */
! 11977: _ACEOF
! 11978: cat confdefs.h >>conftest.$ac_ext
! 11979: cat >>conftest.$ac_ext <<_ACEOF
! 11980: /* end confdefs.h. */
! 11981: #include <stdlib.h>
! 11982: #include <stdarg.h>
! 11983: #include <string.h>
! 11984: #include <float.h>
1.23 millert 11985:
1.25 ! millert 11986: int
! 11987: main ()
! 11988: {
1.23 millert 11989:
1.25 ! millert 11990: ;
! 11991: return 0;
! 11992: }
! 11993: _ACEOF
! 11994: rm -f conftest.$ac_objext
! 11995: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 11996: (eval $ac_compile) 2>conftest.er1
! 11997: ac_status=$?
! 11998: grep -v '^ *+' conftest.er1 >conftest.err
! 11999: rm -f conftest.er1
! 12000: cat conftest.err >&5
! 12001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12002: (exit $ac_status); } &&
! 12003: { ac_try='test -z "$ac_c_werror_flag"
! 12004: || test ! -s conftest.err'
! 12005: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12006: (eval $ac_try) 2>&5
! 12007: ac_status=$?
! 12008: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12009: (exit $ac_status); }; } &&
! 12010: { ac_try='test -s conftest.$ac_objext'
! 12011: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12012: (eval $ac_try) 2>&5
! 12013: ac_status=$?
! 12014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12015: (exit $ac_status); }; }; then
! 12016: ac_cv_header_stdc=yes
! 12017: else
! 12018: echo "$as_me: failed program was:" >&5
! 12019: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12020:
1.25 ! millert 12021: ac_cv_header_stdc=no
! 12022: fi
! 12023: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 12024:
1.25 ! millert 12025: if test $ac_cv_header_stdc = yes; then
! 12026: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 12027: cat >conftest.$ac_ext <<_ACEOF
! 12028: /* confdefs.h. */
! 12029: _ACEOF
! 12030: cat confdefs.h >>conftest.$ac_ext
! 12031: cat >>conftest.$ac_ext <<_ACEOF
! 12032: /* end confdefs.h. */
! 12033: #include <string.h>
1.23 millert 12034:
1.25 ! millert 12035: _ACEOF
! 12036: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 12037: $EGREP "memchr" >/dev/null 2>&1; then
! 12038: :
! 12039: else
! 12040: ac_cv_header_stdc=no
! 12041: fi
! 12042: rm -f conftest*
1.23 millert 12043:
12044: fi
12045:
1.25 ! millert 12046: if test $ac_cv_header_stdc = yes; then
! 12047: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 12048: cat >conftest.$ac_ext <<_ACEOF
! 12049: /* confdefs.h. */
! 12050: _ACEOF
! 12051: cat confdefs.h >>conftest.$ac_ext
! 12052: cat >>conftest.$ac_ext <<_ACEOF
! 12053: /* end confdefs.h. */
! 12054: #include <stdlib.h>
1.23 millert 12055:
1.25 ! millert 12056: _ACEOF
! 12057: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 12058: $EGREP "free" >/dev/null 2>&1; then
! 12059: :
1.23 millert 12060: else
1.25 ! millert 12061: ac_cv_header_stdc=no
1.23 millert 12062: fi
1.25 ! millert 12063: rm -f conftest*
1.23 millert 12064:
12065: fi
12066:
1.25 ! millert 12067: if test $ac_cv_header_stdc = yes; then
! 12068: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 12069: if test "$cross_compiling" = yes; then
! 12070: :
1.1 millert 12071: else
1.25 ! millert 12072: cat >conftest.$ac_ext <<_ACEOF
! 12073: /* confdefs.h. */
! 12074: _ACEOF
! 12075: cat confdefs.h >>conftest.$ac_ext
! 12076: cat >>conftest.$ac_ext <<_ACEOF
! 12077: /* end confdefs.h. */
! 12078: #include <ctype.h>
! 12079: #if ((' ' & 0x0FF) == 0x020)
! 12080: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 12081: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 12082: #else
! 12083: # define ISLOWER(c) \
! 12084: (('a' <= (c) && (c) <= 'i') \
! 12085: || ('j' <= (c) && (c) <= 'r') \
! 12086: || ('s' <= (c) && (c) <= 'z'))
! 12087: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 12088: #endif
! 12089:
! 12090: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 12091: int
! 12092: main ()
! 12093: {
! 12094: int i;
! 12095: for (i = 0; i < 256; i++)
! 12096: if (XOR (islower (i), ISLOWER (i))
! 12097: || toupper (i) != TOUPPER (i))
! 12098: exit(2);
! 12099: exit (0);
! 12100: }
! 12101: _ACEOF
! 12102: rm -f conftest$ac_exeext
! 12103: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12104: (eval $ac_link) 2>&5
! 12105: ac_status=$?
! 12106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12107: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 12108: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12109: (eval $ac_try) 2>&5
! 12110: ac_status=$?
! 12111: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12112: (exit $ac_status); }; }; then
! 12113: :
1.1 millert 12114: else
1.25 ! millert 12115: echo "$as_me: program exited with status $ac_status" >&5
! 12116: echo "$as_me: failed program was:" >&5
! 12117: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 12118:
1.25 ! millert 12119: ( exit $ac_status )
! 12120: ac_cv_header_stdc=no
! 12121: fi
! 12122: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 12123: fi
12124: fi
12125: fi
1.25 ! millert 12126: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 12127: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 12128: if test $ac_cv_header_stdc = yes; then
1.1 millert 12129:
1.25 ! millert 12130: cat >>confdefs.h <<\_ACEOF
! 12131: #define STDC_HEADERS 1
! 12132: _ACEOF
1.9 millert 12133:
1.1 millert 12134: fi
12135:
1.25 ! millert 12136:
! 12137:
! 12138:
! 12139:
! 12140:
! 12141: ac_header_dirent=no
! 12142: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
! 12143: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
! 12144: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 12145: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
! 12146: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9 millert 12147: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12148: else
1.25 ! millert 12149: cat >conftest.$ac_ext <<_ACEOF
! 12150: /* confdefs.h. */
! 12151: _ACEOF
! 12152: cat confdefs.h >>conftest.$ac_ext
! 12153: cat >>conftest.$ac_ext <<_ACEOF
! 12154: /* end confdefs.h. */
! 12155: #include <sys/types.h>
! 12156: #include <$ac_hdr>
! 12157:
! 12158: int
! 12159: main ()
! 12160: {
! 12161: if ((DIR *) 0)
! 12162: return 0;
! 12163: ;
! 12164: return 0;
! 12165: }
! 12166: _ACEOF
! 12167: rm -f conftest.$ac_objext
! 12168: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12169: (eval $ac_compile) 2>conftest.er1
! 12170: ac_status=$?
! 12171: grep -v '^ *+' conftest.er1 >conftest.err
! 12172: rm -f conftest.er1
! 12173: cat conftest.err >&5
! 12174: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12175: (exit $ac_status); } &&
! 12176: { ac_try='test -z "$ac_c_werror_flag"
! 12177: || test ! -s conftest.err'
! 12178: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12179: (eval $ac_try) 2>&5
! 12180: ac_status=$?
! 12181: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12182: (exit $ac_status); }; } &&
! 12183: { ac_try='test -s conftest.$ac_objext'
! 12184: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12185: (eval $ac_try) 2>&5
! 12186: ac_status=$?
! 12187: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12188: (exit $ac_status); }; }; then
! 12189: eval "$as_ac_Header=yes"
1.1 millert 12190: else
1.25 ! millert 12191: echo "$as_me: failed program was:" >&5
! 12192: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 12193:
1.25 ! millert 12194: eval "$as_ac_Header=no"
1.1 millert 12195: fi
1.25 ! millert 12196: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 12197: fi
1.25 ! millert 12198: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 12199: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 12200: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 12201: cat >>confdefs.h <<_ACEOF
! 12202: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
! 12203: _ACEOF
1.9 millert 12204:
1.25 ! millert 12205: ac_header_dirent=$ac_hdr; break
1.9 millert 12206: fi
1.16 millert 12207:
1.25 ! millert 12208: done
! 12209: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
! 12210: if test $ac_header_dirent = dirent.h; then
! 12211: echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 12212: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
! 12213: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 12214: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12215: else
1.25 ! millert 12216: ac_func_search_save_LIBS=$LIBS
! 12217: ac_cv_search_opendir=no
! 12218: cat >conftest.$ac_ext <<_ACEOF
! 12219: /* confdefs.h. */
! 12220: _ACEOF
! 12221: cat confdefs.h >>conftest.$ac_ext
! 12222: cat >>conftest.$ac_ext <<_ACEOF
! 12223: /* end confdefs.h. */
1.1 millert 12224:
1.25 ! millert 12225: /* Override any gcc2 internal prototype to avoid an error. */
! 12226: #ifdef __cplusplus
! 12227: extern "C"
! 12228: #endif
! 12229: /* We use char because int might match the return type of a gcc2
! 12230: builtin and then its argument prototype would still apply. */
! 12231: char opendir ();
! 12232: int
! 12233: main ()
! 12234: {
! 12235: opendir ();
! 12236: ;
! 12237: return 0;
! 12238: }
! 12239: _ACEOF
! 12240: rm -f conftest.$ac_objext conftest$ac_exeext
! 12241: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12242: (eval $ac_link) 2>conftest.er1
! 12243: ac_status=$?
! 12244: grep -v '^ *+' conftest.er1 >conftest.err
! 12245: rm -f conftest.er1
! 12246: cat conftest.err >&5
! 12247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12248: (exit $ac_status); } &&
! 12249: { ac_try='test -z "$ac_c_werror_flag"
! 12250: || test ! -s conftest.err'
! 12251: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12252: (eval $ac_try) 2>&5
! 12253: ac_status=$?
! 12254: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12255: (exit $ac_status); }; } &&
! 12256: { ac_try='test -s conftest$ac_exeext'
! 12257: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12258: (eval $ac_try) 2>&5
! 12259: ac_status=$?
! 12260: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12261: (exit $ac_status); }; }; then
! 12262: ac_cv_search_opendir="none required"
1.1 millert 12263: else
1.25 ! millert 12264: echo "$as_me: failed program was:" >&5
! 12265: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 12266:
12267: fi
1.25 ! millert 12268: rm -f conftest.err conftest.$ac_objext \
! 12269: conftest$ac_exeext conftest.$ac_ext
! 12270: if test "$ac_cv_search_opendir" = no; then
! 12271: for ac_lib in dir; do
! 12272: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 12273: cat >conftest.$ac_ext <<_ACEOF
! 12274: /* confdefs.h. */
! 12275: _ACEOF
! 12276: cat confdefs.h >>conftest.$ac_ext
! 12277: cat >>conftest.$ac_ext <<_ACEOF
! 12278: /* end confdefs.h. */
1.1 millert 12279:
1.25 ! millert 12280: /* Override any gcc2 internal prototype to avoid an error. */
! 12281: #ifdef __cplusplus
! 12282: extern "C"
! 12283: #endif
! 12284: /* We use char because int might match the return type of a gcc2
! 12285: builtin and then its argument prototype would still apply. */
! 12286: char opendir ();
! 12287: int
! 12288: main ()
! 12289: {
! 12290: opendir ();
! 12291: ;
! 12292: return 0;
! 12293: }
! 12294: _ACEOF
! 12295: rm -f conftest.$ac_objext conftest$ac_exeext
! 12296: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12297: (eval $ac_link) 2>conftest.er1
! 12298: ac_status=$?
! 12299: grep -v '^ *+' conftest.er1 >conftest.err
! 12300: rm -f conftest.er1
! 12301: cat conftest.err >&5
! 12302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12303: (exit $ac_status); } &&
! 12304: { ac_try='test -z "$ac_c_werror_flag"
! 12305: || test ! -s conftest.err'
! 12306: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12307: (eval $ac_try) 2>&5
! 12308: ac_status=$?
! 12309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12310: (exit $ac_status); }; } &&
! 12311: { ac_try='test -s conftest$ac_exeext'
! 12312: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12313: (eval $ac_try) 2>&5
! 12314: ac_status=$?
! 12315: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12316: (exit $ac_status); }; }; then
! 12317: ac_cv_search_opendir="-l$ac_lib"
! 12318: break
1.1 millert 12319: else
1.25 ! millert 12320: echo "$as_me: failed program was:" >&5
! 12321: sed 's/^/| /' conftest.$ac_ext >&5
! 12322:
! 12323: fi
! 12324: rm -f conftest.err conftest.$ac_objext \
! 12325: conftest$ac_exeext conftest.$ac_ext
! 12326: done
! 12327: fi
! 12328: LIBS=$ac_func_search_save_LIBS
1.1 millert 12329: fi
1.25 ! millert 12330: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 12331: echo "${ECHO_T}$ac_cv_search_opendir" >&6
! 12332: if test "$ac_cv_search_opendir" != no; then
! 12333: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
1.1 millert 12334:
1.25 ! millert 12335: fi
1.1 millert 12336:
1.25 ! millert 12337: else
! 12338: echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 12339: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
! 12340: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 12341: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12342: else
1.25 ! millert 12343: ac_func_search_save_LIBS=$LIBS
! 12344: ac_cv_search_opendir=no
! 12345: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12346: /* confdefs.h. */
12347: _ACEOF
12348: cat confdefs.h >>conftest.$ac_ext
12349: cat >>conftest.$ac_ext <<_ACEOF
12350: /* end confdefs.h. */
1.25 ! millert 12351:
1.1 millert 12352: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 12353: #ifdef __cplusplus
12354: extern "C"
12355: #endif
1.1 millert 12356: /* We use char because int might match the return type of a gcc2
1.9 millert 12357: builtin and then its argument prototype would still apply. */
1.25 ! millert 12358: char opendir ();
1.16 millert 12359: int
12360: main ()
12361: {
1.25 ! millert 12362: opendir ();
1.9 millert 12363: ;
12364: return 0;
12365: }
12366: _ACEOF
12367: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12368: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 12369: (eval $ac_link) 2>conftest.er1
1.9 millert 12370: ac_status=$?
1.25 ! millert 12371: grep -v '^ *+' conftest.er1 >conftest.err
! 12372: rm -f conftest.er1
! 12373: cat conftest.err >&5
1.16 millert 12374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12375: (exit $ac_status); } &&
1.25 ! millert 12376: { ac_try='test -z "$ac_c_werror_flag"
! 12377: || test ! -s conftest.err'
! 12378: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12379: (eval $ac_try) 2>&5
! 12380: ac_status=$?
! 12381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12382: (exit $ac_status); }; } &&
! 12383: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12384: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12385: (eval $ac_try) 2>&5
12386: ac_status=$?
1.16 millert 12387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12388: (exit $ac_status); }; }; then
1.25 ! millert 12389: ac_cv_search_opendir="none required"
1.9 millert 12390: else
12391: echo "$as_me: failed program was:" >&5
1.16 millert 12392: sed 's/^/| /' conftest.$ac_ext >&5
12393:
1.1 millert 12394: fi
1.25 ! millert 12395: rm -f conftest.err conftest.$ac_objext \
! 12396: conftest$ac_exeext conftest.$ac_ext
! 12397: if test "$ac_cv_search_opendir" = no; then
! 12398: for ac_lib in x; do
! 12399: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 12400: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 12401: /* confdefs.h. */
12402: _ACEOF
12403: cat confdefs.h >>conftest.$ac_ext
12404: cat >>conftest.$ac_ext <<_ACEOF
12405: /* end confdefs.h. */
12406:
1.25 ! millert 12407: /* Override any gcc2 internal prototype to avoid an error. */
! 12408: #ifdef __cplusplus
! 12409: extern "C"
! 12410: #endif
! 12411: /* We use char because int might match the return type of a gcc2
! 12412: builtin and then its argument prototype would still apply. */
! 12413: char opendir ();
1.17 millert 12414: int
12415: main ()
12416: {
1.25 ! millert 12417: opendir ();
1.17 millert 12418: ;
12419: return 0;
12420: }
12421: _ACEOF
12422: rm -f conftest.$ac_objext conftest$ac_exeext
12423: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 12424: (eval $ac_link) 2>conftest.er1
1.17 millert 12425: ac_status=$?
1.25 ! millert 12426: grep -v '^ *+' conftest.er1 >conftest.err
! 12427: rm -f conftest.er1
! 12428: cat conftest.err >&5
1.17 millert 12429: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430: (exit $ac_status); } &&
1.25 ! millert 12431: { ac_try='test -z "$ac_c_werror_flag"
! 12432: || test ! -s conftest.err'
! 12433: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12434: (eval $ac_try) 2>&5
! 12435: ac_status=$?
! 12436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12437: (exit $ac_status); }; } &&
! 12438: { ac_try='test -s conftest$ac_exeext'
1.17 millert 12439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440: (eval $ac_try) 2>&5
12441: ac_status=$?
12442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443: (exit $ac_status); }; }; then
1.25 ! millert 12444: ac_cv_search_opendir="-l$ac_lib"
! 12445: break
1.17 millert 12446: else
12447: echo "$as_me: failed program was:" >&5
12448: sed 's/^/| /' conftest.$ac_ext >&5
12449:
12450: fi
1.25 ! millert 12451: rm -f conftest.err conftest.$ac_objext \
! 12452: conftest$ac_exeext conftest.$ac_ext
! 12453: done
! 12454: fi
! 12455: LIBS=$ac_func_search_save_LIBS
! 12456: fi
! 12457: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 12458: echo "${ECHO_T}$ac_cv_search_opendir" >&6
! 12459: if test "$ac_cv_search_opendir" != no; then
! 12460: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
! 12461:
! 12462: fi
! 12463:
! 12464: fi
! 12465:
! 12466: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
! 12467: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
! 12468: if test "${ac_cv_header_time+set}" = set; then
1.9 millert 12469: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12470: else
1.25 ! millert 12471: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12472: /* confdefs.h. */
12473: _ACEOF
12474: cat confdefs.h >>conftest.$ac_ext
12475: cat >>conftest.$ac_ext <<_ACEOF
12476: /* end confdefs.h. */
1.25 ! millert 12477: #include <sys/types.h>
! 12478: #include <sys/time.h>
! 12479: #include <time.h>
1.9 millert 12480:
12481: int
12482: main ()
12483: {
1.25 ! millert 12484: if ((struct tm *) 0)
! 12485: return 0;
1.9 millert 12486: ;
12487: return 0;
12488: }
12489: _ACEOF
1.25 ! millert 12490: rm -f conftest.$ac_objext
! 12491: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12492: (eval $ac_compile) 2>conftest.er1
1.9 millert 12493: ac_status=$?
1.25 ! millert 12494: grep -v '^ *+' conftest.er1 >conftest.err
! 12495: rm -f conftest.er1
! 12496: cat conftest.err >&5
1.16 millert 12497: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12498: (exit $ac_status); } &&
1.25 ! millert 12499: { ac_try='test -z "$ac_c_werror_flag"
! 12500: || test ! -s conftest.err'
! 12501: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12502: (eval $ac_try) 2>&5
! 12503: ac_status=$?
! 12504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12505: (exit $ac_status); }; } &&
! 12506: { ac_try='test -s conftest.$ac_objext'
1.16 millert 12507: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12508: (eval $ac_try) 2>&5
12509: ac_status=$?
1.16 millert 12510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12511: (exit $ac_status); }; }; then
1.25 ! millert 12512: ac_cv_header_time=yes
1.9 millert 12513: else
12514: echo "$as_me: failed program was:" >&5
1.16 millert 12515: sed 's/^/| /' conftest.$ac_ext >&5
12516:
1.25 ! millert 12517: ac_cv_header_time=no
1.9 millert 12518: fi
1.25 ! millert 12519: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 12520: fi
1.25 ! millert 12521: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
! 12522: echo "${ECHO_T}$ac_cv_header_time" >&6
! 12523: if test $ac_cv_header_time = yes; then
! 12524:
! 12525: cat >>confdefs.h <<\_ACEOF
! 12526: #define TIME_WITH_SYS_TIME 1
1.16 millert 12527: _ACEOF
1.25 ! millert 12528:
! 12529: fi
! 12530:
! 12531:
! 12532:
! 12533:
! 12534:
! 12535:
! 12536:
! 12537:
! 12538: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
! 12539: do
! 12540: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 12541: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 12542: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12543: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 12544: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9 millert 12545: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 ! millert 12546: fi
! 12547: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 12548: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 millert 12549: else
1.25 ! millert 12550: # Is the header compilable?
! 12551: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 12552: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.9 millert 12553: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12554: /* confdefs.h. */
12555: _ACEOF
12556: cat confdefs.h >>conftest.$ac_ext
12557: cat >>conftest.$ac_ext <<_ACEOF
12558: /* end confdefs.h. */
1.25 ! millert 12559: $ac_includes_default
! 12560: #include <$ac_header>
1.9 millert 12561: _ACEOF
1.25 ! millert 12562: rm -f conftest.$ac_objext
! 12563: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12564: (eval $ac_compile) 2>conftest.er1
1.9 millert 12565: ac_status=$?
1.25 ! millert 12566: grep -v '^ *+' conftest.er1 >conftest.err
! 12567: rm -f conftest.er1
! 12568: cat conftest.err >&5
1.16 millert 12569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12570: (exit $ac_status); } &&
1.25 ! millert 12571: { ac_try='test -z "$ac_c_werror_flag"
! 12572: || test ! -s conftest.err'
! 12573: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12574: (eval $ac_try) 2>&5
! 12575: ac_status=$?
! 12576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12577: (exit $ac_status); }; } &&
! 12578: { ac_try='test -s conftest.$ac_objext'
1.16 millert 12579: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12580: (eval $ac_try) 2>&5
12581: ac_status=$?
1.16 millert 12582: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12583: (exit $ac_status); }; }; then
1.25 ! millert 12584: ac_header_compiler=yes
1.9 millert 12585: else
12586: echo "$as_me: failed program was:" >&5
1.16 millert 12587: sed 's/^/| /' conftest.$ac_ext >&5
12588:
1.25 ! millert 12589: ac_header_compiler=no
1.9 millert 12590: fi
1.25 ! millert 12591: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 12592: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 12593: echo "${ECHO_T}$ac_header_compiler" >&6
! 12594:
! 12595: # Is the header present?
! 12596: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 12597: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 12598: cat >conftest.$ac_ext <<_ACEOF
! 12599: /* confdefs.h. */
! 12600: _ACEOF
! 12601: cat confdefs.h >>conftest.$ac_ext
! 12602: cat >>conftest.$ac_ext <<_ACEOF
! 12603: /* end confdefs.h. */
! 12604: #include <$ac_header>
1.16 millert 12605: _ACEOF
1.25 ! millert 12606: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 12607: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 12608: ac_status=$?
! 12609: grep -v '^ *+' conftest.er1 >conftest.err
! 12610: rm -f conftest.er1
! 12611: cat conftest.err >&5
! 12612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12613: (exit $ac_status); } >/dev/null; then
! 12614: if test -s conftest.err; then
! 12615: ac_cpp_err=$ac_c_preproc_warn_flag
! 12616: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 12617: else
! 12618: ac_cpp_err=
! 12619: fi
! 12620: else
! 12621: ac_cpp_err=yes
1.1 millert 12622: fi
1.25 ! millert 12623: if test -z "$ac_cpp_err"; then
! 12624: ac_header_preproc=yes
! 12625: else
! 12626: echo "$as_me: failed program was:" >&5
! 12627: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 12628:
1.25 ! millert 12629: ac_header_preproc=no
1.1 millert 12630: fi
1.25 ! millert 12631: rm -f conftest.err conftest.$ac_ext
! 12632: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 12633: echo "${ECHO_T}$ac_header_preproc" >&6
1.1 millert 12634:
1.25 ! millert 12635: # So? What about this header?
! 12636: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 12637: yes:no: )
! 12638: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 12639: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 12640: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 12641: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 12642: ac_header_preproc=yes
! 12643: ;;
! 12644: no:yes:* )
! 12645: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 12646: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 12647: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 12648: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 12649: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 12650: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 12651: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 12652: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 12653: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 12654: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 12655: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 12656: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 12657: (
! 12658: cat <<\_ASBOX
! 12659: ## ------------------------------- ##
! 12660: ## Report this to the sudo lists. ##
! 12661: ## ------------------------------- ##
! 12662: _ASBOX
! 12663: ) |
! 12664: sed "s/^/$as_me: WARNING: /" >&2
! 12665: ;;
! 12666: esac
! 12667: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12668: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 12669: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 12670: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12671: else
! 12672: eval "$as_ac_Header=\$ac_header_preproc"
! 12673: fi
! 12674: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 12675: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.23 millert 12676:
1.25 ! millert 12677: fi
! 12678: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 12679: cat >>confdefs.h <<_ACEOF
! 12680: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 millert 12681: _ACEOF
12682:
1.25 ! millert 12683: fi
1.23 millert 12684:
1.25 ! millert 12685: done
1.23 millert 12686:
12687:
1.25 ! millert 12688: for ac_header in err.h
1.23 millert 12689: do
1.25 ! millert 12690: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 12691: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 12692: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12693: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 12694: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.23 millert 12695: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 ! millert 12696: fi
! 12697: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 12698: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.23 millert 12699: else
1.25 ! millert 12700: # Is the header compilable?
! 12701: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 12702: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 12703: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 12704: /* confdefs.h. */
12705: _ACEOF
12706: cat confdefs.h >>conftest.$ac_ext
12707: cat >>conftest.$ac_ext <<_ACEOF
12708: /* end confdefs.h. */
1.25 ! millert 12709: $ac_includes_default
! 12710: #include <$ac_header>
1.23 millert 12711: _ACEOF
1.25 ! millert 12712: rm -f conftest.$ac_objext
! 12713: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12714: (eval $ac_compile) 2>conftest.er1
1.23 millert 12715: ac_status=$?
1.25 ! millert 12716: grep -v '^ *+' conftest.er1 >conftest.err
! 12717: rm -f conftest.er1
! 12718: cat conftest.err >&5
1.23 millert 12719: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720: (exit $ac_status); } &&
1.25 ! millert 12721: { ac_try='test -z "$ac_c_werror_flag"
! 12722: || test ! -s conftest.err'
! 12723: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12724: (eval $ac_try) 2>&5
! 12725: ac_status=$?
! 12726: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12727: (exit $ac_status); }; } &&
! 12728: { ac_try='test -s conftest.$ac_objext'
1.23 millert 12729: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730: (eval $ac_try) 2>&5
12731: ac_status=$?
12732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733: (exit $ac_status); }; }; then
1.25 ! millert 12734: ac_header_compiler=yes
1.23 millert 12735: else
12736: echo "$as_me: failed program was:" >&5
12737: sed 's/^/| /' conftest.$ac_ext >&5
12738:
1.25 ! millert 12739: ac_header_compiler=no
1.23 millert 12740: fi
1.25 ! millert 12741: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 12742: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 12743: echo "${ECHO_T}$ac_header_compiler" >&6
1.23 millert 12744:
1.25 ! millert 12745: # Is the header present?
! 12746: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 12747: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.9 millert 12748: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12749: /* confdefs.h. */
12750: _ACEOF
12751: cat confdefs.h >>conftest.$ac_ext
12752: cat >>conftest.$ac_ext <<_ACEOF
12753: /* end confdefs.h. */
1.25 ! millert 12754: #include <$ac_header>
1.9 millert 12755: _ACEOF
1.25 ! millert 12756: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 12757: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 12758: ac_status=$?
1.25 ! millert 12759: grep -v '^ *+' conftest.er1 >conftest.err
! 12760: rm -f conftest.er1
! 12761: cat conftest.err >&5
1.16 millert 12762: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 12763: (exit $ac_status); } >/dev/null; then
! 12764: if test -s conftest.err; then
! 12765: ac_cpp_err=$ac_c_preproc_warn_flag
! 12766: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 12767: else
! 12768: ac_cpp_err=
! 12769: fi
! 12770: else
! 12771: ac_cpp_err=yes
! 12772: fi
! 12773: if test -z "$ac_cpp_err"; then
! 12774: ac_header_preproc=yes
1.9 millert 12775: else
12776: echo "$as_me: failed program was:" >&5
1.16 millert 12777: sed 's/^/| /' conftest.$ac_ext >&5
12778:
1.25 ! millert 12779: ac_header_preproc=no
! 12780: fi
! 12781: rm -f conftest.err conftest.$ac_ext
! 12782: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 12783: echo "${ECHO_T}$ac_header_preproc" >&6
! 12784:
! 12785: # So? What about this header?
! 12786: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 12787: yes:no: )
! 12788: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 12789: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 12790: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 12791: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 12792: ac_header_preproc=yes
! 12793: ;;
! 12794: no:yes:* )
! 12795: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 12796: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 12797: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 12798: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 12799: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 12800: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 12801: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 12802: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 12803: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 12804: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 12805: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 12806: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 12807: (
! 12808: cat <<\_ASBOX
! 12809: ## ------------------------------- ##
! 12810: ## Report this to the sudo lists. ##
! 12811: ## ------------------------------- ##
! 12812: _ASBOX
! 12813: ) |
! 12814: sed "s/^/$as_me: WARNING: /" >&2
! 12815: ;;
! 12816: esac
! 12817: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12818: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 12819: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 12820: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12821: else
! 12822: eval "$as_ac_Header=\$ac_header_preproc"
! 12823: fi
! 12824: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 12825: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 12826:
1.9 millert 12827: fi
1.25 ! millert 12828: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 12829: cat >>confdefs.h <<_ACEOF
! 12830: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 12831: _ACEOF
! 12832:
! 12833: else
! 12834: case $LIBOBJS in
! 12835: "err.$ac_objext" | \
! 12836: *" err.$ac_objext" | \
! 12837: "err.$ac_objext "* | \
! 12838: *" err.$ac_objext "* ) ;;
! 12839: *) LIBOBJS="$LIBOBJS err.$ac_objext" ;;
! 12840: esac
! 12841:
1.9 millert 12842: fi
1.25 ! millert 12843:
! 12844: done
! 12845:
! 12846: if test "$OS" != "ultrix"; then
! 12847: echo "$as_me:$LINENO: checking POSIX termios" >&5
! 12848: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
! 12849: if test "${ac_cv_sys_posix_termios+set}" = set; then
1.9 millert 12850: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 12851: else
1.25 ! millert 12852: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12853: /* confdefs.h. */
12854: _ACEOF
12855: cat confdefs.h >>conftest.$ac_ext
12856: cat >>conftest.$ac_ext <<_ACEOF
12857: /* end confdefs.h. */
1.25 ! millert 12858: #include <sys/types.h>
! 12859: #include <unistd.h>
! 12860: #include <termios.h>
1.9 millert 12861:
12862: int
12863: main ()
12864: {
1.25 ! millert 12865: /* SunOS 4.0.3 has termios.h but not the library calls. */
! 12866: tcgetattr(0, 0);
1.9 millert 12867: ;
12868: return 0;
12869: }
12870: _ACEOF
12871: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 12872: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 12873: (eval $ac_link) 2>conftest.er1
1.9 millert 12874: ac_status=$?
1.25 ! millert 12875: grep -v '^ *+' conftest.er1 >conftest.err
! 12876: rm -f conftest.er1
! 12877: cat conftest.err >&5
1.16 millert 12878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12879: (exit $ac_status); } &&
1.25 ! millert 12880: { ac_try='test -z "$ac_c_werror_flag"
! 12881: || test ! -s conftest.err'
! 12882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12883: (eval $ac_try) 2>&5
! 12884: ac_status=$?
! 12885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12886: (exit $ac_status); }; } &&
! 12887: { ac_try='test -s conftest$ac_exeext'
1.16 millert 12888: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12889: (eval $ac_try) 2>&5
12890: ac_status=$?
1.16 millert 12891: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12892: (exit $ac_status); }; }; then
1.25 ! millert 12893: ac_cv_sys_posix_termios=yes
1.9 millert 12894: else
12895: echo "$as_me: failed program was:" >&5
1.16 millert 12896: sed 's/^/| /' conftest.$ac_ext >&5
12897:
1.25 ! millert 12898: ac_cv_sys_posix_termios=no
1.9 millert 12899: fi
1.25 ! millert 12900: rm -f conftest.err conftest.$ac_objext \
! 12901: conftest$ac_exeext conftest.$ac_ext
1.9 millert 12902: fi
1.25 ! millert 12903: echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
! 12904: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
! 12905:
! 12906: if test "$ac_cv_sys_posix_termios" = "yes"; then
! 12907: cat >>confdefs.h <<\_ACEOF
! 12908: #define HAVE_TERMIOS_H 1
1.16 millert 12909: _ACEOF
1.1 millert 12910:
1.25 ! millert 12911: else
1.1 millert 12912:
1.25 ! millert 12913: for ac_header in termio.h
! 12914: do
! 12915: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 12916: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 12917: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 12918: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 12919: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9 millert 12920: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 ! millert 12921: fi
! 12922: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 12923: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 millert 12924: else
1.25 ! millert 12925: # Is the header compilable?
! 12926: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 12927: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.23 millert 12928: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 12929: /* confdefs.h. */
12930: _ACEOF
12931: cat confdefs.h >>conftest.$ac_ext
12932: cat >>conftest.$ac_ext <<_ACEOF
12933: /* end confdefs.h. */
1.25 ! millert 12934: $ac_includes_default
! 12935: #include <$ac_header>
1.9 millert 12936: _ACEOF
1.25 ! millert 12937: rm -f conftest.$ac_objext
! 12938: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12939: (eval $ac_compile) 2>conftest.er1
1.9 millert 12940: ac_status=$?
1.25 ! millert 12941: grep -v '^ *+' conftest.er1 >conftest.err
! 12942: rm -f conftest.er1
! 12943: cat conftest.err >&5
1.16 millert 12944: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12945: (exit $ac_status); } &&
1.25 ! millert 12946: { ac_try='test -z "$ac_c_werror_flag"
! 12947: || test ! -s conftest.err'
! 12948: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12949: (eval $ac_try) 2>&5
! 12950: ac_status=$?
! 12951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12952: (exit $ac_status); }; } &&
! 12953: { ac_try='test -s conftest.$ac_objext'
1.16 millert 12954: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 12955: (eval $ac_try) 2>&5
12956: ac_status=$?
1.16 millert 12957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 12958: (exit $ac_status); }; }; then
1.25 ! millert 12959: ac_header_compiler=yes
! 12960: else
! 12961: echo "$as_me: failed program was:" >&5
! 12962: sed 's/^/| /' conftest.$ac_ext >&5
! 12963:
! 12964: ac_header_compiler=no
! 12965: fi
! 12966: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 12967: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 12968: echo "${ECHO_T}$ac_header_compiler" >&6
! 12969:
! 12970: # Is the header present?
! 12971: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 12972: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 12973: cat >conftest.$ac_ext <<_ACEOF
! 12974: /* confdefs.h. */
! 12975: _ACEOF
! 12976: cat confdefs.h >>conftest.$ac_ext
! 12977: cat >>conftest.$ac_ext <<_ACEOF
! 12978: /* end confdefs.h. */
! 12979: #include <$ac_header>
! 12980: _ACEOF
! 12981: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 12982: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 12983: ac_status=$?
! 12984: grep -v '^ *+' conftest.er1 >conftest.err
! 12985: rm -f conftest.er1
! 12986: cat conftest.err >&5
! 12987: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12988: (exit $ac_status); } >/dev/null; then
! 12989: if test -s conftest.err; then
! 12990: ac_cpp_err=$ac_c_preproc_warn_flag
! 12991: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 12992: else
! 12993: ac_cpp_err=
! 12994: fi
! 12995: else
! 12996: ac_cpp_err=yes
! 12997: fi
! 12998: if test -z "$ac_cpp_err"; then
! 12999: ac_header_preproc=yes
1.9 millert 13000: else
13001: echo "$as_me: failed program was:" >&5
1.16 millert 13002: sed 's/^/| /' conftest.$ac_ext >&5
13003:
1.25 ! millert 13004: ac_header_preproc=no
! 13005: fi
! 13006: rm -f conftest.err conftest.$ac_ext
! 13007: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13008: echo "${ECHO_T}$ac_header_preproc" >&6
! 13009:
! 13010: # So? What about this header?
! 13011: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 13012: yes:no: )
! 13013: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 13014: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 13015: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 13016: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 13017: ac_header_preproc=yes
! 13018: ;;
! 13019: no:yes:* )
! 13020: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 13021: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 13022: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 13023: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 13024: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 13025: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 13026: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 13027: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 13028: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 13029: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 13030: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 13031: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 13032: (
! 13033: cat <<\_ASBOX
! 13034: ## ------------------------------- ##
! 13035: ## Report this to the sudo lists. ##
! 13036: ## ------------------------------- ##
! 13037: _ASBOX
! 13038: ) |
! 13039: sed "s/^/$as_me: WARNING: /" >&2
! 13040: ;;
! 13041: esac
! 13042: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13043: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 13044: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 13045: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13046: else
! 13047: eval "$as_ac_Header=\$ac_header_preproc"
1.9 millert 13048: fi
1.25 ! millert 13049: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 13050: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 13051:
1.9 millert 13052: fi
1.25 ! millert 13053: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 13054: cat >>confdefs.h <<_ACEOF
! 13055: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 13056: _ACEOF
1.25 ! millert 13057:
1.1 millert 13058: fi
13059:
1.25 ! millert 13060: done
1.1 millert 13061:
1.25 ! millert 13062: fi
! 13063: fi
! 13064: if test ${with_logincap-'no'} != "no"; then
1.9 millert 13065:
1.25 ! millert 13066: for ac_header in login_cap.h
! 13067: do
! 13068: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 13069: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 13070: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13071: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 13072: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9 millert 13073: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 ! millert 13074: fi
! 13075: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 13076: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 millert 13077: else
1.25 ! millert 13078: # Is the header compilable?
! 13079: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 13080: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 13081: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13082: /* confdefs.h. */
13083: _ACEOF
13084: cat confdefs.h >>conftest.$ac_ext
13085: cat >>conftest.$ac_ext <<_ACEOF
13086: /* end confdefs.h. */
1.25 ! millert 13087: $ac_includes_default
! 13088: #include <$ac_header>
! 13089: _ACEOF
! 13090: rm -f conftest.$ac_objext
! 13091: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13092: (eval $ac_compile) 2>conftest.er1
! 13093: ac_status=$?
! 13094: grep -v '^ *+' conftest.er1 >conftest.err
! 13095: rm -f conftest.er1
! 13096: cat conftest.err >&5
! 13097: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13098: (exit $ac_status); } &&
! 13099: { ac_try='test -z "$ac_c_werror_flag"
! 13100: || test ! -s conftest.err'
! 13101: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13102: (eval $ac_try) 2>&5
1.9 millert 13103: ac_status=$?
1.16 millert 13104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 13105: (exit $ac_status); }; } &&
! 13106: { ac_try='test -s conftest.$ac_objext'
1.16 millert 13107: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13108: (eval $ac_try) 2>&5
13109: ac_status=$?
1.16 millert 13110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13111: (exit $ac_status); }; }; then
1.25 ! millert 13112: ac_header_compiler=yes
1.9 millert 13113: else
13114: echo "$as_me: failed program was:" >&5
1.16 millert 13115: sed 's/^/| /' conftest.$ac_ext >&5
13116:
1.25 ! millert 13117: ac_header_compiler=no
1.9 millert 13118: fi
1.25 ! millert 13119: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 13120: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13121: echo "${ECHO_T}$ac_header_compiler" >&6
1.9 millert 13122:
1.25 ! millert 13123: # Is the header present?
! 13124: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 13125: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.9 millert 13126: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13127: /* confdefs.h. */
13128: _ACEOF
13129: cat confdefs.h >>conftest.$ac_ext
13130: cat >>conftest.$ac_ext <<_ACEOF
13131: /* end confdefs.h. */
1.25 ! millert 13132: #include <$ac_header>
1.9 millert 13133: _ACEOF
1.25 ! millert 13134: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 13135: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 13136: ac_status=$?
1.25 ! millert 13137: grep -v '^ *+' conftest.er1 >conftest.err
! 13138: rm -f conftest.er1
! 13139: cat conftest.err >&5
1.16 millert 13140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 13141: (exit $ac_status); } >/dev/null; then
! 13142: if test -s conftest.err; then
! 13143: ac_cpp_err=$ac_c_preproc_warn_flag
! 13144: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 13145: else
! 13146: ac_cpp_err=
! 13147: fi
! 13148: else
! 13149: ac_cpp_err=yes
! 13150: fi
! 13151: if test -z "$ac_cpp_err"; then
! 13152: ac_header_preproc=yes
1.9 millert 13153: else
13154: echo "$as_me: failed program was:" >&5
1.16 millert 13155: sed 's/^/| /' conftest.$ac_ext >&5
13156:
1.25 ! millert 13157: ac_header_preproc=no
1.9 millert 13158: fi
1.25 ! millert 13159: rm -f conftest.err conftest.$ac_ext
! 13160: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13161: echo "${ECHO_T}$ac_header_preproc" >&6
! 13162:
! 13163: # So? What about this header?
! 13164: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 13165: yes:no: )
! 13166: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 13167: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 13168: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 13169: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 13170: ac_header_preproc=yes
! 13171: ;;
! 13172: no:yes:* )
! 13173: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 13174: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 13175: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 13176: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 13177: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 13178: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 13179: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 13180: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 13181: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 13182: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 13183: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 13184: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 13185: (
! 13186: cat <<\_ASBOX
! 13187: ## ------------------------------- ##
! 13188: ## Report this to the sudo lists. ##
! 13189: ## ------------------------------- ##
! 13190: _ASBOX
! 13191: ) |
! 13192: sed "s/^/$as_me: WARNING: /" >&2
! 13193: ;;
! 13194: esac
! 13195: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 13196: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 13197: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 13198: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13199: else
! 13200: eval "$as_ac_Header=\$ac_header_preproc"
1.9 millert 13201: fi
1.25 ! millert 13202: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 13203: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 13204:
1.1 millert 13205: fi
1.25 ! millert 13206: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 13207: cat >>confdefs.h <<_ACEOF
! 13208: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 13209: _ACEOF
1.1 millert 13210:
1.25 ! millert 13211: fi
1.1 millert 13212:
1.25 ! millert 13213: done
1.1 millert 13214:
1.25 ! millert 13215: fi
! 13216: if test ${with_project-'no'} != "no"; then
! 13217: if test "${ac_cv_header_project_h+set}" = set; then
! 13218: echo "$as_me:$LINENO: checking for project.h" >&5
! 13219: echo $ECHO_N "checking for project.h... $ECHO_C" >&6
! 13220: if test "${ac_cv_header_project_h+set}" = set; then
1.9 millert 13221: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 ! millert 13222: fi
! 13223: echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
! 13224: echo "${ECHO_T}$ac_cv_header_project_h" >&6
1.1 millert 13225: else
1.25 ! millert 13226: # Is the header compilable?
! 13227: echo "$as_me:$LINENO: checking project.h usability" >&5
! 13228: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6
! 13229: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13230: /* confdefs.h. */
13231: _ACEOF
13232: cat confdefs.h >>conftest.$ac_ext
13233: cat >>conftest.$ac_ext <<_ACEOF
13234: /* end confdefs.h. */
1.25 ! millert 13235: $ac_includes_default
! 13236: #include <project.h>
1.9 millert 13237: _ACEOF
1.25 ! millert 13238: rm -f conftest.$ac_objext
! 13239: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13240: (eval $ac_compile) 2>conftest.er1
1.9 millert 13241: ac_status=$?
1.25 ! millert 13242: grep -v '^ *+' conftest.er1 >conftest.err
! 13243: rm -f conftest.er1
! 13244: cat conftest.err >&5
1.16 millert 13245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13246: (exit $ac_status); } &&
1.25 ! millert 13247: { ac_try='test -z "$ac_c_werror_flag"
! 13248: || test ! -s conftest.err'
! 13249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13250: (eval $ac_try) 2>&5
! 13251: ac_status=$?
! 13252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13253: (exit $ac_status); }; } &&
! 13254: { ac_try='test -s conftest.$ac_objext'
1.16 millert 13255: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13256: (eval $ac_try) 2>&5
13257: ac_status=$?
1.16 millert 13258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13259: (exit $ac_status); }; }; then
1.25 ! millert 13260: ac_header_compiler=yes
1.9 millert 13261: else
13262: echo "$as_me: failed program was:" >&5
1.16 millert 13263: sed 's/^/| /' conftest.$ac_ext >&5
13264:
1.25 ! millert 13265: ac_header_compiler=no
1.9 millert 13266: fi
1.25 ! millert 13267: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 13268: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 13269: echo "${ECHO_T}$ac_header_compiler" >&6
1.1 millert 13270:
1.25 ! millert 13271: # Is the header present?
! 13272: echo "$as_me:$LINENO: checking project.h presence" >&5
! 13273: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6
! 13274: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13275: /* confdefs.h. */
13276: _ACEOF
13277: cat confdefs.h >>conftest.$ac_ext
13278: cat >>conftest.$ac_ext <<_ACEOF
13279: /* end confdefs.h. */
1.25 ! millert 13280: #include <project.h>
1.9 millert 13281: _ACEOF
1.25 ! millert 13282: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 13283: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 13284: ac_status=$?
1.25 ! millert 13285: grep -v '^ *+' conftest.er1 >conftest.err
! 13286: rm -f conftest.er1
! 13287: cat conftest.err >&5
1.16 millert 13288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 13289: (exit $ac_status); } >/dev/null; then
! 13290: if test -s conftest.err; then
! 13291: ac_cpp_err=$ac_c_preproc_warn_flag
! 13292: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 13293: else
! 13294: ac_cpp_err=
! 13295: fi
! 13296: else
! 13297: ac_cpp_err=yes
! 13298: fi
! 13299: if test -z "$ac_cpp_err"; then
! 13300: ac_header_preproc=yes
1.9 millert 13301: else
13302: echo "$as_me: failed program was:" >&5
1.16 millert 13303: sed 's/^/| /' conftest.$ac_ext >&5
13304:
1.25 ! millert 13305: ac_header_preproc=no
! 13306: fi
! 13307: rm -f conftest.err conftest.$ac_ext
! 13308: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 13309: echo "${ECHO_T}$ac_header_preproc" >&6
! 13310:
! 13311: # So? What about this header?
! 13312: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 13313: yes:no: )
! 13314: { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 13315: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 13316: { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
! 13317: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
! 13318: ac_header_preproc=yes
! 13319: ;;
! 13320: no:yes:* )
! 13321: { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
! 13322: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
! 13323: { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
! 13324: echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
! 13325: { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
! 13326: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
! 13327: { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
! 13328: echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 13329: { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
! 13330: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
! 13331: { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
! 13332: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
! 13333: (
! 13334: cat <<\_ASBOX
! 13335: ## ------------------------------- ##
! 13336: ## Report this to the sudo lists. ##
! 13337: ## ------------------------------- ##
! 13338: _ASBOX
! 13339: ) |
! 13340: sed "s/^/$as_me: WARNING: /" >&2
! 13341: ;;
! 13342: esac
! 13343: echo "$as_me:$LINENO: checking for project.h" >&5
! 13344: echo $ECHO_N "checking for project.h... $ECHO_C" >&6
! 13345: if test "${ac_cv_header_project_h+set}" = set; then
! 13346: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13347: else
! 13348: ac_cv_header_project_h=$ac_header_preproc
1.9 millert 13349: fi
1.25 ! millert 13350: echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
! 13351: echo "${ECHO_T}$ac_cv_header_project_h" >&6
! 13352:
1.9 millert 13353: fi
1.25 ! millert 13354: if test $ac_cv_header_project_h = yes; then
! 13355: cat >>confdefs.h <<\_ACEOF
! 13356: #define HAVE_PROJECT_H 1
1.16 millert 13357: _ACEOF
1.1 millert 13358:
1.25 ! millert 13359: SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1 millert 13360: else
1.25 ! millert 13361: -
1.1 millert 13362: fi
13363:
1.25 ! millert 13364:
! 13365: fi
! 13366: echo "$as_me:$LINENO: checking for mode_t" >&5
! 13367: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
! 13368: if test "${ac_cv_type_mode_t+set}" = set; then
1.9 millert 13369: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13370: else
1.25 ! millert 13371: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13372: /* confdefs.h. */
13373: _ACEOF
13374: cat confdefs.h >>conftest.$ac_ext
13375: cat >>conftest.$ac_ext <<_ACEOF
13376: /* end confdefs.h. */
1.25 ! millert 13377: $ac_includes_default
1.9 millert 13378: int
13379: main ()
13380: {
1.25 ! millert 13381: if ((mode_t *) 0)
! 13382: return 0;
! 13383: if (sizeof (mode_t))
! 13384: return 0;
1.9 millert 13385: ;
13386: return 0;
13387: }
13388: _ACEOF
1.25 ! millert 13389: rm -f conftest.$ac_objext
! 13390: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13391: (eval $ac_compile) 2>conftest.er1
1.9 millert 13392: ac_status=$?
1.25 ! millert 13393: grep -v '^ *+' conftest.er1 >conftest.err
! 13394: rm -f conftest.er1
! 13395: cat conftest.err >&5
1.16 millert 13396: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13397: (exit $ac_status); } &&
1.25 ! millert 13398: { ac_try='test -z "$ac_c_werror_flag"
! 13399: || test ! -s conftest.err'
! 13400: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13401: (eval $ac_try) 2>&5
! 13402: ac_status=$?
! 13403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13404: (exit $ac_status); }; } &&
! 13405: { ac_try='test -s conftest.$ac_objext'
1.16 millert 13406: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13407: (eval $ac_try) 2>&5
13408: ac_status=$?
1.16 millert 13409: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13410: (exit $ac_status); }; }; then
1.25 ! millert 13411: ac_cv_type_mode_t=yes
1.9 millert 13412: else
13413: echo "$as_me: failed program was:" >&5
1.16 millert 13414: sed 's/^/| /' conftest.$ac_ext >&5
13415:
1.25 ! millert 13416: ac_cv_type_mode_t=no
1.9 millert 13417: fi
1.25 ! millert 13418: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 13419: fi
1.25 ! millert 13420: echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
! 13421: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
! 13422: if test $ac_cv_type_mode_t = yes; then
! 13423: :
1.1 millert 13424: else
1.25 ! millert 13425:
! 13426: cat >>confdefs.h <<_ACEOF
! 13427: #define mode_t int
! 13428: _ACEOF
! 13429:
1.1 millert 13430: fi
13431:
1.25 ! millert 13432: echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
! 13433: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
! 13434: if test "${ac_cv_type_uid_t+set}" = set; then
1.9 millert 13435: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13436: else
1.9 millert 13437: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13438: /* confdefs.h. */
13439: _ACEOF
13440: cat confdefs.h >>conftest.$ac_ext
13441: cat >>conftest.$ac_ext <<_ACEOF
13442: /* end confdefs.h. */
1.25 ! millert 13443: #include <sys/types.h>
1.1 millert 13444:
1.9 millert 13445: _ACEOF
1.25 ! millert 13446: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 13447: $EGREP "uid_t" >/dev/null 2>&1; then
! 13448: ac_cv_type_uid_t=yes
1.9 millert 13449: else
1.25 ! millert 13450: ac_cv_type_uid_t=no
! 13451: fi
! 13452: rm -f conftest*
1.16 millert 13453:
1.9 millert 13454: fi
1.25 ! millert 13455: echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
! 13456: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
! 13457: if test $ac_cv_type_uid_t = no; then
! 13458:
! 13459: cat >>confdefs.h <<\_ACEOF
! 13460: #define uid_t int
! 13461: _ACEOF
! 13462:
! 13463:
! 13464: cat >>confdefs.h <<\_ACEOF
! 13465: #define gid_t int
1.16 millert 13466: _ACEOF
1.1 millert 13467:
13468: fi
13469:
1.25 ! millert 13470: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
! 13471: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
! 13472: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
! 13473: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13474: else
! 13475: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13476: /* confdefs.h. */
13477: _ACEOF
13478: cat confdefs.h >>conftest.$ac_ext
13479: cat >>conftest.$ac_ext <<_ACEOF
13480: /* end confdefs.h. */
1.1 millert 13481: #include <sys/types.h>
1.25 ! millert 13482: #include <signal.h>
1.9 millert 13483:
13484: int
13485: main ()
13486: {
1.25 ! millert 13487: if ((sig_atomic_t *) 0)
! 13488: return 0;
! 13489: if (sizeof (sig_atomic_t))
! 13490: return 0;
1.9 millert 13491: ;
13492: return 0;
13493: }
13494: _ACEOF
13495: rm -f conftest.$ac_objext
1.16 millert 13496: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 13497: (eval $ac_compile) 2>conftest.er1
1.9 millert 13498: ac_status=$?
1.25 ! millert 13499: grep -v '^ *+' conftest.er1 >conftest.err
! 13500: rm -f conftest.er1
! 13501: cat conftest.err >&5
1.16 millert 13502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13503: (exit $ac_status); } &&
1.25 ! millert 13504: { ac_try='test -z "$ac_c_werror_flag"
! 13505: || test ! -s conftest.err'
! 13506: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13507: (eval $ac_try) 2>&5
! 13508: ac_status=$?
! 13509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13510: (exit $ac_status); }; } &&
! 13511: { ac_try='test -s conftest.$ac_objext'
1.16 millert 13512: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13513: (eval $ac_try) 2>&5
13514: ac_status=$?
1.16 millert 13515: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13516: (exit $ac_status); }; }; then
1.25 ! millert 13517: ac_cv_type_sig_atomic_t=yes
1.9 millert 13518: else
13519: echo "$as_me: failed program was:" >&5
1.16 millert 13520: sed 's/^/| /' conftest.$ac_ext >&5
13521:
1.25 ! millert 13522: ac_cv_type_sig_atomic_t=no
! 13523: fi
! 13524: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 13525: fi
! 13526: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
! 13527: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
! 13528: if test $ac_cv_type_sig_atomic_t = yes; then
! 13529:
! 13530: cat >>confdefs.h <<_ACEOF
! 13531: #define HAVE_SIG_ATOMIC_T 1
! 13532: _ACEOF
! 13533:
! 13534:
! 13535: else
! 13536: cat >>confdefs.h <<\_ACEOF
! 13537: #define sig_atomic_t int
! 13538: _ACEOF
1.9 millert 13539:
1.1 millert 13540: fi
1.25 ! millert 13541:
! 13542: echo "$as_me:$LINENO: checking for sigaction_t" >&5
! 13543: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
! 13544: if test "${ac_cv_type_sigaction_t+set}" = set; then
1.9 millert 13545: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13546: else
1.25 ! millert 13547: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13548: /* confdefs.h. */
13549: _ACEOF
13550: cat confdefs.h >>conftest.$ac_ext
13551: cat >>conftest.$ac_ext <<_ACEOF
13552: /* end confdefs.h. */
1.25 ! millert 13553: #include <sys/types.h>
! 13554: #include <signal.h>
1.9 millert 13555:
13556: int
1.25 ! millert 13557: main ()
! 13558: {
! 13559: if ((sigaction_t *) 0)
! 13560: return 0;
! 13561: if (sizeof (sigaction_t))
! 13562: return 0;
1.9 millert 13563: ;
13564: return 0;
13565: }
13566: _ACEOF
1.25 ! millert 13567: rm -f conftest.$ac_objext
! 13568: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13569: (eval $ac_compile) 2>conftest.er1
1.9 millert 13570: ac_status=$?
1.25 ! millert 13571: grep -v '^ *+' conftest.er1 >conftest.err
! 13572: rm -f conftest.er1
! 13573: cat conftest.err >&5
1.16 millert 13574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13575: (exit $ac_status); } &&
1.25 ! millert 13576: { ac_try='test -z "$ac_c_werror_flag"
! 13577: || test ! -s conftest.err'
! 13578: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13579: (eval $ac_try) 2>&5
! 13580: ac_status=$?
! 13581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13582: (exit $ac_status); }; } &&
! 13583: { ac_try='test -s conftest.$ac_objext'
1.16 millert 13584: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13585: (eval $ac_try) 2>&5
13586: ac_status=$?
1.16 millert 13587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13588: (exit $ac_status); }; }; then
1.25 ! millert 13589: ac_cv_type_sigaction_t=yes
1.9 millert 13590: else
13591: echo "$as_me: failed program was:" >&5
1.16 millert 13592: sed 's/^/| /' conftest.$ac_ext >&5
13593:
1.25 ! millert 13594: ac_cv_type_sigaction_t=no
1.9 millert 13595: fi
1.25 ! millert 13596: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 13597: fi
1.25 ! millert 13598: echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
! 13599: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
! 13600: if test $ac_cv_type_sigaction_t = yes; then
! 13601:
! 13602: cat >>confdefs.h <<_ACEOF
! 13603: #define HAVE_SIGACTION_T 1
! 13604: _ACEOF
! 13605:
! 13606: cat >>confdefs.h <<\_ACEOF
! 13607: #define HAVE_SIGACTION_T 1
! 13608: _ACEOF
! 13609:
1.1 millert 13610: fi
13611:
1.25 ! millert 13612: echo "$as_me:$LINENO: checking for struct timespec" >&5
! 13613: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
! 13614: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9 millert 13615: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13616: else
1.9 millert 13617: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13618: /* confdefs.h. */
13619: _ACEOF
13620: cat confdefs.h >>conftest.$ac_ext
13621: cat >>conftest.$ac_ext <<_ACEOF
13622: /* end confdefs.h. */
1.25 ! millert 13623: #include <sys/types.h>
! 13624: #if TIME_WITH_SYS_TIME
! 13625: # include <sys/time.h>
! 13626: # include <time.h>
1.1 millert 13627: #else
1.25 ! millert 13628: # include <sys/time.h>
1.1 millert 13629: #endif
13630:
1.16 millert 13631: int
13632: main ()
13633: {
1.25 ! millert 13634: if ((struct timespec *) 0)
! 13635: return 0;
! 13636: if (sizeof (struct timespec))
! 13637: return 0;
1.9 millert 13638: ;
13639: return 0;
13640: }
13641: _ACEOF
1.25 ! millert 13642: rm -f conftest.$ac_objext
! 13643: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13644: (eval $ac_compile) 2>conftest.er1
1.9 millert 13645: ac_status=$?
1.25 ! millert 13646: grep -v '^ *+' conftest.er1 >conftest.err
! 13647: rm -f conftest.er1
! 13648: cat conftest.err >&5
1.16 millert 13649: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13650: (exit $ac_status); } &&
1.25 ! millert 13651: { ac_try='test -z "$ac_c_werror_flag"
! 13652: || test ! -s conftest.err'
! 13653: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13654: (eval $ac_try) 2>&5
! 13655: ac_status=$?
! 13656: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13657: (exit $ac_status); }; } &&
! 13658: { ac_try='test -s conftest.$ac_objext'
1.16 millert 13659: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13660: (eval $ac_try) 2>&5
13661: ac_status=$?
1.16 millert 13662: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13663: (exit $ac_status); }; }; then
1.25 ! millert 13664: ac_cv_type_struct_timespec=yes
1.9 millert 13665: else
13666: echo "$as_me: failed program was:" >&5
1.16 millert 13667: sed 's/^/| /' conftest.$ac_ext >&5
13668:
1.25 ! millert 13669: ac_cv_type_struct_timespec=no
1.9 millert 13670: fi
1.25 ! millert 13671: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 13672: fi
1.25 ! millert 13673: echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
! 13674: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
! 13675: if test $ac_cv_type_struct_timespec = yes; then
! 13676: cat >>confdefs.h <<\_ACEOF
! 13677: #define HAVE_TIMESPEC 1
1.16 millert 13678: _ACEOF
1.1 millert 13679:
1.25 ! millert 13680: fi
! 13681:
! 13682: echo "$as_me:$LINENO: checking for size_t" >&5
! 13683: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 13684: if test "${sudo_cv_type_size_t+set}" = set; then
! 13685: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13686: else
! 13687: cat >conftest.$ac_ext <<_ACEOF
! 13688: /* confdefs.h. */
! 13689: _ACEOF
! 13690: cat confdefs.h >>conftest.$ac_ext
! 13691: cat >>conftest.$ac_ext <<_ACEOF
! 13692: /* end confdefs.h. */
! 13693: #include <sys/types.h>
! 13694: #include <stdio.h>
! 13695: #if STDC_HEADERS
! 13696: #include <stdlib.h>
! 13697: #endif
! 13698: #if HAVE_UNISTD_H
! 13699: #include <unistd.h>
! 13700: #endif
! 13701: _ACEOF
! 13702: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 13703: $EGREP "size_t" >/dev/null 2>&1; then
! 13704: sudo_cv_type_size_t=yes
1.1 millert 13705: else
1.25 ! millert 13706: sudo_cv_type_size_t=no
! 13707: fi
! 13708: rm -f conftest*
! 13709:
! 13710: fi
! 13711: echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
! 13712: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
! 13713: if test $sudo_cv_type_size_t = no; then
! 13714:
! 13715: cat >>confdefs.h <<\_ACEOF
! 13716: #define size_t int
! 13717: _ACEOF
! 13718:
! 13719: fi
! 13720:
! 13721: echo "$as_me:$LINENO: checking for ssize_t" >&5
! 13722: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
! 13723: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9 millert 13724: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13725: else
1.25 ! millert 13726: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13727: /* confdefs.h. */
13728: _ACEOF
13729: cat confdefs.h >>conftest.$ac_ext
13730: cat >>conftest.$ac_ext <<_ACEOF
13731: /* end confdefs.h. */
1.25 ! millert 13732: #include <sys/types.h>
! 13733: #include <stdio.h>
! 13734: #if STDC_HEADERS
! 13735: #include <stdlib.h>
! 13736: #endif
! 13737: #if HAVE_UNISTD_H
! 13738: #include <unistd.h>
1.9 millert 13739: #endif
13740: _ACEOF
1.25 ! millert 13741: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 13742: $EGREP "ssize_t" >/dev/null 2>&1; then
! 13743: sudo_cv_type_ssize_t=yes
1.9 millert 13744: else
1.25 ! millert 13745: sudo_cv_type_ssize_t=no
! 13746: fi
! 13747: rm -f conftest*
1.16 millert 13748:
1.9 millert 13749: fi
1.25 ! millert 13750: echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
! 13751: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
! 13752: if test $sudo_cv_type_ssize_t = no; then
! 13753:
! 13754: cat >>confdefs.h <<\_ACEOF
! 13755: #define ssize_t int
! 13756: _ACEOF
! 13757:
1.9 millert 13758: fi
1.25 ! millert 13759:
! 13760: echo "$as_me:$LINENO: checking for dev_t" >&5
! 13761: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
! 13762: if test "${sudo_cv_type_dev_t+set}" = set; then
! 13763: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13764: else
! 13765: cat >conftest.$ac_ext <<_ACEOF
! 13766: /* confdefs.h. */
! 13767: _ACEOF
! 13768: cat confdefs.h >>conftest.$ac_ext
! 13769: cat >>conftest.$ac_ext <<_ACEOF
! 13770: /* end confdefs.h. */
! 13771: #include <sys/types.h>
! 13772: #include <stdio.h>
! 13773: #if STDC_HEADERS
! 13774: #include <stdlib.h>
! 13775: #endif
! 13776: #if HAVE_UNISTD_H
! 13777: #include <unistd.h>
! 13778: #endif
1.16 millert 13779: _ACEOF
1.25 ! millert 13780: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 13781: $EGREP "dev_t" >/dev/null 2>&1; then
! 13782: sudo_cv_type_dev_t=yes
! 13783: else
! 13784: sudo_cv_type_dev_t=no
1.1 millert 13785: fi
1.25 ! millert 13786: rm -f conftest*
1.1 millert 13787:
13788: fi
1.25 ! millert 13789: echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
! 13790: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
! 13791: if test $sudo_cv_type_dev_t = no; then
1.1 millert 13792:
1.25 ! millert 13793: cat >>confdefs.h <<\_ACEOF
! 13794: #define dev_t int
! 13795: _ACEOF
1.1 millert 13796:
1.25 ! millert 13797: fi
1.1 millert 13798:
1.25 ! millert 13799: echo "$as_me:$LINENO: checking for ino_t" >&5
! 13800: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
! 13801: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9 millert 13802: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13803: else
1.25 ! millert 13804: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13805: /* confdefs.h. */
13806: _ACEOF
13807: cat confdefs.h >>conftest.$ac_ext
13808: cat >>conftest.$ac_ext <<_ACEOF
13809: /* end confdefs.h. */
1.25 ! millert 13810: #include <sys/types.h>
! 13811: #include <stdio.h>
! 13812: #if STDC_HEADERS
! 13813: #include <stdlib.h>
! 13814: #endif
! 13815: #if HAVE_UNISTD_H
! 13816: #include <unistd.h>
1.9 millert 13817: #endif
13818: _ACEOF
1.25 ! millert 13819: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 13820: $EGREP "ino_t" >/dev/null 2>&1; then
! 13821: sudo_cv_type_ino_t=yes
1.9 millert 13822: else
1.25 ! millert 13823: sudo_cv_type_ino_t=no
! 13824: fi
! 13825: rm -f conftest*
1.16 millert 13826:
1.9 millert 13827: fi
1.25 ! millert 13828: echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
! 13829: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
! 13830: if test $sudo_cv_type_ino_t = no; then
! 13831:
! 13832: cat >>confdefs.h <<\_ACEOF
! 13833: #define ino_t unsigned int
1.16 millert 13834: _ACEOF
1.25 ! millert 13835:
1.1 millert 13836: fi
13837:
1.25 ! millert 13838: echo "$as_me:$LINENO: checking for full void implementation" >&5
! 13839: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
1.9 millert 13840: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13841: /* confdefs.h. */
13842: _ACEOF
13843: cat confdefs.h >>conftest.$ac_ext
13844: cat >>conftest.$ac_ext <<_ACEOF
13845: /* end confdefs.h. */
1.9 millert 13846:
13847: int
13848: main ()
13849: {
1.25 ! millert 13850: void *foo;
! 13851: foo = (void *)0; (void *)"test";
1.9 millert 13852: ;
13853: return 0;
13854: }
13855: _ACEOF
1.25 ! millert 13856: rm -f conftest.$ac_objext
! 13857: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13858: (eval $ac_compile) 2>conftest.er1
1.9 millert 13859: ac_status=$?
1.25 ! millert 13860: grep -v '^ *+' conftest.er1 >conftest.err
! 13861: rm -f conftest.er1
! 13862: cat conftest.err >&5
1.16 millert 13863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13864: (exit $ac_status); } &&
1.25 ! millert 13865: { ac_try='test -z "$ac_c_werror_flag"
! 13866: || test ! -s conftest.err'
! 13867: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13868: (eval $ac_try) 2>&5
! 13869: ac_status=$?
! 13870: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13871: (exit $ac_status); }; } &&
! 13872: { ac_try='test -s conftest.$ac_objext'
1.16 millert 13873: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13874: (eval $ac_try) 2>&5
13875: ac_status=$?
1.16 millert 13876: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13877: (exit $ac_status); }; }; then
1.25 ! millert 13878:
! 13879: cat >>confdefs.h <<\_ACEOF
! 13880: #define VOID void
! 13881: _ACEOF
! 13882:
! 13883: echo "$as_me:$LINENO: result: yes" >&5
! 13884: echo "${ECHO_T}yes" >&6
1.9 millert 13885: else
13886: echo "$as_me: failed program was:" >&5
1.16 millert 13887: sed 's/^/| /' conftest.$ac_ext >&5
13888:
1.25 ! millert 13889: cat >>confdefs.h <<\_ACEOF
! 13890: #define VOID char
1.16 millert 13891: _ACEOF
1.25 ! millert 13892:
! 13893: echo "$as_me:$LINENO: result: no" >&5
! 13894: echo "${ECHO_T}no" >&6
1.1 millert 13895: fi
1.25 ! millert 13896: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 millert 13897:
1.25 ! millert 13898: echo "$as_me:$LINENO: checking max length of uid_t" >&5
! 13899: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
! 13900: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9 millert 13901: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13902: else
1.25 ! millert 13903: rm -f conftestdata
! 13904: if test "$cross_compiling" = yes; then
! 13905: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 13906: See \`config.log' for more details." >&5
! 13907: echo "$as_me: error: cannot run test program while cross compiling
! 13908: See \`config.log' for more details." >&2;}
! 13909: { (exit 1); exit 1; }; }
! 13910: else
! 13911: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13912: /* confdefs.h. */
13913: _ACEOF
13914: cat confdefs.h >>conftest.$ac_ext
13915: cat >>conftest.$ac_ext <<_ACEOF
13916: /* end confdefs.h. */
1.25 ! millert 13917: #include <stdio.h>
! 13918: #include <pwd.h>
! 13919: #include <limits.h>
! 13920: #include <sys/types.h>
! 13921: #include <sys/param.h>
! 13922: main() {
! 13923: FILE *f;
! 13924: char b[1024];
! 13925: uid_t u = (uid_t) -1;
1.9 millert 13926:
1.25 ! millert 13927: if ((f = fopen("conftestdata", "w")) == NULL)
! 13928: exit(1);
! 13929:
! 13930: (void) sprintf(b, "%lu", (unsigned long) u);
! 13931: (void) fprintf(f, "%d\n", strlen(b));
! 13932: (void) fclose(f);
! 13933: exit(0);
1.9 millert 13934: }
13935: _ACEOF
1.25 ! millert 13936: rm -f conftest$ac_exeext
1.16 millert 13937: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 13938: (eval $ac_link) 2>&5
13939: ac_status=$?
1.16 millert 13940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 13941: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 13942: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 13943: (eval $ac_try) 2>&5
13944: ac_status=$?
1.16 millert 13945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 13946: (exit $ac_status); }; }; then
1.25 ! millert 13947: sudo_cv_uid_t_len=`cat conftestdata`
1.9 millert 13948: else
1.25 ! millert 13949: echo "$as_me: program exited with status $ac_status" >&5
! 13950: echo "$as_me: failed program was:" >&5
1.16 millert 13951: sed 's/^/| /' conftest.$ac_ext >&5
13952:
1.25 ! millert 13953: ( exit $ac_status )
! 13954: sudo_cv_uid_t_len=10
1.9 millert 13955: fi
1.25 ! millert 13956: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 13957: fi
! 13958:
1.9 millert 13959: fi
1.25 ! millert 13960:
! 13961: rm -f conftestdata
! 13962: echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
! 13963: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
! 13964:
! 13965: cat >>confdefs.h <<_ACEOF
! 13966: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
1.16 millert 13967: _ACEOF
1.1 millert 13968:
1.25 ! millert 13969:
! 13970: echo "$as_me:$LINENO: checking for long long" >&5
! 13971: echo $ECHO_N "checking for long long... $ECHO_C" >&6
! 13972: if test "${ac_cv_type_long_long+set}" = set; then
1.9 millert 13973: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13974: else
1.25 ! millert 13975: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13976: /* confdefs.h. */
13977: _ACEOF
13978: cat confdefs.h >>conftest.$ac_ext
13979: cat >>conftest.$ac_ext <<_ACEOF
13980: /* end confdefs.h. */
1.25 ! millert 13981: $ac_includes_default
1.9 millert 13982: int
13983: main ()
13984: {
1.25 ! millert 13985: if ((long long *) 0)
! 13986: return 0;
! 13987: if (sizeof (long long))
! 13988: return 0;
1.9 millert 13989: ;
13990: return 0;
13991: }
13992: _ACEOF
1.25 ! millert 13993: rm -f conftest.$ac_objext
! 13994: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 13995: (eval $ac_compile) 2>conftest.er1
1.9 millert 13996: ac_status=$?
1.25 ! millert 13997: grep -v '^ *+' conftest.er1 >conftest.err
! 13998: rm -f conftest.er1
! 13999: cat conftest.err >&5
1.16 millert 14000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14001: (exit $ac_status); } &&
1.25 ! millert 14002: { ac_try='test -z "$ac_c_werror_flag"
! 14003: || test ! -s conftest.err'
! 14004: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14005: (eval $ac_try) 2>&5
! 14006: ac_status=$?
! 14007: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14008: (exit $ac_status); }; } &&
! 14009: { ac_try='test -s conftest.$ac_objext'
1.16 millert 14010: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14011: (eval $ac_try) 2>&5
14012: ac_status=$?
1.16 millert 14013: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14014: (exit $ac_status); }; }; then
1.25 ! millert 14015: ac_cv_type_long_long=yes
1.9 millert 14016: else
14017: echo "$as_me: failed program was:" >&5
1.16 millert 14018: sed 's/^/| /' conftest.$ac_ext >&5
14019:
1.25 ! millert 14020: ac_cv_type_long_long=no
1.9 millert 14021: fi
1.25 ! millert 14022: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14023: fi
1.25 ! millert 14024: echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
! 14025: echo "${ECHO_T}$ac_cv_type_long_long" >&6
! 14026: if test $ac_cv_type_long_long = yes; then
! 14027:
! 14028: cat >>confdefs.h <<_ACEOF
! 14029: #define HAVE_LONG_LONG 1
! 14030: _ACEOF
! 14031:
! 14032:
! 14033: cat >>confdefs.h <<\_ACEOF
! 14034: #define HAVE_LONG_LONG 1
1.16 millert 14035: _ACEOF
1.1 millert 14036:
1.25 ! millert 14037: echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
! 14038: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6
! 14039: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9 millert 14040: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14041: else
1.25 ! millert 14042: if test "$cross_compiling" = yes; then
! 14043: sudo_cv_type_long_is_quad=no
! 14044: else
! 14045: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14046: /* confdefs.h. */
14047: _ACEOF
14048: cat confdefs.h >>conftest.$ac_ext
14049: cat >>conftest.$ac_ext <<_ACEOF
14050: /* end confdefs.h. */
1.9 millert 14051:
1.25 ! millert 14052: main() {
! 14053: if (sizeof(long long) == sizeof(long)) exit(0);
! 14054: else exit(1);
1.9 millert 14055: }
14056: _ACEOF
1.25 ! millert 14057: rm -f conftest$ac_exeext
1.16 millert 14058: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 14059: (eval $ac_link) 2>&5
14060: ac_status=$?
1.16 millert 14061: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 14062: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 14063: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14064: (eval $ac_try) 2>&5
14065: ac_status=$?
1.16 millert 14066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14067: (exit $ac_status); }; }; then
1.25 ! millert 14068: sudo_cv_type_long_is_quad=yes
1.9 millert 14069: else
1.25 ! millert 14070: echo "$as_me: program exited with status $ac_status" >&5
! 14071: echo "$as_me: failed program was:" >&5
1.16 millert 14072: sed 's/^/| /' conftest.$ac_ext >&5
14073:
1.25 ! millert 14074: ( exit $ac_status )
! 14075: sudo_cv_type_long_is_quad=no
! 14076: fi
! 14077: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 14078: fi
1.25 ! millert 14079: rm -f core core.* *.core
1.9 millert 14080: fi
1.25 ! millert 14081: echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
! 14082: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6
! 14083: if test $sudo_cv_type_long_is_quad = yes; then
! 14084:
! 14085: cat >>confdefs.h <<\_ACEOF
! 14086: #define LONG_IS_QUAD 1
1.16 millert 14087: _ACEOF
1.25 ! millert 14088:
! 14089: fi
! 14090:
1.1 millert 14091: fi
14092:
1.25 ! millert 14093: echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
! 14094: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
! 14095: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9 millert 14096: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14097: else
1.25 ! millert 14098: if test "$cross_compiling" = yes; then
! 14099: sudo_cv_sock_sa_len=no
! 14100: else
! 14101: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14102: /* confdefs.h. */
14103: _ACEOF
14104: cat confdefs.h >>conftest.$ac_ext
14105: cat >>conftest.$ac_ext <<_ACEOF
14106: /* end confdefs.h. */
1.25 ! millert 14107: #include <sys/types.h>
! 14108: #include <sys/socket.h>
! 14109: main() {
! 14110: struct sockaddr s;
! 14111: s.sa_len = 0;
! 14112: exit(0);
1.9 millert 14113: }
14114: _ACEOF
1.25 ! millert 14115: rm -f conftest$ac_exeext
1.16 millert 14116: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 14117: (eval $ac_link) 2>&5
14118: ac_status=$?
1.16 millert 14119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 14120: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 14121: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14122: (eval $ac_try) 2>&5
14123: ac_status=$?
1.16 millert 14124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14125: (exit $ac_status); }; }; then
1.25 ! millert 14126: sudo_cv_sock_sa_len=yes
1.9 millert 14127: else
1.25 ! millert 14128: echo "$as_me: program exited with status $ac_status" >&5
! 14129: echo "$as_me: failed program was:" >&5
1.16 millert 14130: sed 's/^/| /' conftest.$ac_ext >&5
14131:
1.25 ! millert 14132: ( exit $ac_status )
! 14133: sudo_cv_sock_sa_len=no
! 14134: fi
! 14135: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 14136: fi
1.25 ! millert 14137: rm -f core core.* *.core
1.9 millert 14138: fi
1.25 ! millert 14139: echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
! 14140: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
! 14141: if test $sudo_cv_sock_sa_len = yes; then
! 14142:
! 14143: cat >>confdefs.h <<\_ACEOF
! 14144: #define HAVE_SA_LEN 1
1.16 millert 14145: _ACEOF
1.25 ! millert 14146:
1.1 millert 14147: fi
14148:
1.25 ! millert 14149: case "$DEFS" in
! 14150: *"RETSIGTYPE"*) ;;
! 14151: *) echo "$as_me:$LINENO: checking return type of signal handlers" >&5
! 14152: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
! 14153: if test "${ac_cv_type_signal+set}" = set; then
1.9 millert 14154: echo $ECHO_N "(cached) $ECHO_C" >&6
14155: else
1.25 ! millert 14156: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14157: /* confdefs.h. */
14158: _ACEOF
14159: cat confdefs.h >>conftest.$ac_ext
14160: cat >>conftest.$ac_ext <<_ACEOF
14161: /* end confdefs.h. */
1.25 ! millert 14162: #include <sys/types.h>
! 14163: #include <signal.h>
! 14164: #ifdef signal
! 14165: # undef signal
! 14166: #endif
1.9 millert 14167: #ifdef __cplusplus
1.25 ! millert 14168: extern "C" void (*signal (int, void (*)(int)))(int);
! 14169: #else
! 14170: void (*signal ()) ();
1.9 millert 14171: #endif
1.25 ! millert 14172:
1.9 millert 14173: int
14174: main ()
14175: {
1.25 ! millert 14176: int i;
1.9 millert 14177: ;
14178: return 0;
14179: }
14180: _ACEOF
1.25 ! millert 14181: rm -f conftest.$ac_objext
! 14182: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 14183: (eval $ac_compile) 2>conftest.er1
1.9 millert 14184: ac_status=$?
1.25 ! millert 14185: grep -v '^ *+' conftest.er1 >conftest.err
! 14186: rm -f conftest.er1
! 14187: cat conftest.err >&5
1.16 millert 14188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14189: (exit $ac_status); } &&
1.25 ! millert 14190: { ac_try='test -z "$ac_c_werror_flag"
! 14191: || test ! -s conftest.err'
! 14192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14193: (eval $ac_try) 2>&5
! 14194: ac_status=$?
! 14195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14196: (exit $ac_status); }; } &&
! 14197: { ac_try='test -s conftest.$ac_objext'
1.16 millert 14198: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14199: (eval $ac_try) 2>&5
14200: ac_status=$?
1.16 millert 14201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14202: (exit $ac_status); }; }; then
1.25 ! millert 14203: ac_cv_type_signal=void
1.9 millert 14204: else
14205: echo "$as_me: failed program was:" >&5
1.16 millert 14206: sed 's/^/| /' conftest.$ac_ext >&5
14207:
1.25 ! millert 14208: ac_cv_type_signal=int
1.9 millert 14209: fi
1.25 ! millert 14210: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14211: fi
1.25 ! millert 14212: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
! 14213: echo "${ECHO_T}$ac_cv_type_signal" >&6
! 14214:
! 14215: cat >>confdefs.h <<_ACEOF
! 14216: #define RETSIGTYPE $ac_cv_type_signal
1.16 millert 14217: _ACEOF
1.9 millert 14218:
1.25 ! millert 14219: ;;
1.1 millert 14220: esac
14221:
1.6 millert 14222:
1.17 millert 14223:
14224:
14225:
1.9 millert 14226:
1.25 ! millert 14227:
! 14228:
! 14229:
! 14230:
! 14231:
! 14232:
! 14233:
! 14234:
! 14235: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
! 14236: strftime setrlimit initgroups getgroups fstat gettimeofday \
! 14237: setlocale
1.9 millert 14238: do
14239: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 14240: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 14241: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14242: if eval "test \"\${$as_ac_var+set}\" = set"; then
14243: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14244: else
1.9 millert 14245: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14246: /* confdefs.h. */
14247: _ACEOF
14248: cat confdefs.h >>conftest.$ac_ext
14249: cat >>conftest.$ac_ext <<_ACEOF
14250: /* end confdefs.h. */
1.25 ! millert 14251: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14252: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14253: #define $ac_func innocuous_$ac_func
! 14254:
1.1 millert 14255: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 14256: which can conflict with char $ac_func (); below.
14257: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14258: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 14259:
1.16 millert 14260: #ifdef __STDC__
14261: # include <limits.h>
14262: #else
14263: # include <assert.h>
1.25 ! millert 14264: #endif
! 14265:
! 14266: #undef $ac_func
! 14267:
1.1 millert 14268: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 14269: #ifdef __cplusplus
14270: extern "C"
1.16 millert 14271: {
1.9 millert 14272: #endif
1.1 millert 14273: /* We use char because int might match the return type of a gcc2
1.9 millert 14274: builtin and then its argument prototype would still apply. */
14275: char $ac_func ();
1.1 millert 14276: /* The GNU C library defines this for functions which it implements
14277: to always fail with ENOSYS. Some functions are actually named
14278: something starting with __ and the normal name is an alias. */
1.9 millert 14279: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 14280: choke me
14281: #else
1.16 millert 14282: char (*f) () = $ac_func;
14283: #endif
14284: #ifdef __cplusplus
14285: }
1.1 millert 14286: #endif
14287:
1.16 millert 14288: int
14289: main ()
14290: {
14291: return f != $ac_func;
1.9 millert 14292: ;
14293: return 0;
14294: }
14295: _ACEOF
14296: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 14297: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 14298: (eval $ac_link) 2>conftest.er1
1.9 millert 14299: ac_status=$?
1.25 ! millert 14300: grep -v '^ *+' conftest.er1 >conftest.err
! 14301: rm -f conftest.er1
! 14302: cat conftest.err >&5
1.16 millert 14303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14304: (exit $ac_status); } &&
1.25 ! millert 14305: { ac_try='test -z "$ac_c_werror_flag"
! 14306: || test ! -s conftest.err'
! 14307: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14308: (eval $ac_try) 2>&5
! 14309: ac_status=$?
! 14310: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14311: (exit $ac_status); }; } &&
! 14312: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14313: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14314: (eval $ac_try) 2>&5
14315: ac_status=$?
1.16 millert 14316: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14317: (exit $ac_status); }; }; then
14318: eval "$as_ac_var=yes"
14319: else
14320: echo "$as_me: failed program was:" >&5
1.16 millert 14321: sed 's/^/| /' conftest.$ac_ext >&5
14322:
1.9 millert 14323: eval "$as_ac_var=no"
14324: fi
1.25 ! millert 14325: rm -f conftest.err conftest.$ac_objext \
! 14326: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14327: fi
1.16 millert 14328: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 14329: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14330: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 14331: cat >>confdefs.h <<_ACEOF
1.9 millert 14332: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 14333: _ACEOF
1.25 ! millert 14334:
! 14335: fi
! 14336: done
! 14337:
! 14338: if test -z "$SKIP_SETRESUID"; then
! 14339:
! 14340: for ac_func in setresuid
! 14341: do
! 14342: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 14343: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14344: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 14345: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 14346: echo $ECHO_N "(cached) $ECHO_C" >&6
14347: else
1.25 ! millert 14348: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14349: /* confdefs.h. */
14350: _ACEOF
14351: cat confdefs.h >>conftest.$ac_ext
14352: cat >>conftest.$ac_ext <<_ACEOF
14353: /* end confdefs.h. */
1.25 ! millert 14354: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14355: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14356: #define $ac_func innocuous_$ac_func
! 14357:
! 14358: /* System header to define __stub macros and hopefully few prototypes,
! 14359: which can conflict with char $ac_func (); below.
! 14360: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 14361: <limits.h> exists even on freestanding compilers. */
! 14362:
! 14363: #ifdef __STDC__
! 14364: # include <limits.h>
! 14365: #else
! 14366: # include <assert.h>
! 14367: #endif
! 14368:
! 14369: #undef $ac_func
1.9 millert 14370:
14371: /* Override any gcc2 internal prototype to avoid an error. */
14372: #ifdef __cplusplus
14373: extern "C"
1.25 ! millert 14374: {
1.9 millert 14375: #endif
14376: /* We use char because int might match the return type of a gcc2
14377: builtin and then its argument prototype would still apply. */
1.25 ! millert 14378: char $ac_func ();
! 14379: /* The GNU C library defines this for functions which it implements
! 14380: to always fail with ENOSYS. Some functions are actually named
! 14381: something starting with __ and the normal name is an alias. */
! 14382: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 14383: choke me
! 14384: #else
! 14385: char (*f) () = $ac_func;
! 14386: #endif
! 14387: #ifdef __cplusplus
! 14388: }
! 14389: #endif
! 14390:
1.9 millert 14391: int
14392: main ()
14393: {
1.25 ! millert 14394: return f != $ac_func;
1.9 millert 14395: ;
14396: return 0;
14397: }
14398: _ACEOF
14399: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 14400: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 14401: (eval $ac_link) 2>conftest.er1
1.9 millert 14402: ac_status=$?
1.25 ! millert 14403: grep -v '^ *+' conftest.er1 >conftest.err
! 14404: rm -f conftest.er1
! 14405: cat conftest.err >&5
1.16 millert 14406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14407: (exit $ac_status); } &&
1.25 ! millert 14408: { ac_try='test -z "$ac_c_werror_flag"
! 14409: || test ! -s conftest.err'
! 14410: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14411: (eval $ac_try) 2>&5
! 14412: ac_status=$?
! 14413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14414: (exit $ac_status); }; } &&
! 14415: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14416: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14417: (eval $ac_try) 2>&5
14418: ac_status=$?
1.16 millert 14419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14420: (exit $ac_status); }; }; then
1.25 ! millert 14421: eval "$as_ac_var=yes"
1.9 millert 14422: else
14423: echo "$as_me: failed program was:" >&5
1.16 millert 14424: sed 's/^/| /' conftest.$ac_ext >&5
14425:
1.25 ! millert 14426: eval "$as_ac_var=no"
1.9 millert 14427: fi
1.25 ! millert 14428: rm -f conftest.err conftest.$ac_objext \
! 14429: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14430: fi
1.25 ! millert 14431: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 14432: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 14433: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 14434: cat >>confdefs.h <<_ACEOF
! 14435: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 14436: _ACEOF
1.25 ! millert 14437: SKIP_SETREUID=yes
1.9 millert 14438: fi
1.25 ! millert 14439: done
1.9 millert 14440:
1.1 millert 14441: fi
1.25 ! millert 14442: if test -z "$SKIP_SETREUID"; then
1.1 millert 14443:
1.25 ! millert 14444: for ac_func in setreuid
! 14445: do
! 14446: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 14447: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14448: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 14449: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 14450: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14451: else
1.9 millert 14452: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14453: /* confdefs.h. */
14454: _ACEOF
14455: cat confdefs.h >>conftest.$ac_ext
14456: cat >>conftest.$ac_ext <<_ACEOF
14457: /* end confdefs.h. */
1.25 ! millert 14458: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14459: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14460: #define $ac_func innocuous_$ac_func
! 14461:
1.1 millert 14462: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 14463: which can conflict with char $ac_func (); below.
1.16 millert 14464: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14465: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 14466:
1.16 millert 14467: #ifdef __STDC__
14468: # include <limits.h>
14469: #else
14470: # include <assert.h>
14471: #endif
1.25 ! millert 14472:
! 14473: #undef $ac_func
! 14474:
1.1 millert 14475: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 14476: #ifdef __cplusplus
14477: extern "C"
1.16 millert 14478: {
1.9 millert 14479: #endif
1.1 millert 14480: /* We use char because int might match the return type of a gcc2
1.9 millert 14481: builtin and then its argument prototype would still apply. */
1.25 ! millert 14482: char $ac_func ();
1.1 millert 14483: /* The GNU C library defines this for functions which it implements
14484: to always fail with ENOSYS. Some functions are actually named
14485: something starting with __ and the normal name is an alias. */
1.25 ! millert 14486: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 14487: choke me
14488: #else
1.25 ! millert 14489: char (*f) () = $ac_func;
1.16 millert 14490: #endif
14491: #ifdef __cplusplus
14492: }
1.1 millert 14493: #endif
14494:
1.16 millert 14495: int
14496: main ()
14497: {
1.25 ! millert 14498: return f != $ac_func;
1.9 millert 14499: ;
14500: return 0;
14501: }
14502: _ACEOF
14503: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 14504: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 14505: (eval $ac_link) 2>conftest.er1
1.9 millert 14506: ac_status=$?
1.25 ! millert 14507: grep -v '^ *+' conftest.er1 >conftest.err
! 14508: rm -f conftest.er1
! 14509: cat conftest.err >&5
1.16 millert 14510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14511: (exit $ac_status); } &&
1.25 ! millert 14512: { ac_try='test -z "$ac_c_werror_flag"
! 14513: || test ! -s conftest.err'
1.16 millert 14514: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14515: (eval $ac_try) 2>&5
14516: ac_status=$?
1.16 millert 14517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 14518: (exit $ac_status); }; } &&
! 14519: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14520: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14521: (eval $ac_try) 2>&5
14522: ac_status=$?
1.16 millert 14523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14524: (exit $ac_status); }; }; then
1.25 ! millert 14525: eval "$as_ac_var=yes"
1.9 millert 14526: else
14527: echo "$as_me: failed program was:" >&5
1.16 millert 14528: sed 's/^/| /' conftest.$ac_ext >&5
14529:
1.25 ! millert 14530: eval "$as_ac_var=no"
1.9 millert 14531: fi
1.25 ! millert 14532: rm -f conftest.err conftest.$ac_objext \
! 14533: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14534: fi
1.25 ! millert 14535: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 14536: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 14537: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 14538: cat >>confdefs.h <<_ACEOF
! 14539: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 14540: _ACEOF
1.25 ! millert 14541: SKIP_SETEUID=yes
! 14542: fi
! 14543: done
! 14544:
! 14545: fi
! 14546: if test -z "$SKIP_SETEUID"; then
! 14547:
! 14548: for ac_func in seteuid
! 14549: do
! 14550: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 14551: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14552: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 14553: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 14554: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14555: else
1.25 ! millert 14556: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14557: /* confdefs.h. */
14558: _ACEOF
14559: cat confdefs.h >>conftest.$ac_ext
14560: cat >>conftest.$ac_ext <<_ACEOF
14561: /* end confdefs.h. */
1.25 ! millert 14562: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14563: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14564: #define $ac_func innocuous_$ac_func
! 14565:
! 14566: /* System header to define __stub macros and hopefully few prototypes,
! 14567: which can conflict with char $ac_func (); below.
! 14568: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 14569: <limits.h> exists even on freestanding compilers. */
1.9 millert 14570:
1.25 ! millert 14571: #ifdef __STDC__
! 14572: # include <limits.h>
! 14573: #else
! 14574: # include <assert.h>
1.9 millert 14575: #endif
1.16 millert 14576:
1.25 ! millert 14577: #undef $ac_func
1.9 millert 14578:
1.1 millert 14579: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 14580: #ifdef __cplusplus
14581: extern "C"
1.25 ! millert 14582: {
1.9 millert 14583: #endif
1.1 millert 14584: /* We use char because int might match the return type of a gcc2
1.9 millert 14585: builtin and then its argument prototype would still apply. */
1.25 ! millert 14586: char $ac_func ();
! 14587: /* The GNU C library defines this for functions which it implements
! 14588: to always fail with ENOSYS. Some functions are actually named
! 14589: something starting with __ and the normal name is an alias. */
! 14590: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 14591: choke me
! 14592: #else
! 14593: char (*f) () = $ac_func;
! 14594: #endif
! 14595: #ifdef __cplusplus
! 14596: }
! 14597: #endif
! 14598:
1.9 millert 14599: int
14600: main ()
14601: {
1.25 ! millert 14602: return f != $ac_func;
1.9 millert 14603: ;
14604: return 0;
14605: }
14606: _ACEOF
14607: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 14608: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 14609: (eval $ac_link) 2>conftest.er1
1.9 millert 14610: ac_status=$?
1.25 ! millert 14611: grep -v '^ *+' conftest.er1 >conftest.err
! 14612: rm -f conftest.er1
! 14613: cat conftest.err >&5
1.16 millert 14614: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14615: (exit $ac_status); } &&
1.25 ! millert 14616: { ac_try='test -z "$ac_c_werror_flag"
! 14617: || test ! -s conftest.err'
! 14618: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14619: (eval $ac_try) 2>&5
! 14620: ac_status=$?
! 14621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14622: (exit $ac_status); }; } &&
! 14623: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14625: (eval $ac_try) 2>&5
14626: ac_status=$?
1.16 millert 14627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14628: (exit $ac_status); }; }; then
1.25 ! millert 14629: eval "$as_ac_var=yes"
1.9 millert 14630: else
14631: echo "$as_me: failed program was:" >&5
1.16 millert 14632: sed 's/^/| /' conftest.$ac_ext >&5
14633:
1.25 ! millert 14634: eval "$as_ac_var=no"
1.9 millert 14635: fi
1.25 ! millert 14636: rm -f conftest.err conftest.$ac_objext \
! 14637: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14638: fi
1.25 ! millert 14639: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 14640: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 14641: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 14642: cat >>confdefs.h <<_ACEOF
! 14643: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 14644: _ACEOF
1.1 millert 14645:
14646: fi
1.25 ! millert 14647: done
1.1 millert 14648:
14649: fi
1.25 ! millert 14650: if test X"$with_interfaces" != X"no"; then
1.1 millert 14651:
1.25 ! millert 14652: for ac_func in getifaddrs
! 14653: do
! 14654: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 14655: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14656: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 14657: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 14658: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14659: else
1.9 millert 14660: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14661: /* confdefs.h. */
14662: _ACEOF
14663: cat confdefs.h >>conftest.$ac_ext
14664: cat >>conftest.$ac_ext <<_ACEOF
14665: /* end confdefs.h. */
1.25 ! millert 14666: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14667: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14668: #define $ac_func innocuous_$ac_func
1.1 millert 14669:
1.25 ! millert 14670: /* System header to define __stub macros and hopefully few prototypes,
! 14671: which can conflict with char $ac_func (); below.
! 14672: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 14673: <limits.h> exists even on freestanding compilers. */
1.16 millert 14674:
1.25 ! millert 14675: #ifdef __STDC__
! 14676: # include <limits.h>
! 14677: #else
! 14678: # include <assert.h>
! 14679: #endif
1.1 millert 14680:
1.25 ! millert 14681: #undef $ac_func
1.1 millert 14682:
1.25 ! millert 14683: /* Override any gcc2 internal prototype to avoid an error. */
! 14684: #ifdef __cplusplus
! 14685: extern "C"
! 14686: {
! 14687: #endif
! 14688: /* We use char because int might match the return type of a gcc2
! 14689: builtin and then its argument prototype would still apply. */
! 14690: char $ac_func ();
! 14691: /* The GNU C library defines this for functions which it implements
! 14692: to always fail with ENOSYS. Some functions are actually named
! 14693: something starting with __ and the normal name is an alias. */
! 14694: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 14695: choke me
! 14696: #else
! 14697: char (*f) () = $ac_func;
! 14698: #endif
! 14699: #ifdef __cplusplus
! 14700: }
! 14701: #endif
1.9 millert 14702:
14703: int
14704: main ()
14705: {
1.25 ! millert 14706: return f != $ac_func;
1.9 millert 14707: ;
14708: return 0;
1.1 millert 14709: }
1.9 millert 14710: _ACEOF
1.25 ! millert 14711: rm -f conftest.$ac_objext conftest$ac_exeext
! 14712: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 14713: (eval $ac_link) 2>conftest.er1
1.9 millert 14714: ac_status=$?
1.25 ! millert 14715: grep -v '^ *+' conftest.er1 >conftest.err
! 14716: rm -f conftest.er1
! 14717: cat conftest.err >&5
1.16 millert 14718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14719: (exit $ac_status); } &&
1.25 ! millert 14720: { ac_try='test -z "$ac_c_werror_flag"
! 14721: || test ! -s conftest.err'
! 14722: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14723: (eval $ac_try) 2>&5
! 14724: ac_status=$?
! 14725: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14726: (exit $ac_status); }; } &&
! 14727: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14728: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14729: (eval $ac_try) 2>&5
14730: ac_status=$?
1.16 millert 14731: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14732: (exit $ac_status); }; }; then
1.25 ! millert 14733: eval "$as_ac_var=yes"
1.1 millert 14734: else
1.9 millert 14735: echo "$as_me: failed program was:" >&5
1.16 millert 14736: sed 's/^/| /' conftest.$ac_ext >&5
14737:
1.25 ! millert 14738: eval "$as_ac_var=no"
1.9 millert 14739: fi
1.25 ! millert 14740: rm -f conftest.err conftest.$ac_objext \
! 14741: conftest$ac_exeext conftest.$ac_ext
1.1 millert 14742: fi
1.25 ! millert 14743: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 14744: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 14745: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 14746: cat >>confdefs.h <<_ACEOF
! 14747: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 14748: _ACEOF
! 14749:
! 14750: for ac_func in freeifaddrs
! 14751: do
! 14752: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 14753: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14754: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 14755: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 14756: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14757: else
! 14758: cat >conftest.$ac_ext <<_ACEOF
! 14759: /* confdefs.h. */
! 14760: _ACEOF
! 14761: cat confdefs.h >>conftest.$ac_ext
! 14762: cat >>conftest.$ac_ext <<_ACEOF
! 14763: /* end confdefs.h. */
! 14764: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14765: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14766: #define $ac_func innocuous_$ac_func
! 14767:
! 14768: /* System header to define __stub macros and hopefully few prototypes,
! 14769: which can conflict with char $ac_func (); below.
! 14770: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 14771: <limits.h> exists even on freestanding compilers. */
! 14772:
! 14773: #ifdef __STDC__
! 14774: # include <limits.h>
! 14775: #else
! 14776: # include <assert.h>
! 14777: #endif
! 14778:
! 14779: #undef $ac_func
! 14780:
! 14781: /* Override any gcc2 internal prototype to avoid an error. */
! 14782: #ifdef __cplusplus
! 14783: extern "C"
! 14784: {
! 14785: #endif
! 14786: /* We use char because int might match the return type of a gcc2
! 14787: builtin and then its argument prototype would still apply. */
! 14788: char $ac_func ();
! 14789: /* The GNU C library defines this for functions which it implements
! 14790: to always fail with ENOSYS. Some functions are actually named
! 14791: something starting with __ and the normal name is an alias. */
! 14792: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 14793: choke me
! 14794: #else
! 14795: char (*f) () = $ac_func;
! 14796: #endif
! 14797: #ifdef __cplusplus
! 14798: }
! 14799: #endif
1.9 millert 14800:
14801: int
14802: main ()
14803: {
1.25 ! millert 14804: return f != $ac_func;
1.9 millert 14805: ;
14806: return 0;
14807: }
14808: _ACEOF
1.25 ! millert 14809: rm -f conftest.$ac_objext conftest$ac_exeext
! 14810: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 14811: (eval $ac_link) 2>conftest.er1
1.9 millert 14812: ac_status=$?
1.25 ! millert 14813: grep -v '^ *+' conftest.er1 >conftest.err
! 14814: rm -f conftest.er1
! 14815: cat conftest.err >&5
1.16 millert 14816: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14817: (exit $ac_status); } &&
1.25 ! millert 14818: { ac_try='test -z "$ac_c_werror_flag"
! 14819: || test ! -s conftest.err'
! 14820: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14821: (eval $ac_try) 2>&5
! 14822: ac_status=$?
! 14823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14824: (exit $ac_status); }; } &&
! 14825: { ac_try='test -s conftest$ac_exeext'
1.16 millert 14826: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 14827: (eval $ac_try) 2>&5
14828: ac_status=$?
1.16 millert 14829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14830: (exit $ac_status); }; }; then
1.25 ! millert 14831: eval "$as_ac_var=yes"
1.9 millert 14832: else
14833: echo "$as_me: failed program was:" >&5
1.16 millert 14834: sed 's/^/| /' conftest.$ac_ext >&5
14835:
1.25 ! millert 14836: eval "$as_ac_var=no"
1.9 millert 14837: fi
1.25 ! millert 14838: rm -f conftest.err conftest.$ac_objext \
! 14839: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14840: fi
1.25 ! millert 14841: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 14842: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 14843: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 14844: cat >>confdefs.h <<_ACEOF
! 14845: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 14846: _ACEOF
1.1 millert 14847:
14848: fi
1.9 millert 14849: done
14850:
1.1 millert 14851: fi
14852: done
14853:
14854: fi
1.25 ! millert 14855: if test -z "$BROKEN_GETCWD"; then
1.1 millert 14856:
1.25 ! millert 14857: for ac_func in getcwd
! 14858: do
! 14859: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 14860: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14861: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 14862: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 14863: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14864: else
1.25 ! millert 14865: cat >conftest.$ac_ext <<_ACEOF
! 14866: /* confdefs.h. */
! 14867: _ACEOF
! 14868: cat confdefs.h >>conftest.$ac_ext
! 14869: cat >>conftest.$ac_ext <<_ACEOF
! 14870: /* end confdefs.h. */
! 14871: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14872: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14873: #define $ac_func innocuous_$ac_func
1.9 millert 14874:
1.25 ! millert 14875: /* System header to define __stub macros and hopefully few prototypes,
! 14876: which can conflict with char $ac_func (); below.
! 14877: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 14878: <limits.h> exists even on freestanding compilers. */
1.9 millert 14879:
1.25 ! millert 14880: #ifdef __STDC__
! 14881: # include <limits.h>
! 14882: #else
! 14883: # include <assert.h>
! 14884: #endif
1.9 millert 14885:
1.25 ! millert 14886: #undef $ac_func
1.9 millert 14887:
1.25 ! millert 14888: /* Override any gcc2 internal prototype to avoid an error. */
! 14889: #ifdef __cplusplus
! 14890: extern "C"
! 14891: {
! 14892: #endif
! 14893: /* We use char because int might match the return type of a gcc2
! 14894: builtin and then its argument prototype would still apply. */
! 14895: char $ac_func ();
! 14896: /* The GNU C library defines this for functions which it implements
! 14897: to always fail with ENOSYS. Some functions are actually named
! 14898: something starting with __ and the normal name is an alias. */
! 14899: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 14900: choke me
! 14901: #else
! 14902: char (*f) () = $ac_func;
! 14903: #endif
! 14904: #ifdef __cplusplus
! 14905: }
! 14906: #endif
1.9 millert 14907:
1.25 ! millert 14908: int
! 14909: main ()
! 14910: {
! 14911: return f != $ac_func;
! 14912: ;
! 14913: return 0;
! 14914: }
! 14915: _ACEOF
! 14916: rm -f conftest.$ac_objext conftest$ac_exeext
! 14917: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 14918: (eval $ac_link) 2>conftest.er1
! 14919: ac_status=$?
! 14920: grep -v '^ *+' conftest.er1 >conftest.err
! 14921: rm -f conftest.er1
! 14922: cat conftest.err >&5
! 14923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14924: (exit $ac_status); } &&
! 14925: { ac_try='test -z "$ac_c_werror_flag"
! 14926: || test ! -s conftest.err'
! 14927: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14928: (eval $ac_try) 2>&5
! 14929: ac_status=$?
! 14930: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14931: (exit $ac_status); }; } &&
! 14932: { ac_try='test -s conftest$ac_exeext'
! 14933: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14934: (eval $ac_try) 2>&5
! 14935: ac_status=$?
! 14936: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14937: (exit $ac_status); }; }; then
! 14938: eval "$as_ac_var=yes"
! 14939: else
! 14940: echo "$as_me: failed program was:" >&5
! 14941: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 14942:
1.25 ! millert 14943: eval "$as_ac_var=no"
1.1 millert 14944: fi
1.25 ! millert 14945: rm -f conftest.err conftest.$ac_objext \
! 14946: conftest$ac_exeext conftest.$ac_ext
1.9 millert 14947: fi
1.25 ! millert 14948: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 14949: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 14950: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 14951: cat >>confdefs.h <<_ACEOF
! 14952: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 14953: _ACEOF
1.1 millert 14954:
1.25 ! millert 14955: else
! 14956: case $LIBOBJS in
! 14957: "$ac_func.$ac_objext" | \
! 14958: *" $ac_func.$ac_objext" | \
! 14959: "$ac_func.$ac_objext "* | \
! 14960: *" $ac_func.$ac_objext "* ) ;;
! 14961: *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
! 14962: esac
1.1 millert 14963:
1.25 ! millert 14964: fi
! 14965: done
1.23 millert 14966:
14967:
14968: fi
14969:
1.25 ! millert 14970: for ac_func in glob
! 14971: do
! 14972: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 14973: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 14974: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 14975: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23 millert 14976: echo $ECHO_N "(cached) $ECHO_C" >&6
14977: else
14978: cat >conftest.$ac_ext <<_ACEOF
14979: /* confdefs.h. */
14980: _ACEOF
14981: cat confdefs.h >>conftest.$ac_ext
14982: cat >>conftest.$ac_ext <<_ACEOF
14983: /* end confdefs.h. */
1.25 ! millert 14984: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 14985: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 14986: #define $ac_func innocuous_$ac_func
! 14987:
! 14988: /* System header to define __stub macros and hopefully few prototypes,
! 14989: which can conflict with char $ac_func (); below.
! 14990: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 14991: <limits.h> exists even on freestanding compilers. */
! 14992:
! 14993: #ifdef __STDC__
! 14994: # include <limits.h>
! 14995: #else
! 14996: # include <assert.h>
! 14997: #endif
! 14998:
! 14999: #undef $ac_func
! 15000:
! 15001: /* Override any gcc2 internal prototype to avoid an error. */
! 15002: #ifdef __cplusplus
! 15003: extern "C"
! 15004: {
! 15005: #endif
! 15006: /* We use char because int might match the return type of a gcc2
! 15007: builtin and then its argument prototype would still apply. */
! 15008: char $ac_func ();
! 15009: /* The GNU C library defines this for functions which it implements
! 15010: to always fail with ENOSYS. Some functions are actually named
! 15011: something starting with __ and the normal name is an alias. */
! 15012: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15013: choke me
! 15014: #else
! 15015: char (*f) () = $ac_func;
! 15016: #endif
! 15017: #ifdef __cplusplus
! 15018: }
! 15019: #endif
1.23 millert 15020:
15021: int
15022: main ()
15023: {
1.25 ! millert 15024: return f != $ac_func;
1.23 millert 15025: ;
15026: return 0;
15027: }
15028: _ACEOF
1.25 ! millert 15029: rm -f conftest.$ac_objext conftest$ac_exeext
! 15030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15031: (eval $ac_link) 2>conftest.er1
1.23 millert 15032: ac_status=$?
1.25 ! millert 15033: grep -v '^ *+' conftest.er1 >conftest.err
! 15034: rm -f conftest.er1
! 15035: cat conftest.err >&5
1.23 millert 15036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037: (exit $ac_status); } &&
1.25 ! millert 15038: { ac_try='test -z "$ac_c_werror_flag"
! 15039: || test ! -s conftest.err'
! 15040: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15041: (eval $ac_try) 2>&5
! 15042: ac_status=$?
! 15043: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15044: (exit $ac_status); }; } &&
! 15045: { ac_try='test -s conftest$ac_exeext'
1.23 millert 15046: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047: (eval $ac_try) 2>&5
15048: ac_status=$?
15049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050: (exit $ac_status); }; }; then
1.25 ! millert 15051: eval "$as_ac_var=yes"
1.23 millert 15052: else
15053: echo "$as_me: failed program was:" >&5
15054: sed 's/^/| /' conftest.$ac_ext >&5
15055:
1.25 ! millert 15056: eval "$as_ac_var=no"
! 15057: fi
! 15058: rm -f conftest.err conftest.$ac_objext \
! 15059: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15060: fi
1.25 ! millert 15061: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15062: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15063: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 15064: cat >>confdefs.h <<_ACEOF
! 15065: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 15066: _ACEOF
! 15067: echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
! 15068: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6
! 15069: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 15070: /* confdefs.h. */
15071: _ACEOF
15072: cat confdefs.h >>conftest.$ac_ext
15073: cat >>conftest.$ac_ext <<_ACEOF
15074: /* end confdefs.h. */
1.25 ! millert 15075: #include <glob.h>
! 15076: int
! 15077: main ()
! 15078: {
! 15079: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
! 15080: ;
! 15081: return 0;
! 15082: }
! 15083: _ACEOF
! 15084: rm -f conftest.$ac_objext
! 15085: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 15086: (eval $ac_compile) 2>conftest.er1
! 15087: ac_status=$?
! 15088: grep -v '^ *+' conftest.er1 >conftest.err
! 15089: rm -f conftest.er1
! 15090: cat conftest.err >&5
! 15091: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15092: (exit $ac_status); } &&
! 15093: { ac_try='test -z "$ac_c_werror_flag"
! 15094: || test ! -s conftest.err'
! 15095: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15096: (eval $ac_try) 2>&5
! 15097: ac_status=$?
! 15098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15099: (exit $ac_status); }; } &&
! 15100: { ac_try='test -s conftest.$ac_objext'
! 15101: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15102: (eval $ac_try) 2>&5
! 15103: ac_status=$?
! 15104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15105: (exit $ac_status); }; }; then
! 15106: cat >>confdefs.h <<\_ACEOF
! 15107: #define HAVE_EXTENDED_GLOB 1
! 15108: _ACEOF
1.23 millert 15109:
1.25 ! millert 15110: echo "$as_me:$LINENO: result: yes" >&5
! 15111: echo "${ECHO_T}yes" >&6
1.23 millert 15112: else
1.25 ! millert 15113: echo "$as_me: failed program was:" >&5
! 15114: sed 's/^/| /' conftest.$ac_ext >&5
! 15115:
! 15116: case $LIBOBJS in
! 15117: "glob.$ac_objext" | \
! 15118: *" glob.$ac_objext" | \
! 15119: "glob.$ac_objext "* | \
! 15120: *" glob.$ac_objext "* ) ;;
! 15121: *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
! 15122: esac
! 15123:
! 15124: echo "$as_me:$LINENO: result: no" >&5
! 15125: echo "${ECHO_T}no" >&6
1.23 millert 15126: fi
1.25 ! millert 15127: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 15128: else
! 15129: case $LIBOBJS in
! 15130: "glob.$ac_objext" | \
! 15131: *" glob.$ac_objext" | \
! 15132: "glob.$ac_objext "* | \
! 15133: *" glob.$ac_objext "* ) ;;
! 15134: *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
! 15135: esac
1.23 millert 15136:
15137: fi
1.25 ! millert 15138: done
! 15139:
! 15140:
1.23 millert 15141:
1.25 ! millert 15142: for ac_func in lockf flock
! 15143: do
! 15144: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15145: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15146: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15147: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 15148: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15149: else
1.23 millert 15150: cat >conftest.$ac_ext <<_ACEOF
15151: /* confdefs.h. */
15152: _ACEOF
15153: cat confdefs.h >>conftest.$ac_ext
15154: cat >>conftest.$ac_ext <<_ACEOF
15155: /* end confdefs.h. */
1.25 ! millert 15156: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15157: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15158: #define $ac_func innocuous_$ac_func
! 15159:
! 15160: /* System header to define __stub macros and hopefully few prototypes,
! 15161: which can conflict with char $ac_func (); below.
! 15162: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15163: <limits.h> exists even on freestanding compilers. */
! 15164:
! 15165: #ifdef __STDC__
! 15166: # include <limits.h>
! 15167: #else
! 15168: # include <assert.h>
! 15169: #endif
! 15170:
! 15171: #undef $ac_func
1.23 millert 15172:
1.25 ! millert 15173: /* Override any gcc2 internal prototype to avoid an error. */
! 15174: #ifdef __cplusplus
! 15175: extern "C"
! 15176: {
! 15177: #endif
! 15178: /* We use char because int might match the return type of a gcc2
! 15179: builtin and then its argument prototype would still apply. */
! 15180: char $ac_func ();
! 15181: /* The GNU C library defines this for functions which it implements
! 15182: to always fail with ENOSYS. Some functions are actually named
! 15183: something starting with __ and the normal name is an alias. */
! 15184: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15185: choke me
1.23 millert 15186: #else
1.25 ! millert 15187: char (*f) () = $ac_func;
! 15188: #endif
! 15189: #ifdef __cplusplus
! 15190: }
1.23 millert 15191: #endif
15192:
15193: int
15194: main ()
15195: {
1.25 ! millert 15196: return f != $ac_func;
! 15197: ;
! 15198: return 0;
1.23 millert 15199: }
15200: _ACEOF
1.25 ! millert 15201: rm -f conftest.$ac_objext conftest$ac_exeext
1.23 millert 15202: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 15203: (eval $ac_link) 2>conftest.er1
! 15204: ac_status=$?
! 15205: grep -v '^ *+' conftest.er1 >conftest.err
! 15206: rm -f conftest.er1
! 15207: cat conftest.err >&5
! 15208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15209: (exit $ac_status); } &&
! 15210: { ac_try='test -z "$ac_c_werror_flag"
! 15211: || test ! -s conftest.err'
! 15212: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15213: (eval $ac_try) 2>&5
1.23 millert 15214: ac_status=$?
15215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 15216: (exit $ac_status); }; } &&
! 15217: { ac_try='test -s conftest$ac_exeext'
1.23 millert 15218: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219: (eval $ac_try) 2>&5
15220: ac_status=$?
15221: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222: (exit $ac_status); }; }; then
1.25 ! millert 15223: eval "$as_ac_var=yes"
1.23 millert 15224: else
1.25 ! millert 15225: echo "$as_me: failed program was:" >&5
1.23 millert 15226: sed 's/^/| /' conftest.$ac_ext >&5
15227:
1.25 ! millert 15228: eval "$as_ac_var=no"
1.23 millert 15229: fi
1.25 ! millert 15230: rm -f conftest.err conftest.$ac_objext \
! 15231: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15232: fi
1.25 ! millert 15233: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15234: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15235: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 15236: cat >>confdefs.h <<_ACEOF
! 15237: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 15238: _ACEOF
1.25 ! millert 15239: break
1.23 millert 15240: fi
1.25 ! millert 15241: done
1.23 millert 15242:
15243:
15244:
1.25 ! millert 15245: for ac_func in waitpid wait3
! 15246: do
! 15247: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15248: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15249: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15250: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23 millert 15251: echo $ECHO_N "(cached) $ECHO_C" >&6
15252: else
15253: cat >conftest.$ac_ext <<_ACEOF
15254: /* confdefs.h. */
15255: _ACEOF
15256: cat confdefs.h >>conftest.$ac_ext
15257: cat >>conftest.$ac_ext <<_ACEOF
15258: /* end confdefs.h. */
1.25 ! millert 15259: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15260: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15261: #define $ac_func innocuous_$ac_func
! 15262:
! 15263: /* System header to define __stub macros and hopefully few prototypes,
! 15264: which can conflict with char $ac_func (); below.
! 15265: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15266: <limits.h> exists even on freestanding compilers. */
! 15267:
! 15268: #ifdef __STDC__
! 15269: # include <limits.h>
! 15270: #else
! 15271: # include <assert.h>
! 15272: #endif
! 15273:
! 15274: #undef $ac_func
! 15275:
! 15276: /* Override any gcc2 internal prototype to avoid an error. */
! 15277: #ifdef __cplusplus
! 15278: extern "C"
! 15279: {
! 15280: #endif
! 15281: /* We use char because int might match the return type of a gcc2
! 15282: builtin and then its argument prototype would still apply. */
! 15283: char $ac_func ();
! 15284: /* The GNU C library defines this for functions which it implements
! 15285: to always fail with ENOSYS. Some functions are actually named
! 15286: something starting with __ and the normal name is an alias. */
! 15287: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15288: choke me
! 15289: #else
! 15290: char (*f) () = $ac_func;
! 15291: #endif
! 15292: #ifdef __cplusplus
! 15293: }
! 15294: #endif
1.23 millert 15295:
15296: int
15297: main ()
15298: {
1.25 ! millert 15299: return f != $ac_func;
1.23 millert 15300: ;
15301: return 0;
15302: }
15303: _ACEOF
1.25 ! millert 15304: rm -f conftest.$ac_objext conftest$ac_exeext
! 15305: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15306: (eval $ac_link) 2>conftest.er1
1.23 millert 15307: ac_status=$?
1.25 ! millert 15308: grep -v '^ *+' conftest.er1 >conftest.err
! 15309: rm -f conftest.er1
! 15310: cat conftest.err >&5
1.23 millert 15311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312: (exit $ac_status); } &&
1.25 ! millert 15313: { ac_try='test -z "$ac_c_werror_flag"
! 15314: || test ! -s conftest.err'
! 15315: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15316: (eval $ac_try) 2>&5
! 15317: ac_status=$?
! 15318: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15319: (exit $ac_status); }; } &&
! 15320: { ac_try='test -s conftest$ac_exeext'
1.23 millert 15321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322: (eval $ac_try) 2>&5
15323: ac_status=$?
15324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325: (exit $ac_status); }; }; then
1.25 ! millert 15326: eval "$as_ac_var=yes"
1.23 millert 15327: else
15328: echo "$as_me: failed program was:" >&5
15329: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 15330:
1.25 ! millert 15331: eval "$as_ac_var=no"
1.23 millert 15332: fi
1.25 ! millert 15333: rm -f conftest.err conftest.$ac_objext \
! 15334: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15335: fi
1.25 ! millert 15336: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15337: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15338: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23 millert 15339: cat >>confdefs.h <<_ACEOF
1.25 ! millert 15340: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 15341: _ACEOF
1.25 ! millert 15342: break
! 15343: fi
! 15344: done
! 15345:
1.1 millert 15346:
15347:
1.25 ! millert 15348: for ac_func in innetgr _innetgr
! 15349: do
! 15350: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15351: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15352: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15353: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 15354: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15355: else
1.25 ! millert 15356: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15357: /* confdefs.h. */
15358: _ACEOF
15359: cat confdefs.h >>conftest.$ac_ext
15360: cat >>conftest.$ac_ext <<_ACEOF
15361: /* end confdefs.h. */
1.25 ! millert 15362: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15363: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15364: #define $ac_func innocuous_$ac_func
! 15365:
! 15366: /* System header to define __stub macros and hopefully few prototypes,
! 15367: which can conflict with char $ac_func (); below.
! 15368: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15369: <limits.h> exists even on freestanding compilers. */
! 15370:
! 15371: #ifdef __STDC__
! 15372: # include <limits.h>
! 15373: #else
! 15374: # include <assert.h>
! 15375: #endif
! 15376:
! 15377: #undef $ac_func
1.9 millert 15378:
1.23 millert 15379: /* Override any gcc2 internal prototype to avoid an error. */
15380: #ifdef __cplusplus
15381: extern "C"
1.25 ! millert 15382: {
1.23 millert 15383: #endif
15384: /* We use char because int might match the return type of a gcc2
15385: builtin and then its argument prototype would still apply. */
1.25 ! millert 15386: char $ac_func ();
! 15387: /* The GNU C library defines this for functions which it implements
! 15388: to always fail with ENOSYS. Some functions are actually named
! 15389: something starting with __ and the normal name is an alias. */
! 15390: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15391: choke me
! 15392: #else
! 15393: char (*f) () = $ac_func;
! 15394: #endif
! 15395: #ifdef __cplusplus
! 15396: }
! 15397: #endif
! 15398:
1.16 millert 15399: int
15400: main ()
15401: {
1.25 ! millert 15402: return f != $ac_func;
1.16 millert 15403: ;
15404: return 0;
15405: }
1.9 millert 15406: _ACEOF
1.23 millert 15407: rm -f conftest.$ac_objext conftest$ac_exeext
15408: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 15409: (eval $ac_link) 2>conftest.er1
1.16 millert 15410: ac_status=$?
1.25 ! millert 15411: grep -v '^ *+' conftest.er1 >conftest.err
! 15412: rm -f conftest.er1
! 15413: cat conftest.err >&5
1.16 millert 15414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415: (exit $ac_status); } &&
1.25 ! millert 15416: { ac_try='test -z "$ac_c_werror_flag"
! 15417: || test ! -s conftest.err'
! 15418: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15419: (eval $ac_try) 2>&5
! 15420: ac_status=$?
! 15421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15422: (exit $ac_status); }; } &&
! 15423: { ac_try='test -s conftest$ac_exeext'
1.16 millert 15424: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425: (eval $ac_try) 2>&5
1.9 millert 15426: ac_status=$?
1.16 millert 15427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428: (exit $ac_status); }; }; then
1.25 ! millert 15429: eval "$as_ac_var=yes"
1.1 millert 15430: else
1.9 millert 15431: echo "$as_me: failed program was:" >&5
1.16 millert 15432: sed 's/^/| /' conftest.$ac_ext >&5
15433:
1.25 ! millert 15434: eval "$as_ac_var=no"
! 15435: fi
! 15436: rm -f conftest.err conftest.$ac_objext \
! 15437: conftest$ac_exeext conftest.$ac_ext
1.1 millert 15438: fi
1.25 ! millert 15439: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15440: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15441: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 15442: cat >>confdefs.h <<_ACEOF
! 15443: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 15444: _ACEOF
! 15445:
! 15446: for ac_func in getdomainname
! 15447: do
! 15448: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15449: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15450: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15451: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 15452: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15453: else
! 15454: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15455: /* confdefs.h. */
15456: _ACEOF
15457: cat confdefs.h >>conftest.$ac_ext
15458: cat >>conftest.$ac_ext <<_ACEOF
15459: /* end confdefs.h. */
1.25 ! millert 15460: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15461: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15462: #define $ac_func innocuous_$ac_func
! 15463:
! 15464: /* System header to define __stub macros and hopefully few prototypes,
! 15465: which can conflict with char $ac_func (); below.
! 15466: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15467: <limits.h> exists even on freestanding compilers. */
! 15468:
! 15469: #ifdef __STDC__
! 15470: # include <limits.h>
! 15471: #else
! 15472: # include <assert.h>
! 15473: #endif
! 15474:
! 15475: #undef $ac_func
1.9 millert 15476:
1.23 millert 15477: /* Override any gcc2 internal prototype to avoid an error. */
15478: #ifdef __cplusplus
15479: extern "C"
1.25 ! millert 15480: {
1.23 millert 15481: #endif
15482: /* We use char because int might match the return type of a gcc2
15483: builtin and then its argument prototype would still apply. */
1.25 ! millert 15484: char $ac_func ();
! 15485: /* The GNU C library defines this for functions which it implements
! 15486: to always fail with ENOSYS. Some functions are actually named
! 15487: something starting with __ and the normal name is an alias. */
! 15488: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15489: choke me
! 15490: #else
! 15491: char (*f) () = $ac_func;
! 15492: #endif
! 15493: #ifdef __cplusplus
! 15494: }
! 15495: #endif
! 15496:
1.23 millert 15497: int
15498: main ()
15499: {
1.25 ! millert 15500: return f != $ac_func;
1.23 millert 15501: ;
15502: return 0;
15503: }
1.9 millert 15504: _ACEOF
1.23 millert 15505: rm -f conftest.$ac_objext conftest$ac_exeext
15506: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 15507: (eval $ac_link) 2>conftest.er1
1.23 millert 15508: ac_status=$?
1.25 ! millert 15509: grep -v '^ *+' conftest.er1 >conftest.err
! 15510: rm -f conftest.er1
! 15511: cat conftest.err >&5
1.23 millert 15512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513: (exit $ac_status); } &&
1.25 ! millert 15514: { ac_try='test -z "$ac_c_werror_flag"
! 15515: || test ! -s conftest.err'
! 15516: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15517: (eval $ac_try) 2>&5
! 15518: ac_status=$?
! 15519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15520: (exit $ac_status); }; } &&
! 15521: { ac_try='test -s conftest$ac_exeext'
1.23 millert 15522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523: (eval $ac_try) 2>&5
15524: ac_status=$?
15525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526: (exit $ac_status); }; }; then
1.25 ! millert 15527: eval "$as_ac_var=yes"
1.1 millert 15528: else
1.23 millert 15529: echo "$as_me: failed program was:" >&5
15530: sed 's/^/| /' conftest.$ac_ext >&5
15531:
1.25 ! millert 15532: eval "$as_ac_var=no"
! 15533: fi
! 15534: rm -f conftest.err conftest.$ac_objext \
! 15535: conftest$ac_exeext conftest.$ac_ext
1.23 millert 15536: fi
1.25 ! millert 15537: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15538: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15539: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 15540: cat >>confdefs.h <<_ACEOF
! 15541: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 15542: _ACEOF
! 15543:
1.23 millert 15544: fi
1.25 ! millert 15545: done
! 15546: break
1.1 millert 15547: fi
1.25 ! millert 15548: done
1.1 millert 15549:
15550:
1.25 ! millert 15551: for ac_func in lsearch
! 15552: do
! 15553: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15554: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15555: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15556: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23 millert 15557: echo $ECHO_N "(cached) $ECHO_C" >&6
15558: else
1.25 ! millert 15559: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15560: /* confdefs.h. */
15561: _ACEOF
15562: cat confdefs.h >>conftest.$ac_ext
15563: cat >>conftest.$ac_ext <<_ACEOF
15564: /* end confdefs.h. */
1.25 ! millert 15565: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15566: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15567: #define $ac_func innocuous_$ac_func
! 15568:
! 15569: /* System header to define __stub macros and hopefully few prototypes,
! 15570: which can conflict with char $ac_func (); below.
! 15571: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15572: <limits.h> exists even on freestanding compilers. */
! 15573:
! 15574: #ifdef __STDC__
! 15575: # include <limits.h>
! 15576: #else
! 15577: # include <assert.h>
! 15578: #endif
! 15579:
! 15580: #undef $ac_func
1.9 millert 15581:
1.23 millert 15582: /* Override any gcc2 internal prototype to avoid an error. */
15583: #ifdef __cplusplus
15584: extern "C"
1.25 ! millert 15585: {
1.23 millert 15586: #endif
15587: /* We use char because int might match the return type of a gcc2
15588: builtin and then its argument prototype would still apply. */
1.25 ! millert 15589: char $ac_func ();
! 15590: /* The GNU C library defines this for functions which it implements
! 15591: to always fail with ENOSYS. Some functions are actually named
! 15592: something starting with __ and the normal name is an alias. */
! 15593: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15594: choke me
! 15595: #else
! 15596: char (*f) () = $ac_func;
! 15597: #endif
! 15598: #ifdef __cplusplus
! 15599: }
! 15600: #endif
! 15601:
1.23 millert 15602: int
15603: main ()
15604: {
1.25 ! millert 15605: return f != $ac_func;
1.23 millert 15606: ;
15607: return 0;
15608: }
1.9 millert 15609: _ACEOF
1.23 millert 15610: rm -f conftest.$ac_objext conftest$ac_exeext
15611: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 15612: (eval $ac_link) 2>conftest.er1
1.23 millert 15613: ac_status=$?
1.25 ! millert 15614: grep -v '^ *+' conftest.er1 >conftest.err
! 15615: rm -f conftest.er1
! 15616: cat conftest.err >&5
1.23 millert 15617: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618: (exit $ac_status); } &&
1.25 ! millert 15619: { ac_try='test -z "$ac_c_werror_flag"
! 15620: || test ! -s conftest.err'
! 15621: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15622: (eval $ac_try) 2>&5
! 15623: ac_status=$?
! 15624: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15625: (exit $ac_status); }; } &&
! 15626: { ac_try='test -s conftest$ac_exeext'
1.23 millert 15627: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628: (eval $ac_try) 2>&5
15629: ac_status=$?
15630: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631: (exit $ac_status); }; }; then
1.25 ! millert 15632: eval "$as_ac_var=yes"
1.1 millert 15633: else
1.23 millert 15634: echo "$as_me: failed program was:" >&5
15635: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 15636:
1.25 ! millert 15637: eval "$as_ac_var=no"
! 15638: fi
! 15639: rm -f conftest.err conftest.$ac_objext \
! 15640: conftest$ac_exeext conftest.$ac_ext
1.1 millert 15641: fi
1.25 ! millert 15642: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15643: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15644: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 15645: cat >>confdefs.h <<_ACEOF
! 15646: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 15647: _ACEOF
! 15648:
! 15649: else
! 15650: echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
! 15651: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
! 15652: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
! 15653: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15654: else
! 15655: ac_check_lib_save_LIBS=$LIBS
! 15656: LIBS="-lcompat $LIBS"
! 15657: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15658: /* confdefs.h. */
15659: _ACEOF
15660: cat confdefs.h >>conftest.$ac_ext
15661: cat >>conftest.$ac_ext <<_ACEOF
15662: /* end confdefs.h. */
1.23 millert 15663:
15664: /* Override any gcc2 internal prototype to avoid an error. */
15665: #ifdef __cplusplus
15666: extern "C"
1.9 millert 15667: #endif
1.23 millert 15668: /* We use char because int might match the return type of a gcc2
15669: builtin and then its argument prototype would still apply. */
1.25 ! millert 15670: char lsearch ();
1.9 millert 15671: int
15672: main ()
15673: {
1.25 ! millert 15674: lsearch ();
1.23 millert 15675: ;
15676: return 0;
1.9 millert 15677: }
15678: _ACEOF
1.23 millert 15679: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 15680: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 15681: (eval $ac_link) 2>conftest.er1
1.9 millert 15682: ac_status=$?
1.25 ! millert 15683: grep -v '^ *+' conftest.er1 >conftest.err
! 15684: rm -f conftest.er1
! 15685: cat conftest.err >&5
1.16 millert 15686: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 millert 15687: (exit $ac_status); } &&
1.25 ! millert 15688: { ac_try='test -z "$ac_c_werror_flag"
! 15689: || test ! -s conftest.err'
1.16 millert 15690: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 15691: (eval $ac_try) 2>&5
15692: ac_status=$?
1.16 millert 15693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 15694: (exit $ac_status); }; } &&
! 15695: { ac_try='test -s conftest$ac_exeext'
1.16 millert 15696: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 15697: (eval $ac_try) 2>&5
15698: ac_status=$?
1.16 millert 15699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 15700: (exit $ac_status); }; }; then
1.25 ! millert 15701: ac_cv_lib_compat_lsearch=yes
1.9 millert 15702: else
15703: echo "$as_me: failed program was:" >&5
1.16 millert 15704: sed 's/^/| /' conftest.$ac_ext >&5
15705:
1.25 ! millert 15706: ac_cv_lib_compat_lsearch=no
! 15707: fi
! 15708: rm -f conftest.err conftest.$ac_objext \
! 15709: conftest$ac_exeext conftest.$ac_ext
! 15710: LIBS=$ac_check_lib_save_LIBS
1.9 millert 15711: fi
1.25 ! millert 15712: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
! 15713: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
! 15714: if test $ac_cv_lib_compat_lsearch = yes; then
! 15715: echo "$as_me:$LINENO: checking for search.h" >&5
! 15716: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
! 15717: if test "${ac_cv_header_search_h+set}" = set; then
! 15718: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15719: else
! 15720: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 15721: /* confdefs.h. */
15722: _ACEOF
15723: cat confdefs.h >>conftest.$ac_ext
15724: cat >>conftest.$ac_ext <<_ACEOF
15725: /* end confdefs.h. */
1.25 ! millert 15726: #include <search.h>
1.23 millert 15727: _ACEOF
15728: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15729: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15730: ac_status=$?
15731: grep -v '^ *+' conftest.er1 >conftest.err
15732: rm -f conftest.er1
15733: cat conftest.err >&5
15734: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735: (exit $ac_status); } >/dev/null; then
15736: if test -s conftest.err; then
15737: ac_cpp_err=$ac_c_preproc_warn_flag
1.25 ! millert 15738: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.23 millert 15739: else
15740: ac_cpp_err=
15741: fi
15742: else
15743: ac_cpp_err=yes
15744: fi
15745: if test -z "$ac_cpp_err"; then
1.25 ! millert 15746: ac_cv_header_search_h=yes
1.23 millert 15747: else
15748: echo "$as_me: failed program was:" >&5
15749: sed 's/^/| /' conftest.$ac_ext >&5
15750:
1.25 ! millert 15751: ac_cv_header_search_h=no
1.23 millert 15752: fi
15753: rm -f conftest.err conftest.$ac_ext
1.25 ! millert 15754: fi
! 15755: echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
! 15756: echo "${ECHO_T}$ac_cv_header_search_h" >&6
! 15757: if test $ac_cv_header_search_h = yes; then
! 15758: cat >>confdefs.h <<\_ACEOF
! 15759: #define HAVE_LSEARCH 1
! 15760: _ACEOF
! 15761: LIBS="${LIBS} -lcompat"
! 15762: else
! 15763: case $LIBOBJS in
! 15764: "lsearch.$ac_objext" | \
! 15765: *" lsearch.$ac_objext" | \
! 15766: "lsearch.$ac_objext "* | \
! 15767: *" lsearch.$ac_objext "* ) ;;
! 15768: *) LIBOBJS="$LIBOBJS lsearch.$ac_objext" ;;
! 15769: esac
! 15770:
! 15771: fi
! 15772:
1.23 millert 15773:
1.25 ! millert 15774: else
! 15775: case $LIBOBJS in
! 15776: "lsearch.$ac_objext" | \
! 15777: *" lsearch.$ac_objext" | \
! 15778: "lsearch.$ac_objext "* | \
! 15779: *" lsearch.$ac_objext "* ) ;;
! 15780: *) LIBOBJS="$LIBOBJS lsearch.$ac_objext" ;;
1.23 millert 15781: esac
15782:
15783: fi
1.9 millert 15784:
1.1 millert 15785: fi
15786: done
1.23 millert 15787:
15788:
1.25 ! millert 15789: for ac_func in utimes
! 15790: do
! 15791: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15792: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15793: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15794: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 15795: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15796: else
1.25 ! millert 15797: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15798: /* confdefs.h. */
15799: _ACEOF
15800: cat confdefs.h >>conftest.$ac_ext
15801: cat >>conftest.$ac_ext <<_ACEOF
15802: /* end confdefs.h. */
1.25 ! millert 15803: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15804: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15805: #define $ac_func innocuous_$ac_func
! 15806:
! 15807: /* System header to define __stub macros and hopefully few prototypes,
! 15808: which can conflict with char $ac_func (); below.
! 15809: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15810: <limits.h> exists even on freestanding compilers. */
! 15811:
! 15812: #ifdef __STDC__
! 15813: # include <limits.h>
! 15814: #else
! 15815: # include <assert.h>
! 15816: #endif
! 15817:
! 15818: #undef $ac_func
! 15819:
! 15820: /* Override any gcc2 internal prototype to avoid an error. */
! 15821: #ifdef __cplusplus
! 15822: extern "C"
! 15823: {
! 15824: #endif
! 15825: /* We use char because int might match the return type of a gcc2
! 15826: builtin and then its argument prototype would still apply. */
! 15827: char $ac_func ();
! 15828: /* The GNU C library defines this for functions which it implements
! 15829: to always fail with ENOSYS. Some functions are actually named
! 15830: something starting with __ and the normal name is an alias. */
! 15831: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15832: choke me
! 15833: #else
! 15834: char (*f) () = $ac_func;
! 15835: #endif
! 15836: #ifdef __cplusplus
! 15837: }
! 15838: #endif
! 15839:
! 15840: int
! 15841: main ()
! 15842: {
! 15843: return f != $ac_func;
! 15844: ;
! 15845: return 0;
! 15846: }
1.16 millert 15847: _ACEOF
1.25 ! millert 15848: rm -f conftest.$ac_objext conftest$ac_exeext
! 15849: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15850: (eval $ac_link) 2>conftest.er1
1.16 millert 15851: ac_status=$?
1.25 ! millert 15852: grep -v '^ *+' conftest.er1 >conftest.err
! 15853: rm -f conftest.er1
! 15854: cat conftest.err >&5
1.16 millert 15855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856: (exit $ac_status); } &&
1.25 ! millert 15857: { ac_try='test -z "$ac_c_werror_flag"
! 15858: || test ! -s conftest.err'
! 15859: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15860: (eval $ac_try) 2>&5
! 15861: ac_status=$?
! 15862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15863: (exit $ac_status); }; } &&
! 15864: { ac_try='test -s conftest$ac_exeext'
1.16 millert 15865: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866: (eval $ac_try) 2>&5
15867: ac_status=$?
15868: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869: (exit $ac_status); }; }; then
1.25 ! millert 15870: eval "$as_ac_var=yes"
1.16 millert 15871: else
15872: echo "$as_me: failed program was:" >&5
15873: sed 's/^/| /' conftest.$ac_ext >&5
15874:
1.25 ! millert 15875: eval "$as_ac_var=no"
! 15876: fi
! 15877: rm -f conftest.err conftest.$ac_objext \
! 15878: conftest$ac_exeext conftest.$ac_ext
1.16 millert 15879: fi
1.25 ! millert 15880: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15881: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15882: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 15883: cat >>confdefs.h <<_ACEOF
! 15884: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 15885: _ACEOF
! 15886:
1.23 millert 15887:
1.25 ! millert 15888: for ac_func in futimes futimesat
! 15889: do
! 15890: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15891: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15892: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15893: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 15894: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15895: else
! 15896: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15897: /* confdefs.h. */
15898: _ACEOF
15899: cat confdefs.h >>conftest.$ac_ext
15900: cat >>conftest.$ac_ext <<_ACEOF
15901: /* end confdefs.h. */
1.25 ! millert 15902: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 15903: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 15904: #define $ac_func innocuous_$ac_func
! 15905:
! 15906: /* System header to define __stub macros and hopefully few prototypes,
! 15907: which can conflict with char $ac_func (); below.
! 15908: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 15909: <limits.h> exists even on freestanding compilers. */
! 15910:
! 15911: #ifdef __STDC__
! 15912: # include <limits.h>
! 15913: #else
! 15914: # include <assert.h>
! 15915: #endif
! 15916:
! 15917: #undef $ac_func
! 15918:
! 15919: /* Override any gcc2 internal prototype to avoid an error. */
! 15920: #ifdef __cplusplus
! 15921: extern "C"
! 15922: {
! 15923: #endif
! 15924: /* We use char because int might match the return type of a gcc2
! 15925: builtin and then its argument prototype would still apply. */
! 15926: char $ac_func ();
! 15927: /* The GNU C library defines this for functions which it implements
! 15928: to always fail with ENOSYS. Some functions are actually named
! 15929: something starting with __ and the normal name is an alias. */
! 15930: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 15931: choke me
! 15932: #else
! 15933: char (*f) () = $ac_func;
! 15934: #endif
! 15935: #ifdef __cplusplus
! 15936: }
! 15937: #endif
! 15938:
! 15939: int
! 15940: main ()
! 15941: {
! 15942: return f != $ac_func;
! 15943: ;
! 15944: return 0;
! 15945: }
1.9 millert 15946: _ACEOF
1.25 ! millert 15947: rm -f conftest.$ac_objext conftest$ac_exeext
! 15948: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 15949: (eval $ac_link) 2>conftest.er1
1.9 millert 15950: ac_status=$?
1.23 millert 15951: grep -v '^ *+' conftest.er1 >conftest.err
15952: rm -f conftest.er1
15953: cat conftest.err >&5
1.16 millert 15954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 15955: (exit $ac_status); } &&
! 15956: { ac_try='test -z "$ac_c_werror_flag"
! 15957: || test ! -s conftest.err'
! 15958: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15959: (eval $ac_try) 2>&5
! 15960: ac_status=$?
! 15961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15962: (exit $ac_status); }; } &&
! 15963: { ac_try='test -s conftest$ac_exeext'
! 15964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 15965: (eval $ac_try) 2>&5
! 15966: ac_status=$?
! 15967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15968: (exit $ac_status); }; }; then
! 15969: eval "$as_ac_var=yes"
1.23 millert 15970: else
15971: echo "$as_me: failed program was:" >&5
15972: sed 's/^/| /' conftest.$ac_ext >&5
15973:
1.25 ! millert 15974: eval "$as_ac_var=no"
1.23 millert 15975: fi
1.25 ! millert 15976: rm -f conftest.err conftest.$ac_objext \
! 15977: conftest$ac_exeext conftest.$ac_ext
1.9 millert 15978: fi
1.25 ! millert 15979: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 15980: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 15981: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23 millert 15982: cat >>confdefs.h <<_ACEOF
1.25 ! millert 15983: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 15984: _ACEOF
1.25 ! millert 15985: break
! 15986: fi
! 15987: done
1.23 millert 15988:
15989: else
1.16 millert 15990:
1.25 ! millert 15991: for ac_func in futime
! 15992: do
! 15993: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 15994: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 15995: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 15996: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 15997: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15998: else
1.23 millert 15999: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16000: /* confdefs.h. */
16001: _ACEOF
16002: cat confdefs.h >>conftest.$ac_ext
16003: cat >>conftest.$ac_ext <<_ACEOF
16004: /* end confdefs.h. */
1.25 ! millert 16005: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16006: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16007: #define $ac_func innocuous_$ac_func
! 16008:
! 16009: /* System header to define __stub macros and hopefully few prototypes,
! 16010: which can conflict with char $ac_func (); below.
! 16011: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16012: <limits.h> exists even on freestanding compilers. */
! 16013:
! 16014: #ifdef __STDC__
! 16015: # include <limits.h>
! 16016: #else
! 16017: # include <assert.h>
! 16018: #endif
! 16019:
! 16020: #undef $ac_func
! 16021:
! 16022: /* Override any gcc2 internal prototype to avoid an error. */
! 16023: #ifdef __cplusplus
! 16024: extern "C"
! 16025: {
! 16026: #endif
! 16027: /* We use char because int might match the return type of a gcc2
! 16028: builtin and then its argument prototype would still apply. */
! 16029: char $ac_func ();
! 16030: /* The GNU C library defines this for functions which it implements
! 16031: to always fail with ENOSYS. Some functions are actually named
! 16032: something starting with __ and the normal name is an alias. */
! 16033: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 16034: choke me
! 16035: #else
! 16036: char (*f) () = $ac_func;
! 16037: #endif
! 16038: #ifdef __cplusplus
! 16039: }
! 16040: #endif
1.16 millert 16041:
16042: int
16043: main ()
16044: {
1.25 ! millert 16045: return f != $ac_func;
1.16 millert 16046: ;
16047: return 0;
16048: }
16049: _ACEOF
16050: rm -f conftest.$ac_objext conftest$ac_exeext
16051: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 16052: (eval $ac_link) 2>conftest.er1
1.16 millert 16053: ac_status=$?
1.25 ! millert 16054: grep -v '^ *+' conftest.er1 >conftest.err
! 16055: rm -f conftest.er1
! 16056: cat conftest.err >&5
1.16 millert 16057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058: (exit $ac_status); } &&
1.25 ! millert 16059: { ac_try='test -z "$ac_c_werror_flag"
! 16060: || test ! -s conftest.err'
! 16061: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16062: (eval $ac_try) 2>&5
! 16063: ac_status=$?
! 16064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16065: (exit $ac_status); }; } &&
! 16066: { ac_try='test -s conftest$ac_exeext'
1.16 millert 16067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068: (eval $ac_try) 2>&5
16069: ac_status=$?
16070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071: (exit $ac_status); }; }; then
1.25 ! millert 16072: eval "$as_ac_var=yes"
1.16 millert 16073: else
16074: echo "$as_me: failed program was:" >&5
16075: sed 's/^/| /' conftest.$ac_ext >&5
16076:
1.25 ! millert 16077: eval "$as_ac_var=no"
1.16 millert 16078: fi
1.25 ! millert 16079: rm -f conftest.err conftest.$ac_objext \
! 16080: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16081: fi
1.25 ! millert 16082: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 16083: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 16084: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16085: cat >>confdefs.h <<_ACEOF
! 16086: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16087: _ACEOF
1.9 millert 16088:
1.25 ! millert 16089: fi
! 16090: done
! 16091: case $LIBOBJS in
! 16092: "utimes.$ac_objext" | \
! 16093: *" utimes.$ac_objext" | \
! 16094: "utimes.$ac_objext "* | \
! 16095: *" utimes.$ac_objext "* ) ;;
! 16096: *) LIBOBJS="$LIBOBJS utimes.$ac_objext" ;;
! 16097: esac
1.16 millert 16098:
1.25 ! millert 16099: fi
! 16100: done
1.16 millert 16101:
1.25 ! millert 16102: echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
! 16103: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
! 16104: if test "${sudo_cv_func_fnmatch+set}" = set; then
1.16 millert 16105: echo $ECHO_N "(cached) $ECHO_C" >&6
16106: else
1.25 ! millert 16107: rm -f conftestdata; > conftestdata
! 16108: if test "$cross_compiling" = yes; then
! 16109: sudo_cv_func_fnmatch=no
! 16110: else
! 16111: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16112: /* confdefs.h. */
16113: _ACEOF
16114: cat confdefs.h >>conftest.$ac_ext
16115: cat >>conftest.$ac_ext <<_ACEOF
16116: /* end confdefs.h. */
1.25 ! millert 16117: #include <fnmatch.h>
! 16118: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
1.16 millert 16119: _ACEOF
1.25 ! millert 16120: rm -f conftest$ac_exeext
! 16121: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16122: (eval $ac_link) 2>&5
1.16 millert 16123: ac_status=$?
16124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 16125: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 16126: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127: (eval $ac_try) 2>&5
16128: ac_status=$?
16129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130: (exit $ac_status); }; }; then
1.25 ! millert 16131: sudo_cv_func_fnmatch=yes
1.16 millert 16132: else
1.25 ! millert 16133: echo "$as_me: program exited with status $ac_status" >&5
! 16134: echo "$as_me: failed program was:" >&5
1.16 millert 16135: sed 's/^/| /' conftest.$ac_ext >&5
16136:
1.25 ! millert 16137: ( exit $ac_status )
! 16138: sudo_cv_func_fnmatch=no
! 16139: fi
! 16140: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 16141: fi
! 16142: rm -f core core.* *.core
! 16143: fi
! 16144:
! 16145: echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
! 16146: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
! 16147: if test $sudo_cv_func_fnmatch = yes; then
! 16148: cat >>confdefs.h <<\_ACEOF
! 16149: #define HAVE_FNMATCH 1
! 16150: _ACEOF
! 16151:
! 16152: else
! 16153: case $LIBOBJS in
! 16154: "fnmatch.$ac_objext" | \
! 16155: *" fnmatch.$ac_objext" | \
! 16156: "fnmatch.$ac_objext "* | \
! 16157: *" fnmatch.$ac_objext "* ) ;;
! 16158: *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
! 16159: esac
! 16160:
1.9 millert 16161: fi
1.23 millert 16162:
1.25 ! millert 16163: echo "$as_me:$LINENO: checking for isblank" >&5
! 16164: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
! 16165: if test "${sudo_cv_func_isblank+set}" = set; then
! 16166: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16167: else
! 16168: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 16169: /* confdefs.h. */
16170: _ACEOF
16171: cat confdefs.h >>conftest.$ac_ext
16172: cat >>conftest.$ac_ext <<_ACEOF
16173: /* end confdefs.h. */
1.25 ! millert 16174: #include <ctype.h>
! 16175: int
! 16176: main ()
! 16177: {
! 16178: (void)isblank(1);
! 16179: ;
! 16180: return 0;
! 16181: }
1.23 millert 16182: _ACEOF
1.25 ! millert 16183: rm -f conftest.$ac_objext conftest$ac_exeext
! 16184: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16185: (eval $ac_link) 2>conftest.er1
1.23 millert 16186: ac_status=$?
16187: grep -v '^ *+' conftest.er1 >conftest.err
16188: rm -f conftest.er1
16189: cat conftest.err >&5
16190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 16191: (exit $ac_status); } &&
! 16192: { ac_try='test -z "$ac_c_werror_flag"
! 16193: || test ! -s conftest.err'
! 16194: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16195: (eval $ac_try) 2>&5
! 16196: ac_status=$?
! 16197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16198: (exit $ac_status); }; } &&
! 16199: { ac_try='test -s conftest$ac_exeext'
! 16200: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16201: (eval $ac_try) 2>&5
! 16202: ac_status=$?
! 16203: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16204: (exit $ac_status); }; }; then
! 16205: sudo_cv_func_isblank=yes
1.23 millert 16206: else
16207: echo "$as_me: failed program was:" >&5
16208: sed 's/^/| /' conftest.$ac_ext >&5
16209:
1.25 ! millert 16210: sudo_cv_func_isblank=no
! 16211: fi
! 16212: rm -f conftest.err conftest.$ac_objext \
! 16213: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16214: fi
1.25 ! millert 16215: echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
! 16216: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
1.23 millert 16217:
1.25 ! millert 16218: if test "$sudo_cv_func_isblank" = "yes"; then
1.23 millert 16219:
1.25 ! millert 16220: cat >>confdefs.h <<\_ACEOF
! 16221: #define HAVE_ISBLANK 1
1.16 millert 16222: _ACEOF
1.1 millert 16223:
1.25 ! millert 16224: fi
! 16225:
! 16226:
! 16227:
! 16228:
1.1 millert 16229:
1.16 millert 16230:
16231:
1.25 ! millert 16232: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
1.1 millert 16233: do
1.25 ! millert 16234: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16235: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16236: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 16237: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 16238: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 16239: else
1.25 ! millert 16240: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16241: /* confdefs.h. */
16242: _ACEOF
16243: cat confdefs.h >>conftest.$ac_ext
16244: cat >>conftest.$ac_ext <<_ACEOF
16245: /* end confdefs.h. */
1.25 ! millert 16246: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16247: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16248: #define $ac_func innocuous_$ac_func
! 16249:
! 16250: /* System header to define __stub macros and hopefully few prototypes,
! 16251: which can conflict with char $ac_func (); below.
! 16252: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16253: <limits.h> exists even on freestanding compilers. */
! 16254:
! 16255: #ifdef __STDC__
! 16256: # include <limits.h>
! 16257: #else
! 16258: # include <assert.h>
! 16259: #endif
! 16260:
! 16261: #undef $ac_func
! 16262:
! 16263: /* Override any gcc2 internal prototype to avoid an error. */
! 16264: #ifdef __cplusplus
! 16265: extern "C"
! 16266: {
! 16267: #endif
! 16268: /* We use char because int might match the return type of a gcc2
! 16269: builtin and then its argument prototype would still apply. */
! 16270: char $ac_func ();
! 16271: /* The GNU C library defines this for functions which it implements
! 16272: to always fail with ENOSYS. Some functions are actually named
! 16273: something starting with __ and the normal name is an alias. */
! 16274: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 16275: choke me
! 16276: #else
! 16277: char (*f) () = $ac_func;
! 16278: #endif
! 16279: #ifdef __cplusplus
! 16280: }
! 16281: #endif
! 16282:
! 16283: int
! 16284: main ()
! 16285: {
! 16286: return f != $ac_func;
! 16287: ;
! 16288: return 0;
! 16289: }
1.16 millert 16290: _ACEOF
1.25 ! millert 16291: rm -f conftest.$ac_objext conftest$ac_exeext
! 16292: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16293: (eval $ac_link) 2>conftest.er1
1.16 millert 16294: ac_status=$?
1.25 ! millert 16295: grep -v '^ *+' conftest.er1 >conftest.err
! 16296: rm -f conftest.er1
! 16297: cat conftest.err >&5
1.16 millert 16298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299: (exit $ac_status); } &&
1.25 ! millert 16300: { ac_try='test -z "$ac_c_werror_flag"
! 16301: || test ! -s conftest.err'
! 16302: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16303: (eval $ac_try) 2>&5
! 16304: ac_status=$?
! 16305: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16306: (exit $ac_status); }; } &&
! 16307: { ac_try='test -s conftest$ac_exeext'
1.16 millert 16308: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309: (eval $ac_try) 2>&5
16310: ac_status=$?
16311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312: (exit $ac_status); }; }; then
1.25 ! millert 16313: eval "$as_ac_var=yes"
1.9 millert 16314: else
1.16 millert 16315: echo "$as_me: failed program was:" >&5
16316: sed 's/^/| /' conftest.$ac_ext >&5
16317:
1.25 ! millert 16318: eval "$as_ac_var=no"
! 16319: fi
! 16320: rm -f conftest.err conftest.$ac_objext \
! 16321: conftest$ac_exeext conftest.$ac_ext
! 16322: fi
! 16323: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 16324: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 16325: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16326: cat >>confdefs.h <<_ACEOF
! 16327: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16328: _ACEOF
! 16329:
! 16330: else
! 16331: case $LIBOBJS in
! 16332: "$ac_func.$ac_objext" | \
! 16333: *" $ac_func.$ac_objext" | \
! 16334: "$ac_func.$ac_objext "* | \
! 16335: *" $ac_func.$ac_objext "* ) ;;
! 16336: *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
! 16337: esac
! 16338:
1.16 millert 16339: fi
1.25 ! millert 16340: done
! 16341:
! 16342:
1.16 millert 16343:
1.25 ! millert 16344: for ac_func in closefrom
! 16345: do
! 16346: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16347: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16348: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 16349: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 16350: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16351: else
! 16352: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16353: /* confdefs.h. */
16354: _ACEOF
16355: cat confdefs.h >>conftest.$ac_ext
16356: cat >>conftest.$ac_ext <<_ACEOF
16357: /* end confdefs.h. */
1.25 ! millert 16358: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16359: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16360: #define $ac_func innocuous_$ac_func
! 16361:
! 16362: /* System header to define __stub macros and hopefully few prototypes,
! 16363: which can conflict with char $ac_func (); below.
! 16364: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16365: <limits.h> exists even on freestanding compilers. */
! 16366:
! 16367: #ifdef __STDC__
! 16368: # include <limits.h>
! 16369: #else
! 16370: # include <assert.h>
! 16371: #endif
! 16372:
! 16373: #undef $ac_func
! 16374:
! 16375: /* Override any gcc2 internal prototype to avoid an error. */
! 16376: #ifdef __cplusplus
! 16377: extern "C"
! 16378: {
! 16379: #endif
! 16380: /* We use char because int might match the return type of a gcc2
! 16381: builtin and then its argument prototype would still apply. */
! 16382: char $ac_func ();
! 16383: /* The GNU C library defines this for functions which it implements
! 16384: to always fail with ENOSYS. Some functions are actually named
! 16385: something starting with __ and the normal name is an alias. */
! 16386: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 16387: choke me
! 16388: #else
! 16389: char (*f) () = $ac_func;
! 16390: #endif
! 16391: #ifdef __cplusplus
! 16392: }
! 16393: #endif
! 16394:
! 16395: int
! 16396: main ()
! 16397: {
! 16398: return f != $ac_func;
! 16399: ;
! 16400: return 0;
! 16401: }
1.9 millert 16402: _ACEOF
1.25 ! millert 16403: rm -f conftest.$ac_objext conftest$ac_exeext
! 16404: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16405: (eval $ac_link) 2>conftest.er1
1.9 millert 16406: ac_status=$?
1.16 millert 16407: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 16408: rm -f conftest.er1
16409: cat conftest.err >&5
1.16 millert 16410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 16411: (exit $ac_status); } &&
! 16412: { ac_try='test -z "$ac_c_werror_flag"
! 16413: || test ! -s conftest.err'
! 16414: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16415: (eval $ac_try) 2>&5
! 16416: ac_status=$?
! 16417: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16418: (exit $ac_status); }; } &&
! 16419: { ac_try='test -s conftest$ac_exeext'
! 16420: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16421: (eval $ac_try) 2>&5
! 16422: ac_status=$?
! 16423: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16424: (exit $ac_status); }; }; then
! 16425: eval "$as_ac_var=yes"
1.1 millert 16426: else
1.9 millert 16427: echo "$as_me: failed program was:" >&5
1.16 millert 16428: sed 's/^/| /' conftest.$ac_ext >&5
16429:
1.25 ! millert 16430: eval "$as_ac_var=no"
1.1 millert 16431: fi
1.25 ! millert 16432: rm -f conftest.err conftest.$ac_objext \
! 16433: conftest$ac_exeext conftest.$ac_ext
1.16 millert 16434: fi
1.25 ! millert 16435: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 16436: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 16437: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 16438: cat >>confdefs.h <<_ACEOF
1.25 ! millert 16439: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 16440: _ACEOF
1.9 millert 16441:
1.25 ! millert 16442: else
! 16443: case $LIBOBJS in
! 16444: "closefrom.$ac_objext" | \
! 16445: *" closefrom.$ac_objext" | \
! 16446: "closefrom.$ac_objext "* | \
! 16447: *" closefrom.$ac_objext "* ) ;;
! 16448: *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" ;;
! 16449: esac
1.1 millert 16450:
1.25 ! millert 16451: echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
! 16452: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6
! 16453: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.18 millert 16454: echo $ECHO_N "(cached) $ECHO_C" >&6
16455: else
1.25 ! millert 16456: cat >conftest.$ac_ext <<_ACEOF
1.18 millert 16457: /* confdefs.h. */
16458: _ACEOF
16459: cat confdefs.h >>conftest.$ac_ext
16460: cat >>conftest.$ac_ext <<_ACEOF
16461: /* end confdefs.h. */
1.25 ! millert 16462: #include <limits.h>
! 16463: #include <fcntl.h>
! 16464:
! 16465: int
! 16466: main ()
! 16467: {
! 16468: #ifndef F_CLOSEM
! 16469: char *p = (char *) F_CLOSEM;
! 16470: #endif
! 16471:
! 16472: ;
! 16473: return 0;
! 16474: }
1.18 millert 16475: _ACEOF
16476: rm -f conftest.$ac_objext
16477: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 16478: (eval $ac_compile) 2>conftest.er1
1.18 millert 16479: ac_status=$?
1.25 ! millert 16480: grep -v '^ *+' conftest.er1 >conftest.err
! 16481: rm -f conftest.er1
! 16482: cat conftest.err >&5
1.18 millert 16483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484: (exit $ac_status); } &&
1.25 ! millert 16485: { ac_try='test -z "$ac_c_werror_flag"
! 16486: || test ! -s conftest.err'
1.18 millert 16487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488: (eval $ac_try) 2>&5
16489: ac_status=$?
16490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 16491: (exit $ac_status); }; } &&
! 16492: { ac_try='test -s conftest.$ac_objext'
! 16493: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16494: (eval $ac_try) 2>&5
1.18 millert 16495: ac_status=$?
16496: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 16497: (exit $ac_status); }; }; then
! 16498: ac_cv_have_decl_F_CLOSEM=yes
1.23 millert 16499: else
1.25 ! millert 16500: echo "$as_me: failed program was:" >&5
! 16501: sed 's/^/| /' conftest.$ac_ext >&5
! 16502:
! 16503: ac_cv_have_decl_F_CLOSEM=no
1.23 millert 16504: fi
1.25 ! millert 16505: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 16506: fi
1.25 ! millert 16507: echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
! 16508: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6
! 16509: if test $ac_cv_have_decl_F_CLOSEM = yes; then
1.23 millert 16510: cat >>confdefs.h <<\_ACEOF
1.25 ! millert 16511: #define HAVE_FCNTL_CLOSEM 1
1.23 millert 16512: _ACEOF
1.25 ! millert 16513:
1.23 millert 16514: fi
16515:
16516:
16517: fi
1.25 ! millert 16518: done
! 16519:
! 16520:
! 16521: for ac_func in mkstemp
! 16522: do
! 16523: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16524: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16525: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 16526: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23 millert 16527: echo $ECHO_N "(cached) $ECHO_C" >&6
16528: else
16529: cat >conftest.$ac_ext <<_ACEOF
16530: /* confdefs.h. */
16531: _ACEOF
16532: cat confdefs.h >>conftest.$ac_ext
16533: cat >>conftest.$ac_ext <<_ACEOF
16534: /* end confdefs.h. */
1.25 ! millert 16535: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16536: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16537: #define $ac_func innocuous_$ac_func
! 16538:
! 16539: /* System header to define __stub macros and hopefully few prototypes,
! 16540: which can conflict with char $ac_func (); below.
! 16541: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16542: <limits.h> exists even on freestanding compilers. */
! 16543:
! 16544: #ifdef __STDC__
! 16545: # include <limits.h>
! 16546: #else
! 16547: # include <assert.h>
! 16548: #endif
! 16549:
! 16550: #undef $ac_func
! 16551:
! 16552: /* Override any gcc2 internal prototype to avoid an error. */
! 16553: #ifdef __cplusplus
! 16554: extern "C"
! 16555: {
! 16556: #endif
! 16557: /* We use char because int might match the return type of a gcc2
! 16558: builtin and then its argument prototype would still apply. */
! 16559: char $ac_func ();
! 16560: /* The GNU C library defines this for functions which it implements
! 16561: to always fail with ENOSYS. Some functions are actually named
! 16562: something starting with __ and the normal name is an alias. */
! 16563: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 16564: choke me
! 16565: #else
! 16566: char (*f) () = $ac_func;
! 16567: #endif
! 16568: #ifdef __cplusplus
! 16569: }
! 16570: #endif
! 16571:
1.23 millert 16572: int
16573: main ()
16574: {
1.25 ! millert 16575: return f != $ac_func;
1.23 millert 16576: ;
16577: return 0;
16578: }
16579: _ACEOF
1.25 ! millert 16580: rm -f conftest.$ac_objext conftest$ac_exeext
! 16581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16582: (eval $ac_link) 2>conftest.er1
1.23 millert 16583: ac_status=$?
1.25 ! millert 16584: grep -v '^ *+' conftest.er1 >conftest.err
! 16585: rm -f conftest.er1
! 16586: cat conftest.err >&5
1.23 millert 16587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588: (exit $ac_status); } &&
1.25 ! millert 16589: { ac_try='test -z "$ac_c_werror_flag"
! 16590: || test ! -s conftest.err'
! 16591: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16592: (eval $ac_try) 2>&5
! 16593: ac_status=$?
! 16594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16595: (exit $ac_status); }; } &&
! 16596: { ac_try='test -s conftest$ac_exeext'
1.23 millert 16597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598: (eval $ac_try) 2>&5
16599: ac_status=$?
16600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601: (exit $ac_status); }; }; then
1.25 ! millert 16602: eval "$as_ac_var=yes"
1.23 millert 16603: else
16604: echo "$as_me: failed program was:" >&5
16605: sed 's/^/| /' conftest.$ac_ext >&5
16606:
1.25 ! millert 16607: eval "$as_ac_var=no"
1.23 millert 16608: fi
1.25 ! millert 16609: rm -f conftest.err conftest.$ac_objext \
! 16610: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16611: fi
1.25 ! millert 16612: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 16613: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 16614: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16615: cat >>confdefs.h <<_ACEOF
! 16616: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16617: _ACEOF
! 16618:
1.23 millert 16619: else
1.25 ! millert 16620: SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.23 millert 16621:
16622:
1.25 ! millert 16623: for ac_func in random lrand48
! 16624: do
! 16625: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16626: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16627: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 16628: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.18 millert 16629: echo $ECHO_N "(cached) $ECHO_C" >&6
16630: else
1.23 millert 16631: cat >conftest.$ac_ext <<_ACEOF
16632: /* confdefs.h. */
16633: _ACEOF
16634: cat confdefs.h >>conftest.$ac_ext
16635: cat >>conftest.$ac_ext <<_ACEOF
16636: /* end confdefs.h. */
1.25 ! millert 16637: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16638: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16639: #define $ac_func innocuous_$ac_func
! 16640:
! 16641: /* System header to define __stub macros and hopefully few prototypes,
! 16642: which can conflict with char $ac_func (); below.
! 16643: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16644: <limits.h> exists even on freestanding compilers. */
! 16645:
! 16646: #ifdef __STDC__
! 16647: # include <limits.h>
! 16648: #else
! 16649: # include <assert.h>
! 16650: #endif
! 16651:
! 16652: #undef $ac_func
! 16653:
! 16654: /* Override any gcc2 internal prototype to avoid an error. */
! 16655: #ifdef __cplusplus
! 16656: extern "C"
! 16657: {
! 16658: #endif
! 16659: /* We use char because int might match the return type of a gcc2
! 16660: builtin and then its argument prototype would still apply. */
! 16661: char $ac_func ();
! 16662: /* The GNU C library defines this for functions which it implements
! 16663: to always fail with ENOSYS. Some functions are actually named
! 16664: something starting with __ and the normal name is an alias. */
! 16665: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 16666: choke me
! 16667: #else
! 16668: char (*f) () = $ac_func;
! 16669: #endif
! 16670: #ifdef __cplusplus
! 16671: }
! 16672: #endif
1.23 millert 16673:
1.25 ! millert 16674: int
! 16675: main ()
! 16676: {
! 16677: return f != $ac_func;
! 16678: ;
! 16679: return 0;
! 16680: }
1.23 millert 16681: _ACEOF
1.25 ! millert 16682: rm -f conftest.$ac_objext conftest$ac_exeext
! 16683: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16684: (eval $ac_link) 2>conftest.er1
! 16685: ac_status=$?
! 16686: grep -v '^ *+' conftest.er1 >conftest.err
! 16687: rm -f conftest.er1
! 16688: cat conftest.err >&5
! 16689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16690: (exit $ac_status); } &&
! 16691: { ac_try='test -z "$ac_c_werror_flag"
! 16692: || test ! -s conftest.err'
! 16693: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16694: (eval $ac_try) 2>&5
! 16695: ac_status=$?
! 16696: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16697: (exit $ac_status); }; } &&
! 16698: { ac_try='test -s conftest$ac_exeext'
! 16699: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16700: (eval $ac_try) 2>&5
! 16701: ac_status=$?
! 16702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16703: (exit $ac_status); }; }; then
! 16704: eval "$as_ac_var=yes"
1.23 millert 16705: else
1.25 ! millert 16706: echo "$as_me: failed program was:" >&5
! 16707: sed 's/^/| /' conftest.$ac_ext >&5
! 16708:
! 16709: eval "$as_ac_var=no"
! 16710: fi
! 16711: rm -f conftest.err conftest.$ac_objext \
! 16712: conftest$ac_exeext conftest.$ac_ext
! 16713: fi
! 16714: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 16715: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 16716: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16717: cat >>confdefs.h <<_ACEOF
! 16718: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16719: _ACEOF
! 16720: break
1.23 millert 16721: fi
1.25 ! millert 16722: done
! 16723:
1.23 millert 16724:
1.18 millert 16725: fi
1.25 ! millert 16726: done
1.23 millert 16727:
16728:
16729:
1.18 millert 16730:
1.23 millert 16731:
1.25 ! millert 16732: for ac_func in snprintf vsnprintf asprintf vasprintf
! 16733: do
! 16734: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16735: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16736: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 16737: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.23 millert 16738: echo $ECHO_N "(cached) $ECHO_C" >&6
16739: else
16740: cat >conftest.$ac_ext <<_ACEOF
16741: /* confdefs.h. */
1.18 millert 16742: _ACEOF
1.23 millert 16743: cat confdefs.h >>conftest.$ac_ext
16744: cat >>conftest.$ac_ext <<_ACEOF
16745: /* end confdefs.h. */
1.25 ! millert 16746: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16747: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16748: #define $ac_func innocuous_$ac_func
! 16749:
! 16750: /* System header to define __stub macros and hopefully few prototypes,
! 16751: which can conflict with char $ac_func (); below.
! 16752: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16753: <limits.h> exists even on freestanding compilers. */
! 16754:
! 16755: #ifdef __STDC__
! 16756: # include <limits.h>
! 16757: #else
! 16758: # include <assert.h>
! 16759: #endif
! 16760:
! 16761: #undef $ac_func
! 16762:
! 16763: /* Override any gcc2 internal prototype to avoid an error. */
! 16764: #ifdef __cplusplus
! 16765: extern "C"
! 16766: {
! 16767: #endif
! 16768: /* We use char because int might match the return type of a gcc2
! 16769: builtin and then its argument prototype would still apply. */
! 16770: char $ac_func ();
! 16771: /* The GNU C library defines this for functions which it implements
! 16772: to always fail with ENOSYS. Some functions are actually named
! 16773: something starting with __ and the normal name is an alias. */
! 16774: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 16775: choke me
! 16776: #else
! 16777: char (*f) () = $ac_func;
! 16778: #endif
! 16779: #ifdef __cplusplus
! 16780: }
! 16781: #endif
1.18 millert 16782:
1.23 millert 16783: int
16784: main ()
16785: {
1.25 ! millert 16786: return f != $ac_func;
1.23 millert 16787: ;
16788: return 0;
16789: }
16790: _ACEOF
1.25 ! millert 16791: rm -f conftest.$ac_objext conftest$ac_exeext
! 16792: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16793: (eval $ac_link) 2>conftest.er1
! 16794: ac_status=$?
! 16795: grep -v '^ *+' conftest.er1 >conftest.err
! 16796: rm -f conftest.er1
! 16797: cat conftest.err >&5
! 16798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16799: (exit $ac_status); } &&
! 16800: { ac_try='test -z "$ac_c_werror_flag"
! 16801: || test ! -s conftest.err'
! 16802: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16803: (eval $ac_try) 2>&5
1.23 millert 16804: ac_status=$?
16805: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 16806: (exit $ac_status); }; } &&
! 16807: { ac_try='test -s conftest$ac_exeext'
1.23 millert 16808: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809: (eval $ac_try) 2>&5
16810: ac_status=$?
16811: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812: (exit $ac_status); }; }; then
1.25 ! millert 16813: eval "$as_ac_var=yes"
1.18 millert 16814: else
1.23 millert 16815: echo "$as_me: failed program was:" >&5
16816: sed 's/^/| /' conftest.$ac_ext >&5
16817:
1.25 ! millert 16818: eval "$as_ac_var=no"
1.23 millert 16819: fi
1.25 ! millert 16820: rm -f conftest.err conftest.$ac_objext \
! 16821: conftest$ac_exeext conftest.$ac_ext
1.18 millert 16822: fi
1.25 ! millert 16823: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 16824: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 16825: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16826: cat >>confdefs.h <<_ACEOF
! 16827: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 16828: _ACEOF
16829:
16830: else
1.25 ! millert 16831: NEED_SNPRINTF=1
1.23 millert 16832: fi
1.25 ! millert 16833: done
1.18 millert 16834:
1.25 ! millert 16835: if test X"$ac_cv_type_struct_timespec" != X"no"; then
! 16836: echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
! 16837: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
! 16838: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.9 millert 16839: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 16840: else
1.9 millert 16841: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16842: /* confdefs.h. */
16843: _ACEOF
16844: cat confdefs.h >>conftest.$ac_ext
16845: cat >>conftest.$ac_ext <<_ACEOF
16846: /* end confdefs.h. */
1.25 ! millert 16847: $ac_includes_default
1.9 millert 16848: int
16849: main ()
16850: {
1.25 ! millert 16851: static struct stat ac_aggr;
! 16852: if (ac_aggr.st_mtim)
! 16853: return 0;
1.9 millert 16854: ;
16855: return 0;
16856: }
16857: _ACEOF
1.23 millert 16858: rm -f conftest.$ac_objext
16859: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 16860: (eval $ac_compile) 2>conftest.er1
1.9 millert 16861: ac_status=$?
1.25 ! millert 16862: grep -v '^ *+' conftest.er1 >conftest.err
! 16863: rm -f conftest.er1
! 16864: cat conftest.err >&5
1.16 millert 16865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 16866: (exit $ac_status); } &&
1.25 ! millert 16867: { ac_try='test -z "$ac_c_werror_flag"
! 16868: || test ! -s conftest.err'
! 16869: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16870: (eval $ac_try) 2>&5
! 16871: ac_status=$?
! 16872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16873: (exit $ac_status); }; } &&
! 16874: { ac_try='test -s conftest.$ac_objext'
1.16 millert 16875: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 16876: (eval $ac_try) 2>&5
16877: ac_status=$?
1.16 millert 16878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 16879: (exit $ac_status); }; }; then
1.25 ! millert 16880: ac_cv_member_struct_stat_st_mtim=yes
1.9 millert 16881: else
16882: echo "$as_me: failed program was:" >&5
1.16 millert 16883: sed 's/^/| /' conftest.$ac_ext >&5
16884:
1.25 ! millert 16885: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16886: /* confdefs.h. */
16887: _ACEOF
16888: cat confdefs.h >>conftest.$ac_ext
16889: cat >>conftest.$ac_ext <<_ACEOF
16890: /* end confdefs.h. */
1.25 ! millert 16891: $ac_includes_default
1.23 millert 16892: int
16893: main ()
16894: {
1.25 ! millert 16895: static struct stat ac_aggr;
! 16896: if (sizeof ac_aggr.st_mtim)
! 16897: return 0;
1.23 millert 16898: ;
16899: return 0;
16900: }
1.16 millert 16901: _ACEOF
16902: rm -f conftest.$ac_objext
16903: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 16904: (eval $ac_compile) 2>conftest.er1
1.16 millert 16905: ac_status=$?
1.25 ! millert 16906: grep -v '^ *+' conftest.er1 >conftest.err
! 16907: rm -f conftest.er1
! 16908: cat conftest.err >&5
1.16 millert 16909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910: (exit $ac_status); } &&
1.25 ! millert 16911: { ac_try='test -z "$ac_c_werror_flag"
! 16912: || test ! -s conftest.err'
! 16913: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16914: (eval $ac_try) 2>&5
! 16915: ac_status=$?
! 16916: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16917: (exit $ac_status); }; } &&
! 16918: { ac_try='test -s conftest.$ac_objext'
1.16 millert 16919: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920: (eval $ac_try) 2>&5
16921: ac_status=$?
16922: echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923: (exit $ac_status); }; }; then
1.25 ! millert 16924: ac_cv_member_struct_stat_st_mtim=yes
1.16 millert 16925: else
16926: echo "$as_me: failed program was:" >&5
16927: sed 's/^/| /' conftest.$ac_ext >&5
16928:
1.25 ! millert 16929: ac_cv_member_struct_stat_st_mtim=no
! 16930: fi
! 16931: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.16 millert 16932: fi
1.25 ! millert 16933: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 16934: fi
1.25 ! millert 16935: echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
! 16936: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
! 16937: if test $ac_cv_member_struct_stat_st_mtim = yes; then
1.23 millert 16938: cat >>confdefs.h <<\_ACEOF
1.25 ! millert 16939: #define HAVE_ST_MTIM 1
1.23 millert 16940: _ACEOF
16941:
16942: else
1.25 ! millert 16943: echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
! 16944: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
! 16945: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9 millert 16946: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 16947: else
1.23 millert 16948: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16949: /* confdefs.h. */
16950: _ACEOF
16951: cat confdefs.h >>conftest.$ac_ext
16952: cat >>conftest.$ac_ext <<_ACEOF
16953: /* end confdefs.h. */
1.25 ! millert 16954: $ac_includes_default
! 16955: int
! 16956: main ()
! 16957: {
! 16958: static struct stat ac_aggr;
! 16959: if (ac_aggr.st_mtimespec)
! 16960: return 0;
! 16961: ;
! 16962: return 0;
! 16963: }
1.16 millert 16964: _ACEOF
1.25 ! millert 16965: rm -f conftest.$ac_objext
! 16966: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 16967: (eval $ac_compile) 2>conftest.er1
! 16968: ac_status=$?
! 16969: grep -v '^ *+' conftest.er1 >conftest.err
! 16970: rm -f conftest.er1
! 16971: cat conftest.err >&5
! 16972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16973: (exit $ac_status); } &&
! 16974: { ac_try='test -z "$ac_c_werror_flag"
! 16975: || test ! -s conftest.err'
! 16976: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16977: (eval $ac_try) 2>&5
! 16978: ac_status=$?
! 16979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16980: (exit $ac_status); }; } &&
! 16981: { ac_try='test -s conftest.$ac_objext'
! 16982: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16983: (eval $ac_try) 2>&5
! 16984: ac_status=$?
! 16985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16986: (exit $ac_status); }; }; then
! 16987: ac_cv_member_struct_stat_st_mtimespec=yes
1.9 millert 16988: else
1.25 ! millert 16989: echo "$as_me: failed program was:" >&5
! 16990: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 16991:
1.25 ! millert 16992: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16993: /* confdefs.h. */
16994: _ACEOF
16995: cat confdefs.h >>conftest.$ac_ext
16996: cat >>conftest.$ac_ext <<_ACEOF
16997: /* end confdefs.h. */
1.25 ! millert 16998: $ac_includes_default
! 16999: int
! 17000: main ()
! 17001: {
! 17002: static struct stat ac_aggr;
! 17003: if (sizeof ac_aggr.st_mtimespec)
! 17004: return 0;
! 17005: ;
! 17006: return 0;
! 17007: }
1.9 millert 17008: _ACEOF
1.25 ! millert 17009: rm -f conftest.$ac_objext
! 17010: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 17011: (eval $ac_compile) 2>conftest.er1
! 17012: ac_status=$?
! 17013: grep -v '^ *+' conftest.er1 >conftest.err
! 17014: rm -f conftest.er1
! 17015: cat conftest.err >&5
! 17016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17017: (exit $ac_status); } &&
! 17018: { ac_try='test -z "$ac_c_werror_flag"
! 17019: || test ! -s conftest.err'
! 17020: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17021: (eval $ac_try) 2>&5
! 17022: ac_status=$?
! 17023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17024: (exit $ac_status); }; } &&
! 17025: { ac_try='test -s conftest.$ac_objext'
! 17026: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17027: (eval $ac_try) 2>&5
! 17028: ac_status=$?
! 17029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17030: (exit $ac_status); }; }; then
! 17031: ac_cv_member_struct_stat_st_mtimespec=yes
1.1 millert 17032: else
1.25 ! millert 17033: echo "$as_me: failed program was:" >&5
! 17034: sed 's/^/| /' conftest.$ac_ext >&5
! 17035:
! 17036: ac_cv_member_struct_stat_st_mtimespec=no
1.23 millert 17037: fi
1.25 ! millert 17038: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 17039: fi
1.25 ! millert 17040: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 millert 17041: fi
1.25 ! millert 17042: echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
! 17043: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
! 17044: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
! 17045: cat >>confdefs.h <<\_ACEOF
! 17046: #define HAVE_ST_MTIMESPEC 1
1.23 millert 17047: _ACEOF
1.16 millert 17048:
17049: fi
1.9 millert 17050:
17051: fi
1.16 millert 17052:
1.25 ! millert 17053: echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
! 17054: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6
! 17055: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17056: /* confdefs.h. */
17057: _ACEOF
17058: cat confdefs.h >>conftest.$ac_ext
17059: cat >>conftest.$ac_ext <<_ACEOF
17060: /* end confdefs.h. */
1.25 ! millert 17061: #include <sys/types.h>
! 17062: #include <sys/time.h>
1.23 millert 17063: int
17064: main ()
17065: {
1.25 ! millert 17066: struct timespec ts1, ts2;
! 17067: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
! 17068: #ifndef timespecsub
! 17069: #error missing timespecsub
! 17070: #endif
! 17071: timespecsub(&ts1, &ts2);
1.23 millert 17072: ;
17073: return 0;
17074: }
1.16 millert 17075: _ACEOF
17076: rm -f conftest.$ac_objext
17077: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 17078: (eval $ac_compile) 2>conftest.er1
1.16 millert 17079: ac_status=$?
1.25 ! millert 17080: grep -v '^ *+' conftest.er1 >conftest.err
! 17081: rm -f conftest.er1
! 17082: cat conftest.err >&5
1.16 millert 17083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084: (exit $ac_status); } &&
1.25 ! millert 17085: { ac_try='test -z "$ac_c_werror_flag"
! 17086: || test ! -s conftest.err'
! 17087: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17088: (eval $ac_try) 2>&5
! 17089: ac_status=$?
! 17090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17091: (exit $ac_status); }; } &&
! 17092: { ac_try='test -s conftest.$ac_objext'
1.16 millert 17093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094: (eval $ac_try) 2>&5
17095: ac_status=$?
17096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097: (exit $ac_status); }; }; then
1.25 ! millert 17098: cat >>confdefs.h <<\_ACEOF
! 17099: #define HAVE_TIMESPECSUB2 1
1.23 millert 17100: _ACEOF
17101:
1.25 ! millert 17102: echo "$as_me:$LINENO: result: yes" >&5
1.23 millert 17103: echo "${ECHO_T}yes" >&6
1.1 millert 17104: else
1.16 millert 17105: echo "$as_me: failed program was:" >&5
17106: sed 's/^/| /' conftest.$ac_ext >&5
17107:
1.23 millert 17108: echo "$as_me:$LINENO: result: no" >&5
17109: echo "${ECHO_T}no" >&6
1.16 millert 17110: fi
1.25 ! millert 17111: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 17112: fi
! 17113: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17114: /* confdefs.h. */
17115: _ACEOF
17116: cat confdefs.h >>conftest.$ac_ext
17117: cat >>conftest.$ac_ext <<_ACEOF
17118: /* end confdefs.h. */
1.23 millert 17119: #include <sys/types.h>
1.25 ! millert 17120: #include <$ac_header_dirent>
! 17121: int
! 17122: main ()
! 17123: {
! 17124: DIR d; (void)dirfd(&d);
! 17125: ;
! 17126: return 0;
1.23 millert 17127: }
1.9 millert 17128: _ACEOF
1.25 ! millert 17129: rm -f conftest.$ac_objext conftest$ac_exeext
1.23 millert 17130: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17131: (eval $ac_link) 2>conftest.er1
! 17132: ac_status=$?
! 17133: grep -v '^ *+' conftest.er1 >conftest.err
! 17134: rm -f conftest.er1
! 17135: cat conftest.err >&5
! 17136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17137: (exit $ac_status); } &&
! 17138: { ac_try='test -z "$ac_c_werror_flag"
! 17139: || test ! -s conftest.err'
! 17140: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17141: (eval $ac_try) 2>&5
1.23 millert 17142: ac_status=$?
17143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 17144: (exit $ac_status); }; } &&
! 17145: { ac_try='test -s conftest$ac_exeext'
1.23 millert 17146: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147: (eval $ac_try) 2>&5
1.9 millert 17148: ac_status=$?
1.16 millert 17149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 millert 17150: (exit $ac_status); }; }; then
1.25 ! millert 17151: cat >>confdefs.h <<\_ACEOF
! 17152: #define HAVE_DIRFD 1
! 17153: _ACEOF
! 17154:
1.9 millert 17155: else
1.25 ! millert 17156: echo "$as_me: failed program was:" >&5
1.16 millert 17157: sed 's/^/| /' conftest.$ac_ext >&5
17158:
1.23 millert 17159: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17160: /* confdefs.h. */
17161: _ACEOF
17162: cat confdefs.h >>conftest.$ac_ext
17163: cat >>conftest.$ac_ext <<_ACEOF
17164: /* end confdefs.h. */
1.25 ! millert 17165: #include <sys/types.h>
! 17166: #include <$ac_header_dirent>
1.9 millert 17167: int
17168: main ()
17169: {
1.25 ! millert 17170: DIR d; (void)&d.dd_fd;
1.9 millert 17171: ;
17172: return 0;
17173: }
17174: _ACEOF
1.23 millert 17175: rm -f conftest.$ac_objext conftest$ac_exeext
17176: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17177: (eval $ac_link) 2>conftest.er1
1.9 millert 17178: ac_status=$?
1.25 ! millert 17179: grep -v '^ *+' conftest.er1 >conftest.err
! 17180: rm -f conftest.er1
! 17181: cat conftest.err >&5
1.16 millert 17182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17183: (exit $ac_status); } &&
1.25 ! millert 17184: { ac_try='test -z "$ac_c_werror_flag"
! 17185: || test ! -s conftest.err'
! 17186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17187: (eval $ac_try) 2>&5
! 17188: ac_status=$?
! 17189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17190: (exit $ac_status); }; } &&
! 17191: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17193: (eval $ac_try) 2>&5
17194: ac_status=$?
1.16 millert 17195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17196: (exit $ac_status); }; }; then
1.25 ! millert 17197: cat >>confdefs.h <<\_ACEOF
! 17198: #define HAVE_DD_FD 1
! 17199: _ACEOF
! 17200:
! 17201: else
! 17202: echo "$as_me: failed program was:" >&5
! 17203: sed 's/^/| /' conftest.$ac_ext >&5
1.16 millert 17204:
1.25 ! millert 17205: fi
! 17206: rm -f conftest.err conftest.$ac_objext \
! 17207: conftest$ac_exeext conftest.$ac_ext
! 17208: fi
! 17209: rm -f conftest.err conftest.$ac_objext \
! 17210: conftest$ac_exeext conftest.$ac_ext
! 17211: if test -n "$NEED_SNPRINTF"; then
! 17212: case $LIBOBJS in
! 17213: "snprintf.$ac_objext" | \
! 17214: *" snprintf.$ac_objext" | \
! 17215: "snprintf.$ac_objext "* | \
! 17216: *" snprintf.$ac_objext "* ) ;;
! 17217: *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
! 17218: esac
1.9 millert 17219:
1.25 ! millert 17220: fi
! 17221: if test -z "$LIB_CRYPT" -a "$with_pam" != "yes"; then
! 17222: echo "$as_me:$LINENO: checking for crypt" >&5
! 17223: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
! 17224: if test "${ac_cv_func_crypt+set}" = set; then
! 17225: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 17226: else
1.9 millert 17227: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17228: /* confdefs.h. */
17229: _ACEOF
17230: cat confdefs.h >>conftest.$ac_ext
17231: cat >>conftest.$ac_ext <<_ACEOF
1.25 ! millert 17232: /* end confdefs.h. */
! 17233: /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
! 17234: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17235: #define crypt innocuous_crypt
! 17236:
! 17237: /* System header to define __stub macros and hopefully few prototypes,
! 17238: which can conflict with char crypt (); below.
! 17239: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 17240: <limits.h> exists even on freestanding compilers. */
! 17241:
! 17242: #ifdef __STDC__
! 17243: # include <limits.h>
! 17244: #else
! 17245: # include <assert.h>
! 17246: #endif
! 17247:
! 17248: #undef crypt
! 17249:
! 17250: /* Override any gcc2 internal prototype to avoid an error. */
! 17251: #ifdef __cplusplus
! 17252: extern "C"
! 17253: {
! 17254: #endif
! 17255: /* We use char because int might match the return type of a gcc2
! 17256: builtin and then its argument prototype would still apply. */
! 17257: char crypt ();
! 17258: /* The GNU C library defines this for functions which it implements
! 17259: to always fail with ENOSYS. Some functions are actually named
! 17260: something starting with __ and the normal name is an alias. */
! 17261: #if defined (__stub_crypt) || defined (__stub___crypt)
! 17262: choke me
! 17263: #else
! 17264: char (*f) () = crypt;
! 17265: #endif
! 17266: #ifdef __cplusplus
! 17267: }
! 17268: #endif
! 17269:
! 17270: int
! 17271: main ()
! 17272: {
! 17273: return f != crypt;
! 17274: ;
! 17275: return 0;
! 17276: }
! 17277: _ACEOF
! 17278: rm -f conftest.$ac_objext conftest$ac_exeext
! 17279: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 17280: (eval $ac_link) 2>conftest.er1
! 17281: ac_status=$?
! 17282: grep -v '^ *+' conftest.er1 >conftest.err
! 17283: rm -f conftest.er1
! 17284: cat conftest.err >&5
! 17285: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17286: (exit $ac_status); } &&
! 17287: { ac_try='test -z "$ac_c_werror_flag"
! 17288: || test ! -s conftest.err'
! 17289: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17290: (eval $ac_try) 2>&5
1.23 millert 17291: ac_status=$?
17292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 17293: (exit $ac_status); }; } &&
! 17294: { ac_try='test -s conftest$ac_exeext'
1.23 millert 17295: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296: (eval $ac_try) 2>&5
17297: ac_status=$?
17298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299: (exit $ac_status); }; }; then
1.25 ! millert 17300: ac_cv_func_crypt=yes
1.23 millert 17301: else
1.25 ! millert 17302: echo "$as_me: failed program was:" >&5
1.23 millert 17303: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 17304:
1.25 ! millert 17305: ac_cv_func_crypt=no
1.23 millert 17306: fi
1.25 ! millert 17307: rm -f conftest.err conftest.$ac_objext \
! 17308: conftest$ac_exeext conftest.$ac_ext
1.23 millert 17309: fi
1.25 ! millert 17310: echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
! 17311: echo "${ECHO_T}$ac_cv_func_crypt" >&6
! 17312: if test $ac_cv_func_crypt = yes; then
! 17313: :
1.23 millert 17314: else
1.25 ! millert 17315: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
! 17316: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
! 17317: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
1.9 millert 17318: echo $ECHO_N "(cached) $ECHO_C" >&6
17319: else
1.25 ! millert 17320: ac_check_lib_save_LIBS=$LIBS
! 17321: LIBS="-lcrypt $LIBS"
! 17322: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17323: /* confdefs.h. */
17324: _ACEOF
17325: cat confdefs.h >>conftest.$ac_ext
17326: cat >>conftest.$ac_ext <<_ACEOF
17327: /* end confdefs.h. */
1.25 ! millert 17328:
! 17329: /* Override any gcc2 internal prototype to avoid an error. */
! 17330: #ifdef __cplusplus
! 17331: extern "C"
! 17332: #endif
! 17333: /* We use char because int might match the return type of a gcc2
! 17334: builtin and then its argument prototype would still apply. */
! 17335: char crypt ();
! 17336: int
! 17337: main ()
! 17338: {
! 17339: crypt ();
! 17340: ;
! 17341: return 0;
1.9 millert 17342: }
17343: _ACEOF
1.25 ! millert 17344: rm -f conftest.$ac_objext conftest$ac_exeext
1.23 millert 17345: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17346: (eval $ac_link) 2>conftest.er1
! 17347: ac_status=$?
! 17348: grep -v '^ *+' conftest.er1 >conftest.err
! 17349: rm -f conftest.er1
! 17350: cat conftest.err >&5
! 17351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17352: (exit $ac_status); } &&
! 17353: { ac_try='test -z "$ac_c_werror_flag"
! 17354: || test ! -s conftest.err'
! 17355: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17356: (eval $ac_try) 2>&5
1.9 millert 17357: ac_status=$?
1.16 millert 17358: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 17359: (exit $ac_status); }; } &&
! 17360: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17361: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17362: (eval $ac_try) 2>&5
17363: ac_status=$?
1.16 millert 17364: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17365: (exit $ac_status); }; }; then
1.25 ! millert 17366: ac_cv_lib_crypt_crypt=yes
1.7 millert 17367: else
1.25 ! millert 17368: echo "$as_me: failed program was:" >&5
1.16 millert 17369: sed 's/^/| /' conftest.$ac_ext >&5
17370:
1.25 ! millert 17371: ac_cv_lib_crypt_crypt=no
1.23 millert 17372: fi
1.25 ! millert 17373: rm -f conftest.err conftest.$ac_objext \
! 17374: conftest$ac_exeext conftest.$ac_ext
! 17375: LIBS=$ac_check_lib_save_LIBS
1.7 millert 17376: fi
1.25 ! millert 17377: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
! 17378: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
! 17379: if test $ac_cv_lib_crypt_crypt = yes; then
! 17380: SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
! 17381: else
! 17382: echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
! 17383: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
! 17384: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
1.9 millert 17385: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17386: else
1.25 ! millert 17387: ac_check_lib_save_LIBS=$LIBS
! 17388: LIBS="-lcrypt_d $LIBS"
! 17389: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17390: /* confdefs.h. */
17391: _ACEOF
17392: cat confdefs.h >>conftest.$ac_ext
17393: cat >>conftest.$ac_ext <<_ACEOF
17394: /* end confdefs.h. */
1.25 ! millert 17395:
! 17396: /* Override any gcc2 internal prototype to avoid an error. */
1.23 millert 17397: #ifdef __cplusplus
1.25 ! millert 17398: extern "C"
1.23 millert 17399: #endif
1.25 ! millert 17400: /* We use char because int might match the return type of a gcc2
! 17401: builtin and then its argument prototype would still apply. */
! 17402: char crypt ();
1.9 millert 17403: int
17404: main ()
17405: {
1.25 ! millert 17406: crypt ();
1.9 millert 17407: ;
17408: return 0;
17409: }
17410: _ACEOF
1.25 ! millert 17411: rm -f conftest.$ac_objext conftest$ac_exeext
! 17412: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 17413: (eval $ac_link) 2>conftest.er1
1.9 millert 17414: ac_status=$?
1.25 ! millert 17415: grep -v '^ *+' conftest.er1 >conftest.err
! 17416: rm -f conftest.er1
! 17417: cat conftest.err >&5
1.16 millert 17418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17419: (exit $ac_status); } &&
1.25 ! millert 17420: { ac_try='test -z "$ac_c_werror_flag"
! 17421: || test ! -s conftest.err'
! 17422: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17423: (eval $ac_try) 2>&5
! 17424: ac_status=$?
! 17425: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17426: (exit $ac_status); }; } &&
! 17427: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17428: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17429: (eval $ac_try) 2>&5
17430: ac_status=$?
1.16 millert 17431: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17432: (exit $ac_status); }; }; then
1.25 ! millert 17433: ac_cv_lib_crypt_d_crypt=yes
1.1 millert 17434: else
1.9 millert 17435: echo "$as_me: failed program was:" >&5
1.16 millert 17436: sed 's/^/| /' conftest.$ac_ext >&5
17437:
1.25 ! millert 17438: ac_cv_lib_crypt_d_crypt=no
1.1 millert 17439: fi
1.25 ! millert 17440: rm -f conftest.err conftest.$ac_objext \
! 17441: conftest$ac_exeext conftest.$ac_ext
! 17442: LIBS=$ac_check_lib_save_LIBS
1.1 millert 17443: fi
1.25 ! millert 17444: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
! 17445: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
! 17446: if test $ac_cv_lib_crypt_d_crypt = yes; then
! 17447: SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
! 17448: else
! 17449: echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
! 17450: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
! 17451: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
1.9 millert 17452: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17453: else
1.25 ! millert 17454: ac_check_lib_save_LIBS=$LIBS
! 17455: LIBS="-lufc $LIBS"
! 17456: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17457: /* confdefs.h. */
17458: _ACEOF
17459: cat confdefs.h >>conftest.$ac_ext
17460: cat >>conftest.$ac_ext <<_ACEOF
17461: /* end confdefs.h. */
1.25 ! millert 17462:
1.23 millert 17463: /* Override any gcc2 internal prototype to avoid an error. */
17464: #ifdef __cplusplus
17465: extern "C"
17466: #endif
17467: /* We use char because int might match the return type of a gcc2
17468: builtin and then its argument prototype would still apply. */
1.25 ! millert 17469: char crypt ();
1.23 millert 17470: int
17471: main ()
17472: {
1.25 ! millert 17473: crypt ();
1.23 millert 17474: ;
17475: return 0;
17476: }
1.9 millert 17477: _ACEOF
1.23 millert 17478: rm -f conftest.$ac_objext conftest$ac_exeext
17479: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17480: (eval $ac_link) 2>conftest.er1
1.23 millert 17481: ac_status=$?
1.25 ! millert 17482: grep -v '^ *+' conftest.er1 >conftest.err
! 17483: rm -f conftest.er1
! 17484: cat conftest.err >&5
1.23 millert 17485: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486: (exit $ac_status); } &&
1.25 ! millert 17487: { ac_try='test -z "$ac_c_werror_flag"
! 17488: || test ! -s conftest.err'
! 17489: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17490: (eval $ac_try) 2>&5
! 17491: ac_status=$?
! 17492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17493: (exit $ac_status); }; } &&
! 17494: { ac_try='test -s conftest$ac_exeext'
1.23 millert 17495: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496: (eval $ac_try) 2>&5
17497: ac_status=$?
17498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499: (exit $ac_status); }; }; then
1.25 ! millert 17500: ac_cv_lib_ufc_crypt=yes
1.1 millert 17501: else
1.23 millert 17502: echo "$as_me: failed program was:" >&5
17503: sed 's/^/| /' conftest.$ac_ext >&5
17504:
1.25 ! millert 17505: ac_cv_lib_ufc_crypt=no
! 17506: fi
! 17507: rm -f conftest.err conftest.$ac_objext \
! 17508: conftest$ac_exeext conftest.$ac_ext
! 17509: LIBS=$ac_check_lib_save_LIBS
! 17510: fi
! 17511: echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
! 17512: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
! 17513: if test $ac_cv_lib_ufc_crypt = yes; then
! 17514: SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
1.1 millert 17515: fi
1.25 ! millert 17516:
1.1 millert 17517: fi
17518:
17519: fi
17520:
1.25 ! millert 17521: fi
1.23 millert 17522:
1.25 ! millert 17523: fi
! 17524: echo "$as_me:$LINENO: checking for socket" >&5
! 17525: echo $ECHO_N "checking for socket... $ECHO_C" >&6
! 17526: if test "${ac_cv_func_socket+set}" = set; then
1.9 millert 17527: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17528: else
1.9 millert 17529: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17530: /* confdefs.h. */
17531: _ACEOF
17532: cat confdefs.h >>conftest.$ac_ext
17533: cat >>conftest.$ac_ext <<_ACEOF
17534: /* end confdefs.h. */
1.25 ! millert 17535: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
! 17536: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17537: #define socket innocuous_socket
! 17538:
1.23 millert 17539: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 17540: which can conflict with char socket (); below.
1.23 millert 17541: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17542: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 17543:
1.23 millert 17544: #ifdef __STDC__
17545: # include <limits.h>
17546: #else
17547: # include <assert.h>
17548: #endif
1.25 ! millert 17549:
! 17550: #undef socket
! 17551:
1.23 millert 17552: /* Override any gcc2 internal prototype to avoid an error. */
17553: #ifdef __cplusplus
17554: extern "C"
17555: {
17556: #endif
17557: /* We use char because int might match the return type of a gcc2
17558: builtin and then its argument prototype would still apply. */
1.25 ! millert 17559: char socket ();
1.23 millert 17560: /* The GNU C library defines this for functions which it implements
17561: to always fail with ENOSYS. Some functions are actually named
17562: something starting with __ and the normal name is an alias. */
1.25 ! millert 17563: #if defined (__stub_socket) || defined (__stub___socket)
1.23 millert 17564: choke me
17565: #else
1.25 ! millert 17566: char (*f) () = socket;
1.1 millert 17567: #endif
1.23 millert 17568: #ifdef __cplusplus
17569: }
1.1 millert 17570: #endif
17571:
1.9 millert 17572: int
17573: main ()
17574: {
1.25 ! millert 17575: return f != socket;
1.9 millert 17576: ;
17577: return 0;
17578: }
17579: _ACEOF
1.23 millert 17580: rm -f conftest.$ac_objext conftest$ac_exeext
17581: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17582: (eval $ac_link) 2>conftest.er1
1.9 millert 17583: ac_status=$?
1.25 ! millert 17584: grep -v '^ *+' conftest.er1 >conftest.err
! 17585: rm -f conftest.er1
! 17586: cat conftest.err >&5
1.16 millert 17587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17588: (exit $ac_status); } &&
1.25 ! millert 17589: { ac_try='test -z "$ac_c_werror_flag"
! 17590: || test ! -s conftest.err'
! 17591: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17592: (eval $ac_try) 2>&5
! 17593: ac_status=$?
! 17594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17595: (exit $ac_status); }; } &&
! 17596: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17597: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17598: (eval $ac_try) 2>&5
17599: ac_status=$?
1.16 millert 17600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17601: (exit $ac_status); }; }; then
1.25 ! millert 17602: ac_cv_func_socket=yes
1.23 millert 17603: else
17604: echo "$as_me: failed program was:" >&5
17605: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 17606:
1.25 ! millert 17607: ac_cv_func_socket=no
1.23 millert 17608: fi
1.25 ! millert 17609: rm -f conftest.err conftest.$ac_objext \
! 17610: conftest$ac_exeext conftest.$ac_ext
1.23 millert 17611: fi
1.25 ! millert 17612: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
! 17613: echo "${ECHO_T}$ac_cv_func_socket" >&6
! 17614: if test $ac_cv_func_socket = yes; then
! 17615: :
1.1 millert 17616: else
1.25 ! millert 17617: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
! 17618: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
! 17619: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.9 millert 17620: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17621: else
1.25 ! millert 17622: ac_check_lib_save_LIBS=$LIBS
! 17623: LIBS="-lsocket $LIBS"
! 17624: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17625: /* confdefs.h. */
17626: _ACEOF
17627: cat confdefs.h >>conftest.$ac_ext
1.23 millert 17628: cat >>conftest.$ac_ext <<_ACEOF
17629: /* end confdefs.h. */
1.25 ! millert 17630:
1.23 millert 17631: /* Override any gcc2 internal prototype to avoid an error. */
17632: #ifdef __cplusplus
17633: extern "C"
17634: #endif
17635: /* We use char because int might match the return type of a gcc2
17636: builtin and then its argument prototype would still apply. */
1.25 ! millert 17637: char socket ();
1.23 millert 17638: int
17639: main ()
17640: {
1.25 ! millert 17641: socket ();
1.23 millert 17642: ;
17643: return 0;
1.1 millert 17644: }
1.9 millert 17645: _ACEOF
1.23 millert 17646: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 17647: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17648: (eval $ac_link) 2>conftest.er1
1.9 millert 17649: ac_status=$?
1.25 ! millert 17650: grep -v '^ *+' conftest.er1 >conftest.err
! 17651: rm -f conftest.er1
! 17652: cat conftest.err >&5
1.16 millert 17653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 millert 17654: (exit $ac_status); } &&
1.25 ! millert 17655: { ac_try='test -z "$ac_c_werror_flag"
! 17656: || test ! -s conftest.err'
! 17657: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17658: (eval $ac_try) 2>&5
! 17659: ac_status=$?
! 17660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17661: (exit $ac_status); }; } &&
! 17662: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17663: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17664: (eval $ac_try) 2>&5
17665: ac_status=$?
1.16 millert 17666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17667: (exit $ac_status); }; }; then
1.25 ! millert 17668: ac_cv_lib_socket_socket=yes
1.1 millert 17669: else
1.23 millert 17670: echo "$as_me: failed program was:" >&5
1.16 millert 17671: sed 's/^/| /' conftest.$ac_ext >&5
17672:
1.25 ! millert 17673: ac_cv_lib_socket_socket=no
1.23 millert 17674: fi
1.25 ! millert 17675: rm -f conftest.err conftest.$ac_objext \
! 17676: conftest$ac_exeext conftest.$ac_ext
! 17677: LIBS=$ac_check_lib_save_LIBS
1.1 millert 17678: fi
1.25 ! millert 17679: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
! 17680: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
! 17681: if test $ac_cv_lib_socket_socket = yes; then
! 17682: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
! 17683: else
! 17684: echo "$as_me:$LINENO: checking for socket in -linet" >&5
! 17685: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
! 17686: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.23 millert 17687: echo $ECHO_N "(cached) $ECHO_C" >&6
17688: else
1.25 ! millert 17689: ac_check_lib_save_LIBS=$LIBS
! 17690: LIBS="-linet $LIBS"
! 17691: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17692: /* confdefs.h. */
17693: _ACEOF
17694: cat confdefs.h >>conftest.$ac_ext
17695: cat >>conftest.$ac_ext <<_ACEOF
17696: /* end confdefs.h. */
1.25 ! millert 17697:
1.23 millert 17698: /* Override any gcc2 internal prototype to avoid an error. */
17699: #ifdef __cplusplus
17700: extern "C"
17701: #endif
17702: /* We use char because int might match the return type of a gcc2
17703: builtin and then its argument prototype would still apply. */
1.25 ! millert 17704: char socket ();
1.9 millert 17705: int
17706: main ()
17707: {
1.25 ! millert 17708: socket ();
1.9 millert 17709: ;
17710: return 0;
17711: }
17712: _ACEOF
17713: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 17714: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17715: (eval $ac_link) 2>conftest.er1
1.9 millert 17716: ac_status=$?
1.25 ! millert 17717: grep -v '^ *+' conftest.er1 >conftest.err
! 17718: rm -f conftest.er1
! 17719: cat conftest.err >&5
1.16 millert 17720: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17721: (exit $ac_status); } &&
1.25 ! millert 17722: { ac_try='test -z "$ac_c_werror_flag"
! 17723: || test ! -s conftest.err'
! 17724: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17725: (eval $ac_try) 2>&5
! 17726: ac_status=$?
! 17727: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17728: (exit $ac_status); }; } &&
! 17729: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17730: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17731: (eval $ac_try) 2>&5
17732: ac_status=$?
1.16 millert 17733: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17734: (exit $ac_status); }; }; then
1.25 ! millert 17735: ac_cv_lib_inet_socket=yes
1.23 millert 17736: else
17737: echo "$as_me: failed program was:" >&5
17738: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 17739:
1.25 ! millert 17740: ac_cv_lib_inet_socket=no
1.23 millert 17741: fi
1.25 ! millert 17742: rm -f conftest.err conftest.$ac_objext \
! 17743: conftest$ac_exeext conftest.$ac_ext
! 17744: LIBS=$ac_check_lib_save_LIBS
1.23 millert 17745: fi
1.25 ! millert 17746: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
! 17747: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
! 17748: if test $ac_cv_lib_inet_socket = yes; then
! 17749: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
! 17750: else
! 17751: { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
! 17752: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
! 17753: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
! 17754: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
! 17755: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23 millert 17756: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17757: else
1.25 ! millert 17758: ac_check_lib_save_LIBS=$LIBS
! 17759: LIBS="-lsocket -lnsl $LIBS"
! 17760: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17761: /* confdefs.h. */
17762: _ACEOF
17763: cat confdefs.h >>conftest.$ac_ext
17764: cat >>conftest.$ac_ext <<_ACEOF
17765: /* end confdefs.h. */
1.25 ! millert 17766:
1.23 millert 17767: /* Override any gcc2 internal prototype to avoid an error. */
17768: #ifdef __cplusplus
17769: extern "C"
17770: #endif
17771: /* We use char because int might match the return type of a gcc2
17772: builtin and then its argument prototype would still apply. */
1.25 ! millert 17773: char socket ();
1.23 millert 17774: int
17775: main ()
17776: {
1.25 ! millert 17777: socket ();
1.23 millert 17778: ;
17779: return 0;
17780: }
1.9 millert 17781: _ACEOF
1.23 millert 17782: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 17783: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17784: (eval $ac_link) 2>conftest.er1
1.9 millert 17785: ac_status=$?
1.25 ! millert 17786: grep -v '^ *+' conftest.er1 >conftest.err
! 17787: rm -f conftest.er1
! 17788: cat conftest.err >&5
1.16 millert 17789: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 millert 17790: (exit $ac_status); } &&
1.25 ! millert 17791: { ac_try='test -z "$ac_c_werror_flag"
! 17792: || test ! -s conftest.err'
! 17793: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17794: (eval $ac_try) 2>&5
! 17795: ac_status=$?
! 17796: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17797: (exit $ac_status); }; } &&
! 17798: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17799: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17800: (eval $ac_try) 2>&5
17801: ac_status=$?
1.16 millert 17802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17803: (exit $ac_status); }; }; then
1.25 ! millert 17804: ac_cv_lib_socket_socket_lnsl=yes
1.1 millert 17805: else
1.23 millert 17806: echo "$as_me: failed program was:" >&5
1.16 millert 17807: sed 's/^/| /' conftest.$ac_ext >&5
17808:
1.25 ! millert 17809: ac_cv_lib_socket_socket_lnsl=no
! 17810: fi
! 17811: rm -f conftest.err conftest.$ac_objext \
! 17812: conftest$ac_exeext conftest.$ac_ext
! 17813: LIBS=$ac_check_lib_save_LIBS
! 17814: fi
! 17815: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
! 17816: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
! 17817: if test $ac_cv_lib_socket_socket_lnsl = yes; then
! 17818: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
! 17819: fi
! 17820:
! 17821: fi
! 17822:
1.9 millert 17823: fi
1.25 ! millert 17824:
1.9 millert 17825: fi
1.16 millert 17826:
1.25 ! millert 17827: echo "$as_me:$LINENO: checking for inet_addr" >&5
! 17828: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
! 17829: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9 millert 17830: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17831: else
1.9 millert 17832: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17833: /* confdefs.h. */
17834: _ACEOF
17835: cat confdefs.h >>conftest.$ac_ext
17836: cat >>conftest.$ac_ext <<_ACEOF
17837: /* end confdefs.h. */
1.25 ! millert 17838: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
! 17839: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17840: #define inet_addr innocuous_inet_addr
! 17841:
1.23 millert 17842: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 17843: which can conflict with char inet_addr (); below.
1.23 millert 17844: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17845: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 17846:
1.23 millert 17847: #ifdef __STDC__
17848: # include <limits.h>
17849: #else
17850: # include <assert.h>
17851: #endif
1.25 ! millert 17852:
! 17853: #undef inet_addr
! 17854:
1.23 millert 17855: /* Override any gcc2 internal prototype to avoid an error. */
17856: #ifdef __cplusplus
17857: extern "C"
17858: {
17859: #endif
17860: /* We use char because int might match the return type of a gcc2
17861: builtin and then its argument prototype would still apply. */
1.25 ! millert 17862: char inet_addr ();
1.23 millert 17863: /* The GNU C library defines this for functions which it implements
17864: to always fail with ENOSYS. Some functions are actually named
17865: something starting with __ and the normal name is an alias. */
1.25 ! millert 17866: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
1.23 millert 17867: choke me
17868: #else
1.25 ! millert 17869: char (*f) () = inet_addr;
1.23 millert 17870: #endif
17871: #ifdef __cplusplus
17872: }
17873: #endif
17874:
17875: int
17876: main ()
17877: {
1.25 ! millert 17878: return f != inet_addr;
1.23 millert 17879: ;
17880: return 0;
1.1 millert 17881: }
1.9 millert 17882: _ACEOF
1.23 millert 17883: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 17884: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17885: (eval $ac_link) 2>conftest.er1
1.9 millert 17886: ac_status=$?
1.25 ! millert 17887: grep -v '^ *+' conftest.er1 >conftest.err
! 17888: rm -f conftest.er1
! 17889: cat conftest.err >&5
1.16 millert 17890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 millert 17891: (exit $ac_status); } &&
1.25 ! millert 17892: { ac_try='test -z "$ac_c_werror_flag"
! 17893: || test ! -s conftest.err'
! 17894: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17895: (eval $ac_try) 2>&5
! 17896: ac_status=$?
! 17897: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17898: (exit $ac_status); }; } &&
! 17899: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17900: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 17901: (eval $ac_try) 2>&5
17902: ac_status=$?
1.16 millert 17903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 17904: (exit $ac_status); }; }; then
1.25 ! millert 17905: ac_cv_func_inet_addr=yes
1.1 millert 17906: else
1.23 millert 17907: echo "$as_me: failed program was:" >&5
1.16 millert 17908: sed 's/^/| /' conftest.$ac_ext >&5
17909:
1.25 ! millert 17910: ac_cv_func_inet_addr=no
1.1 millert 17911: fi
1.25 ! millert 17912: rm -f conftest.err conftest.$ac_objext \
! 17913: conftest$ac_exeext conftest.$ac_ext
1.1 millert 17914: fi
1.25 ! millert 17915: echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
! 17916: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
! 17917: if test $ac_cv_func_inet_addr = yes; then
! 17918: :
! 17919: else
! 17920: echo "$as_me:$LINENO: checking for __inet_addr" >&5
! 17921: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
! 17922: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9 millert 17923: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17924: else
1.9 millert 17925: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17926: /* confdefs.h. */
17927: _ACEOF
17928: cat confdefs.h >>conftest.$ac_ext
17929: cat >>conftest.$ac_ext <<_ACEOF
17930: /* end confdefs.h. */
1.25 ! millert 17931: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
! 17932: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 17933: #define __inet_addr innocuous___inet_addr
! 17934:
1.23 millert 17935: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 17936: which can conflict with char __inet_addr (); below.
1.23 millert 17937: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17938: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 17939:
1.23 millert 17940: #ifdef __STDC__
17941: # include <limits.h>
17942: #else
17943: # include <assert.h>
1.1 millert 17944: #endif
1.25 ! millert 17945:
! 17946: #undef __inet_addr
! 17947:
1.23 millert 17948: /* Override any gcc2 internal prototype to avoid an error. */
1.1 millert 17949: #ifdef __cplusplus
1.23 millert 17950: extern "C"
17951: {
17952: #endif
17953: /* We use char because int might match the return type of a gcc2
17954: builtin and then its argument prototype would still apply. */
1.25 ! millert 17955: char __inet_addr ();
1.23 millert 17956: /* The GNU C library defines this for functions which it implements
17957: to always fail with ENOSYS. Some functions are actually named
17958: something starting with __ and the normal name is an alias. */
1.25 ! millert 17959: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
1.23 millert 17960: choke me
1.1 millert 17961: #else
1.25 ! millert 17962: char (*f) () = __inet_addr;
1.23 millert 17963: #endif
17964: #ifdef __cplusplus
17965: }
1.1 millert 17966: #endif
17967:
1.9 millert 17968: int
17969: main ()
17970: {
1.25 ! millert 17971: return f != __inet_addr;
1.9 millert 17972: ;
17973: return 0;
17974: }
17975: _ACEOF
1.23 millert 17976: rm -f conftest.$ac_objext conftest$ac_exeext
17977: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 17978: (eval $ac_link) 2>conftest.er1
1.9 millert 17979: ac_status=$?
1.25 ! millert 17980: grep -v '^ *+' conftest.er1 >conftest.err
! 17981: rm -f conftest.er1
! 17982: cat conftest.err >&5
1.16 millert 17983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984: (exit $ac_status); } &&
1.25 ! millert 17985: { ac_try='test -z "$ac_c_werror_flag"
! 17986: || test ! -s conftest.err'
! 17987: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 17988: (eval $ac_try) 2>&5
! 17989: ac_status=$?
! 17990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17991: (exit $ac_status); }; } &&
! 17992: { ac_try='test -s conftest$ac_exeext'
1.16 millert 17993: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994: (eval $ac_try) 2>&5
17995: ac_status=$?
17996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997: (exit $ac_status); }; }; then
1.25 ! millert 17998: ac_cv_func___inet_addr=yes
1.16 millert 17999: else
18000: echo "$as_me: failed program was:" >&5
18001: sed 's/^/| /' conftest.$ac_ext >&5
18002:
1.25 ! millert 18003: ac_cv_func___inet_addr=no
1.16 millert 18004: fi
1.25 ! millert 18005: rm -f conftest.err conftest.$ac_objext \
! 18006: conftest$ac_exeext conftest.$ac_ext
1.16 millert 18007: fi
1.25 ! millert 18008: echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
! 18009: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
! 18010: if test $ac_cv_func___inet_addr = yes; then
! 18011: :
! 18012: else
! 18013: echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
! 18014: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
! 18015: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.16 millert 18016: echo $ECHO_N "(cached) $ECHO_C" >&6
18017: else
1.25 ! millert 18018: ac_check_lib_save_LIBS=$LIBS
! 18019: LIBS="-lnsl $LIBS"
! 18020: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18021: /* confdefs.h. */
18022: _ACEOF
18023: cat confdefs.h >>conftest.$ac_ext
18024: cat >>conftest.$ac_ext <<_ACEOF
18025: /* end confdefs.h. */
1.25 ! millert 18026:
1.16 millert 18027: /* Override any gcc2 internal prototype to avoid an error. */
18028: #ifdef __cplusplus
18029: extern "C"
18030: #endif
18031: /* We use char because int might match the return type of a gcc2
18032: builtin and then its argument prototype would still apply. */
1.25 ! millert 18033: char inet_addr ();
1.16 millert 18034: int
18035: main ()
18036: {
1.25 ! millert 18037: inet_addr ();
1.16 millert 18038: ;
18039: return 0;
18040: }
18041: _ACEOF
18042: rm -f conftest.$ac_objext conftest$ac_exeext
18043: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18044: (eval $ac_link) 2>conftest.er1
1.16 millert 18045: ac_status=$?
1.25 ! millert 18046: grep -v '^ *+' conftest.er1 >conftest.err
! 18047: rm -f conftest.er1
! 18048: cat conftest.err >&5
1.16 millert 18049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18050: (exit $ac_status); } &&
1.25 ! millert 18051: { ac_try='test -z "$ac_c_werror_flag"
! 18052: || test ! -s conftest.err'
! 18053: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18054: (eval $ac_try) 2>&5
! 18055: ac_status=$?
! 18056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18057: (exit $ac_status); }; } &&
! 18058: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18059: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18060: (eval $ac_try) 2>&5
18061: ac_status=$?
1.16 millert 18062: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18063: (exit $ac_status); }; }; then
1.25 ! millert 18064: ac_cv_lib_nsl_inet_addr=yes
1.1 millert 18065: else
1.9 millert 18066: echo "$as_me: failed program was:" >&5
1.16 millert 18067: sed 's/^/| /' conftest.$ac_ext >&5
18068:
1.25 ! millert 18069: ac_cv_lib_nsl_inet_addr=no
1.1 millert 18070: fi
1.25 ! millert 18071: rm -f conftest.err conftest.$ac_objext \
! 18072: conftest$ac_exeext conftest.$ac_ext
! 18073: LIBS=$ac_check_lib_save_LIBS
1.1 millert 18074: fi
1.25 ! millert 18075: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
! 18076: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
! 18077: if test $ac_cv_lib_nsl_inet_addr = yes; then
! 18078: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
1.23 millert 18079: else
1.25 ! millert 18080: echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
! 18081: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
! 18082: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9 millert 18083: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18084: else
1.25 ! millert 18085: ac_check_lib_save_LIBS=$LIBS
! 18086: LIBS="-linet $LIBS"
! 18087: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18088: /* confdefs.h. */
18089: _ACEOF
18090: cat confdefs.h >>conftest.$ac_ext
18091: cat >>conftest.$ac_ext <<_ACEOF
18092: /* end confdefs.h. */
1.25 ! millert 18093:
1.1 millert 18094: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 18095: #ifdef __cplusplus
18096: extern "C"
18097: #endif
1.1 millert 18098: /* We use char because int might match the return type of a gcc2
1.9 millert 18099: builtin and then its argument prototype would still apply. */
1.25 ! millert 18100: char inet_addr ();
1.16 millert 18101: int
18102: main ()
18103: {
1.25 ! millert 18104: inet_addr ();
1.9 millert 18105: ;
18106: return 0;
18107: }
18108: _ACEOF
18109: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18110: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18111: (eval $ac_link) 2>conftest.er1
1.9 millert 18112: ac_status=$?
1.25 ! millert 18113: grep -v '^ *+' conftest.er1 >conftest.err
! 18114: rm -f conftest.er1
! 18115: cat conftest.err >&5
1.16 millert 18116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18117: (exit $ac_status); } &&
1.25 ! millert 18118: { ac_try='test -z "$ac_c_werror_flag"
! 18119: || test ! -s conftest.err'
! 18120: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18121: (eval $ac_try) 2>&5
! 18122: ac_status=$?
! 18123: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18124: (exit $ac_status); }; } &&
! 18125: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18126: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18127: (eval $ac_try) 2>&5
18128: ac_status=$?
1.16 millert 18129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18130: (exit $ac_status); }; }; then
1.25 ! millert 18131: ac_cv_lib_inet_inet_addr=yes
1.9 millert 18132: else
18133: echo "$as_me: failed program was:" >&5
1.16 millert 18134: sed 's/^/| /' conftest.$ac_ext >&5
18135:
1.25 ! millert 18136: ac_cv_lib_inet_inet_addr=no
1.9 millert 18137: fi
1.25 ! millert 18138: rm -f conftest.err conftest.$ac_objext \
! 18139: conftest$ac_exeext conftest.$ac_ext
! 18140: LIBS=$ac_check_lib_save_LIBS
1.9 millert 18141: fi
1.25 ! millert 18142: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
! 18143: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
! 18144: if test $ac_cv_lib_inet_inet_addr = yes; then
! 18145: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
! 18146: else
! 18147: { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
! 18148: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
! 18149: echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
! 18150: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
! 18151: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.9 millert 18152: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18153: else
1.25 ! millert 18154: ac_check_lib_save_LIBS=$LIBS
! 18155: LIBS="-lsocket -lnsl $LIBS"
! 18156: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18157: /* confdefs.h. */
18158: _ACEOF
18159: cat confdefs.h >>conftest.$ac_ext
18160: cat >>conftest.$ac_ext <<_ACEOF
18161: /* end confdefs.h. */
1.25 ! millert 18162:
1.1 millert 18163: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 18164: #ifdef __cplusplus
18165: extern "C"
18166: #endif
1.1 millert 18167: /* We use char because int might match the return type of a gcc2
1.9 millert 18168: builtin and then its argument prototype would still apply. */
1.25 ! millert 18169: char inet_addr ();
1.16 millert 18170: int
18171: main ()
18172: {
1.25 ! millert 18173: inet_addr ();
1.9 millert 18174: ;
18175: return 0;
18176: }
18177: _ACEOF
18178: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18179: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18180: (eval $ac_link) 2>conftest.er1
1.9 millert 18181: ac_status=$?
1.25 ! millert 18182: grep -v '^ *+' conftest.er1 >conftest.err
! 18183: rm -f conftest.er1
! 18184: cat conftest.err >&5
1.16 millert 18185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18186: (exit $ac_status); } &&
1.25 ! millert 18187: { ac_try='test -z "$ac_c_werror_flag"
! 18188: || test ! -s conftest.err'
! 18189: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18190: (eval $ac_try) 2>&5
! 18191: ac_status=$?
! 18192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18193: (exit $ac_status); }; } &&
! 18194: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18195: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18196: (eval $ac_try) 2>&5
18197: ac_status=$?
1.16 millert 18198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18199: (exit $ac_status); }; }; then
1.25 ! millert 18200: ac_cv_lib_socket_inet_addr_lnsl=yes
1.9 millert 18201: else
18202: echo "$as_me: failed program was:" >&5
1.16 millert 18203: sed 's/^/| /' conftest.$ac_ext >&5
18204:
1.25 ! millert 18205: ac_cv_lib_socket_inet_addr_lnsl=no
! 18206: fi
! 18207: rm -f conftest.err conftest.$ac_objext \
! 18208: conftest$ac_exeext conftest.$ac_ext
! 18209: LIBS=$ac_check_lib_save_LIBS
! 18210: fi
! 18211: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
! 18212: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
! 18213: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
! 18214: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.9 millert 18215: fi
1.25 ! millert 18216:
1.9 millert 18217: fi
1.25 ! millert 18218:
1.1 millert 18219: fi
18220:
1.25 ! millert 18221: fi
1.1 millert 18222:
1.25 ! millert 18223: fi
1.23 millert 18224:
1.25 ! millert 18225: echo "$as_me:$LINENO: checking for syslog" >&5
! 18226: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
! 18227: if test "${ac_cv_func_syslog+set}" = set; then
1.9 millert 18228: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18229: else
1.9 millert 18230: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18231: /* confdefs.h. */
18232: _ACEOF
18233: cat confdefs.h >>conftest.$ac_ext
18234: cat >>conftest.$ac_ext <<_ACEOF
18235: /* end confdefs.h. */
1.25 ! millert 18236: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
! 18237: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18238: #define syslog innocuous_syslog
! 18239:
1.1 millert 18240: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 18241: which can conflict with char syslog (); below.
1.16 millert 18242: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18243: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 18244:
1.16 millert 18245: #ifdef __STDC__
18246: # include <limits.h>
18247: #else
18248: # include <assert.h>
18249: #endif
1.25 ! millert 18250:
! 18251: #undef syslog
! 18252:
1.1 millert 18253: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 18254: #ifdef __cplusplus
18255: extern "C"
1.16 millert 18256: {
1.9 millert 18257: #endif
1.1 millert 18258: /* We use char because int might match the return type of a gcc2
1.9 millert 18259: builtin and then its argument prototype would still apply. */
1.25 ! millert 18260: char syslog ();
1.1 millert 18261: /* The GNU C library defines this for functions which it implements
18262: to always fail with ENOSYS. Some functions are actually named
18263: something starting with __ and the normal name is an alias. */
1.25 ! millert 18264: #if defined (__stub_syslog) || defined (__stub___syslog)
1.1 millert 18265: choke me
18266: #else
1.25 ! millert 18267: char (*f) () = syslog;
1.16 millert 18268: #endif
18269: #ifdef __cplusplus
18270: }
1.1 millert 18271: #endif
18272:
1.16 millert 18273: int
18274: main ()
18275: {
1.25 ! millert 18276: return f != syslog;
1.9 millert 18277: ;
18278: return 0;
18279: }
18280: _ACEOF
18281: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18282: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18283: (eval $ac_link) 2>conftest.er1
1.13 millert 18284: ac_status=$?
1.25 ! millert 18285: grep -v '^ *+' conftest.er1 >conftest.err
! 18286: rm -f conftest.er1
! 18287: cat conftest.err >&5
1.16 millert 18288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 18289: (exit $ac_status); } &&
1.25 ! millert 18290: { ac_try='test -z "$ac_c_werror_flag"
! 18291: || test ! -s conftest.err'
! 18292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18293: (eval $ac_try) 2>&5
! 18294: ac_status=$?
! 18295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18296: (exit $ac_status); }; } &&
! 18297: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18298: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.13 millert 18299: (eval $ac_try) 2>&5
18300: ac_status=$?
1.16 millert 18301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 18302: (exit $ac_status); }; }; then
1.25 ! millert 18303: ac_cv_func_syslog=yes
1.13 millert 18304: else
18305: echo "$as_me: failed program was:" >&5
1.16 millert 18306: sed 's/^/| /' conftest.$ac_ext >&5
18307:
1.25 ! millert 18308: ac_cv_func_syslog=no
1.13 millert 18309: fi
1.25 ! millert 18310: rm -f conftest.err conftest.$ac_objext \
! 18311: conftest$ac_exeext conftest.$ac_ext
1.13 millert 18312: fi
1.25 ! millert 18313: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
! 18314: echo "${ECHO_T}$ac_cv_func_syslog" >&6
! 18315: if test $ac_cv_func_syslog = yes; then
! 18316: :
! 18317: else
! 18318: echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
! 18319: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
! 18320: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.13 millert 18321: echo $ECHO_N "(cached) $ECHO_C" >&6
18322: else
1.25 ! millert 18323: ac_check_lib_save_LIBS=$LIBS
! 18324: LIBS="-lsocket $LIBS"
! 18325: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18326: /* confdefs.h. */
18327: _ACEOF
18328: cat confdefs.h >>conftest.$ac_ext
18329: cat >>conftest.$ac_ext <<_ACEOF
18330: /* end confdefs.h. */
1.25 ! millert 18331:
1.13 millert 18332: /* Override any gcc2 internal prototype to avoid an error. */
18333: #ifdef __cplusplus
18334: extern "C"
18335: #endif
18336: /* We use char because int might match the return type of a gcc2
18337: builtin and then its argument prototype would still apply. */
1.25 ! millert 18338: char syslog ();
1.16 millert 18339: int
18340: main ()
18341: {
1.25 ! millert 18342: syslog ();
1.13 millert 18343: ;
18344: return 0;
18345: }
18346: _ACEOF
18347: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18348: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18349: (eval $ac_link) 2>conftest.er1
1.9 millert 18350: ac_status=$?
1.25 ! millert 18351: grep -v '^ *+' conftest.er1 >conftest.err
! 18352: rm -f conftest.er1
! 18353: cat conftest.err >&5
1.16 millert 18354: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18355: (exit $ac_status); } &&
1.25 ! millert 18356: { ac_try='test -z "$ac_c_werror_flag"
! 18357: || test ! -s conftest.err'
! 18358: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18359: (eval $ac_try) 2>&5
! 18360: ac_status=$?
! 18361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18362: (exit $ac_status); }; } &&
! 18363: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18365: (eval $ac_try) 2>&5
18366: ac_status=$?
1.16 millert 18367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18368: (exit $ac_status); }; }; then
1.25 ! millert 18369: ac_cv_lib_socket_syslog=yes
1.9 millert 18370: else
18371: echo "$as_me: failed program was:" >&5
1.16 millert 18372: sed 's/^/| /' conftest.$ac_ext >&5
18373:
1.25 ! millert 18374: ac_cv_lib_socket_syslog=no
1.9 millert 18375: fi
1.25 ! millert 18376: rm -f conftest.err conftest.$ac_objext \
! 18377: conftest$ac_exeext conftest.$ac_ext
! 18378: LIBS=$ac_check_lib_save_LIBS
1.9 millert 18379: fi
1.25 ! millert 18380: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
! 18381: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
! 18382: if test $ac_cv_lib_socket_syslog = yes; then
! 18383: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
! 18384: else
! 18385: echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
! 18386: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
! 18387: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
1.9 millert 18388: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18389: else
1.25 ! millert 18390: ac_check_lib_save_LIBS=$LIBS
! 18391: LIBS="-lnsl $LIBS"
! 18392: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18393: /* confdefs.h. */
18394: _ACEOF
18395: cat confdefs.h >>conftest.$ac_ext
18396: cat >>conftest.$ac_ext <<_ACEOF
18397: /* end confdefs.h. */
1.25 ! millert 18398:
1.1 millert 18399: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 18400: #ifdef __cplusplus
18401: extern "C"
1.1 millert 18402: #endif
18403: /* We use char because int might match the return type of a gcc2
1.9 millert 18404: builtin and then its argument prototype would still apply. */
1.25 ! millert 18405: char syslog ();
1.16 millert 18406: int
18407: main ()
18408: {
1.25 ! millert 18409: syslog ();
1.9 millert 18410: ;
18411: return 0;
18412: }
18413: _ACEOF
18414: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18415: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18416: (eval $ac_link) 2>conftest.er1
1.9 millert 18417: ac_status=$?
1.25 ! millert 18418: grep -v '^ *+' conftest.er1 >conftest.err
! 18419: rm -f conftest.er1
! 18420: cat conftest.err >&5
1.16 millert 18421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18422: (exit $ac_status); } &&
1.25 ! millert 18423: { ac_try='test -z "$ac_c_werror_flag"
! 18424: || test ! -s conftest.err'
! 18425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18426: (eval $ac_try) 2>&5
! 18427: ac_status=$?
! 18428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18429: (exit $ac_status); }; } &&
! 18430: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18432: (eval $ac_try) 2>&5
18433: ac_status=$?
1.16 millert 18434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18435: (exit $ac_status); }; }; then
1.25 ! millert 18436: ac_cv_lib_nsl_syslog=yes
1.23 millert 18437: else
18438: echo "$as_me: failed program was:" >&5
18439: sed 's/^/| /' conftest.$ac_ext >&5
18440:
1.25 ! millert 18441: ac_cv_lib_nsl_syslog=no
1.23 millert 18442: fi
1.25 ! millert 18443: rm -f conftest.err conftest.$ac_objext \
! 18444: conftest$ac_exeext conftest.$ac_ext
! 18445: LIBS=$ac_check_lib_save_LIBS
1.23 millert 18446: fi
1.25 ! millert 18447: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
! 18448: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
! 18449: if test $ac_cv_lib_nsl_syslog = yes; then
! 18450: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
1.23 millert 18451: else
1.25 ! millert 18452: echo "$as_me:$LINENO: checking for syslog in -linet" >&5
! 18453: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
! 18454: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.23 millert 18455: echo $ECHO_N "(cached) $ECHO_C" >&6
18456: else
18457: ac_check_lib_save_LIBS=$LIBS
1.25 ! millert 18458: LIBS="-linet $LIBS"
1.23 millert 18459: cat >conftest.$ac_ext <<_ACEOF
18460: /* confdefs.h. */
18461: _ACEOF
18462: cat confdefs.h >>conftest.$ac_ext
18463: cat >>conftest.$ac_ext <<_ACEOF
18464: /* end confdefs.h. */
18465:
18466: /* Override any gcc2 internal prototype to avoid an error. */
18467: #ifdef __cplusplus
18468: extern "C"
18469: #endif
18470: /* We use char because int might match the return type of a gcc2
18471: builtin and then its argument prototype would still apply. */
1.25 ! millert 18472: char syslog ();
1.23 millert 18473: int
18474: main ()
18475: {
1.25 ! millert 18476: syslog ();
1.23 millert 18477: ;
18478: return 0;
18479: }
18480: _ACEOF
18481: rm -f conftest.$ac_objext conftest$ac_exeext
18482: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18483: (eval $ac_link) 2>conftest.er1
1.23 millert 18484: ac_status=$?
1.25 ! millert 18485: grep -v '^ *+' conftest.er1 >conftest.err
! 18486: rm -f conftest.er1
! 18487: cat conftest.err >&5
1.23 millert 18488: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489: (exit $ac_status); } &&
1.25 ! millert 18490: { ac_try='test -z "$ac_c_werror_flag"
! 18491: || test ! -s conftest.err'
! 18492: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18493: (eval $ac_try) 2>&5
! 18494: ac_status=$?
! 18495: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18496: (exit $ac_status); }; } &&
! 18497: { ac_try='test -s conftest$ac_exeext'
1.23 millert 18498: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499: (eval $ac_try) 2>&5
18500: ac_status=$?
18501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502: (exit $ac_status); }; }; then
1.25 ! millert 18503: ac_cv_lib_inet_syslog=yes
1.23 millert 18504: else
18505: echo "$as_me: failed program was:" >&5
18506: sed 's/^/| /' conftest.$ac_ext >&5
18507:
1.25 ! millert 18508: ac_cv_lib_inet_syslog=no
1.23 millert 18509: fi
1.25 ! millert 18510: rm -f conftest.err conftest.$ac_objext \
! 18511: conftest$ac_exeext conftest.$ac_ext
1.23 millert 18512: LIBS=$ac_check_lib_save_LIBS
18513: fi
1.25 ! millert 18514: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
! 18515: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
! 18516: if test $ac_cv_lib_inet_syslog = yes; then
! 18517: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23 millert 18518: fi
1.16 millert 18519:
1.23 millert 18520: fi
18521:
18522: fi
1.1 millert 18523:
18524: fi
18525:
1.25 ! millert 18526: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
! 18527: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
! 18528: # for constant arguments. Useless!
! 18529: echo "$as_me:$LINENO: checking for working alloca.h" >&5
! 18530: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
! 18531: if test "${ac_cv_working_alloca_h+set}" = set; then
1.9 millert 18532: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18533: else
1.9 millert 18534: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18535: /* confdefs.h. */
18536: _ACEOF
18537: cat confdefs.h >>conftest.$ac_ext
18538: cat >>conftest.$ac_ext <<_ACEOF
18539: /* end confdefs.h. */
1.25 ! millert 18540: #include <alloca.h>
1.16 millert 18541: int
18542: main ()
18543: {
1.25 ! millert 18544: char *p = (char *) alloca (2 * sizeof (int));
1.9 millert 18545: ;
18546: return 0;
18547: }
18548: _ACEOF
18549: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18550: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18551: (eval $ac_link) 2>conftest.er1
1.9 millert 18552: ac_status=$?
1.25 ! millert 18553: grep -v '^ *+' conftest.er1 >conftest.err
! 18554: rm -f conftest.er1
! 18555: cat conftest.err >&5
1.16 millert 18556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18557: (exit $ac_status); } &&
1.25 ! millert 18558: { ac_try='test -z "$ac_c_werror_flag"
! 18559: || test ! -s conftest.err'
! 18560: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18561: (eval $ac_try) 2>&5
! 18562: ac_status=$?
! 18563: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18564: (exit $ac_status); }; } &&
! 18565: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18566: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18567: (eval $ac_try) 2>&5
18568: ac_status=$?
1.16 millert 18569: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18570: (exit $ac_status); }; }; then
1.25 ! millert 18571: ac_cv_working_alloca_h=yes
1.9 millert 18572: else
18573: echo "$as_me: failed program was:" >&5
1.16 millert 18574: sed 's/^/| /' conftest.$ac_ext >&5
18575:
1.25 ! millert 18576: ac_cv_working_alloca_h=no
1.9 millert 18577: fi
1.25 ! millert 18578: rm -f conftest.err conftest.$ac_objext \
! 18579: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18580: fi
1.25 ! millert 18581: echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
! 18582: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
! 18583: if test $ac_cv_working_alloca_h = yes; then
! 18584:
! 18585: cat >>confdefs.h <<\_ACEOF
! 18586: #define HAVE_ALLOCA_H 1
1.16 millert 18587: _ACEOF
1.1 millert 18588:
1.25 ! millert 18589: fi
1.16 millert 18590:
1.25 ! millert 18591: echo "$as_me:$LINENO: checking for alloca" >&5
! 18592: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
! 18593: if test "${ac_cv_func_alloca_works+set}" = set; then
1.9 millert 18594: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18595: else
1.9 millert 18596: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18597: /* confdefs.h. */
18598: _ACEOF
18599: cat confdefs.h >>conftest.$ac_ext
18600: cat >>conftest.$ac_ext <<_ACEOF
18601: /* end confdefs.h. */
1.25 ! millert 18602: #ifdef __GNUC__
! 18603: # define alloca __builtin_alloca
1.16 millert 18604: #else
1.25 ! millert 18605: # ifdef _MSC_VER
! 18606: # include <malloc.h>
! 18607: # define alloca _alloca
! 18608: # else
! 18609: # if HAVE_ALLOCA_H
! 18610: # include <alloca.h>
! 18611: # else
! 18612: # ifdef _AIX
! 18613: #pragma alloca
! 18614: # else
! 18615: # ifndef alloca /* predefined by HP cc +Olibcalls */
! 18616: char *alloca ();
! 18617: # endif
! 18618: # endif
! 18619: # endif
! 18620: # endif
1.1 millert 18621: #endif
18622:
1.16 millert 18623: int
18624: main ()
18625: {
1.25 ! millert 18626: char *p = (char *) alloca (1);
1.9 millert 18627: ;
18628: return 0;
18629: }
18630: _ACEOF
18631: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18632: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18633: (eval $ac_link) 2>conftest.er1
1.9 millert 18634: ac_status=$?
1.25 ! millert 18635: grep -v '^ *+' conftest.er1 >conftest.err
! 18636: rm -f conftest.er1
! 18637: cat conftest.err >&5
1.16 millert 18638: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18639: (exit $ac_status); } &&
1.25 ! millert 18640: { ac_try='test -z "$ac_c_werror_flag"
! 18641: || test ! -s conftest.err'
! 18642: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18643: (eval $ac_try) 2>&5
! 18644: ac_status=$?
! 18645: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18646: (exit $ac_status); }; } &&
! 18647: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18648: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18649: (eval $ac_try) 2>&5
18650: ac_status=$?
1.16 millert 18651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18652: (exit $ac_status); }; }; then
1.25 ! millert 18653: ac_cv_func_alloca_works=yes
1.9 millert 18654: else
18655: echo "$as_me: failed program was:" >&5
1.16 millert 18656: sed 's/^/| /' conftest.$ac_ext >&5
18657:
1.25 ! millert 18658: ac_cv_func_alloca_works=no
1.9 millert 18659: fi
1.25 ! millert 18660: rm -f conftest.err conftest.$ac_objext \
! 18661: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18662: fi
1.25 ! millert 18663: echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
! 18664: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
! 18665:
! 18666: if test $ac_cv_func_alloca_works = yes; then
! 18667:
! 18668: cat >>confdefs.h <<\_ACEOF
! 18669: #define HAVE_ALLOCA 1
! 18670: _ACEOF
! 18671:
! 18672: else
! 18673: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
! 18674: # that cause trouble. Some versions do not even contain alloca or
! 18675: # contain a buggy version. If you still want to use their alloca,
! 18676: # use ar to extract alloca.o from them instead of compiling alloca.c.
! 18677:
! 18678: ALLOCA=alloca.$ac_objext
! 18679:
! 18680: cat >>confdefs.h <<\_ACEOF
! 18681: #define C_ALLOCA 1
! 18682: _ACEOF
! 18683:
! 18684:
! 18685: echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
! 18686: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
! 18687: if test "${ac_cv_os_cray+set}" = set; then
! 18688: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18689: else
! 18690: cat >conftest.$ac_ext <<_ACEOF
! 18691: /* confdefs.h. */
! 18692: _ACEOF
! 18693: cat confdefs.h >>conftest.$ac_ext
! 18694: cat >>conftest.$ac_ext <<_ACEOF
! 18695: /* end confdefs.h. */
! 18696: #if defined(CRAY) && ! defined(CRAY2)
! 18697: webecray
! 18698: #else
! 18699: wenotbecray
! 18700: #endif
! 18701:
1.16 millert 18702: _ACEOF
1.25 ! millert 18703: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 18704: $EGREP "webecray" >/dev/null 2>&1; then
! 18705: ac_cv_os_cray=yes
! 18706: else
! 18707: ac_cv_os_cray=no
1.1 millert 18708: fi
1.25 ! millert 18709: rm -f conftest*
1.1 millert 18710:
1.25 ! millert 18711: fi
! 18712: echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
! 18713: echo "${ECHO_T}$ac_cv_os_cray" >&6
! 18714: if test $ac_cv_os_cray = yes; then
! 18715: for ac_func in _getb67 GETB67 getb67; do
! 18716: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 18717: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 18718: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18719: if eval "test \"\${$as_ac_var+set}\" = set"; then
18720: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18721: else
1.9 millert 18722: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18723: /* confdefs.h. */
18724: _ACEOF
18725: cat confdefs.h >>conftest.$ac_ext
18726: cat >>conftest.$ac_ext <<_ACEOF
18727: /* end confdefs.h. */
1.25 ! millert 18728: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 18729: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18730: #define $ac_func innocuous_$ac_func
! 18731:
1.1 millert 18732: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 18733: which can conflict with char $ac_func (); below.
18734: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18735: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 18736:
1.16 millert 18737: #ifdef __STDC__
18738: # include <limits.h>
18739: #else
18740: # include <assert.h>
18741: #endif
1.25 ! millert 18742:
! 18743: #undef $ac_func
! 18744:
1.1 millert 18745: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 18746: #ifdef __cplusplus
18747: extern "C"
1.16 millert 18748: {
1.9 millert 18749: #endif
1.1 millert 18750: /* We use char because int might match the return type of a gcc2
1.9 millert 18751: builtin and then its argument prototype would still apply. */
18752: char $ac_func ();
1.1 millert 18753: /* The GNU C library defines this for functions which it implements
18754: to always fail with ENOSYS. Some functions are actually named
18755: something starting with __ and the normal name is an alias. */
18756: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18757: choke me
18758: #else
1.16 millert 18759: char (*f) () = $ac_func;
18760: #endif
18761: #ifdef __cplusplus
18762: }
1.1 millert 18763: #endif
18764:
1.16 millert 18765: int
18766: main ()
18767: {
18768: return f != $ac_func;
1.9 millert 18769: ;
18770: return 0;
18771: }
18772: _ACEOF
18773: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18774: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18775: (eval $ac_link) 2>conftest.er1
1.9 millert 18776: ac_status=$?
1.25 ! millert 18777: grep -v '^ *+' conftest.er1 >conftest.err
! 18778: rm -f conftest.er1
! 18779: cat conftest.err >&5
1.16 millert 18780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18781: (exit $ac_status); } &&
1.25 ! millert 18782: { ac_try='test -z "$ac_c_werror_flag"
! 18783: || test ! -s conftest.err'
! 18784: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18785: (eval $ac_try) 2>&5
! 18786: ac_status=$?
! 18787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18788: (exit $ac_status); }; } &&
! 18789: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18790: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18791: (eval $ac_try) 2>&5
18792: ac_status=$?
1.16 millert 18793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18794: (exit $ac_status); }; }; then
18795: eval "$as_ac_var=yes"
18796: else
18797: echo "$as_me: failed program was:" >&5
1.16 millert 18798: sed 's/^/| /' conftest.$ac_ext >&5
18799:
1.9 millert 18800: eval "$as_ac_var=no"
18801: fi
1.25 ! millert 18802: rm -f conftest.err conftest.$ac_objext \
! 18803: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18804: fi
1.16 millert 18805: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 18806: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18807: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.25 ! millert 18808:
! 18809: cat >>confdefs.h <<_ACEOF
! 18810: #define CRAY_STACKSEG_END $ac_func
1.16 millert 18811: _ACEOF
1.23 millert 18812:
1.25 ! millert 18813: break
1.23 millert 18814: fi
1.25 ! millert 18815:
! 18816: done
1.1 millert 18817: fi
18818:
1.25 ! millert 18819: echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
! 18820: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
! 18821: if test "${ac_cv_c_stack_direction+set}" = set; then
1.23 millert 18822: echo $ECHO_N "(cached) $ECHO_C" >&6
18823: else
1.25 ! millert 18824: if test "$cross_compiling" = yes; then
! 18825: ac_cv_c_stack_direction=0
1.23 millert 18826: else
18827: cat >conftest.$ac_ext <<_ACEOF
18828: /* confdefs.h. */
18829: _ACEOF
18830: cat confdefs.h >>conftest.$ac_ext
18831: cat >>conftest.$ac_ext <<_ACEOF
18832: /* end confdefs.h. */
1.25 ! millert 18833: int
! 18834: find_stack_direction ()
! 18835: {
! 18836: static char *addr = 0;
! 18837: auto char dummy;
! 18838: if (addr == 0)
! 18839: {
! 18840: addr = &dummy;
! 18841: return find_stack_direction ();
! 18842: }
! 18843: else
! 18844: return (&dummy > addr) ? 1 : -1;
! 18845: }
1.23 millert 18846:
1.25 ! millert 18847: int
! 18848: main ()
! 18849: {
! 18850: exit (find_stack_direction () < 0);
! 18851: }
1.23 millert 18852: _ACEOF
18853: rm -f conftest$ac_exeext
18854: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18855: (eval $ac_link) 2>&5
18856: ac_status=$?
18857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18859: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860: (eval $ac_try) 2>&5
18861: ac_status=$?
18862: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863: (exit $ac_status); }; }; then
1.25 ! millert 18864: ac_cv_c_stack_direction=1
1.23 millert 18865: else
18866: echo "$as_me: program exited with status $ac_status" >&5
18867: echo "$as_me: failed program was:" >&5
18868: sed 's/^/| /' conftest.$ac_ext >&5
18869:
18870: ( exit $ac_status )
1.25 ! millert 18871: ac_cv_c_stack_direction=-1
1.23 millert 18872: fi
1.25 ! millert 18873: rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23 millert 18874: fi
18875: fi
1.25 ! millert 18876: echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
! 18877: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
! 18878:
! 18879: cat >>confdefs.h <<_ACEOF
! 18880: #define STACK_DIRECTION $ac_cv_c_stack_direction
1.23 millert 18881: _ACEOF
1.16 millert 18882:
1.25 ! millert 18883:
1.23 millert 18884: fi
1.16 millert 18885:
1.9 millert 18886: fi
1.23 millert 18887:
1.25 ! millert 18888: for ac_func in getprogname
1.9 millert 18889: do
18890: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 18891: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 18892: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18893: if eval "test \"\${$as_ac_var+set}\" = set"; then
18894: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18895: else
1.9 millert 18896: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18897: /* confdefs.h. */
18898: _ACEOF
18899: cat confdefs.h >>conftest.$ac_ext
18900: cat >>conftest.$ac_ext <<_ACEOF
18901: /* end confdefs.h. */
1.25 ! millert 18902: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 18903: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 18904: #define $ac_func innocuous_$ac_func
! 18905:
1.16 millert 18906: /* System header to define __stub macros and hopefully few prototypes,
18907: which can conflict with char $ac_func (); below.
18908: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18909: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 18910:
1.16 millert 18911: #ifdef __STDC__
18912: # include <limits.h>
18913: #else
18914: # include <assert.h>
18915: #endif
1.25 ! millert 18916:
! 18917: #undef $ac_func
! 18918:
1.1 millert 18919: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 18920: #ifdef __cplusplus
18921: extern "C"
1.16 millert 18922: {
1.9 millert 18923: #endif
1.1 millert 18924: /* We use char because int might match the return type of a gcc2
1.9 millert 18925: builtin and then its argument prototype would still apply. */
18926: char $ac_func ();
1.1 millert 18927: /* The GNU C library defines this for functions which it implements
18928: to always fail with ENOSYS. Some functions are actually named
18929: something starting with __ and the normal name is an alias. */
1.9 millert 18930: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 18931: choke me
18932: #else
1.16 millert 18933: char (*f) () = $ac_func;
18934: #endif
18935: #ifdef __cplusplus
18936: }
1.1 millert 18937: #endif
18938:
1.16 millert 18939: int
18940: main ()
18941: {
18942: return f != $ac_func;
1.9 millert 18943: ;
18944: return 0;
18945: }
18946: _ACEOF
18947: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 18948: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 18949: (eval $ac_link) 2>conftest.er1
1.9 millert 18950: ac_status=$?
1.25 ! millert 18951: grep -v '^ *+' conftest.er1 >conftest.err
! 18952: rm -f conftest.er1
! 18953: cat conftest.err >&5
1.16 millert 18954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18955: (exit $ac_status); } &&
1.25 ! millert 18956: { ac_try='test -z "$ac_c_werror_flag"
! 18957: || test ! -s conftest.err'
! 18958: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18959: (eval $ac_try) 2>&5
! 18960: ac_status=$?
! 18961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18962: (exit $ac_status); }; } &&
! 18963: { ac_try='test -s conftest$ac_exeext'
1.16 millert 18964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 18965: (eval $ac_try) 2>&5
18966: ac_status=$?
1.16 millert 18967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 18968: (exit $ac_status); }; }; then
18969: eval "$as_ac_var=yes"
18970: else
18971: echo "$as_me: failed program was:" >&5
1.16 millert 18972: sed 's/^/| /' conftest.$ac_ext >&5
18973:
1.9 millert 18974: eval "$as_ac_var=no"
18975: fi
1.25 ! millert 18976: rm -f conftest.err conftest.$ac_objext \
! 18977: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18978: fi
1.16 millert 18979: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 18980: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18981: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 18982: cat >>confdefs.h <<_ACEOF
1.9 millert 18983: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 18984: _ACEOF
1.9 millert 18985:
1.23 millert 18986: else
1.1 millert 18987:
1.25 ! millert 18988: echo "$as_me:$LINENO: checking for __progname" >&5
! 18989: echo $ECHO_N "checking for __progname... $ECHO_C" >&6
! 18990: if test "${sudo_cv___progname+set}" = set; then
1.9 millert 18991: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18992: else
1.25 ! millert 18993:
! 18994: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18995: /* confdefs.h. */
18996: _ACEOF
18997: cat confdefs.h >>conftest.$ac_ext
18998: cat >>conftest.$ac_ext <<_ACEOF
18999: /* end confdefs.h. */
1.25 ! millert 19000:
! 19001: int
! 19002: main ()
1.16 millert 19003: {
1.25 ! millert 19004: extern char *__progname; (void)puts(__progname);
! 19005: ;
! 19006: return 0;
1.9 millert 19007: }
19008: _ACEOF
1.25 ! millert 19009: rm -f conftest.$ac_objext conftest$ac_exeext
! 19010: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 19011: (eval $ac_link) 2>conftest.er1
! 19012: ac_status=$?
! 19013: grep -v '^ *+' conftest.er1 >conftest.err
! 19014: rm -f conftest.er1
! 19015: cat conftest.err >&5
! 19016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19017: (exit $ac_status); } &&
! 19018: { ac_try='test -z "$ac_c_werror_flag"
! 19019: || test ! -s conftest.err'
! 19020: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19021: (eval $ac_try) 2>&5
! 19022: ac_status=$?
! 19023: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19024: (exit $ac_status); }; } &&
! 19025: { ac_try='test -s conftest$ac_exeext'
! 19026: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19027: (eval $ac_try) 2>&5
! 19028: ac_status=$?
! 19029: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19030: (exit $ac_status); }; }; then
! 19031: sudo_cv___progname=yes
! 19032: else
! 19033: echo "$as_me: failed program was:" >&5
! 19034: sed 's/^/| /' conftest.$ac_ext >&5
! 19035:
! 19036: sudo_cv___progname=no
! 19037: fi
! 19038: rm -f conftest.err conftest.$ac_objext \
! 19039: conftest$ac_exeext conftest.$ac_ext
! 19040: fi
! 19041:
! 19042: if test "$sudo_cv___progname" = "yes"; then
! 19043: cat >>confdefs.h <<\_ACEOF
! 19044: #define HAVE___PROGNAME 1
! 19045: _ACEOF
! 19046:
! 19047: else
! 19048: case $LIBOBJS in
! 19049: "getprogname.$ac_objext" | \
! 19050: *" getprogname.$ac_objext" | \
! 19051: "getprogname.$ac_objext "* | \
! 19052: *" getprogname.$ac_objext "* ) ;;
! 19053: *) LIBOBJS="$LIBOBJS getprogname.$ac_objext" ;;
! 19054: esac
! 19055:
! 19056: fi
! 19057: echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
! 19058: echo "${ECHO_T}$sudo_cv___progname" >&6
! 19059:
! 19060: fi
! 19061: done
! 19062:
! 19063: if test -n "$with_kerb4"; then
! 19064: cat >>confdefs.h <<\_ACEOF
! 19065: #define HAVE_KERB4 1
! 19066: _ACEOF
! 19067:
! 19068: O_LDFLAGS="$LDFLAGS"
! 19069: if test "$with_kerb4" = "yes"; then
! 19070: found=no
! 19071: O_CPPFLAGS="$CPPFLAGS"
! 19072: for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
! 19073: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
! 19074: cat >conftest.$ac_ext <<_ACEOF
! 19075: #include <krb.h>
! 19076: _ACEOF
! 19077: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 19078: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 19079: ac_status=$?
1.25 ! millert 19080: grep -v '^ *+' conftest.er1 >conftest.err
! 19081: rm -f conftest.er1
! 19082: cat conftest.err >&5
1.16 millert 19083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 19084: (exit $ac_status); } >/dev/null; then
! 19085: if test -s conftest.err; then
! 19086: ac_cpp_err=$ac_c_preproc_warn_flag
! 19087: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 19088: else
! 19089: ac_cpp_err=
! 19090: fi
! 19091: else
! 19092: ac_cpp_err=yes
! 19093: fi
! 19094: if test -z "$ac_cpp_err"; then
! 19095: found=yes; break
1.9 millert 19096: else
19097: echo "$as_me: failed program was:" >&5
1.16 millert 19098: sed 's/^/| /' conftest.$ac_ext >&5
19099:
1.25 ! millert 19100:
1.1 millert 19101: fi
1.25 ! millert 19102: rm -f conftest.err conftest.$ac_ext
! 19103: done
! 19104: test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
! 19105: else
! 19106:
! 19107: if test X"$with_rpath" = X"yes"; then
! 19108: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
! 19109: else
! 19110: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
! 19111: fi
! 19112: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 19113: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
! 19114: fi
! 19115:
1.16 millert 19116:
1.25 ! millert 19117: if test X"$with_rpath" = X"yes"; then
! 19118: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
! 19119: else
! 19120: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
! 19121: fi
! 19122: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 19123: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
! 19124: fi
1.1 millert 19125:
1.25 ! millert 19126: CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
! 19127: if test "${ac_cv_header_krb_h+set}" = set; then
! 19128: echo "$as_me:$LINENO: checking for krb.h" >&5
! 19129: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
! 19130: if test "${ac_cv_header_krb_h+set}" = set; then
1.9 millert 19131: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 ! millert 19132: fi
! 19133: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
! 19134: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.1 millert 19135: else
1.25 ! millert 19136: # Is the header compilable?
! 19137: echo "$as_me:$LINENO: checking krb.h usability" >&5
! 19138: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
! 19139: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 19140: /* confdefs.h. */
19141: _ACEOF
19142: cat confdefs.h >>conftest.$ac_ext
19143: cat >>conftest.$ac_ext <<_ACEOF
19144: /* end confdefs.h. */
19145: $ac_includes_default
1.25 ! millert 19146: #include <krb.h>
1.23 millert 19147: _ACEOF
19148: rm -f conftest.$ac_objext
19149: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 19150: (eval $ac_compile) 2>conftest.er1
1.23 millert 19151: ac_status=$?
1.25 ! millert 19152: grep -v '^ *+' conftest.er1 >conftest.err
! 19153: rm -f conftest.er1
! 19154: cat conftest.err >&5
1.23 millert 19155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156: (exit $ac_status); } &&
1.25 ! millert 19157: { ac_try='test -z "$ac_c_werror_flag"
! 19158: || test ! -s conftest.err'
! 19159: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19160: (eval $ac_try) 2>&5
! 19161: ac_status=$?
! 19162: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19163: (exit $ac_status); }; } &&
! 19164: { ac_try='test -s conftest.$ac_objext'
1.23 millert 19165: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166: (eval $ac_try) 2>&5
19167: ac_status=$?
19168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169: (exit $ac_status); }; }; then
1.25 ! millert 19170: ac_header_compiler=yes
1.1 millert 19171: else
1.23 millert 19172: echo "$as_me: failed program was:" >&5
19173: sed 's/^/| /' conftest.$ac_ext >&5
19174:
1.25 ! millert 19175: ac_header_compiler=no
! 19176: fi
! 19177: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 19178: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 19179: echo "${ECHO_T}$ac_header_compiler" >&6
! 19180:
! 19181: # Is the header present?
! 19182: echo "$as_me:$LINENO: checking krb.h presence" >&5
! 19183: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
1.23 millert 19184: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19185: /* confdefs.h. */
19186: _ACEOF
19187: cat confdefs.h >>conftest.$ac_ext
19188: cat >>conftest.$ac_ext <<_ACEOF
19189: /* end confdefs.h. */
1.25 ! millert 19190: #include <krb.h>
1.9 millert 19191: _ACEOF
1.25 ! millert 19192: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 19193: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 19194: ac_status=$?
1.25 ! millert 19195: grep -v '^ *+' conftest.er1 >conftest.err
! 19196: rm -f conftest.er1
! 19197: cat conftest.err >&5
1.16 millert 19198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 19199: (exit $ac_status); } >/dev/null; then
! 19200: if test -s conftest.err; then
! 19201: ac_cpp_err=$ac_c_preproc_warn_flag
! 19202: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 19203: else
! 19204: ac_cpp_err=
! 19205: fi
! 19206: else
! 19207: ac_cpp_err=yes
! 19208: fi
! 19209: if test -z "$ac_cpp_err"; then
! 19210: ac_header_preproc=yes
1.1 millert 19211: else
1.23 millert 19212: echo "$as_me: failed program was:" >&5
1.16 millert 19213: sed 's/^/| /' conftest.$ac_ext >&5
19214:
1.25 ! millert 19215: ac_header_preproc=no
! 19216: fi
! 19217: rm -f conftest.err conftest.$ac_ext
! 19218: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 19219: echo "${ECHO_T}$ac_header_preproc" >&6
! 19220:
! 19221: # So? What about this header?
! 19222: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 19223: yes:no: )
! 19224: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 19225: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 19226: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
! 19227: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
! 19228: ac_header_preproc=yes
! 19229: ;;
! 19230: no:yes:* )
! 19231: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
! 19232: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
! 19233: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
! 19234: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
! 19235: { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
! 19236: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
! 19237: { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
! 19238: echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 19239: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
! 19240: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
! 19241: { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
! 19242: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
! 19243: (
! 19244: cat <<\_ASBOX
! 19245: ## ------------------------------- ##
! 19246: ## Report this to the sudo lists. ##
! 19247: ## ------------------------------- ##
! 19248: _ASBOX
! 19249: ) |
! 19250: sed "s/^/$as_me: WARNING: /" >&2
! 19251: ;;
! 19252: esac
! 19253: echo "$as_me:$LINENO: checking for krb.h" >&5
! 19254: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
! 19255: if test "${ac_cv_header_krb_h+set}" = set; then
! 19256: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19257: else
! 19258: ac_cv_header_krb_h=$ac_header_preproc
1.1 millert 19259: fi
1.25 ! millert 19260: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
! 19261: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
! 19262:
1.1 millert 19263: fi
1.25 ! millert 19264: if test $ac_cv_header_krb_h = yes; then
! 19265: found=yes
! 19266: else
! 19267: found=no
1.1 millert 19268: fi
19269:
1.25 ! millert 19270:
! 19271: fi
! 19272: if test X"$found" = X"no"; then
! 19273: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
! 19274: echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
! 19275: fi
! 19276:
! 19277: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
! 19278: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
! 19279: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9 millert 19280: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19281: else
1.25 ! millert 19282: ac_check_lib_save_LIBS=$LIBS
! 19283: LIBS="-ldes $LIBS"
! 19284: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19285: /* confdefs.h. */
19286: _ACEOF
19287: cat confdefs.h >>conftest.$ac_ext
19288: cat >>conftest.$ac_ext <<_ACEOF
19289: /* end confdefs.h. */
1.25 ! millert 19290:
! 19291: /* Override any gcc2 internal prototype to avoid an error. */
! 19292: #ifdef __cplusplus
! 19293: extern "C"
! 19294: #endif
! 19295: /* We use char because int might match the return type of a gcc2
! 19296: builtin and then its argument prototype would still apply. */
! 19297: char des_cbc_encrypt ();
1.23 millert 19298: int
19299: main ()
19300: {
1.25 ! millert 19301: des_cbc_encrypt ();
1.23 millert 19302: ;
19303: return 0;
19304: }
1.9 millert 19305: _ACEOF
1.25 ! millert 19306: rm -f conftest.$ac_objext conftest$ac_exeext
! 19307: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 19308: (eval $ac_link) 2>conftest.er1
1.9 millert 19309: ac_status=$?
1.25 ! millert 19310: grep -v '^ *+' conftest.er1 >conftest.err
! 19311: rm -f conftest.er1
! 19312: cat conftest.err >&5
1.16 millert 19313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 millert 19314: (exit $ac_status); } &&
1.25 ! millert 19315: { ac_try='test -z "$ac_c_werror_flag"
! 19316: || test ! -s conftest.err'
! 19317: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19318: (eval $ac_try) 2>&5
! 19319: ac_status=$?
! 19320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19321: (exit $ac_status); }; } &&
! 19322: { ac_try='test -s conftest$ac_exeext'
1.16 millert 19323: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19324: (eval $ac_try) 2>&5
19325: ac_status=$?
1.16 millert 19326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19327: (exit $ac_status); }; }; then
1.25 ! millert 19328: ac_cv_lib_des_des_cbc_encrypt=yes
1.1 millert 19329: else
1.23 millert 19330: echo "$as_me: failed program was:" >&5
1.16 millert 19331: sed 's/^/| /' conftest.$ac_ext >&5
1.25 ! millert 19332:
! 19333: ac_cv_lib_des_des_cbc_encrypt=no
! 19334: fi
! 19335: rm -f conftest.err conftest.$ac_objext \
! 19336: conftest$ac_exeext conftest.$ac_ext
! 19337: LIBS=$ac_check_lib_save_LIBS
! 19338: fi
! 19339: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
! 19340: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
! 19341: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
! 19342: K4LIBS="-ldes"
! 19343: else
! 19344:
! 19345: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
! 19346: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
! 19347: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
! 19348: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19349: else
! 19350: ac_check_lib_save_LIBS=$LIBS
! 19351: LIBS="-ldes425 $LIBS"
1.23 millert 19352: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19353: /* confdefs.h. */
19354: _ACEOF
19355: cat confdefs.h >>conftest.$ac_ext
19356: cat >>conftest.$ac_ext <<_ACEOF
19357: /* end confdefs.h. */
1.25 ! millert 19358:
! 19359: /* Override any gcc2 internal prototype to avoid an error. */
! 19360: #ifdef __cplusplus
! 19361: extern "C"
! 19362: #endif
! 19363: /* We use char because int might match the return type of a gcc2
! 19364: builtin and then its argument prototype would still apply. */
! 19365: char des_cbc_encrypt ();
1.9 millert 19366: int
19367: main ()
19368: {
1.25 ! millert 19369: des_cbc_encrypt ();
1.9 millert 19370: ;
19371: return 0;
19372: }
19373: _ACEOF
1.25 ! millert 19374: rm -f conftest.$ac_objext conftest$ac_exeext
! 19375: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 19376: (eval $ac_link) 2>conftest.er1
1.9 millert 19377: ac_status=$?
1.25 ! millert 19378: grep -v '^ *+' conftest.er1 >conftest.err
! 19379: rm -f conftest.er1
! 19380: cat conftest.err >&5
1.16 millert 19381: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19382: (exit $ac_status); } &&
1.25 ! millert 19383: { ac_try='test -z "$ac_c_werror_flag"
! 19384: || test ! -s conftest.err'
! 19385: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19386: (eval $ac_try) 2>&5
! 19387: ac_status=$?
! 19388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19389: (exit $ac_status); }; } &&
! 19390: { ac_try='test -s conftest$ac_exeext'
1.16 millert 19391: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19392: (eval $ac_try) 2>&5
19393: ac_status=$?
1.16 millert 19394: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19395: (exit $ac_status); }; }; then
1.25 ! millert 19396: ac_cv_lib_des425_des_cbc_encrypt=yes
1.9 millert 19397: else
19398: echo "$as_me: failed program was:" >&5
1.16 millert 19399: sed 's/^/| /' conftest.$ac_ext >&5
19400:
1.25 ! millert 19401: ac_cv_lib_des425_des_cbc_encrypt=no
1.23 millert 19402: fi
1.25 ! millert 19403: rm -f conftest.err conftest.$ac_objext \
! 19404: conftest$ac_exeext conftest.$ac_ext
! 19405: LIBS=$ac_check_lib_save_LIBS
1.9 millert 19406: fi
1.25 ! millert 19407: echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
! 19408: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
! 19409: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
! 19410: K4LIBS="-ldes425"
! 19411: else
! 19412: K4LIBS=""
1.1 millert 19413: fi
19414:
19415:
1.23 millert 19416: fi
1.16 millert 19417:
1.25 ! millert 19418: echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
! 19419: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6
1.24 millert 19420: cat >conftest.$ac_ext <<_ACEOF
19421: /* confdefs.h. */
19422: _ACEOF
19423: cat confdefs.h >>conftest.$ac_ext
19424: cat >>conftest.$ac_ext <<_ACEOF
19425: /* end confdefs.h. */
1.25 ! millert 19426: #include <krb.h>
1.24 millert 19427: int
19428: main ()
19429: {
1.25 ! millert 19430: const char *tmp = krb4_version;
1.24 millert 19431: ;
19432: return 0;
19433: }
19434: _ACEOF
19435: rm -f conftest.$ac_objext
19436: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 19437: (eval $ac_compile) 2>conftest.er1
1.24 millert 19438: ac_status=$?
1.25 ! millert 19439: grep -v '^ *+' conftest.er1 >conftest.err
! 19440: rm -f conftest.er1
! 19441: cat conftest.err >&5
1.24 millert 19442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443: (exit $ac_status); } &&
1.25 ! millert 19444: { ac_try='test -z "$ac_c_werror_flag"
! 19445: || test ! -s conftest.err'
! 19446: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19447: (eval $ac_try) 2>&5
! 19448: ac_status=$?
! 19449: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19450: (exit $ac_status); }; } &&
! 19451: { ac_try='test -s conftest.$ac_objext'
1.24 millert 19452: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453: (eval $ac_try) 2>&5
19454: ac_status=$?
19455: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456: (exit $ac_status); }; }; then
19457:
1.25 ! millert 19458: echo "$as_me:$LINENO: result: yes" >&5
1.24 millert 19459: echo "${ECHO_T}yes" >&6
1.25 ! millert 19460: K4LIBS="${K4LIBS} -lcom_err"
! 19461: echo "$as_me:$LINENO: checking for main in -lroken" >&5
! 19462: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
! 19463: if test "${ac_cv_lib_roken_main+set}" = set; then
! 19464: echo $ECHO_N "(cached) $ECHO_C" >&6
1.24 millert 19465: else
1.25 ! millert 19466: ac_check_lib_save_LIBS=$LIBS
! 19467: LIBS="-lroken $LIBS"
1.23 millert 19468: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19469: /* confdefs.h. */
19470: _ACEOF
19471: cat confdefs.h >>conftest.$ac_ext
19472: cat >>conftest.$ac_ext <<_ACEOF
19473: /* end confdefs.h. */
1.25 ! millert 19474:
! 19475:
1.16 millert 19476: int
19477: main ()
19478: {
1.25 ! millert 19479: main ();
1.9 millert 19480: ;
19481: return 0;
19482: }
19483: _ACEOF
19484: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 19485: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 19486: (eval $ac_link) 2>conftest.er1
1.9 millert 19487: ac_status=$?
1.25 ! millert 19488: grep -v '^ *+' conftest.er1 >conftest.err
! 19489: rm -f conftest.er1
! 19490: cat conftest.err >&5
1.16 millert 19491: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19492: (exit $ac_status); } &&
1.25 ! millert 19493: { ac_try='test -z "$ac_c_werror_flag"
! 19494: || test ! -s conftest.err'
! 19495: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19496: (eval $ac_try) 2>&5
! 19497: ac_status=$?
! 19498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19499: (exit $ac_status); }; } &&
! 19500: { ac_try='test -s conftest$ac_exeext'
1.16 millert 19501: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19502: (eval $ac_try) 2>&5
19503: ac_status=$?
1.16 millert 19504: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 millert 19505: (exit $ac_status); }; }; then
1.25 ! millert 19506: ac_cv_lib_roken_main=yes
! 19507: else
! 19508: echo "$as_me: failed program was:" >&5
! 19509: sed 's/^/| /' conftest.$ac_ext >&5
! 19510:
! 19511: ac_cv_lib_roken_main=no
! 19512: fi
! 19513: rm -f conftest.err conftest.$ac_objext \
! 19514: conftest$ac_exeext conftest.$ac_ext
! 19515: LIBS=$ac_check_lib_save_LIBS
! 19516: fi
! 19517: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
! 19518: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
! 19519: if test $ac_cv_lib_roken_main = yes; then
! 19520: K4LIBS="${K4LIBS} -lroken"
! 19521: fi
! 19522:
1.23 millert 19523:
1.9 millert 19524: else
19525: echo "$as_me: failed program was:" >&5
1.16 millert 19526: sed 's/^/| /' conftest.$ac_ext >&5
19527:
1.25 ! millert 19528:
! 19529: echo "$as_me:$LINENO: result: no" >&5
! 19530: echo "${ECHO_T}no" >&6
! 19531:
! 19532:
! 19533: fi
! 19534: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 19535: as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
! 19536: echo "$as_me:$LINENO: checking for main in -lkrb" >&5
! 19537: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
! 19538: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
! 19539: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19540: else
! 19541: ac_check_lib_save_LIBS=$LIBS
! 19542: LIBS="-lkrb $K4LIBS $LIBS"
1.23 millert 19543: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19544: /* confdefs.h. */
19545: _ACEOF
19546: cat confdefs.h >>conftest.$ac_ext
19547: cat >>conftest.$ac_ext <<_ACEOF
19548: /* end confdefs.h. */
1.25 ! millert 19549:
! 19550:
1.16 millert 19551: int
19552: main ()
19553: {
1.25 ! millert 19554: main ();
1.9 millert 19555: ;
19556: return 0;
19557: }
19558: _ACEOF
19559: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 19560: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 19561: (eval $ac_link) 2>conftest.er1
1.9 millert 19562: ac_status=$?
1.25 ! millert 19563: grep -v '^ *+' conftest.er1 >conftest.err
! 19564: rm -f conftest.er1
! 19565: cat conftest.err >&5
1.16 millert 19566: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19567: (exit $ac_status); } &&
1.25 ! millert 19568: { ac_try='test -z "$ac_c_werror_flag"
! 19569: || test ! -s conftest.err'
! 19570: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19571: (eval $ac_try) 2>&5
! 19572: ac_status=$?
! 19573: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19574: (exit $ac_status); }; } &&
! 19575: { ac_try='test -s conftest$ac_exeext'
1.16 millert 19576: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19577: (eval $ac_try) 2>&5
19578: ac_status=$?
1.16 millert 19579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19580: (exit $ac_status); }; }; then
1.25 ! millert 19581: eval "$as_ac_Lib=yes"
1.9 millert 19582: else
19583: echo "$as_me: failed program was:" >&5
1.16 millert 19584: sed 's/^/| /' conftest.$ac_ext >&5
19585:
1.25 ! millert 19586: eval "$as_ac_Lib=no"
1.9 millert 19587: fi
1.25 ! millert 19588: rm -f conftest.err conftest.$ac_objext \
! 19589: conftest$ac_exeext conftest.$ac_ext
! 19590: LIBS=$ac_check_lib_save_LIBS
1.9 millert 19591: fi
1.25 ! millert 19592: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
! 19593: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
! 19594: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
! 19595: K4LIBS="-lkrb $K4LIBS"
! 19596: else
! 19597:
! 19598: as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
! 19599: echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
! 19600: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
! 19601: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
1.9 millert 19602: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19603: else
1.25 ! millert 19604: ac_check_lib_save_LIBS=$LIBS
! 19605: LIBS="-lkrb4 $K4LIBS $LIBS"
! 19606: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19607: /* confdefs.h. */
19608: _ACEOF
19609: cat confdefs.h >>conftest.$ac_ext
19610: cat >>conftest.$ac_ext <<_ACEOF
19611: /* end confdefs.h. */
1.25 ! millert 19612:
1.1 millert 19613:
1.16 millert 19614: int
19615: main ()
19616: {
1.25 ! millert 19617: main ();
1.9 millert 19618: ;
19619: return 0;
19620: }
19621: _ACEOF
19622: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 19623: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 19624: (eval $ac_link) 2>conftest.er1
1.9 millert 19625: ac_status=$?
1.25 ! millert 19626: grep -v '^ *+' conftest.er1 >conftest.err
! 19627: rm -f conftest.er1
! 19628: cat conftest.err >&5
1.16 millert 19629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19630: (exit $ac_status); } &&
1.25 ! millert 19631: { ac_try='test -z "$ac_c_werror_flag"
! 19632: || test ! -s conftest.err'
! 19633: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19634: (eval $ac_try) 2>&5
! 19635: ac_status=$?
! 19636: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19637: (exit $ac_status); }; } &&
! 19638: { ac_try='test -s conftest$ac_exeext'
! 19639: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19640: (eval $ac_try) 2>&5
! 19641: ac_status=$?
! 19642: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19643: (exit $ac_status); }; }; then
! 19644: eval "$as_ac_Lib=yes"
! 19645: else
! 19646: echo "$as_me: failed program was:" >&5
! 19647: sed 's/^/| /' conftest.$ac_ext >&5
! 19648:
! 19649: eval "$as_ac_Lib=no"
! 19650: fi
! 19651: rm -f conftest.err conftest.$ac_objext \
! 19652: conftest$ac_exeext conftest.$ac_ext
! 19653: LIBS=$ac_check_lib_save_LIBS
! 19654: fi
! 19655: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
! 19656: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
! 19657: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
! 19658: K4LIBS="-lkrb4 $K4LIBS"
! 19659: else
! 19660: K4LIBS="-lkrb $K4LIBS"
! 19661: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
! 19662: echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
! 19663:
! 19664: fi
! 19665:
! 19666:
! 19667: fi
! 19668:
! 19669: LDFLAGS="$O_LDFLAGS"
! 19670: SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
! 19671:
! 19672: if test X"$AUTH_EXCL" != X""; then
! 19673: { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 4 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 19674: echo "$as_me: error: \"cannot mix Kerberos 4 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 19675: { (exit 1); exit 1; }; }
! 19676: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 19677: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 19678: { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 4 with other authentication methods (such as $_AUTH)\"" >&5
! 19679: echo "$as_me: error: \"cannot mix Kerberos 4 with other authentication methods (such as $_AUTH)\"" >&2;}
! 19680: { (exit 1); exit 1; }; }
! 19681: fi
! 19682: if test X"" != X""; then
! 19683: AUTH_OBJS="kerb4.o"
! 19684: AUTH_EXCL="Kerberos 4"
! 19685: elif test X"$AUTH_OBJS" = X""; then
! 19686: AUTH_OBJS="kerb4.o"
! 19687: else
! 19688: AUTH_OBJS="$AUTH_OBJS kerb4.o"
! 19689: fi
! 19690:
! 19691: fi
! 19692:
! 19693: if test "$with_kerb5" = "yes"; then
! 19694: # Extract the first word of "krb5-config", so it can be a program name with args.
! 19695: set dummy krb5-config; ac_word=$2
! 19696: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 19697: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 19698: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
! 19699: echo $ECHO_N "(cached) $ECHO_C" >&6
! 19700: else
! 19701: if test -n "$KRB5CONFIG"; then
! 19702: ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
1.9 millert 19703: else
1.25 ! millert 19704: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 19705: for as_dir in $PATH
! 19706: do
! 19707: IFS=$as_save_IFS
! 19708: test -z "$as_dir" && as_dir=.
! 19709: for ac_exec_ext in '' $ac_executable_extensions; do
! 19710: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 19711: ac_cv_prog_KRB5CONFIG="yes"
! 19712: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 19713: break 2
! 19714: fi
! 19715: done
! 19716: done
1.16 millert 19717:
1.25 ! millert 19718: test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
1.9 millert 19719: fi
19720: fi
1.25 ! millert 19721: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
! 19722: if test -n "$KRB5CONFIG"; then
! 19723: echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
! 19724: echo "${ECHO_T}$KRB5CONFIG" >&6
1.1 millert 19725: else
1.25 ! millert 19726: echo "$as_me:$LINENO: result: no" >&5
! 19727: echo "${ECHO_T}no" >&6
! 19728: fi
! 19729:
! 19730: if test -n "$KRB5CONFIG"; then
! 19731: cat >>confdefs.h <<\_ACEOF
! 19732: #define HAVE_KERB5 1
! 19733: _ACEOF
! 19734:
! 19735:
! 19736: if test X"$AUTH_EXCL" != X""; then
! 19737: { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 19738: echo "$as_me: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 19739: { (exit 1); exit 1; }; }
! 19740: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 19741: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 19742: { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&5
! 19743: echo "$as_me: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&2;}
! 19744: { (exit 1); exit 1; }; }
! 19745: fi
! 19746: if test X"" != X""; then
! 19747: AUTH_OBJS="kerb5.o"
! 19748: AUTH_EXCL="Kerberos 5"
! 19749: elif test X"$AUTH_OBJS" = X""; then
! 19750: AUTH_OBJS="kerb5.o"
1.1 millert 19751: else
1.25 ! millert 19752: AUTH_OBJS="$AUTH_OBJS kerb5.o"
! 19753: fi
! 19754:
! 19755: CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
! 19756: SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
! 19757: echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
! 19758: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
! 19759: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19760: /* confdefs.h. */
19761: _ACEOF
19762: cat confdefs.h >>conftest.$ac_ext
19763: cat >>conftest.$ac_ext <<_ACEOF
19764: /* end confdefs.h. */
1.25 ! millert 19765: #include <krb5.h>
1.9 millert 19766: int
19767: main ()
19768: {
1.25 ! millert 19769: const char *tmp = heimdal_version;
1.9 millert 19770: ;
19771: return 0;
19772: }
19773: _ACEOF
1.25 ! millert 19774: rm -f conftest.$ac_objext
! 19775: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 19776: (eval $ac_compile) 2>conftest.er1
1.9 millert 19777: ac_status=$?
1.25 ! millert 19778: grep -v '^ *+' conftest.er1 >conftest.err
! 19779: rm -f conftest.er1
! 19780: cat conftest.err >&5
1.16 millert 19781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19782: (exit $ac_status); } &&
1.25 ! millert 19783: { ac_try='test -z "$ac_c_werror_flag"
! 19784: || test ! -s conftest.err'
! 19785: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19786: (eval $ac_try) 2>&5
! 19787: ac_status=$?
! 19788: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19789: (exit $ac_status); }; } &&
! 19790: { ac_try='test -s conftest.$ac_objext'
1.16 millert 19791: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19792: (eval $ac_try) 2>&5
19793: ac_status=$?
1.16 millert 19794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19795: (exit $ac_status); }; }; then
1.25 ! millert 19796:
! 19797: echo "$as_me:$LINENO: result: yes" >&5
! 19798: echo "${ECHO_T}yes" >&6
! 19799: cat >>confdefs.h <<\_ACEOF
! 19800: #define HAVE_HEIMDAL 1
! 19801: _ACEOF
! 19802:
! 19803:
1.9 millert 19804: else
19805: echo "$as_me: failed program was:" >&5
1.16 millert 19806: sed 's/^/| /' conftest.$ac_ext >&5
19807:
1.25 ! millert 19808:
! 19809: echo "$as_me:$LINENO: result: no" >&5
! 19810: echo "${ECHO_T}no" >&6
! 19811:
! 19812:
1.9 millert 19813: fi
1.25 ! millert 19814: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 19815: fi
1.9 millert 19816: fi
1.25 ! millert 19817: if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then
! 19818: cat >>confdefs.h <<\_ACEOF
! 19819: #define HAVE_KERB5 1
! 19820: _ACEOF
! 19821:
! 19822: if test "$with_kerb5" = "yes"; then
! 19823: found=no
! 19824: O_CPPFLAGS="$CPPFLAGS"
! 19825: for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
! 19826: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
! 19827: cat >conftest.$ac_ext <<_ACEOF
! 19828: #include <krb5.h>
! 19829: _ACEOF
! 19830: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 19831: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 19832: ac_status=$?
! 19833: grep -v '^ *+' conftest.er1 >conftest.err
! 19834: rm -f conftest.er1
! 19835: cat conftest.err >&5
! 19836: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19837: (exit $ac_status); } >/dev/null; then
! 19838: if test -s conftest.err; then
! 19839: ac_cpp_err=$ac_c_preproc_warn_flag
! 19840: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 19841: else
! 19842: ac_cpp_err=
! 19843: fi
1.1 millert 19844: else
1.25 ! millert 19845: ac_cpp_err=yes
! 19846: fi
! 19847: if test -z "$ac_cpp_err"; then
! 19848: found=yes; break
1.1 millert 19849: else
1.25 ! millert 19850: echo "$as_me: failed program was:" >&5
! 19851: sed 's/^/| /' conftest.$ac_ext >&5
! 19852:
! 19853:
! 19854: fi
! 19855: rm -f conftest.err conftest.$ac_ext
! 19856: done
! 19857: if test X"$found" = X"no"; then
! 19858: CPPFLAGS="$O_CPPFLAGS"
! 19859: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
! 19860: echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
! 19861: fi
! 19862: else
! 19863:
! 19864: if test X"$with_rpath" = X"yes"; then
! 19865: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
! 19866: else
! 19867: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
! 19868: fi
! 19869: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 19870: blibpath_add="${blibpath_add}:${with_kerb5}/lib"
! 19871: fi
! 19872:
! 19873: CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
! 19874: fi
! 19875:
! 19876: echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
! 19877: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
! 19878: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19879: /* confdefs.h. */
19880: _ACEOF
19881: cat confdefs.h >>conftest.$ac_ext
19882: cat >>conftest.$ac_ext <<_ACEOF
19883: /* end confdefs.h. */
1.25 ! millert 19884: #include <krb5.h>
1.9 millert 19885: int
19886: main ()
19887: {
1.25 ! millert 19888: const char *tmp = heimdal_version;
1.9 millert 19889: ;
19890: return 0;
19891: }
19892: _ACEOF
1.25 ! millert 19893: rm -f conftest.$ac_objext
! 19894: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 19895: (eval $ac_compile) 2>conftest.er1
1.9 millert 19896: ac_status=$?
1.25 ! millert 19897: grep -v '^ *+' conftest.er1 >conftest.err
! 19898: rm -f conftest.er1
! 19899: cat conftest.err >&5
1.16 millert 19900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19901: (exit $ac_status); } &&
1.25 ! millert 19902: { ac_try='test -z "$ac_c_werror_flag"
! 19903: || test ! -s conftest.err'
! 19904: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19905: (eval $ac_try) 2>&5
! 19906: ac_status=$?
! 19907: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19908: (exit $ac_status); }; } &&
! 19909: { ac_try='test -s conftest.$ac_objext'
1.16 millert 19910: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19911: (eval $ac_try) 2>&5
19912: ac_status=$?
1.16 millert 19913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19914: (exit $ac_status); }; }; then
1.16 millert 19915:
1.25 ! millert 19916: echo "$as_me:$LINENO: result: yes" >&5
! 19917: echo "${ECHO_T}yes" >&6
! 19918: cat >>confdefs.h <<\_ACEOF
! 19919: #define HAVE_HEIMDAL 1
! 19920: _ACEOF
! 19921:
! 19922: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
! 19923: echo "$as_me:$LINENO: checking for main in -lroken" >&5
! 19924: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
! 19925: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9 millert 19926: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19927: else
1.9 millert 19928: ac_check_lib_save_LIBS=$LIBS
1.25 ! millert 19929: LIBS="-lroken $LIBS"
1.9 millert 19930: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19931: /* confdefs.h. */
19932: _ACEOF
19933: cat confdefs.h >>conftest.$ac_ext
19934: cat >>conftest.$ac_ext <<_ACEOF
19935: /* end confdefs.h. */
1.9 millert 19936:
1.25 ! millert 19937:
1.9 millert 19938: int
19939: main ()
19940: {
1.25 ! millert 19941: main ();
1.9 millert 19942: ;
19943: return 0;
19944: }
19945: _ACEOF
19946: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 19947: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 19948: (eval $ac_link) 2>conftest.er1
1.9 millert 19949: ac_status=$?
1.25 ! millert 19950: grep -v '^ *+' conftest.er1 >conftest.err
! 19951: rm -f conftest.er1
! 19952: cat conftest.err >&5
1.16 millert 19953: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19954: (exit $ac_status); } &&
1.25 ! millert 19955: { ac_try='test -z "$ac_c_werror_flag"
! 19956: || test ! -s conftest.err'
! 19957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 19958: (eval $ac_try) 2>&5
! 19959: ac_status=$?
! 19960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 19961: (exit $ac_status); }; } &&
! 19962: { ac_try='test -s conftest$ac_exeext'
1.16 millert 19963: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19964: (eval $ac_try) 2>&5
19965: ac_status=$?
1.16 millert 19966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19967: (exit $ac_status); }; }; then
1.25 ! millert 19968: ac_cv_lib_roken_main=yes
1.9 millert 19969: else
19970: echo "$as_me: failed program was:" >&5
1.16 millert 19971: sed 's/^/| /' conftest.$ac_ext >&5
19972:
1.25 ! millert 19973: ac_cv_lib_roken_main=no
1.9 millert 19974: fi
1.25 ! millert 19975: rm -f conftest.err conftest.$ac_objext \
! 19976: conftest$ac_exeext conftest.$ac_ext
1.9 millert 19977: LIBS=$ac_check_lib_save_LIBS
19978: fi
1.25 ! millert 19979: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
! 19980: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
! 19981: if test $ac_cv_lib_roken_main = yes; then
! 19982: SUDO_LIBS="${SUDO_LIBS} -lroken"
! 19983: fi
! 19984:
! 19985:
! 19986: else
! 19987: echo "$as_me: failed program was:" >&5
! 19988: sed 's/^/| /' conftest.$ac_ext >&5
! 19989:
! 19990:
! 19991: echo "$as_me:$LINENO: result: no" >&5
! 19992: echo "${ECHO_T}no" >&6
! 19993: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
! 19994:
! 19995:
1.1 millert 19996: fi
1.25 ! millert 19997: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 millert 19998:
1.25 ! millert 19999: if test X"$AUTH_EXCL" != X""; then
! 20000: { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 20001: echo "$as_me: error: \"cannot mix Kerberos 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 20002: { (exit 1); exit 1; }; }
! 20003: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 20004: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 20005: { { echo "$as_me:$LINENO: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&5
! 20006: echo "$as_me: error: \"cannot mix Kerberos 5 with other authentication methods (such as $_AUTH)\"" >&2;}
! 20007: { (exit 1); exit 1; }; }
! 20008: fi
! 20009: if test X"" != X""; then
! 20010: AUTH_OBJS="kerb5.o"
! 20011: AUTH_EXCL="Kerberos 5"
! 20012: elif test X"$AUTH_OBJS" = X""; then
! 20013: AUTH_OBJS="kerb5.o"
! 20014: else
! 20015: AUTH_OBJS="$AUTH_OBJS kerb5.o"
1.1 millert 20016: fi
20017:
1.25 ! millert 20018: _LIBS="$LIBS"
! 20019: LIBS="${LIBS} ${SUDO_LIBS}"
1.1 millert 20020:
20021:
1.25 ! millert 20022: for ac_func in krb5_verify_user krb5_init_secure_context
! 20023: do
! 20024: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 20025: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 20026: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 20027: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 20028: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20029: else
1.9 millert 20030: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20031: /* confdefs.h. */
20032: _ACEOF
20033: cat confdefs.h >>conftest.$ac_ext
20034: cat >>conftest.$ac_ext <<_ACEOF
20035: /* end confdefs.h. */
1.25 ! millert 20036: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 20037: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20038: #define $ac_func innocuous_$ac_func
! 20039:
1.1 millert 20040: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 20041: which can conflict with char $ac_func (); below.
1.16 millert 20042: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20043: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 20044:
1.16 millert 20045: #ifdef __STDC__
20046: # include <limits.h>
20047: #else
20048: # include <assert.h>
20049: #endif
1.25 ! millert 20050:
! 20051: #undef $ac_func
! 20052:
1.1 millert 20053: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20054: #ifdef __cplusplus
20055: extern "C"
1.16 millert 20056: {
1.9 millert 20057: #endif
1.1 millert 20058: /* We use char because int might match the return type of a gcc2
1.9 millert 20059: builtin and then its argument prototype would still apply. */
1.25 ! millert 20060: char $ac_func ();
1.1 millert 20061: /* The GNU C library defines this for functions which it implements
20062: to always fail with ENOSYS. Some functions are actually named
20063: something starting with __ and the normal name is an alias. */
1.25 ! millert 20064: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 20065: choke me
20066: #else
1.25 ! millert 20067: char (*f) () = $ac_func;
1.16 millert 20068: #endif
20069: #ifdef __cplusplus
20070: }
1.1 millert 20071: #endif
20072:
1.16 millert 20073: int
20074: main ()
20075: {
1.25 ! millert 20076: return f != $ac_func;
1.9 millert 20077: ;
20078: return 0;
20079: }
20080: _ACEOF
20081: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20082: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20083: (eval $ac_link) 2>conftest.er1
1.9 millert 20084: ac_status=$?
1.25 ! millert 20085: grep -v '^ *+' conftest.er1 >conftest.err
! 20086: rm -f conftest.er1
! 20087: cat conftest.err >&5
1.16 millert 20088: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20089: (exit $ac_status); } &&
1.25 ! millert 20090: { ac_try='test -z "$ac_c_werror_flag"
! 20091: || test ! -s conftest.err'
! 20092: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20093: (eval $ac_try) 2>&5
! 20094: ac_status=$?
! 20095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20096: (exit $ac_status); }; } &&
! 20097: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20099: (eval $ac_try) 2>&5
20100: ac_status=$?
1.16 millert 20101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20102: (exit $ac_status); }; }; then
1.25 ! millert 20103: eval "$as_ac_var=yes"
1.9 millert 20104: else
20105: echo "$as_me: failed program was:" >&5
1.16 millert 20106: sed 's/^/| /' conftest.$ac_ext >&5
20107:
1.25 ! millert 20108: eval "$as_ac_var=no"
! 20109: fi
! 20110: rm -f conftest.err conftest.$ac_objext \
! 20111: conftest$ac_exeext conftest.$ac_ext
! 20112: fi
! 20113: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 20114: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 20115: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 20116: cat >>confdefs.h <<_ACEOF
! 20117: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 20118: _ACEOF
! 20119:
! 20120: fi
! 20121: done
! 20122:
! 20123: LIBS="$_LIBS"
1.9 millert 20124: fi
1.25 ! millert 20125:
! 20126: if test "$with_logincap" = "yes"; then
! 20127: case "$OS" in
! 20128: freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
! 20129: ;;
! 20130: esac
1.9 millert 20131: fi
1.25 ! millert 20132:
! 20133: if test ${with_pam-'no'} != "no"; then
! 20134: echo "$as_me:$LINENO: checking for main in -ldl" >&5
! 20135: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
! 20136: if test "${ac_cv_lib_dl_main+set}" = set; then
1.9 millert 20137: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20138: else
1.9 millert 20139: ac_check_lib_save_LIBS=$LIBS
1.25 ! millert 20140: LIBS="-ldl $LIBS"
1.9 millert 20141: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20142: /* confdefs.h. */
20143: _ACEOF
20144: cat confdefs.h >>conftest.$ac_ext
20145: cat >>conftest.$ac_ext <<_ACEOF
20146: /* end confdefs.h. */
1.9 millert 20147:
1.25 ! millert 20148:
1.9 millert 20149: int
20150: main ()
20151: {
1.25 ! millert 20152: main ();
1.9 millert 20153: ;
20154: return 0;
20155: }
20156: _ACEOF
20157: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20158: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20159: (eval $ac_link) 2>conftest.er1
1.9 millert 20160: ac_status=$?
1.25 ! millert 20161: grep -v '^ *+' conftest.er1 >conftest.err
! 20162: rm -f conftest.er1
! 20163: cat conftest.err >&5
1.16 millert 20164: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20165: (exit $ac_status); } &&
1.25 ! millert 20166: { ac_try='test -z "$ac_c_werror_flag"
! 20167: || test ! -s conftest.err'
! 20168: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20169: (eval $ac_try) 2>&5
! 20170: ac_status=$?
! 20171: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20172: (exit $ac_status); }; } &&
! 20173: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20174: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20175: (eval $ac_try) 2>&5
20176: ac_status=$?
1.16 millert 20177: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20178: (exit $ac_status); }; }; then
1.25 ! millert 20179: ac_cv_lib_dl_main=yes
1.9 millert 20180: else
20181: echo "$as_me: failed program was:" >&5
1.16 millert 20182: sed 's/^/| /' conftest.$ac_ext >&5
20183:
1.25 ! millert 20184: ac_cv_lib_dl_main=no
1.9 millert 20185: fi
1.25 ! millert 20186: rm -f conftest.err conftest.$ac_objext \
! 20187: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20188: LIBS=$ac_check_lib_save_LIBS
20189: fi
1.25 ! millert 20190: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
! 20191: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
! 20192: if test $ac_cv_lib_dl_main = yes; then
! 20193: SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
1.1 millert 20194: else
1.25 ! millert 20195: SUDO_LIBS="${SUDO_LIBS} -lpam"
! 20196: fi
! 20197:
! 20198: ac_cv_lib_dl=ac_cv_lib_dl_main
! 20199:
! 20200:
! 20201:
! 20202: for ac_header in security/pam_appl.h pam/pam_appl.h
! 20203: do
! 20204: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 20205: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 20206: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 20207: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 20208: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9 millert 20209: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 ! millert 20210: fi
! 20211: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 20212: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 millert 20213: else
1.25 ! millert 20214: # Is the header compilable?
! 20215: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 20216: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.9 millert 20217: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20218: /* confdefs.h. */
20219: _ACEOF
20220: cat confdefs.h >>conftest.$ac_ext
20221: cat >>conftest.$ac_ext <<_ACEOF
20222: /* end confdefs.h. */
1.25 ! millert 20223: $ac_includes_default
! 20224: #include <$ac_header>
1.9 millert 20225: _ACEOF
1.25 ! millert 20226: rm -f conftest.$ac_objext
! 20227: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 20228: (eval $ac_compile) 2>conftest.er1
1.9 millert 20229: ac_status=$?
1.25 ! millert 20230: grep -v '^ *+' conftest.er1 >conftest.err
! 20231: rm -f conftest.er1
! 20232: cat conftest.err >&5
1.16 millert 20233: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20234: (exit $ac_status); } &&
1.25 ! millert 20235: { ac_try='test -z "$ac_c_werror_flag"
! 20236: || test ! -s conftest.err'
! 20237: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20238: (eval $ac_try) 2>&5
! 20239: ac_status=$?
! 20240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20241: (exit $ac_status); }; } &&
! 20242: { ac_try='test -s conftest.$ac_objext'
1.16 millert 20243: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20244: (eval $ac_try) 2>&5
20245: ac_status=$?
1.16 millert 20246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20247: (exit $ac_status); }; }; then
1.25 ! millert 20248: ac_header_compiler=yes
1.9 millert 20249: else
20250: echo "$as_me: failed program was:" >&5
1.16 millert 20251: sed 's/^/| /' conftest.$ac_ext >&5
20252:
1.25 ! millert 20253: ac_header_compiler=no
1.9 millert 20254: fi
1.25 ! millert 20255: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
! 20256: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 20257: echo "${ECHO_T}$ac_header_compiler" >&6
! 20258:
! 20259: # Is the header present?
! 20260: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 20261: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.9 millert 20262: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20263: /* confdefs.h. */
20264: _ACEOF
20265: cat confdefs.h >>conftest.$ac_ext
20266: cat >>conftest.$ac_ext <<_ACEOF
20267: /* end confdefs.h. */
1.25 ! millert 20268: #include <$ac_header>
1.9 millert 20269: _ACEOF
1.25 ! millert 20270: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 20271: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 20272: ac_status=$?
1.25 ! millert 20273: grep -v '^ *+' conftest.er1 >conftest.err
! 20274: rm -f conftest.er1
! 20275: cat conftest.err >&5
1.16 millert 20276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 20277: (exit $ac_status); } >/dev/null; then
! 20278: if test -s conftest.err; then
! 20279: ac_cpp_err=$ac_c_preproc_warn_flag
! 20280: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 20281: else
! 20282: ac_cpp_err=
! 20283: fi
! 20284: else
! 20285: ac_cpp_err=yes
! 20286: fi
! 20287: if test -z "$ac_cpp_err"; then
! 20288: ac_header_preproc=yes
1.9 millert 20289: else
20290: echo "$as_me: failed program was:" >&5
1.25 ! millert 20291: sed 's/^/| /' conftest.$ac_ext >&5
! 20292:
! 20293: ac_header_preproc=no
! 20294: fi
! 20295: rm -f conftest.err conftest.$ac_ext
! 20296: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 20297: echo "${ECHO_T}$ac_header_preproc" >&6
! 20298:
! 20299: # So? What about this header?
! 20300: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 20301: yes:no: )
! 20302: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 20303: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 20304: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
! 20305: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
! 20306: ac_header_preproc=yes
! 20307: ;;
! 20308: no:yes:* )
! 20309: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 20310: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 20311: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 20312: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 20313: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
! 20314: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
! 20315: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
! 20316: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
! 20317: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 20318: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 20319: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
! 20320: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
! 20321: (
! 20322: cat <<\_ASBOX
! 20323: ## ------------------------------- ##
! 20324: ## Report this to the sudo lists. ##
! 20325: ## ------------------------------- ##
! 20326: _ASBOX
! 20327: ) |
! 20328: sed "s/^/$as_me: WARNING: /" >&2
! 20329: ;;
! 20330: esac
! 20331: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 20332: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 20333: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 20334: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20335: else
! 20336: eval "$as_ac_Header=\$ac_header_preproc"
! 20337: fi
! 20338: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 20339: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 20340:
1.9 millert 20341: fi
1.25 ! millert 20342: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 20343: cat >>confdefs.h <<_ACEOF
! 20344: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 20345: _ACEOF
! 20346: with_pam=yes; break
1.9 millert 20347: fi
1.25 ! millert 20348:
! 20349: done
! 20350:
! 20351: if test "$with_pam" = "yes"; then
! 20352: cat >>confdefs.h <<\_ACEOF
! 20353: #define HAVE_PAM 1
! 20354: _ACEOF
! 20355:
! 20356:
! 20357: if test X"$AUTH_EXCL" != X""; then
! 20358: { { echo "$as_me:$LINENO: error: \"cannot mix PAM with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 20359: echo "$as_me: error: \"cannot mix PAM with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 20360: { (exit 1); exit 1; }; }
! 20361: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 20362: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 20363: { { echo "$as_me:$LINENO: error: \"cannot mix PAM with other authentication methods (such as $_AUTH)\"" >&5
! 20364: echo "$as_me: error: \"cannot mix PAM with other authentication methods (such as $_AUTH)\"" >&2;}
! 20365: { (exit 1); exit 1; }; }
1.1 millert 20366: fi
1.25 ! millert 20367: if test X"true" != X""; then
! 20368: AUTH_OBJS="pam.o"
! 20369: AUTH_EXCL="PAM"
! 20370: elif test X"$AUTH_OBJS" = X""; then
! 20371: AUTH_OBJS="pam.o"
! 20372: else
! 20373: AUTH_OBJS="$AUTH_OBJS pam.o"
1.1 millert 20374: fi
20375:
1.25 ! millert 20376: CHECKSHADOW=false
! 20377: fi
1.1 millert 20378: fi
20379:
1.25 ! millert 20380: if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
! 20381: _LIBS="$LIBS"
! 20382: LIBS="$LIBS $shadow_libs"
! 20383: found=no
1.1 millert 20384:
1.25 ! millert 20385: for ac_func in $shadow_funcs
! 20386: do
! 20387: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 20388: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 20389: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 20390: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 20391: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20392: else
1.9 millert 20393: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20394: /* confdefs.h. */
20395: _ACEOF
20396: cat confdefs.h >>conftest.$ac_ext
20397: cat >>conftest.$ac_ext <<_ACEOF
20398: /* end confdefs.h. */
1.25 ! millert 20399: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 20400: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20401: #define $ac_func innocuous_$ac_func
! 20402:
1.1 millert 20403: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 20404: which can conflict with char $ac_func (); below.
1.16 millert 20405: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20406: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 20407:
1.16 millert 20408: #ifdef __STDC__
20409: # include <limits.h>
20410: #else
20411: # include <assert.h>
20412: #endif
1.25 ! millert 20413:
! 20414: #undef $ac_func
! 20415:
1.1 millert 20416: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20417: #ifdef __cplusplus
20418: extern "C"
1.16 millert 20419: {
1.9 millert 20420: #endif
1.1 millert 20421: /* We use char because int might match the return type of a gcc2
1.9 millert 20422: builtin and then its argument prototype would still apply. */
1.25 ! millert 20423: char $ac_func ();
1.1 millert 20424: /* The GNU C library defines this for functions which it implements
20425: to always fail with ENOSYS. Some functions are actually named
20426: something starting with __ and the normal name is an alias. */
1.25 ! millert 20427: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 20428: choke me
20429: #else
1.25 ! millert 20430: char (*f) () = $ac_func;
1.16 millert 20431: #endif
20432: #ifdef __cplusplus
20433: }
1.1 millert 20434: #endif
20435:
1.16 millert 20436: int
20437: main ()
20438: {
1.25 ! millert 20439: return f != $ac_func;
1.9 millert 20440: ;
20441: return 0;
20442: }
20443: _ACEOF
20444: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20445: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20446: (eval $ac_link) 2>conftest.er1
1.9 millert 20447: ac_status=$?
1.25 ! millert 20448: grep -v '^ *+' conftest.er1 >conftest.err
! 20449: rm -f conftest.er1
! 20450: cat conftest.err >&5
1.16 millert 20451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20452: (exit $ac_status); } &&
1.25 ! millert 20453: { ac_try='test -z "$ac_c_werror_flag"
! 20454: || test ! -s conftest.err'
! 20455: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20456: (eval $ac_try) 2>&5
! 20457: ac_status=$?
! 20458: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20459: (exit $ac_status); }; } &&
! 20460: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20461: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20462: (eval $ac_try) 2>&5
20463: ac_status=$?
1.16 millert 20464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20465: (exit $ac_status); }; }; then
1.25 ! millert 20466: eval "$as_ac_var=yes"
1.9 millert 20467: else
20468: echo "$as_me: failed program was:" >&5
1.16 millert 20469: sed 's/^/| /' conftest.$ac_ext >&5
20470:
1.25 ! millert 20471: eval "$as_ac_var=no"
! 20472: fi
! 20473: rm -f conftest.err conftest.$ac_objext \
! 20474: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20475: fi
1.25 ! millert 20476: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 20477: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 20478: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 20479: cat >>confdefs.h <<_ACEOF
! 20480: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 20481: _ACEOF
! 20482: found=yes
1.9 millert 20483: fi
1.25 ! millert 20484: done
! 20485:
! 20486: if test "$found" = "yes"; then
! 20487: SUDO_LIBS="$SUDO_LIBS $shadow_libs"
! 20488: elif test -n "$shadow_libs_optional"; then
! 20489: LIBS="$LIBS $shadow_libs_optional"
! 20490:
! 20491: for ac_func in $shadow_funcs
! 20492: do
! 20493: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 20494: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 20495: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 20496: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 20497: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 20498: else
1.9 millert 20499: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20500: /* confdefs.h. */
20501: _ACEOF
20502: cat confdefs.h >>conftest.$ac_ext
20503: cat >>conftest.$ac_ext <<_ACEOF
20504: /* end confdefs.h. */
1.25 ! millert 20505: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 20506: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20507: #define $ac_func innocuous_$ac_func
! 20508:
1.6 millert 20509: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 20510: which can conflict with char $ac_func (); below.
1.16 millert 20511: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20512: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 20513:
1.16 millert 20514: #ifdef __STDC__
20515: # include <limits.h>
20516: #else
20517: # include <assert.h>
20518: #endif
1.25 ! millert 20519:
! 20520: #undef $ac_func
! 20521:
1.6 millert 20522: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20523: #ifdef __cplusplus
20524: extern "C"
1.16 millert 20525: {
1.9 millert 20526: #endif
1.6 millert 20527: /* We use char because int might match the return type of a gcc2
1.9 millert 20528: builtin and then its argument prototype would still apply. */
1.25 ! millert 20529: char $ac_func ();
1.6 millert 20530: /* The GNU C library defines this for functions which it implements
20531: to always fail with ENOSYS. Some functions are actually named
20532: something starting with __ and the normal name is an alias. */
1.25 ! millert 20533: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.6 millert 20534: choke me
20535: #else
1.25 ! millert 20536: char (*f) () = $ac_func;
1.16 millert 20537: #endif
20538: #ifdef __cplusplus
20539: }
1.6 millert 20540: #endif
20541:
1.16 millert 20542: int
20543: main ()
20544: {
1.25 ! millert 20545: return f != $ac_func;
1.9 millert 20546: ;
20547: return 0;
20548: }
20549: _ACEOF
20550: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20551: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20552: (eval $ac_link) 2>conftest.er1
1.9 millert 20553: ac_status=$?
1.25 ! millert 20554: grep -v '^ *+' conftest.er1 >conftest.err
! 20555: rm -f conftest.er1
! 20556: cat conftest.err >&5
1.16 millert 20557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20558: (exit $ac_status); } &&
1.25 ! millert 20559: { ac_try='test -z "$ac_c_werror_flag"
! 20560: || test ! -s conftest.err'
! 20561: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20562: (eval $ac_try) 2>&5
! 20563: ac_status=$?
! 20564: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20565: (exit $ac_status); }; } &&
! 20566: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20567: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20568: (eval $ac_try) 2>&5
20569: ac_status=$?
1.16 millert 20570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20571: (exit $ac_status); }; }; then
1.25 ! millert 20572: eval "$as_ac_var=yes"
1.9 millert 20573: else
20574: echo "$as_me: failed program was:" >&5
1.16 millert 20575: sed 's/^/| /' conftest.$ac_ext >&5
20576:
1.25 ! millert 20577: eval "$as_ac_var=no"
! 20578: fi
! 20579: rm -f conftest.err conftest.$ac_objext \
! 20580: conftest$ac_exeext conftest.$ac_ext
! 20581: fi
! 20582: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 20583: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 20584: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 20585: cat >>confdefs.h <<_ACEOF
! 20586: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 20587: _ACEOF
! 20588: found=yes
1.9 millert 20589: fi
1.25 ! millert 20590: done
! 20591:
! 20592: if test "$found" = "yes"; then
! 20593: SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
! 20594: fi
! 20595: fi
! 20596: if test "$found" = "yes"; then
! 20597: case "$shadow_funcs" in
! 20598: *getprpwnam*) SECUREWARE=1;;
! 20599: esac
! 20600: test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
! 20601: else
! 20602: LIBS="$_LIBS"
! 20603: fi
! 20604: CHECKSHADOW=false
1.9 millert 20605: fi
1.25 ! millert 20606: if test "$CHECKSHADOW" = "true"; then
! 20607:
! 20608: for ac_func in getspnam
! 20609: do
! 20610: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 20611: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 20612: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 20613: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 20614: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20615: else
1.25 ! millert 20616: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20617: /* confdefs.h. */
20618: _ACEOF
20619: cat confdefs.h >>conftest.$ac_ext
20620: cat >>conftest.$ac_ext <<_ACEOF
20621: /* end confdefs.h. */
1.25 ! millert 20622: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 20623: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20624: #define $ac_func innocuous_$ac_func
! 20625:
! 20626: /* System header to define __stub macros and hopefully few prototypes,
! 20627: which can conflict with char $ac_func (); below.
! 20628: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20629: <limits.h> exists even on freestanding compilers. */
! 20630:
! 20631: #ifdef __STDC__
! 20632: # include <limits.h>
! 20633: #else
! 20634: # include <assert.h>
! 20635: #endif
! 20636:
! 20637: #undef $ac_func
1.9 millert 20638:
1.1 millert 20639: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20640: #ifdef __cplusplus
20641: extern "C"
1.25 ! millert 20642: {
1.9 millert 20643: #endif
1.1 millert 20644: /* We use char because int might match the return type of a gcc2
1.9 millert 20645: builtin and then its argument prototype would still apply. */
1.25 ! millert 20646: char $ac_func ();
! 20647: /* The GNU C library defines this for functions which it implements
! 20648: to always fail with ENOSYS. Some functions are actually named
! 20649: something starting with __ and the normal name is an alias. */
! 20650: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 20651: choke me
! 20652: #else
! 20653: char (*f) () = $ac_func;
! 20654: #endif
! 20655: #ifdef __cplusplus
! 20656: }
! 20657: #endif
! 20658:
1.9 millert 20659: int
20660: main ()
20661: {
1.25 ! millert 20662: return f != $ac_func;
1.9 millert 20663: ;
20664: return 0;
20665: }
20666: _ACEOF
20667: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20668: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20669: (eval $ac_link) 2>conftest.er1
1.9 millert 20670: ac_status=$?
1.25 ! millert 20671: grep -v '^ *+' conftest.er1 >conftest.err
! 20672: rm -f conftest.er1
! 20673: cat conftest.err >&5
1.16 millert 20674: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20675: (exit $ac_status); } &&
1.25 ! millert 20676: { ac_try='test -z "$ac_c_werror_flag"
! 20677: || test ! -s conftest.err'
1.16 millert 20678: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20679: (eval $ac_try) 2>&5
20680: ac_status=$?
1.16 millert 20681: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 20682: (exit $ac_status); }; } &&
! 20683: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20684: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20685: (eval $ac_try) 2>&5
20686: ac_status=$?
1.16 millert 20687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20688: (exit $ac_status); }; }; then
1.25 ! millert 20689: eval "$as_ac_var=yes"
1.9 millert 20690: else
20691: echo "$as_me: failed program was:" >&5
1.16 millert 20692: sed 's/^/| /' conftest.$ac_ext >&5
20693:
1.25 ! millert 20694: eval "$as_ac_var=no"
1.9 millert 20695: fi
1.25 ! millert 20696: rm -f conftest.err conftest.$ac_objext \
! 20697: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20698: fi
1.25 ! millert 20699: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 20700: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 20701: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 20702: cat >>confdefs.h <<_ACEOF
! 20703: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 20704: _ACEOF
! 20705: CHECKSHADOW="false"
1.1 millert 20706: else
1.25 ! millert 20707: echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
! 20708: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
! 20709: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
1.9 millert 20710: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20711: else
1.9 millert 20712: ac_check_lib_save_LIBS=$LIBS
1.25 ! millert 20713: LIBS="-lgen $LIBS"
1.9 millert 20714: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20715: /* confdefs.h. */
20716: _ACEOF
20717: cat confdefs.h >>conftest.$ac_ext
20718: cat >>conftest.$ac_ext <<_ACEOF
20719: /* end confdefs.h. */
1.9 millert 20720:
1.1 millert 20721: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20722: #ifdef __cplusplus
20723: extern "C"
20724: #endif
1.1 millert 20725: /* We use char because int might match the return type of a gcc2
1.9 millert 20726: builtin and then its argument prototype would still apply. */
1.25 ! millert 20727: char getspnam ();
1.9 millert 20728: int
20729: main ()
20730: {
1.25 ! millert 20731: getspnam ();
1.9 millert 20732: ;
20733: return 0;
20734: }
20735: _ACEOF
20736: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20737: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20738: (eval $ac_link) 2>conftest.er1
1.9 millert 20739: ac_status=$?
1.25 ! millert 20740: grep -v '^ *+' conftest.er1 >conftest.err
! 20741: rm -f conftest.er1
! 20742: cat conftest.err >&5
1.16 millert 20743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20744: (exit $ac_status); } &&
1.25 ! millert 20745: { ac_try='test -z "$ac_c_werror_flag"
! 20746: || test ! -s conftest.err'
! 20747: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20748: (eval $ac_try) 2>&5
! 20749: ac_status=$?
! 20750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20751: (exit $ac_status); }; } &&
! 20752: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20753: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20754: (eval $ac_try) 2>&5
20755: ac_status=$?
1.16 millert 20756: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20757: (exit $ac_status); }; }; then
1.25 ! millert 20758: ac_cv_lib_gen_getspnam=yes
1.9 millert 20759: else
20760: echo "$as_me: failed program was:" >&5
1.16 millert 20761: sed 's/^/| /' conftest.$ac_ext >&5
20762:
1.25 ! millert 20763: ac_cv_lib_gen_getspnam=no
1.9 millert 20764: fi
1.25 ! millert 20765: rm -f conftest.err conftest.$ac_objext \
! 20766: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20767: LIBS=$ac_check_lib_save_LIBS
20768: fi
1.25 ! millert 20769: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
! 20770: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
! 20771: if test $ac_cv_lib_gen_getspnam = yes; then
! 20772: cat >>confdefs.h <<\_ACEOF
! 20773: #define HAVE_GETSPNAM 1
! 20774: _ACEOF
! 20775: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
1.1 millert 20776: fi
20777:
20778: fi
1.25 ! millert 20779: done
1.1 millert 20780:
20781: fi
1.25 ! millert 20782: if test "$CHECKSHADOW" = "true"; then
! 20783: echo "$as_me:$LINENO: checking for getprpwnam" >&5
! 20784: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
! 20785: if test "${ac_cv_func_getprpwnam+set}" = set; then
1.9 millert 20786: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20787: else
1.9 millert 20788: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20789: /* confdefs.h. */
20790: _ACEOF
20791: cat confdefs.h >>conftest.$ac_ext
20792: cat >>conftest.$ac_ext <<_ACEOF
20793: /* end confdefs.h. */
1.25 ! millert 20794: /* Define getprpwnam to an innocuous variant, in case <limits.h> declares getprpwnam.
! 20795: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 20796: #define getprpwnam innocuous_getprpwnam
! 20797:
1.1 millert 20798: /* System header to define __stub macros and hopefully few prototypes,
1.25 ! millert 20799: which can conflict with char getprpwnam (); below.
1.16 millert 20800: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20801: <limits.h> exists even on freestanding compilers. */
1.25 ! millert 20802:
1.16 millert 20803: #ifdef __STDC__
20804: # include <limits.h>
20805: #else
20806: # include <assert.h>
20807: #endif
1.25 ! millert 20808:
! 20809: #undef getprpwnam
! 20810:
1.1 millert 20811: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20812: #ifdef __cplusplus
20813: extern "C"
1.16 millert 20814: {
1.9 millert 20815: #endif
1.1 millert 20816: /* We use char because int might match the return type of a gcc2
1.9 millert 20817: builtin and then its argument prototype would still apply. */
1.25 ! millert 20818: char getprpwnam ();
1.1 millert 20819: /* The GNU C library defines this for functions which it implements
20820: to always fail with ENOSYS. Some functions are actually named
20821: something starting with __ and the normal name is an alias. */
1.25 ! millert 20822: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
1.1 millert 20823: choke me
20824: #else
1.25 ! millert 20825: char (*f) () = getprpwnam;
1.16 millert 20826: #endif
20827: #ifdef __cplusplus
20828: }
1.1 millert 20829: #endif
20830:
1.16 millert 20831: int
20832: main ()
20833: {
1.25 ! millert 20834: return f != getprpwnam;
1.9 millert 20835: ;
20836: return 0;
20837: }
20838: _ACEOF
20839: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20840: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20841: (eval $ac_link) 2>conftest.er1
1.9 millert 20842: ac_status=$?
1.25 ! millert 20843: grep -v '^ *+' conftest.er1 >conftest.err
! 20844: rm -f conftest.er1
! 20845: cat conftest.err >&5
1.16 millert 20846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20847: (exit $ac_status); } &&
1.25 ! millert 20848: { ac_try='test -z "$ac_c_werror_flag"
! 20849: || test ! -s conftest.err'
! 20850: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20851: (eval $ac_try) 2>&5
! 20852: ac_status=$?
! 20853: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20854: (exit $ac_status); }; } &&
! 20855: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20856: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20857: (eval $ac_try) 2>&5
20858: ac_status=$?
1.16 millert 20859: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20860: (exit $ac_status); }; }; then
1.25 ! millert 20861: ac_cv_func_getprpwnam=yes
1.9 millert 20862: else
20863: echo "$as_me: failed program was:" >&5
1.16 millert 20864: sed 's/^/| /' conftest.$ac_ext >&5
20865:
1.25 ! millert 20866: ac_cv_func_getprpwnam=no
1.9 millert 20867: fi
1.25 ! millert 20868: rm -f conftest.err conftest.$ac_objext \
! 20869: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20870: fi
1.25 ! millert 20871: echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
! 20872: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
! 20873: if test $ac_cv_func_getprpwnam = yes; then
! 20874: cat >>confdefs.h <<\_ACEOF
! 20875: #define HAVE_GETPRPWNAM 1
! 20876: _ACEOF
! 20877: CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
! 20878: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
! 20879: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
1.9 millert 20880: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20881: else
1.9 millert 20882: ac_check_lib_save_LIBS=$LIBS
1.25 ! millert 20883: LIBS="-lsec $LIBS"
1.9 millert 20884: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20885: /* confdefs.h. */
20886: _ACEOF
20887: cat confdefs.h >>conftest.$ac_ext
20888: cat >>conftest.$ac_ext <<_ACEOF
20889: /* end confdefs.h. */
1.9 millert 20890:
1.1 millert 20891: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20892: #ifdef __cplusplus
20893: extern "C"
20894: #endif
1.1 millert 20895: /* We use char because int might match the return type of a gcc2
1.9 millert 20896: builtin and then its argument prototype would still apply. */
1.25 ! millert 20897: char getprpwnam ();
1.9 millert 20898: int
20899: main ()
20900: {
1.25 ! millert 20901: getprpwnam ();
1.9 millert 20902: ;
20903: return 0;
20904: }
20905: _ACEOF
20906: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20907: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20908: (eval $ac_link) 2>conftest.er1
1.9 millert 20909: ac_status=$?
1.25 ! millert 20910: grep -v '^ *+' conftest.er1 >conftest.err
! 20911: rm -f conftest.er1
! 20912: cat conftest.err >&5
1.16 millert 20913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20914: (exit $ac_status); } &&
1.25 ! millert 20915: { ac_try='test -z "$ac_c_werror_flag"
! 20916: || test ! -s conftest.err'
! 20917: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20918: (eval $ac_try) 2>&5
! 20919: ac_status=$?
! 20920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20921: (exit $ac_status); }; } &&
! 20922: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20923: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20924: (eval $ac_try) 2>&5
20925: ac_status=$?
1.16 millert 20926: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20927: (exit $ac_status); }; }; then
1.25 ! millert 20928: ac_cv_lib_sec_getprpwnam=yes
1.9 millert 20929: else
20930: echo "$as_me: failed program was:" >&5
1.16 millert 20931: sed 's/^/| /' conftest.$ac_ext >&5
20932:
1.25 ! millert 20933: ac_cv_lib_sec_getprpwnam=no
1.9 millert 20934: fi
1.25 ! millert 20935: rm -f conftest.err conftest.$ac_objext \
! 20936: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20937: LIBS=$ac_check_lib_save_LIBS
20938: fi
1.25 ! millert 20939: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
! 20940: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
! 20941: if test $ac_cv_lib_sec_getprpwnam = yes; then
! 20942: cat >>confdefs.h <<\_ACEOF
! 20943: #define HAVE_GETPRPWNAM 1
! 20944: _ACEOF
! 20945: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
1.1 millert 20946: else
1.25 ! millert 20947: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
! 20948: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
! 20949: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
1.9 millert 20950: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20951: else
1.9 millert 20952: ac_check_lib_save_LIBS=$LIBS
1.25 ! millert 20953: LIBS="-lsecurity $LIBS"
1.9 millert 20954: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20955: /* confdefs.h. */
20956: _ACEOF
20957: cat confdefs.h >>conftest.$ac_ext
20958: cat >>conftest.$ac_ext <<_ACEOF
20959: /* end confdefs.h. */
1.1 millert 20960:
1.9 millert 20961: /* Override any gcc2 internal prototype to avoid an error. */
20962: #ifdef __cplusplus
20963: extern "C"
20964: #endif
20965: /* We use char because int might match the return type of a gcc2
20966: builtin and then its argument prototype would still apply. */
1.25 ! millert 20967: char getprpwnam ();
1.9 millert 20968: int
20969: main ()
20970: {
1.25 ! millert 20971: getprpwnam ();
1.9 millert 20972: ;
20973: return 0;
20974: }
20975: _ACEOF
20976: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20977: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 20978: (eval $ac_link) 2>conftest.er1
1.9 millert 20979: ac_status=$?
1.25 ! millert 20980: grep -v '^ *+' conftest.er1 >conftest.err
! 20981: rm -f conftest.er1
! 20982: cat conftest.err >&5
1.16 millert 20983: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20984: (exit $ac_status); } &&
1.25 ! millert 20985: { ac_try='test -z "$ac_c_werror_flag"
! 20986: || test ! -s conftest.err'
! 20987: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20988: (eval $ac_try) 2>&5
! 20989: ac_status=$?
! 20990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20991: (exit $ac_status); }; } &&
! 20992: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20993: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20994: (eval $ac_try) 2>&5
20995: ac_status=$?
1.16 millert 20996: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20997: (exit $ac_status); }; }; then
1.25 ! millert 20998: ac_cv_lib_security_getprpwnam=yes
1.9 millert 20999: else
21000: echo "$as_me: failed program was:" >&5
1.16 millert 21001: sed 's/^/| /' conftest.$ac_ext >&5
21002:
1.25 ! millert 21003: ac_cv_lib_security_getprpwnam=no
1.9 millert 21004: fi
1.25 ! millert 21005: rm -f conftest.err conftest.$ac_objext \
! 21006: conftest$ac_exeext conftest.$ac_ext
1.9 millert 21007: LIBS=$ac_check_lib_save_LIBS
21008: fi
1.25 ! millert 21009: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
! 21010: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
! 21011: if test $ac_cv_lib_security_getprpwnam = yes; then
! 21012: cat >>confdefs.h <<\_ACEOF
! 21013: #define HAVE_GETPRPWNAM 1
! 21014: _ACEOF
! 21015: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
1.1 millert 21016: else
1.25 ! millert 21017: echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
! 21018: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
! 21019: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
1.9 millert 21020: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21021: else
1.9 millert 21022: ac_check_lib_save_LIBS=$LIBS
1.25 ! millert 21023: LIBS="-lprot $LIBS"
1.9 millert 21024: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21025: /* confdefs.h. */
21026: _ACEOF
21027: cat confdefs.h >>conftest.$ac_ext
21028: cat >>conftest.$ac_ext <<_ACEOF
21029: /* end confdefs.h. */
1.9 millert 21030:
1.1 millert 21031: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21032: #ifdef __cplusplus
21033: extern "C"
21034: #endif
1.1 millert 21035: /* We use char because int might match the return type of a gcc2
1.9 millert 21036: builtin and then its argument prototype would still apply. */
1.25 ! millert 21037: char getprpwnam ();
! 21038: int
! 21039: main ()
! 21040: {
! 21041: getprpwnam ();
! 21042: ;
! 21043: return 0;
! 21044: }
! 21045: _ACEOF
! 21046: rm -f conftest.$ac_objext conftest$ac_exeext
! 21047: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 21048: (eval $ac_link) 2>conftest.er1
! 21049: ac_status=$?
! 21050: grep -v '^ *+' conftest.er1 >conftest.err
! 21051: rm -f conftest.er1
! 21052: cat conftest.err >&5
! 21053: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21054: (exit $ac_status); } &&
! 21055: { ac_try='test -z "$ac_c_werror_flag"
! 21056: || test ! -s conftest.err'
! 21057: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21058: (eval $ac_try) 2>&5
! 21059: ac_status=$?
! 21060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21061: (exit $ac_status); }; } &&
! 21062: { ac_try='test -s conftest$ac_exeext'
! 21063: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21064: (eval $ac_try) 2>&5
! 21065: ac_status=$?
! 21066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21067: (exit $ac_status); }; }; then
! 21068: ac_cv_lib_prot_getprpwnam=yes
! 21069: else
! 21070: echo "$as_me: failed program was:" >&5
! 21071: sed 's/^/| /' conftest.$ac_ext >&5
! 21072:
! 21073: ac_cv_lib_prot_getprpwnam=no
! 21074: fi
! 21075: rm -f conftest.err conftest.$ac_objext \
! 21076: conftest$ac_exeext conftest.$ac_ext
! 21077: LIBS=$ac_check_lib_save_LIBS
! 21078: fi
! 21079: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
! 21080: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
! 21081: if test $ac_cv_lib_prot_getprpwnam = yes; then
! 21082: cat >>confdefs.h <<\_ACEOF
! 21083: #define HAVE_GETPRPWNAM 1
! 21084: _ACEOF
! 21085: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
! 21086: fi
! 21087:
! 21088: fi
! 21089:
! 21090: fi
! 21091:
! 21092: fi
! 21093:
! 21094: fi
! 21095: if test -n "$SECUREWARE"; then
! 21096:
! 21097:
! 21098:
! 21099: for ac_func in bigcrypt set_auth_parameters initprivs
! 21100: do
! 21101: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 21102: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 21103: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 21104: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 21105: echo $ECHO_N "(cached) $ECHO_C" >&6
! 21106: else
! 21107: cat >conftest.$ac_ext <<_ACEOF
! 21108: /* confdefs.h. */
! 21109: _ACEOF
! 21110: cat confdefs.h >>conftest.$ac_ext
! 21111: cat >>conftest.$ac_ext <<_ACEOF
! 21112: /* end confdefs.h. */
! 21113: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 21114: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 21115: #define $ac_func innocuous_$ac_func
! 21116:
! 21117: /* System header to define __stub macros and hopefully few prototypes,
! 21118: which can conflict with char $ac_func (); below.
! 21119: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 21120: <limits.h> exists even on freestanding compilers. */
! 21121:
! 21122: #ifdef __STDC__
! 21123: # include <limits.h>
! 21124: #else
! 21125: # include <assert.h>
! 21126: #endif
! 21127:
! 21128: #undef $ac_func
! 21129:
! 21130: /* Override any gcc2 internal prototype to avoid an error. */
! 21131: #ifdef __cplusplus
! 21132: extern "C"
! 21133: {
! 21134: #endif
! 21135: /* We use char because int might match the return type of a gcc2
! 21136: builtin and then its argument prototype would still apply. */
! 21137: char $ac_func ();
! 21138: /* The GNU C library defines this for functions which it implements
! 21139: to always fail with ENOSYS. Some functions are actually named
! 21140: something starting with __ and the normal name is an alias. */
! 21141: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 21142: choke me
! 21143: #else
! 21144: char (*f) () = $ac_func;
! 21145: #endif
! 21146: #ifdef __cplusplus
! 21147: }
! 21148: #endif
! 21149:
1.9 millert 21150: int
21151: main ()
21152: {
1.25 ! millert 21153: return f != $ac_func;
1.9 millert 21154: ;
21155: return 0;
21156: }
21157: _ACEOF
21158: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21159: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 21160: (eval $ac_link) 2>conftest.er1
1.9 millert 21161: ac_status=$?
1.25 ! millert 21162: grep -v '^ *+' conftest.er1 >conftest.err
! 21163: rm -f conftest.er1
! 21164: cat conftest.err >&5
1.16 millert 21165: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21166: (exit $ac_status); } &&
1.25 ! millert 21167: { ac_try='test -z "$ac_c_werror_flag"
! 21168: || test ! -s conftest.err'
! 21169: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21170: (eval $ac_try) 2>&5
! 21171: ac_status=$?
! 21172: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21173: (exit $ac_status); }; } &&
! 21174: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21175: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21176: (eval $ac_try) 2>&5
21177: ac_status=$?
1.16 millert 21178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21179: (exit $ac_status); }; }; then
1.25 ! millert 21180: eval "$as_ac_var=yes"
1.9 millert 21181: else
21182: echo "$as_me: failed program was:" >&5
1.16 millert 21183: sed 's/^/| /' conftest.$ac_ext >&5
21184:
1.25 ! millert 21185: eval "$as_ac_var=no"
! 21186: fi
! 21187: rm -f conftest.err conftest.$ac_objext \
! 21188: conftest$ac_exeext conftest.$ac_ext
1.9 millert 21189: fi
1.25 ! millert 21190: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 21191: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 21192: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 21193: cat >>confdefs.h <<_ACEOF
! 21194: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 21195: _ACEOF
! 21196:
1.9 millert 21197: fi
1.25 ! millert 21198: done
! 21199:
! 21200:
! 21201: if test X"$AUTH_EXCL" != X""; then
! 21202: { { echo "$as_me:$LINENO: error: \"cannot mix SecureWare with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 21203: echo "$as_me: error: \"cannot mix SecureWare with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 21204: { (exit 1); exit 1; }; }
! 21205: elif test X"" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 21206: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 21207: { { echo "$as_me:$LINENO: error: \"cannot mix SecureWare with other authentication methods (such as $_AUTH)\"" >&5
! 21208: echo "$as_me: error: \"cannot mix SecureWare with other authentication methods (such as $_AUTH)\"" >&2;}
! 21209: { (exit 1); exit 1; }; }
! 21210: fi
! 21211: if test X"" != X""; then
! 21212: AUTH_OBJS="secureware.o"
! 21213: AUTH_EXCL="SecureWare"
! 21214: elif test X"$AUTH_OBJS" = X""; then
! 21215: AUTH_OBJS="secureware.o"
! 21216: else
! 21217: AUTH_OBJS="$AUTH_OBJS secureware.o"
1.1 millert 21218: fi
21219:
21220: fi
21221:
1.25 ! millert 21222: if test "$with_AFS" = "yes"; then
! 21223:
! 21224: # looks like the "standard" place for AFS libs is /usr/afsws/lib
! 21225: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
! 21226: for i in $AFSLIBDIRS; do
! 21227: if test -d ${i}; then
! 21228:
! 21229: if test X"$with_rpath" = X"yes"; then
! 21230: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
! 21231: else
! 21232: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
! 21233: fi
! 21234: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21235: blibpath_add="${blibpath_add}:$i"
! 21236: fi
! 21237:
! 21238: FOUND_AFSLIBDIR=true
! 21239: fi
! 21240: done
! 21241: if test -z "$FOUND_AFSLIBDIR"; then
! 21242: { echo "$as_me:$LINENO: WARNING: 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." >&5
! 21243: echo "$as_me: WARNING: 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." >&2;}
! 21244: fi
! 21245:
! 21246: # Order is important here. Note that we build AFS_LIBS from right to left
! 21247: # since AFS_LIBS may be initialized with BSD compat libs that must go last
! 21248: AFS_LIBS="-laudit ${AFS_LIBS}"
! 21249: for i in $AFSLIBDIRS; do
! 21250: if test -f ${i}/util.a; then
! 21251: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
! 21252: FOUND_UTIL_A=true
! 21253: break;
! 21254: fi
! 21255: done
! 21256: if test -z "$FOUND_UTIL_A"; then
! 21257: AFS_LIBS="-lutil ${AFS_LIBS}"
! 21258: fi
! 21259: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
! 21260:
! 21261: # AFS includes may live in /usr/include on some machines...
! 21262: for i in /usr/afsws/include; do
! 21263: if test -d ${i}; then
! 21264: CPPFLAGS="${CPPFLAGS} -I${i}"
! 21265: FOUND_AFSINCDIR=true
! 21266: fi
! 21267: done
! 21268:
! 21269: if test -z "$FOUND_AFSLIBDIR"; then
! 21270: { echo "$as_me:$LINENO: WARNING: 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." >&5
! 21271: echo "$as_me: WARNING: 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." >&2;}
! 21272: fi
1.1 millert 21273: fi
21274:
1.25 ! millert 21275: if test "$with_DCE" = "yes"; then
! 21276: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
! 21277: SUDO_LIBS="${SUDO_LIBS} -ldce"
1.1 millert 21278: fi
21279:
1.25 ! millert 21280: if test -n "$with_skey"; then
! 21281: O_LDFLAGS="$LDFLAGS"
! 21282: if test "$with_skey" != "yes"; then
! 21283: CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
! 21284:
! 21285: if test X"$with_rpath" = X"yes"; then
! 21286: LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
! 21287: else
! 21288: LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
! 21289: fi
! 21290: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 21291: blibpath_add="${blibpath_add}:${with_skey}/lib"
! 21292: fi
! 21293:
! 21294:
! 21295: if test X"$with_rpath" = X"yes"; then
! 21296: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
! 21297: else
! 21298: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
! 21299: fi
! 21300: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21301: blibpath_add="${blibpath_add}:${with_skey}/lib"
! 21302: fi
! 21303:
! 21304: cat >conftest.$ac_ext <<_ACEOF
! 21305: #include <skey.h>
1.16 millert 21306: _ACEOF
1.25 ! millert 21307: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 21308: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 21309: ac_status=$?
1.25 ! millert 21310: grep -v '^ *+' conftest.er1 >conftest.err
! 21311: rm -f conftest.er1
! 21312: cat conftest.err >&5
1.16 millert 21313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 21314: (exit $ac_status); } >/dev/null; then
! 21315: if test -s conftest.err; then
! 21316: ac_cpp_err=$ac_c_preproc_warn_flag
! 21317: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 21318: else
! 21319: ac_cpp_err=
! 21320: fi
! 21321: else
! 21322: ac_cpp_err=yes
! 21323: fi
! 21324: if test -z "$ac_cpp_err"; then
! 21325: found=yes
! 21326: else
! 21327: echo "$as_me: failed program was:" >&5
! 21328: sed 's/^/| /' conftest.$ac_ext >&5
! 21329:
! 21330: found=no
! 21331: fi
! 21332: rm -f conftest.err conftest.$ac_ext
! 21333: else
! 21334: found=no
! 21335: O_CPPFLAGS="$CPPFLAGS"
! 21336: for dir in "" "/usr/local" "/usr/contrib"; do
! 21337: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
! 21338: cat >conftest.$ac_ext <<_ACEOF
! 21339: #include <skey.h>
! 21340: _ACEOF
! 21341: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 21342: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 21343: ac_status=$?
1.25 ! millert 21344: grep -v '^ *+' conftest.er1 >conftest.err
! 21345: rm -f conftest.er1
! 21346: cat conftest.err >&5
1.16 millert 21347: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 21348: (exit $ac_status); } >/dev/null; then
! 21349: if test -s conftest.err; then
! 21350: ac_cpp_err=$ac_c_preproc_warn_flag
! 21351: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 21352: else
! 21353: ac_cpp_err=
! 21354: fi
! 21355: else
! 21356: ac_cpp_err=yes
! 21357: fi
! 21358: if test -z "$ac_cpp_err"; then
! 21359: found=yes; break
1.9 millert 21360: else
21361: echo "$as_me: failed program was:" >&5
1.16 millert 21362: sed 's/^/| /' conftest.$ac_ext >&5
21363:
1.25 ! millert 21364:
1.9 millert 21365: fi
1.25 ! millert 21366: rm -f conftest.err conftest.$ac_ext
! 21367: done
! 21368: if test "$found" = "no" -o -z "$dir"; then
! 21369: CPPFLAGS="$O_CPPFLAGS"
! 21370: else
! 21371:
! 21372: if test X"$with_rpath" = X"yes"; then
! 21373: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
! 21374: else
! 21375: LDFLAGS="${LDFLAGS} -L${dir}/lib"
! 21376: fi
! 21377: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 21378: blibpath_add="${blibpath_add}:${dir}/lib"
! 21379: fi
1.1 millert 21380:
21381:
1.25 ! millert 21382: if test X"$with_rpath" = X"yes"; then
! 21383: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
! 21384: else
! 21385: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
! 21386: fi
! 21387: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21388: blibpath_add="${blibpath_add}:${dir}/lib"
! 21389: fi
1.1 millert 21390:
1.25 ! millert 21391: fi
! 21392: fi
! 21393: if test "$found" = "no"; then
! 21394: { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
! 21395: echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
! 21396: fi
! 21397: echo "$as_me:$LINENO: checking for main in -lskey" >&5
! 21398: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6
! 21399: if test "${ac_cv_lib_skey_main+set}" = set; then
1.9 millert 21400: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21401: else
1.25 ! millert 21402: ac_check_lib_save_LIBS=$LIBS
! 21403: LIBS="-lskey $LIBS"
! 21404: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21405: /* confdefs.h. */
21406: _ACEOF
21407: cat confdefs.h >>conftest.$ac_ext
21408: cat >>conftest.$ac_ext <<_ACEOF
21409: /* end confdefs.h. */
1.25 ! millert 21410:
1.1 millert 21411:
1.9 millert 21412: int
21413: main ()
21414: {
1.25 ! millert 21415: main ();
1.9 millert 21416: ;
21417: return 0;
21418: }
21419: _ACEOF
21420: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21421: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 21422: (eval $ac_link) 2>conftest.er1
1.9 millert 21423: ac_status=$?
1.25 ! millert 21424: grep -v '^ *+' conftest.er1 >conftest.err
! 21425: rm -f conftest.er1
! 21426: cat conftest.err >&5
1.16 millert 21427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21428: (exit $ac_status); } &&
1.25 ! millert 21429: { ac_try='test -z "$ac_c_werror_flag"
! 21430: || test ! -s conftest.err'
! 21431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21432: (eval $ac_try) 2>&5
! 21433: ac_status=$?
! 21434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21435: (exit $ac_status); }; } &&
! 21436: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21437: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21438: (eval $ac_try) 2>&5
21439: ac_status=$?
1.16 millert 21440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21441: (exit $ac_status); }; }; then
1.25 ! millert 21442: ac_cv_lib_skey_main=yes
1.1 millert 21443: else
1.9 millert 21444: echo "$as_me: failed program was:" >&5
1.16 millert 21445: sed 's/^/| /' conftest.$ac_ext >&5
21446:
1.25 ! millert 21447: ac_cv_lib_skey_main=no
1.1 millert 21448: fi
1.25 ! millert 21449: rm -f conftest.err conftest.$ac_objext \
! 21450: conftest$ac_exeext conftest.$ac_ext
! 21451: LIBS=$ac_check_lib_save_LIBS
1.1 millert 21452: fi
1.25 ! millert 21453: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
! 21454: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6
! 21455: if test $ac_cv_lib_skey_main = yes; then
! 21456: found=yes
1.9 millert 21457: else
1.25 ! millert 21458: { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
! 21459: echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
! 21460: fi
1.9 millert 21461:
1.25 ! millert 21462: echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
! 21463: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
! 21464: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.9 millert 21465: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21466: else
1.25 ! millert 21467: ac_check_lib_save_LIBS=$LIBS
! 21468: LIBS="-lskey $LIBS"
! 21469: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21470: /* confdefs.h. */
21471: _ACEOF
21472: cat confdefs.h >>conftest.$ac_ext
21473: cat >>conftest.$ac_ext <<_ACEOF
21474: /* end confdefs.h. */
1.1 millert 21475:
21476: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21477: #ifdef __cplusplus
21478: extern "C"
21479: #endif
1.1 millert 21480: /* We use char because int might match the return type of a gcc2
1.9 millert 21481: builtin and then its argument prototype would still apply. */
1.25 ! millert 21482: char skeyaccess ();
1.16 millert 21483: int
21484: main ()
21485: {
1.25 ! millert 21486: skeyaccess ();
1.9 millert 21487: ;
21488: return 0;
21489: }
21490: _ACEOF
21491: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21492: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 21493: (eval $ac_link) 2>conftest.er1
1.9 millert 21494: ac_status=$?
1.25 ! millert 21495: grep -v '^ *+' conftest.er1 >conftest.err
! 21496: rm -f conftest.er1
! 21497: cat conftest.err >&5
1.16 millert 21498: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21499: (exit $ac_status); } &&
1.25 ! millert 21500: { ac_try='test -z "$ac_c_werror_flag"
! 21501: || test ! -s conftest.err'
! 21502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21503: (eval $ac_try) 2>&5
! 21504: ac_status=$?
! 21505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21506: (exit $ac_status); }; } &&
! 21507: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21508: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21509: (eval $ac_try) 2>&5
21510: ac_status=$?
1.16 millert 21511: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21512: (exit $ac_status); }; }; then
1.25 ! millert 21513: ac_cv_lib_skey_skeyaccess=yes
1.9 millert 21514: else
21515: echo "$as_me: failed program was:" >&5
1.16 millert 21516: sed 's/^/| /' conftest.$ac_ext >&5
21517:
1.25 ! millert 21518: ac_cv_lib_skey_skeyaccess=no
1.9 millert 21519: fi
1.25 ! millert 21520: rm -f conftest.err conftest.$ac_objext \
! 21521: conftest$ac_exeext conftest.$ac_ext
! 21522: LIBS=$ac_check_lib_save_LIBS
1.9 millert 21523: fi
1.25 ! millert 21524: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
! 21525: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
! 21526: if test $ac_cv_lib_skey_skeyaccess = yes; then
! 21527: cat >>confdefs.h <<\_ACEOF
! 21528: #define HAVE_SKEYACCESS 1
1.16 millert 21529: _ACEOF
1.1 millert 21530:
21531: fi
21532:
1.25 ! millert 21533: LDFLAGS="$O_LDFLAGS"
! 21534: SUDO_LIBS="${SUDO_LIBS} -lskey"
1.1 millert 21535: fi
21536:
1.25 ! millert 21537: if test -n "$with_opie"; then
! 21538: O_LDFLAGS="$LDFLAGS"
! 21539: if test "$with_opie" != "yes"; then
! 21540: CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
! 21541:
! 21542: if test X"$with_rpath" = X"yes"; then
! 21543: LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
! 21544: else
! 21545: LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
! 21546: fi
! 21547: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 21548: blibpath_add="${blibpath_add}:${with_opie}/lib"
! 21549: fi
! 21550:
! 21551:
! 21552: if test X"$with_rpath" = X"yes"; then
! 21553: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
! 21554: else
! 21555: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
! 21556: fi
! 21557: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21558: blibpath_add="${blibpath_add}:${with_opie}/lib"
! 21559: fi
! 21560:
! 21561: cat >conftest.$ac_ext <<_ACEOF
! 21562: #include <opie.h>
! 21563: _ACEOF
! 21564: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 21565: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 21566: ac_status=$?
! 21567: grep -v '^ *+' conftest.er1 >conftest.err
! 21568: rm -f conftest.er1
! 21569: cat conftest.err >&5
! 21570: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21571: (exit $ac_status); } >/dev/null; then
! 21572: if test -s conftest.err; then
! 21573: ac_cpp_err=$ac_c_preproc_warn_flag
! 21574: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 21575: else
! 21576: ac_cpp_err=
! 21577: fi
1.1 millert 21578: else
1.25 ! millert 21579: ac_cpp_err=yes
! 21580: fi
! 21581: if test -z "$ac_cpp_err"; then
! 21582: found=yes
1.1 millert 21583: else
1.25 ! millert 21584: echo "$as_me: failed program was:" >&5
! 21585: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 21586:
1.25 ! millert 21587: found=no
! 21588: fi
! 21589: rm -f conftest.err conftest.$ac_ext
! 21590: else
! 21591: found=no
! 21592: O_CPPFLAGS="$CPPFLAGS"
! 21593: for dir in "" "/usr/local" "/usr/contrib"; do
! 21594: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
! 21595: cat >conftest.$ac_ext <<_ACEOF
! 21596: #include <opie.h>
1.9 millert 21597: _ACEOF
1.25 ! millert 21598: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 21599: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 21600: ac_status=$?
1.25 ! millert 21601: grep -v '^ *+' conftest.er1 >conftest.err
! 21602: rm -f conftest.er1
! 21603: cat conftest.err >&5
1.16 millert 21604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 ! millert 21605: (exit $ac_status); } >/dev/null; then
! 21606: if test -s conftest.err; then
! 21607: ac_cpp_err=$ac_c_preproc_warn_flag
! 21608: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
! 21609: else
! 21610: ac_cpp_err=
! 21611: fi
! 21612: else
! 21613: ac_cpp_err=yes
! 21614: fi
! 21615: if test -z "$ac_cpp_err"; then
! 21616: found=yes; break
1.1 millert 21617: else
1.25 ! millert 21618: echo "$as_me: failed program was:" >&5
1.16 millert 21619: sed 's/^/| /' conftest.$ac_ext >&5
21620:
1.25 ! millert 21621:
1.1 millert 21622: fi
1.25 ! millert 21623: rm -f conftest.err conftest.$ac_ext
! 21624: done
! 21625: if test "$found" = "no" -o -z "$dir"; then
! 21626: CPPFLAGS="$O_CPPFLAGS"
! 21627: else
1.1 millert 21628:
1.25 ! millert 21629: if test X"$with_rpath" = X"yes"; then
! 21630: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
! 21631: else
! 21632: LDFLAGS="${LDFLAGS} -L${dir}/lib"
! 21633: fi
! 21634: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 21635: blibpath_add="${blibpath_add}:${dir}/lib"
! 21636: fi
1.16 millert 21637:
1.1 millert 21638:
1.25 ! millert 21639: if test X"$with_rpath" = X"yes"; then
! 21640: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
! 21641: else
! 21642: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
! 21643: fi
! 21644: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21645: blibpath_add="${blibpath_add}:${dir}/lib"
! 21646: fi
1.1 millert 21647:
1.25 ! millert 21648: fi
! 21649: fi
! 21650: if test "$found" = "no"; then
! 21651: { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
! 21652: echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
! 21653: fi
! 21654: echo "$as_me:$LINENO: checking for main in -lopie" >&5
! 21655: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6
! 21656: if test "${ac_cv_lib_opie_main+set}" = set; then
1.18 millert 21657: echo $ECHO_N "(cached) $ECHO_C" >&6
21658: else
1.25 ! millert 21659: ac_check_lib_save_LIBS=$LIBS
! 21660: LIBS="-lopie $LIBS"
! 21661: cat >conftest.$ac_ext <<_ACEOF
1.18 millert 21662: /* confdefs.h. */
21663: _ACEOF
21664: cat confdefs.h >>conftest.$ac_ext
21665: cat >>conftest.$ac_ext <<_ACEOF
21666: /* end confdefs.h. */
1.25 ! millert 21667:
1.18 millert 21668:
21669: int
21670: main ()
21671: {
1.25 ! millert 21672: main ();
1.18 millert 21673: ;
21674: return 0;
21675: }
21676: _ACEOF
21677: rm -f conftest.$ac_objext conftest$ac_exeext
21678: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 21679: (eval $ac_link) 2>conftest.er1
1.18 millert 21680: ac_status=$?
1.25 ! millert 21681: grep -v '^ *+' conftest.er1 >conftest.err
! 21682: rm -f conftest.er1
! 21683: cat conftest.err >&5
1.18 millert 21684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685: (exit $ac_status); } &&
1.25 ! millert 21686: { ac_try='test -z "$ac_c_werror_flag"
! 21687: || test ! -s conftest.err'
! 21688: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21689: (eval $ac_try) 2>&5
! 21690: ac_status=$?
! 21691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21692: (exit $ac_status); }; } &&
! 21693: { ac_try='test -s conftest$ac_exeext'
1.18 millert 21694: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695: (eval $ac_try) 2>&5
21696: ac_status=$?
21697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698: (exit $ac_status); }; }; then
1.25 ! millert 21699: ac_cv_lib_opie_main=yes
1.18 millert 21700: else
21701: echo "$as_me: failed program was:" >&5
21702: sed 's/^/| /' conftest.$ac_ext >&5
21703:
1.25 ! millert 21704: ac_cv_lib_opie_main=no
! 21705: fi
! 21706: rm -f conftest.err conftest.$ac_objext \
! 21707: conftest$ac_exeext conftest.$ac_ext
! 21708: LIBS=$ac_check_lib_save_LIBS
! 21709: fi
! 21710: echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
! 21711: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6
! 21712: if test $ac_cv_lib_opie_main = yes; then
! 21713: found=yes
! 21714: else
! 21715: { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
! 21716: echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
1.18 millert 21717: fi
1.25 ! millert 21718:
! 21719: LDFLAGS="$O_LDFLAGS"
! 21720: SUDO_LIBS="${SUDO_LIBS} -lopie"
1.18 millert 21721: fi
21722:
1.25 ! millert 21723: if test ${with_SecurID-'no'} != "no"; then
! 21724: if test "$with_SecurID" != "yes"; then
! 21725: :
! 21726: elif test -d /usr/ace/examples; then
! 21727: with_SecurID=/usr/ace/examples
! 21728: else
! 21729: with_SecurID=/usr/ace
! 21730: fi
! 21731: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
! 21732: _LDFLAGS="${LDFLAGS}"
! 21733:
! 21734: if test X"$with_rpath" = X"yes"; then
! 21735: LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
! 21736: else
! 21737: LDFLAGS="${LDFLAGS} -L${with_SecurID}"
! 21738: fi
! 21739: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 21740: blibpath_add="${blibpath_add}:${with_SecurID}"
! 21741: fi
1.18 millert 21742:
1.25 ! millert 21743: #
! 21744: # Determine whether to use the new or old SecurID API
! 21745: #
! 21746: echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
! 21747: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
! 21748: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.18 millert 21749: echo $ECHO_N "(cached) $ECHO_C" >&6
21750: else
1.25 ! millert 21751: ac_check_lib_save_LIBS=$LIBS
! 21752: LIBS="-laceclnt
! 21753: -lpthread
1.18 millert 21754:
1.25 ! millert 21755: $LIBS"
! 21756: cat >conftest.$ac_ext <<_ACEOF
1.18 millert 21757: /* confdefs.h. */
21758: _ACEOF
21759: cat confdefs.h >>conftest.$ac_ext
21760: cat >>conftest.$ac_ext <<_ACEOF
21761: /* end confdefs.h. */
21762:
1.25 ! millert 21763: /* Override any gcc2 internal prototype to avoid an error. */
! 21764: #ifdef __cplusplus
! 21765: extern "C"
! 21766: #endif
! 21767: /* We use char because int might match the return type of a gcc2
! 21768: builtin and then its argument prototype would still apply. */
! 21769: char SD_Init ();
1.18 millert 21770: int
21771: main ()
21772: {
1.25 ! millert 21773: SD_Init ();
1.18 millert 21774: ;
21775: return 0;
21776: }
21777: _ACEOF
21778: rm -f conftest.$ac_objext conftest$ac_exeext
21779: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 21780: (eval $ac_link) 2>conftest.er1
1.18 millert 21781: ac_status=$?
1.25 ! millert 21782: grep -v '^ *+' conftest.er1 >conftest.err
! 21783: rm -f conftest.er1
! 21784: cat conftest.err >&5
1.18 millert 21785: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786: (exit $ac_status); } &&
1.25 ! millert 21787: { ac_try='test -z "$ac_c_werror_flag"
! 21788: || test ! -s conftest.err'
! 21789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21790: (eval $ac_try) 2>&5
! 21791: ac_status=$?
! 21792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21793: (exit $ac_status); }; } &&
! 21794: { ac_try='test -s conftest$ac_exeext'
1.18 millert 21795: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796: (eval $ac_try) 2>&5
21797: ac_status=$?
21798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799: (exit $ac_status); }; }; then
1.25 ! millert 21800: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.18 millert 21801: else
21802: echo "$as_me: failed program was:" >&5
21803: sed 's/^/| /' conftest.$ac_ext >&5
21804:
1.25 ! millert 21805: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
! 21806: fi
! 21807: rm -f conftest.err conftest.$ac_objext \
! 21808: conftest$ac_exeext conftest.$ac_ext
! 21809: LIBS=$ac_check_lib_save_LIBS
1.18 millert 21810: fi
1.25 ! millert 21811: echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
! 21812: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6
! 21813: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
! 21814:
! 21815:
! 21816: if test X"$AUTH_EXCL" != X""; then
! 21817: { { echo "$as_me:$LINENO: error: \"cannot mix SecurID 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 21818: echo "$as_me: error: \"cannot mix SecurID 5 with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 21819: { (exit 1); exit 1; }; }
! 21820: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 21821: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 21822: { { echo "$as_me:$LINENO: error: \"cannot mix SecurID 5 with other authentication methods (such as $_AUTH)\"" >&5
! 21823: echo "$as_me: error: \"cannot mix SecurID 5 with other authentication methods (such as $_AUTH)\"" >&2;}
! 21824: { (exit 1); exit 1; }; }
! 21825: fi
! 21826: if test X"true" != X""; then
! 21827: AUTH_OBJS="securid5.o"
! 21828: AUTH_EXCL="SecurID 5"
! 21829: elif test X"$AUTH_OBJS" = X""; then
! 21830: AUTH_OBJS="securid5.o"
! 21831: else
! 21832: AUTH_OBJS="$AUTH_OBJS securid5.o"
1.18 millert 21833: fi
21834:
1.25 ! millert 21835: SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
! 21836:
! 21837:
1.18 millert 21838:
1.25 ! millert 21839: if test X"$with_rpath" = X"yes"; then
! 21840: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
1.18 millert 21841: else
1.25 ! millert 21842: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
! 21843: fi
! 21844: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21845: blibpath_add="${blibpath_add}:${with_SecurID}"
1.18 millert 21846: fi
21847:
21848:
1.25 ! millert 21849: else
! 21850:
1.17 millert 21851:
1.25 ! millert 21852: if test X"$AUTH_EXCL" != X""; then
! 21853: { { echo "$as_me:$LINENO: error: \"cannot mix SecurID with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 21854: echo "$as_me: error: \"cannot mix SecurID with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 21855: { (exit 1); exit 1; }; }
! 21856: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 21857: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 21858: { { echo "$as_me:$LINENO: error: \"cannot mix SecurID with other authentication methods (such as $_AUTH)\"" >&5
! 21859: echo "$as_me: error: \"cannot mix SecurID with other authentication methods (such as $_AUTH)\"" >&2;}
! 21860: { (exit 1); exit 1; }; }
! 21861: fi
! 21862: if test X"true" != X""; then
! 21863: AUTH_OBJS="securid.o"
! 21864: AUTH_EXCL="SecurID"
! 21865: elif test X"$AUTH_OBJS" = X""; then
! 21866: AUTH_OBJS="securid.o"
1.17 millert 21867: else
1.25 ! millert 21868: AUTH_OBJS="$AUTH_OBJS securid.o"
1.17 millert 21869: fi
21870:
1.25 ! millert 21871: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
! 21872:
! 21873: fi
1.17 millert 21874:
1.25 ! millert 21875: LDFLAGS="${_LDFLAGS}"
1.17 millert 21876: fi
1.25 ! millert 21877:
! 21878: if test -n "$with_fwtk"; then
! 21879: if test "$with_fwtk" != "yes"; then
1.1 millert 21880:
1.17 millert 21881: if test X"$with_rpath" = X"yes"; then
1.25 ! millert 21882: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
1.1 millert 21883: else
1.25 ! millert 21884: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
! 21885: fi
! 21886: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 21887: blibpath_add="${blibpath_add}:${with_fwtk}"
! 21888: fi
! 21889:
! 21890: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
! 21891: with_fwtk=yes
1.1 millert 21892: fi
1.25 ! millert 21893: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
! 21894: fi
! 21895:
! 21896: if test ${with_aixauth-'no'} != "no"; then
! 21897: if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
! 21898: { echo "$as_me:$LINENO: using AIX general authentication" >&5
! 21899: echo "$as_me: using AIX general authentication" >&6;}
! 21900: cat >>confdefs.h <<\_ACEOF
! 21901: #define HAVE_AIXAUTH 1
! 21902: _ACEOF
! 21903:
1.1 millert 21904:
1.25 ! millert 21905: if test X"$AUTH_EXCL" != X""; then
! 21906: { { echo "$as_me:$LINENO: error: \"cannot mix AIX general authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 21907: echo "$as_me: error: \"cannot mix AIX general authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 21908: { (exit 1); exit 1; }; }
! 21909: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 21910: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 21911: { { echo "$as_me:$LINENO: error: \"cannot mix AIX general authentication with other authentication methods (such as $_AUTH)\"" >&5
! 21912: echo "$as_me: error: \"cannot mix AIX general authentication with other authentication methods (such as $_AUTH)\"" >&2;}
! 21913: { (exit 1); exit 1; }; }
! 21914: fi
! 21915: if test X"true" != X""; then
! 21916: AUTH_OBJS="aix_auth.o"
! 21917: AUTH_EXCL="AIX general authentication"
! 21918: elif test X"$AUTH_OBJS" = X""; then
! 21919: AUTH_OBJS="aix_auth.o"
! 21920: else
! 21921: AUTH_OBJS="$AUTH_OBJS aix_auth.o"
! 21922: fi
1.17 millert 21923:
1.25 ! millert 21924: SUDO_LIBS="${SUDO_LIBS} -ls"
1.1 millert 21925: fi
1.25 ! millert 21926: fi
1.1 millert 21927:
1.25 ! millert 21928: if test ${with_bsdauth-'no'} != "no"; then
! 21929: if test X"$with_bsdauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
! 21930: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
! 21931: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
! 21932: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
! 21933: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.17 millert 21934: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21935: fi
1.25 ! millert 21936: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
! 21937: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.5 millert 21938: else
1.17 millert 21939: # Is the header compilable?
1.25 ! millert 21940: echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
! 21941: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
1.9 millert 21942: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21943: /* confdefs.h. */
21944: _ACEOF
21945: cat confdefs.h >>conftest.$ac_ext
21946: cat >>conftest.$ac_ext <<_ACEOF
21947: /* end confdefs.h. */
1.17 millert 21948: $ac_includes_default
1.25 ! millert 21949: #include <bsd_auth.h>
1.9 millert 21950: _ACEOF
1.17 millert 21951: rm -f conftest.$ac_objext
21952: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.25 ! millert 21953: (eval $ac_compile) 2>conftest.er1
1.9 millert 21954: ac_status=$?
1.25 ! millert 21955: grep -v '^ *+' conftest.er1 >conftest.err
! 21956: rm -f conftest.er1
! 21957: cat conftest.err >&5
1.16 millert 21958: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21959: (exit $ac_status); } &&
1.25 ! millert 21960: { ac_try='test -z "$ac_c_werror_flag"
! 21961: || test ! -s conftest.err'
! 21962: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 21963: (eval $ac_try) 2>&5
! 21964: ac_status=$?
! 21965: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 21966: (exit $ac_status); }; } &&
! 21967: { ac_try='test -s conftest.$ac_objext'
1.16 millert 21968: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21969: (eval $ac_try) 2>&5
21970: ac_status=$?
1.16 millert 21971: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21972: (exit $ac_status); }; }; then
1.17 millert 21973: ac_header_compiler=yes
1.9 millert 21974: else
21975: echo "$as_me: failed program was:" >&5
1.16 millert 21976: sed 's/^/| /' conftest.$ac_ext >&5
21977:
1.17 millert 21978: ac_header_compiler=no
1.9 millert 21979: fi
1.25 ! millert 21980: rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.17 millert 21981: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21982: echo "${ECHO_T}$ac_header_compiler" >&6
21983:
21984: # Is the header present?
1.25 ! millert 21985: echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
! 21986: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
1.17 millert 21987: cat >conftest.$ac_ext <<_ACEOF
21988: /* confdefs.h. */
21989: _ACEOF
21990: cat confdefs.h >>conftest.$ac_ext
21991: cat >>conftest.$ac_ext <<_ACEOF
21992: /* end confdefs.h. */
1.25 ! millert 21993: #include <bsd_auth.h>
1.17 millert 21994: _ACEOF
21995: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21996: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21997: ac_status=$?
21998: grep -v '^ *+' conftest.er1 >conftest.err
21999: rm -f conftest.er1
22000: cat conftest.err >&5
22001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002: (exit $ac_status); } >/dev/null; then
22003: if test -s conftest.err; then
22004: ac_cpp_err=$ac_c_preproc_warn_flag
1.25 ! millert 22005: ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.17 millert 22006: else
22007: ac_cpp_err=
22008: fi
22009: else
22010: ac_cpp_err=yes
1.9 millert 22011: fi
1.17 millert 22012: if test -z "$ac_cpp_err"; then
22013: ac_header_preproc=yes
1.5 millert 22014: else
1.17 millert 22015: echo "$as_me: failed program was:" >&5
22016: sed 's/^/| /' conftest.$ac_ext >&5
22017:
22018: ac_header_preproc=no
1.5 millert 22019: fi
1.17 millert 22020: rm -f conftest.err conftest.$ac_ext
22021: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22022: echo "${ECHO_T}$ac_header_preproc" >&6
1.5 millert 22023:
1.17 millert 22024: # So? What about this header?
1.25 ! millert 22025: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
! 22026: yes:no: )
! 22027: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 22028: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 22029: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
! 22030: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
! 22031: ac_header_preproc=yes
1.17 millert 22032: ;;
1.25 ! millert 22033: no:yes:* )
! 22034: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
! 22035: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
! 22036: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
! 22037: echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
! 22038: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
! 22039: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
! 22040: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
! 22041: echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
! 22042: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
! 22043: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
! 22044: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
! 22045: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.17 millert 22046: (
22047: cat <<\_ASBOX
1.25 ! millert 22048: ## ------------------------------- ##
! 22049: ## Report this to the sudo lists. ##
! 22050: ## ------------------------------- ##
1.17 millert 22051: _ASBOX
22052: ) |
22053: sed "s/^/$as_me: WARNING: /" >&2
22054: ;;
22055: esac
1.25 ! millert 22056: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
! 22057: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
! 22058: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.17 millert 22059: echo $ECHO_N "(cached) $ECHO_C" >&6
22060: else
1.25 ! millert 22061: ac_cv_header_bsd_auth_h=$ac_header_preproc
1.5 millert 22062: fi
1.25 ! millert 22063: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
! 22064: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.5 millert 22065:
1.17 millert 22066: fi
1.25 ! millert 22067: if test $ac_cv_header_bsd_auth_h = yes; then
! 22068: cat >>confdefs.h <<\_ACEOF
! 22069: #define HAVE_BSD_AUTH_H 1
! 22070: _ACEOF
! 22071:
! 22072:
! 22073: if test X"$AUTH_EXCL" != X""; then
! 22074: { { echo "$as_me:$LINENO: error: \"cannot mix BSD authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&5
! 22075: echo "$as_me: error: \"cannot mix BSD authentication with an exclusive authentication method such as $AUTH_EXCL\"" >&2;}
! 22076: { (exit 1); exit 1; }; }
! 22077: elif test X"true" != X"" -a X"$AUTH_OBJS" != X"" -a X"$AUTH_OBJS" != X"passwd.o"; then
! 22078: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 22079: { { echo "$as_me:$LINENO: error: \"cannot mix BSD authentication with other authentication methods (such as $_AUTH)\"" >&5
! 22080: echo "$as_me: error: \"cannot mix BSD authentication with other authentication methods (such as $_AUTH)\"" >&2;}
! 22081: { (exit 1); exit 1; }; }
! 22082: fi
! 22083: if test X"true" != X""; then
! 22084: AUTH_OBJS="bsdauth.o"
! 22085: AUTH_EXCL="BSD authentication"
! 22086: elif test X"$AUTH_OBJS" = X""; then
! 22087: AUTH_OBJS="bsdauth.o"
1.17 millert 22088: else
1.25 ! millert 22089: AUTH_OBJS="$AUTH_OBJS bsdauth.o"
1.17 millert 22090: fi
1.9 millert 22091:
1.1 millert 22092: else
1.25 ! millert 22093: -
! 22094: fi
1.16 millert 22095:
22096:
1.25 ! millert 22097: fi
1.9 millert 22098: fi
1.1 millert 22099:
1.25 ! millert 22100: if test -n "$with_ldap"; then
! 22101: _LDFLAGS="$LDFLAGS"
! 22102: if test "$with_ldap" != "yes"; then
1.17 millert 22103:
1.25 ! millert 22104: if test X"$with_rpath" = X"yes"; then
! 22105: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
! 22106: else
! 22107: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
! 22108: fi
! 22109: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 22110: blibpath_add="${blibpath_add}:${with_ldap}/lib"
! 22111: fi
1.17 millert 22112:
22113:
1.25 ! millert 22114: if test X"$with_rpath" = X"yes"; then
! 22115: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
! 22116: else
! 22117: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
! 22118: fi
! 22119: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 22120: blibpath_add="${blibpath_add}:${with_ldap}/lib"
! 22121: fi
1.17 millert 22122:
1.25 ! millert 22123: CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
! 22124: with_ldap=yes
! 22125: fi
! 22126: SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.17 millert 22127:
1.25 ! millert 22128: echo "$as_me:$LINENO: checking for LDAP libraries" >&5
! 22129: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6
! 22130: LDAP_LIBS=""
! 22131: _LIBS="$LIBS"
! 22132: found=no
! 22133: for l in -lldap -llber '-lssl -lcrypto'; do
! 22134: LIBS="${LIBS} $l"
! 22135: LDAP_LIBS="${LDAP_LIBS} $l"
! 22136: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 22137: /* confdefs.h. */
22138: _ACEOF
22139: cat confdefs.h >>conftest.$ac_ext
22140: cat >>conftest.$ac_ext <<_ACEOF
22141: /* end confdefs.h. */
1.25 ! millert 22142: #include <sys/types.h>
! 22143: #include <lber.h>
! 22144: #include <ldap.h>
1.17 millert 22145: int
22146: main ()
22147: {
1.25 ! millert 22148: (void)ldap_init(0, 0)
1.17 millert 22149: ;
22150: return 0;
22151: }
22152: _ACEOF
22153: rm -f conftest.$ac_objext conftest$ac_exeext
22154: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 22155: (eval $ac_link) 2>conftest.er1
1.17 millert 22156: ac_status=$?
1.25 ! millert 22157: grep -v '^ *+' conftest.er1 >conftest.err
! 22158: rm -f conftest.er1
! 22159: cat conftest.err >&5
1.17 millert 22160: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161: (exit $ac_status); } &&
1.25 ! millert 22162: { ac_try='test -z "$ac_c_werror_flag"
! 22163: || test ! -s conftest.err'
! 22164: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 22165: (eval $ac_try) 2>&5
! 22166: ac_status=$?
! 22167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22168: (exit $ac_status); }; } &&
! 22169: { ac_try='test -s conftest$ac_exeext'
1.17 millert 22170: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171: (eval $ac_try) 2>&5
22172: ac_status=$?
22173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174: (exit $ac_status); }; }; then
1.25 ! millert 22175: found=yes; break
1.17 millert 22176: else
22177: echo "$as_me: failed program was:" >&5
22178: sed 's/^/| /' conftest.$ac_ext >&5
22179:
22180: fi
1.25 ! millert 22181: rm -f conftest.err conftest.$ac_objext \
! 22182: conftest$ac_exeext conftest.$ac_ext
! 22183: done
! 22184: if test "$found" = "no"; then
! 22185: LDAP_LIBS=" -lldap"
! 22186: echo "$as_me:$LINENO: result: not found, using -lldap" >&5
! 22187: echo "${ECHO_T}not found, using -lldap" >&6
! 22188: else
! 22189: echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
! 22190: echo "${ECHO_T}$LDAP_LIBS" >&6
! 22191: fi
! 22192: echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
! 22193: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6
! 22194: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 22195: /* confdefs.h. */
22196: _ACEOF
22197: cat confdefs.h >>conftest.$ac_ext
22198: cat >>conftest.$ac_ext <<_ACEOF
22199: /* end confdefs.h. */
1.25 ! millert 22200: #include <sys/types.h>
! 22201: #include <ldap.h>
1.17 millert 22202: int
22203: main ()
22204: {
1.25 ! millert 22205: (void)ldap_init(0, 0)
1.17 millert 22206: ;
22207: return 0;
22208: }
22209: _ACEOF
22210: rm -f conftest.$ac_objext conftest$ac_exeext
22211: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 22212: (eval $ac_link) 2>conftest.er1
1.17 millert 22213: ac_status=$?
1.25 ! millert 22214: grep -v '^ *+' conftest.er1 >conftest.err
! 22215: rm -f conftest.er1
! 22216: cat conftest.err >&5
1.17 millert 22217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218: (exit $ac_status); } &&
1.25 ! millert 22219: { ac_try='test -z "$ac_c_werror_flag"
! 22220: || test ! -s conftest.err'
! 22221: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 22222: (eval $ac_try) 2>&5
! 22223: ac_status=$?
! 22224: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22225: (exit $ac_status); }; } &&
! 22226: { ac_try='test -s conftest$ac_exeext'
1.17 millert 22227: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228: (eval $ac_try) 2>&5
22229: ac_status=$?
22230: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231: (exit $ac_status); }; }; then
1.25 ! millert 22232: echo "$as_me:$LINENO: result: no" >&5
! 22233: echo "${ECHO_T}no" >&6
1.17 millert 22234: else
22235: echo "$as_me: failed program was:" >&5
22236: sed 's/^/| /' conftest.$ac_ext >&5
22237:
1.25 ! millert 22238:
! 22239: echo "$as_me:$LINENO: result: yes" >&5
! 22240: echo "${ECHO_T}yes" >&6
! 22241: cat >>confdefs.h <<\_ACEOF
! 22242: #define HAVE_LBER_H 1
! 22243: _ACEOF
! 22244:
1.17 millert 22245: fi
1.25 ! millert 22246: rm -f conftest.err conftest.$ac_objext \
! 22247: conftest$ac_exeext conftest.$ac_ext
! 22248:
! 22249:
1.17 millert 22250:
1.25 ! millert 22251: for ac_func in ldap_initialize ldap_start_tls_s
! 22252: do
! 22253: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 22254: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 22255: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 22256: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.17 millert 22257: echo $ECHO_N "(cached) $ECHO_C" >&6
22258: else
1.25 ! millert 22259: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 22260: /* confdefs.h. */
22261: _ACEOF
22262: cat confdefs.h >>conftest.$ac_ext
22263: cat >>conftest.$ac_ext <<_ACEOF
22264: /* end confdefs.h. */
1.25 ! millert 22265: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 22266: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22267: #define $ac_func innocuous_$ac_func
! 22268:
! 22269: /* System header to define __stub macros and hopefully few prototypes,
! 22270: which can conflict with char $ac_func (); below.
! 22271: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 22272: <limits.h> exists even on freestanding compilers. */
! 22273:
! 22274: #ifdef __STDC__
! 22275: # include <limits.h>
! 22276: #else
! 22277: # include <assert.h>
! 22278: #endif
1.17 millert 22279:
1.25 ! millert 22280: #undef $ac_func
! 22281:
! 22282: /* Override any gcc2 internal prototype to avoid an error. */
! 22283: #ifdef __cplusplus
! 22284: extern "C"
! 22285: {
! 22286: #endif
! 22287: /* We use char because int might match the return type of a gcc2
! 22288: builtin and then its argument prototype would still apply. */
! 22289: char $ac_func ();
! 22290: /* The GNU C library defines this for functions which it implements
! 22291: to always fail with ENOSYS. Some functions are actually named
! 22292: something starting with __ and the normal name is an alias. */
! 22293: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 22294: choke me
! 22295: #else
! 22296: char (*f) () = $ac_func;
! 22297: #endif
! 22298: #ifdef __cplusplus
! 22299: }
! 22300: #endif
1.17 millert 22301:
22302: int
22303: main ()
22304: {
1.25 ! millert 22305: return f != $ac_func;
1.17 millert 22306: ;
22307: return 0;
22308: }
22309: _ACEOF
22310: rm -f conftest.$ac_objext conftest$ac_exeext
22311: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.25 ! millert 22312: (eval $ac_link) 2>conftest.er1
1.17 millert 22313: ac_status=$?
1.25 ! millert 22314: grep -v '^ *+' conftest.er1 >conftest.err
! 22315: rm -f conftest.er1
! 22316: cat conftest.err >&5
1.17 millert 22317: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318: (exit $ac_status); } &&
1.25 ! millert 22319: { ac_try='test -z "$ac_c_werror_flag"
! 22320: || test ! -s conftest.err'
! 22321: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 22322: (eval $ac_try) 2>&5
! 22323: ac_status=$?
! 22324: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22325: (exit $ac_status); }; } &&
! 22326: { ac_try='test -s conftest$ac_exeext'
1.17 millert 22327: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22328: (eval $ac_try) 2>&5
22329: ac_status=$?
22330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331: (exit $ac_status); }; }; then
1.25 ! millert 22332: eval "$as_ac_var=yes"
1.17 millert 22333: else
22334: echo "$as_me: failed program was:" >&5
22335: sed 's/^/| /' conftest.$ac_ext >&5
22336:
1.25 ! millert 22337: eval "$as_ac_var=no"
1.17 millert 22338: fi
1.25 ! millert 22339: rm -f conftest.err conftest.$ac_objext \
! 22340: conftest$ac_exeext conftest.$ac_ext
1.17 millert 22341: fi
1.25 ! millert 22342: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 22343: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 22344: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 22345: cat >>confdefs.h <<_ACEOF
! 22346: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 22347: _ACEOF
1.17 millert 22348:
22349: fi
1.25 ! millert 22350: done
1.17 millert 22351:
22352:
1.25 ! millert 22353: SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
! 22354: LIBS="$_LIBS"
! 22355: LDFLAGS="$_LDFLAGS"
! 22356: # XXX - OpenLDAP has deprecated ldap_get_values()
! 22357: CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
! 22358: fi
! 22359:
! 22360: if test -n "$blibpath"; then
! 22361: if test -n "$blibpath_add"; then
! 22362: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
! 22363: elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
! 22364: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
! 22365: fi
1.17 millert 22366: fi
22367:
1.25 ! millert 22368: echo "$as_me:$LINENO: checking for log file location" >&5
! 22369: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
! 22370: if test -n "$with_logpath"; then
! 22371: echo "$as_me:$LINENO: result: $with_logpath" >&5
! 22372: echo "${ECHO_T}$with_logpath" >&6
! 22373: cat >>confdefs.h <<EOF
! 22374: #define _PATH_SUDO_LOGFILE "$with_logpath"
! 22375: EOF
! 22376:
! 22377: elif test -d "/var/log"; then
! 22378: echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
! 22379: echo "${ECHO_T}/var/log/sudo.log" >&6
! 22380: cat >>confdefs.h <<\EOF
! 22381: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
! 22382: EOF
! 22383:
! 22384: elif test -d "/var/adm"; then
! 22385: echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
! 22386: echo "${ECHO_T}/var/adm/sudo.log" >&6
! 22387: cat >>confdefs.h <<\EOF
! 22388: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
! 22389: EOF
! 22390:
! 22391: elif test -d "/usr/adm"; then
! 22392: echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
! 22393: echo "${ECHO_T}/usr/adm/sudo.log" >&6
! 22394: cat >>confdefs.h <<\EOF
! 22395: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
! 22396: EOF
! 22397:
! 22398: else
! 22399: echo "$as_me:$LINENO: result: unknown" >&5
! 22400: echo "${ECHO_T}unknown" >&6
1.17 millert 22401: fi
22402:
1.25 ! millert 22403: echo "$as_me:$LINENO: checking for timestamp file location" >&5
! 22404: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
! 22405: if test -n "$with_timedir"; then
! 22406: echo "$as_me:$LINENO: result: $with_timedir" >&5
! 22407: echo "${ECHO_T}$with_timedir" >&6
! 22408: cat >>confdefs.h <<EOF
! 22409: #define _PATH_SUDO_TIMEDIR "$with_timedir"
! 22410: EOF
! 22411:
! 22412: timedir="$with_timedir"
! 22413: elif test -d "/var/run"; then
! 22414: echo "$as_me:$LINENO: result: /var/run/sudo" >&5
! 22415: echo "${ECHO_T}/var/run/sudo" >&6
! 22416: cat >>confdefs.h <<\EOF
! 22417: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
! 22418: EOF
! 22419:
! 22420: timedir="/var/run/sudo"
! 22421: elif test -d "/var/adm"; then
! 22422: echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
! 22423: echo "${ECHO_T}/var/adm/sudo" >&6
! 22424: cat >>confdefs.h <<\EOF
! 22425: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
! 22426: EOF
! 22427:
! 22428: timedir="/var/adm/sudo"
1.18 millert 22429: else
1.25 ! millert 22430: echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
! 22431: echo "${ECHO_T}/usr/adm/sudo" >&6
! 22432: cat >>confdefs.h <<\EOF
! 22433: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
! 22434: EOF
1.18 millert 22435:
1.25 ! millert 22436: timedir="/usr/adm/sudo"
1.18 millert 22437: fi
22438:
22439:
1.25 ! millert 22440: case "$AUTH_OBJS" in
! 22441: *passwd.o*)
! 22442: ;;
! 22443: *)
! 22444: cat >>confdefs.h <<\_ACEOF
! 22445: #define WITHOUT_PASSWD 1
1.19 millert 22446: _ACEOF
22447:
1.25 ! millert 22448: if test -z "$AUTH_OBJS"; then
! 22449: { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
! 22450: echo "$as_me: error: no authentication methods defined." >&2;}
! 22451: { (exit 1); exit 1; }; }
! 22452: fi
! 22453: ;;
! 22454: esac
! 22455: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
! 22456: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
! 22457: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.19 millert 22458:
1.25 ! millert 22459: if test -n "$LIBS"; then
! 22460: L="$LIBS"
! 22461: LIBS=
! 22462: for l in ${L}; do
! 22463: dupe=0
! 22464: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
! 22465: test $l = $sl && dupe=1
! 22466: done
! 22467: test $dupe = 0 && LIBS="${LIBS} $l"
! 22468: done
! 22469: fi
1.19 millert 22470:
1.25 ! millert 22471: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.19 millert 22472:
1.25 ! millert 22473: if test "$with_noexec" != "no"; then
! 22474: PROGS="${PROGS} sudo_noexec.la"
! 22475: INSTALL_NOEXEC="install-noexec"
1.19 millert 22476:
1.25 ! millert 22477: oexec_prefix="$exec_prefix"
! 22478: if test "$exec_prefix" = '$(prefix)'; then
! 22479: if test "$prefix" = "NONE"; then
! 22480: exec_prefix="$ac_default_prefix"
! 22481: else
! 22482: exec_prefix="$prefix"
! 22483: fi
1.18 millert 22484: fi
1.25 ! millert 22485: eval noexec_file="$with_noexec"
! 22486:
! 22487: cat >>confdefs.h <<_ACEOF
! 22488: #define _PATH_SUDO_NOEXEC "$noexec_file"
! 22489: _ACEOF
! 22490:
! 22491: exec_prefix="$oexec_prefix"
1.18 millert 22492: fi
1.25 ! millert 22493:
! 22494: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
! 22495:
! 22496: cat >confcache <<\_ACEOF
! 22497: # This file is a shell script that caches the results of configure
! 22498: # tests run on this system so they can be shared between configure
! 22499: # scripts and configure runs, see configure's option --config-cache.
! 22500: # It is not useful on other systems. If it contains results you don't
! 22501: # want to keep, you may remove or edit it.
! 22502: #
! 22503: # config.status only pays attention to the cache file if you give it
! 22504: # the --recheck option to rerun configure.
! 22505: #
! 22506: # `ac_cv_env_foo' variables (set or unset) will be overridden when
! 22507: # loading this file, other *unset* `ac_cv_foo' will be assigned the
! 22508: # following values.
! 22509:
1.17 millert 22510: _ACEOF
22511:
1.25 ! millert 22512: # The following way of writing the cache mishandles newlines in values,
! 22513: # but we know of no workaround that is simple, portable, and efficient.
! 22514: # So, don't put newlines in cache variables' values.
! 22515: # Ultrix sh set writes to stderr and can't be redirected directly,
! 22516: # and sets the high bit in the cache file unless we assign to the vars.
! 22517: {
! 22518: (set) 2>&1 |
! 22519: case `(ac_space=' '; set | grep ac_space) 2>&1` in
! 22520: *ac_space=\ *)
! 22521: # `set' does not quote correctly, so add quotes (double-quote
! 22522: # substitution turns \\\\ into \\, and sed turns \\ into \).
! 22523: sed -n \
! 22524: "s/'/'\\\\''/g;
! 22525: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
! 22526: ;;
! 22527: *)
! 22528: # `set' quotes correctly as required by POSIX, so do not add quotes.
! 22529: sed -n \
! 22530: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
! 22531: ;;
! 22532: esac;
! 22533: } |
! 22534: sed '
! 22535: t clear
! 22536: : clear
! 22537: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
! 22538: t end
! 22539: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
! 22540: : end' >>confcache
! 22541: if diff $cache_file confcache >/dev/null 2>&1; then :; else
! 22542: if test -w $cache_file; then
! 22543: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
! 22544: cat confcache >$cache_file
1.17 millert 22545: else
1.25 ! millert 22546: echo "not updating unwritable cache $cache_file"
1.17 millert 22547: fi
22548: fi
1.25 ! millert 22549: rm -f confcache
1.17 millert 22550:
1.25 ! millert 22551: test "x$prefix" = xNONE && prefix=$ac_default_prefix
! 22552: # Let make expand exec_prefix.
! 22553: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.17 millert 22554:
1.25 ! millert 22555: # VPATH may cause trouble with some makes, so we remove $(srcdir),
! 22556: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
! 22557: # trailing colons and then remove the whole line if VPATH becomes empty
! 22558: # (actually we leave an empty line to preserve line numbers).
! 22559: if test "x$srcdir" = x.; then
! 22560: ac_vpsub='/^[ ]*VPATH[ ]*=/{
! 22561: s/:*\$(srcdir):*/:/;
! 22562: s/:*\${srcdir}:*/:/;
! 22563: s/:*@srcdir@:*/:/;
! 22564: s/^\([^=]*=[ ]*\):*/\1/;
! 22565: s/:*$//;
! 22566: s/^[^=]*=[ ]*$//;
! 22567: }'
1.17 millert 22568: fi
22569:
1.25 ! millert 22570: DEFS=-DHAVE_CONFIG_H
1.17 millert 22571:
1.25 ! millert 22572: ac_libobjs=
! 22573: ac_ltlibobjs=
! 22574: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
! 22575: # 1. Remove the extension, and $U if already installed.
! 22576: ac_i=`echo "$ac_i" |
! 22577: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
! 22578: # 2. Add them.
! 22579: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
! 22580: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
! 22581: done
! 22582: LIBOBJS=$ac_libobjs
1.17 millert 22583:
1.25 ! millert 22584: LTLIBOBJS=$ac_ltlibobjs
1.17 millert 22585:
1.19 millert 22586:
1.17 millert 22587:
1.25 ! millert 22588: : ${CONFIG_STATUS=./config.status}
! 22589: ac_clean_files_save=$ac_clean_files
! 22590: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
! 22591: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
! 22592: echo "$as_me: creating $CONFIG_STATUS" >&6;}
! 22593: cat >$CONFIG_STATUS <<_ACEOF
! 22594: #! $SHELL
! 22595: # Generated by $as_me.
! 22596: # Run this file to recreate the current configuration.
! 22597: # Compiler output produced by configure, useful for debugging
! 22598: # configure, is in config.log if it exists.
1.17 millert 22599:
1.25 ! millert 22600: debug=false
! 22601: ac_cs_recheck=false
! 22602: ac_cs_silent=false
! 22603: SHELL=\${CONFIG_SHELL-$SHELL}
1.17 millert 22604: _ACEOF
22605:
1.25 ! millert 22606: cat >>$CONFIG_STATUS <<\_ACEOF
! 22607: ## --------------------- ##
! 22608: ## M4sh Initialization. ##
! 22609: ## --------------------- ##
! 22610:
! 22611: # Be Bourne compatible
! 22612: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
! 22613: emulate sh
! 22614: NULLCMD=:
! 22615: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
! 22616: # is contrary to our usage. Disable this feature.
! 22617: alias -g '${1+"$@"}'='"$@"'
! 22618: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
! 22619: set -o posix
1.17 millert 22620: fi
1.25 ! millert 22621: DUALCASE=1; export DUALCASE # for MKS sh
! 22622:
! 22623: # Support unset when possible.
! 22624: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
! 22625: as_unset=unset
! 22626: else
! 22627: as_unset=false
1.17 millert 22628: fi
1.25 ! millert 22629:
! 22630:
! 22631: # Work around bugs in pre-3.0 UWIN ksh.
! 22632: $as_unset ENV MAIL MAILPATH
! 22633: PS1='$ '
! 22634: PS2='> '
! 22635: PS4='+ '
! 22636:
! 22637: # NLS nuisances.
! 22638: for as_var in \
! 22639: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
! 22640: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
! 22641: LC_TELEPHONE LC_TIME
! 22642: do
! 22643: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
! 22644: eval $as_var=C; export $as_var
! 22645: else
! 22646: $as_unset $as_var
! 22647: fi
! 22648: done
! 22649:
! 22650: # Required to use basename.
! 22651: if expr a : '\(a\)' >/dev/null 2>&1; then
! 22652: as_expr=expr
! 22653: else
! 22654: as_expr=false
1.17 millert 22655: fi
22656:
1.25 ! millert 22657: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
! 22658: as_basename=basename
! 22659: else
! 22660: as_basename=false
! 22661: fi
1.17 millert 22662:
22663:
1.25 ! millert 22664: # Name of the executable.
! 22665: as_me=`$as_basename "$0" ||
! 22666: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
! 22667: X"$0" : 'X\(//\)$' \| \
! 22668: X"$0" : 'X\(/\)$' \| \
! 22669: . : '\(.\)' 2>/dev/null ||
! 22670: echo X/"$0" |
! 22671: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
! 22672: /^X\/\(\/\/\)$/{ s//\1/; q; }
! 22673: /^X\/\(\/\).*/{ s//\1/; q; }
! 22674: s/.*/./; q'`
1.17 millert 22675:
22676:
1.25 ! millert 22677: # PATH needs CR, and LINENO needs CR and PATH.
! 22678: # Avoid depending upon Character Ranges.
! 22679: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
! 22680: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
! 22681: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
! 22682: as_cr_digits='0123456789'
! 22683: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.17 millert 22684:
1.25 ! millert 22685: # The user is always right.
! 22686: if test "${PATH_SEPARATOR+set}" != set; then
! 22687: echo "#! /bin/sh" >conf$$.sh
! 22688: echo "exit 0" >>conf$$.sh
! 22689: chmod +x conf$$.sh
! 22690: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
! 22691: PATH_SEPARATOR=';'
! 22692: else
! 22693: PATH_SEPARATOR=:
! 22694: fi
! 22695: rm -f conf$$.sh
1.17 millert 22696: fi
22697:
22698:
1.25 ! millert 22699: as_lineno_1=$LINENO
! 22700: as_lineno_2=$LINENO
! 22701: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 22702: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 22703: test "x$as_lineno_3" = "x$as_lineno_2" || {
! 22704: # Find who we are. Look in the path if we contain no path at all
! 22705: # relative or not.
! 22706: case $0 in
! 22707: *[\\/]* ) as_myself=$0 ;;
! 22708: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 22709: for as_dir in $PATH
! 22710: do
! 22711: IFS=$as_save_IFS
! 22712: test -z "$as_dir" && as_dir=.
! 22713: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
! 22714: done
! 22715:
! 22716: ;;
! 22717: esac
! 22718: # We did not find ourselves, most probably we were run as `sh COMMAND'
! 22719: # in which case we are not to be found in the path.
! 22720: if test "x$as_myself" = x; then
! 22721: as_myself=$0
! 22722: fi
! 22723: if test ! -f "$as_myself"; then
! 22724: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
! 22725: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
! 22726: { (exit 1); exit 1; }; }
! 22727: fi
! 22728: case $CONFIG_SHELL in
! 22729: '')
! 22730: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 22731: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
! 22732: do
! 22733: IFS=$as_save_IFS
! 22734: test -z "$as_dir" && as_dir=.
! 22735: for as_base in sh bash ksh sh5; do
! 22736: case $as_dir in
! 22737: /*)
! 22738: if ("$as_dir/$as_base" -c '
! 22739: as_lineno_1=$LINENO
! 22740: as_lineno_2=$LINENO
! 22741: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
! 22742: test "x$as_lineno_1" != "x$as_lineno_2" &&
! 22743: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
! 22744: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
! 22745: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
! 22746: CONFIG_SHELL=$as_dir/$as_base
! 22747: export CONFIG_SHELL
! 22748: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
! 22749: fi;;
! 22750: esac
! 22751: done
! 22752: done
! 22753: ;;
! 22754: esac
! 22755:
! 22756: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
! 22757: # uniformly replaced by the line number. The first 'sed' inserts a
! 22758: # line-number line before each line; the second 'sed' does the real
! 22759: # work. The second script uses 'N' to pair each line-number line
! 22760: # with the numbered line, and appends trailing '-' during
! 22761: # substitution so that $LINENO is not a special case at line end.
! 22762: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
! 22763: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
! 22764: sed '=' <$as_myself |
! 22765: sed '
! 22766: N
! 22767: s,$,-,
! 22768: : loop
! 22769: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
! 22770: t loop
! 22771: s,-$,,
! 22772: s,^['$as_cr_digits']*\n,,
! 22773: ' >$as_me.lineno &&
! 22774: chmod +x $as_me.lineno ||
! 22775: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
! 22776: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
! 22777: { (exit 1); exit 1; }; }
1.17 millert 22778:
1.25 ! millert 22779: # Don't try to exec as it changes $[0], causing all sort of problems
! 22780: # (the dirname of $[0] is not the place where we might find the
! 22781: # original and so on. Autoconf is especially sensible to this).
! 22782: . ./$as_me.lineno
! 22783: # Exit status is that of the last command.
! 22784: exit
1.23 millert 22785: }
22786:
22787:
1.25 ! millert 22788: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
! 22789: *c*,-n*) ECHO_N= ECHO_C='
! 22790: ' ECHO_T=' ' ;;
! 22791: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
! 22792: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
! 22793: esac
1.23 millert 22794:
1.25 ! millert 22795: if expr a : '\(a\)' >/dev/null 2>&1; then
! 22796: as_expr=expr
1.23 millert 22797: else
1.25 ! millert 22798: as_expr=false
1.23 millert 22799: fi
22800:
1.25 ! millert 22801: rm -f conf$$ conf$$.exe conf$$.file
! 22802: echo >conf$$.file
! 22803: if ln -s conf$$.file conf$$ 2>/dev/null; then
! 22804: # We could just check for DJGPP; but this test a) works b) is more generic
! 22805: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
! 22806: if test -f conf$$.exe; then
! 22807: # Don't use ln at all; we don't have any links
! 22808: as_ln_s='cp -p'
1.23 millert 22809: else
1.25 ! millert 22810: as_ln_s='ln -s'
1.23 millert 22811: fi
1.25 ! millert 22812: elif ln conf$$.file conf$$ 2>/dev/null; then
! 22813: as_ln_s=ln
1.23 millert 22814: else
1.25 ! millert 22815: as_ln_s='cp -p'
1.23 millert 22816: fi
1.25 ! millert 22817: rm -f conf$$ conf$$.exe conf$$.file
! 22818:
! 22819: if mkdir -p . 2>/dev/null; then
! 22820: as_mkdir_p=:
1.23 millert 22821: else
1.25 ! millert 22822: test -d ./-p && rmdir ./-p
! 22823: as_mkdir_p=false
! 22824: fi
! 22825:
! 22826: as_executable_p="test -f"
! 22827:
! 22828: # Sed expression to map a string onto a valid CPP name.
! 22829: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
! 22830:
! 22831: # Sed expression to map a string onto a valid variable name.
! 22832: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
! 22833:
! 22834:
! 22835: # IFS
! 22836: # We need space, tab and new line, in precisely that order.
! 22837: as_nl='
! 22838: '
! 22839: IFS=" $as_nl"
! 22840:
! 22841: # CDPATH.
! 22842: $as_unset CDPATH
1.23 millert 22843:
1.25 ! millert 22844: exec 6>&1
1.23 millert 22845:
1.25 ! millert 22846: # Open the log real soon, to keep \$[0] and so on meaningful, and to
! 22847: # report actual input values of CONFIG_FILES etc. instead of their
! 22848: # values after options handling. Logging --version etc. is OK.
! 22849: exec 5>>config.log
! 22850: {
! 22851: echo
! 22852: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
! 22853: ## Running $as_me. ##
1.23 millert 22854: _ASBOX
1.25 ! millert 22855: } >&5
! 22856: cat >&5 <<_CSEOF
! 22857:
! 22858: This file was extended by sudo $as_me 1.6.9, which was
! 22859: generated by GNU Autoconf 2.59. Invocation command line was
! 22860:
! 22861: CONFIG_FILES = $CONFIG_FILES
! 22862: CONFIG_HEADERS = $CONFIG_HEADERS
! 22863: CONFIG_LINKS = $CONFIG_LINKS
! 22864: CONFIG_COMMANDS = $CONFIG_COMMANDS
! 22865: $ $0 $@
1.17 millert 22866:
1.25 ! millert 22867: _CSEOF
! 22868: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
! 22869: echo >&5
1.23 millert 22870: _ACEOF
22871:
1.25 ! millert 22872: # Files that config.status was made for.
! 22873: if test -n "$ac_config_files"; then
! 22874: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1.17 millert 22875: fi
1.23 millert 22876:
1.25 ! millert 22877: if test -n "$ac_config_headers"; then
! 22878: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
! 22879: fi
1.17 millert 22880:
1.25 ! millert 22881: if test -n "$ac_config_links"; then
! 22882: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1.17 millert 22883: fi
22884:
1.25 ! millert 22885: if test -n "$ac_config_commands"; then
! 22886: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
! 22887: fi
1.17 millert 22888:
1.25 ! millert 22889: cat >>$CONFIG_STATUS <<\_ACEOF
1.17 millert 22890:
1.25 ! millert 22891: ac_cs_usage="\
! 22892: \`$as_me' instantiates files from templates according to the
! 22893: current configuration.
1.17 millert 22894:
1.25 ! millert 22895: Usage: $0 [OPTIONS] [FILE]...
1.17 millert 22896:
1.25 ! millert 22897: -h, --help print this help, then exit
! 22898: -V, --version print version number, then exit
! 22899: -q, --quiet do not print progress messages
! 22900: -d, --debug don't remove temporary files
! 22901: --recheck update $as_me by reconfiguring in the same conditions
! 22902: --file=FILE[:TEMPLATE]
! 22903: instantiate the configuration file FILE
! 22904: --header=FILE[:TEMPLATE]
! 22905: instantiate the configuration header FILE
1.17 millert 22906:
1.25 ! millert 22907: Configuration files:
! 22908: $config_files
1.17 millert 22909:
1.25 ! millert 22910: Configuration headers:
! 22911: $config_headers
1.17 millert 22912:
1.25 ! millert 22913: Configuration commands:
! 22914: $config_commands
1.17 millert 22915:
1.25 ! millert 22916: Report bugs to <bug-autoconf@gnu.org>."
! 22917: _ACEOF
1.17 millert 22918:
1.25 ! millert 22919: cat >>$CONFIG_STATUS <<_ACEOF
! 22920: ac_cs_version="\\
! 22921: sudo config.status 1.6.9
! 22922: configured by $0, generated by GNU Autoconf 2.59,
! 22923: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.17 millert 22924:
1.25 ! millert 22925: Copyright (C) 2003 Free Software Foundation, Inc.
! 22926: This config.status script is free software; the Free Software Foundation
! 22927: gives unlimited permission to copy, distribute and modify it."
! 22928: srcdir=$srcdir
! 22929: _ACEOF
1.17 millert 22930:
1.25 ! millert 22931: cat >>$CONFIG_STATUS <<\_ACEOF
! 22932: # If no file are specified by the user, then we need to provide default
! 22933: # value. By we need to know if files were specified by the user.
! 22934: ac_need_defaults=:
! 22935: while test $# != 0
! 22936: do
! 22937: case $1 in
! 22938: --*=*)
! 22939: ac_option=`expr "x$1" : 'x\([^=]*\)='`
! 22940: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
! 22941: ac_shift=:
! 22942: ;;
! 22943: -*)
! 22944: ac_option=$1
! 22945: ac_optarg=$2
! 22946: ac_shift=shift
! 22947: ;;
! 22948: *) # This is not an option, so the user has probably given explicit
! 22949: # arguments.
! 22950: ac_option=$1
! 22951: ac_need_defaults=false;;
! 22952: esac
1.17 millert 22953:
1.25 ! millert 22954: case $ac_option in
! 22955: # Handling of the options.
1.17 millert 22956: _ACEOF
1.25 ! millert 22957: cat >>$CONFIG_STATUS <<\_ACEOF
! 22958: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
! 22959: ac_cs_recheck=: ;;
! 22960: --version | --vers* | -V )
! 22961: echo "$ac_cs_version"; exit 0 ;;
! 22962: --he | --h)
! 22963: # Conflict between --help and --header
! 22964: { { echo "$as_me:$LINENO: error: ambiguous option: $1
! 22965: Try \`$0 --help' for more information." >&5
! 22966: echo "$as_me: error: ambiguous option: $1
! 22967: Try \`$0 --help' for more information." >&2;}
! 22968: { (exit 1); exit 1; }; };;
! 22969: --help | --hel | -h )
! 22970: echo "$ac_cs_usage"; exit 0 ;;
! 22971: --debug | --d* | -d )
! 22972: debug=: ;;
! 22973: --file | --fil | --fi | --f )
! 22974: $ac_shift
! 22975: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
! 22976: ac_need_defaults=false;;
! 22977: --header | --heade | --head | --hea )
! 22978: $ac_shift
! 22979: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
! 22980: ac_need_defaults=false;;
! 22981: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
! 22982: | -silent | --silent | --silen | --sile | --sil | --si | --s)
! 22983: ac_cs_silent=: ;;
! 22984:
! 22985: # This is an error.
! 22986: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
! 22987: Try \`$0 --help' for more information." >&5
! 22988: echo "$as_me: error: unrecognized option: $1
! 22989: Try \`$0 --help' for more information." >&2;}
! 22990: { (exit 1); exit 1; }; } ;;
! 22991:
! 22992: *) ac_config_targets="$ac_config_targets $1" ;;
! 22993:
! 22994: esac
! 22995: shift
! 22996: done
! 22997:
! 22998: ac_configure_extra_args=
! 22999:
! 23000: if $ac_cs_silent; then
! 23001: exec 6>/dev/null
! 23002: ac_configure_extra_args="$ac_configure_extra_args --silent"
1.17 millert 23003: fi
23004:
23005: _ACEOF
1.25 ! millert 23006: cat >>$CONFIG_STATUS <<_ACEOF
! 23007: if \$ac_cs_recheck; then
! 23008: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
! 23009: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.17 millert 23010: fi
23011:
1.25 ! millert 23012: _ACEOF
1.17 millert 23013:
1.25 ! millert 23014: cat >>$CONFIG_STATUS <<_ACEOF
! 23015: #
! 23016: # INIT-COMMANDS section.
! 23017: #
1.17 millert 23018:
1.1 millert 23019:
23020:
1.25 ! millert 23021: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 23022: # if CDPATH is set.
! 23023: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 millert 23024:
1.25 ! millert 23025: sed_quote_subst='$sed_quote_subst'
! 23026: double_quote_subst='$double_quote_subst'
! 23027: delay_variable_subst='$delay_variable_subst'
! 23028: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
! 23029: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
! 23030: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
! 23031: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
! 23032: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
! 23033: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
! 23034: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
! 23035: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
! 23036: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
! 23037: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
! 23038: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
! 23039: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
! 23040: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
! 23041: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
! 23042: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
! 23043: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
! 23044: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
! 23045: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
! 23046: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
! 23047: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
! 23048: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23049: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
! 23050: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
! 23051: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
! 23052: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
! 23053: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
! 23054: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
! 23055: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23056: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23057: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23058: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
! 23059: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
! 23060: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
! 23061: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
! 23062: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
! 23063: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
! 23064: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
! 23065: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
! 23066: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
! 23067: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
! 23068: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
! 23069: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
! 23070: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
! 23071: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
! 23072: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
! 23073: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
! 23074: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
! 23075: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
! 23076: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
! 23077: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
! 23078: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
! 23079: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23080: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23081: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
! 23082: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
! 23083: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
! 23084: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23085: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23086: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23087: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23088: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23089: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23090: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23091: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23092: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
! 23093: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
! 23094: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
! 23095: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23096: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
! 23097: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
! 23098: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
! 23099: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
! 23100: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
! 23101: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
! 23102: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
! 23103: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
! 23104: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
! 23105: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
! 23106: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23107: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
! 23108: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
! 23109: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
! 23110: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
! 23111: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
! 23112: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
! 23113: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
! 23114: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
! 23115: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23116: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23117: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23118: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23119: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23120: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
! 23121: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
! 23122: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
! 23123: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23124: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
! 23125: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
! 23126: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
! 23127: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
! 23128:
! 23129: LTCC='$LTCC'
! 23130: LTCFLAGS='$LTCFLAGS'
! 23131: compiler='$compiler_DEFAULT'
! 23132:
! 23133: # Quote evaled strings.
! 23134: for var in SED GREP EGREP FGREP LD NM LN_S reload_flag deplibs_check_method file_magic_cmd AR AR_FLAGS STRIP RANLIB lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl lt_cv_sys_global_symbol_to_c_name_address CC CFLAGS compiler SHELL ECHO lt_prog_compiler_no_builtin_flag lt_prog_compiler_wl lt_prog_compiler_pic lt_prog_compiler_static lt_cv_prog_compiler_c_o need_locks shrext_cmds variables_saved_for_relink export_dynamic_flag_spec whole_archive_flag_spec with_gnu_ld allow_undefined_flag no_undefined_flag hardcode_libdir_flag_spec hardcode_libdir_flag_spec_ld hardcode_libdir_separator fix_srcfile_path exclude_expsyms include_expsyms libname_spec library_names_spec soname_spec finish_eval old_striplib striplib; do
! 23135: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
! 23136: done
! 23137:
! 23138: # Double-quote double-evaled strings.
! 23139: for var in reload_cmds old_postinstall_cmds old_postuninstall_cmds old_archive_cmds extract_expsyms_cmds old_archive_from_new_cmds old_archive_from_expsyms_cmds archive_cmds archive_expsym_cmds module_cmds module_expsym_cmds export_symbols_cmds postinstall_cmds postuninstall_cmds finish_cmds sys_lib_search_path_spec sys_lib_dlsearch_path_spec; do
! 23140: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
! 23141: done
! 23142:
! 23143: # Fix-up fallback echo if it was mangled by the above quoting rules.
! 23144: case \$lt_ECHO in
! 23145: *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
! 23146: ;;
! 23147: esac
! 23148:
! 23149: ac_aux_dir='$ac_aux_dir'
! 23150:
! 23151: # See if we are running on zsh, and set the options which allow our
! 23152: # commands through without removal of \ escapes INIT.
! 23153: if test -n "\${ZSH_VERSION+set}" ; then
! 23154: setopt NO_GLOB_SUBST
! 23155: fi
! 23156:
! 23157:
! 23158: PACKAGE='$PACKAGE'
! 23159: VERSION='$VERSION'
! 23160: TIMESTAMP='$TIMESTAMP'
! 23161: RM='$RM'
! 23162: ofile='$ofile'
1.17 millert 23163:
1.1 millert 23164:
23165:
23166:
1.16 millert 23167: _ACEOF
23168:
23169:
1.25 ! millert 23170:
! 23171: cat >>$CONFIG_STATUS <<\_ACEOF
! 23172: for ac_config_target in $ac_config_targets
! 23173: do
! 23174: case "$ac_config_target" in
! 23175: # Handling of arguments.
! 23176: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
! 23177: "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
! 23178: "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
! 23179: "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
! 23180: "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
! 23181: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
! 23182: "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
! 23183: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
! 23184: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
! 23185: { (exit 1); exit 1; }; };;
! 23186: esac
! 23187: done
! 23188:
! 23189: # If the user did not use the arguments to specify the items to instantiate,
! 23190: # then the envvar interface is used. Set only those that are not.
! 23191: # We use the long form for the default assignment because of an extremely
! 23192: # bizarre bug on SunOS 4.1.3.
! 23193: if $ac_need_defaults; then
! 23194: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
! 23195: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
! 23196: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1.16 millert 23197: fi
23198:
1.25 ! millert 23199: # Have a temporary directory for convenience. Make it in the build tree
! 23200: # simply because there is no reason to put it here, and in addition,
! 23201: # creating and moving files from /tmp can sometimes cause problems.
! 23202: # Create a temporary directory, and hook for its removal unless debugging.
! 23203: $debug ||
! 23204: {
! 23205: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
! 23206: trap '{ (exit 1); exit 1; }' 1 2 13 15
! 23207: }
1.16 millert 23208:
1.25 ! millert 23209: # Create a (secure) tmp directory for tmp files.
1.17 millert 23210:
1.25 ! millert 23211: {
! 23212: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
! 23213: test -n "$tmp" && test -d "$tmp"
! 23214: } ||
! 23215: {
! 23216: tmp=./confstat$$-$RANDOM
! 23217: (umask 077 && mkdir $tmp)
! 23218: } ||
! 23219: {
! 23220: echo "$me: cannot create a temporary directory in ." >&2
! 23221: { (exit 1); exit 1; }
! 23222: }
1.17 millert 23223:
1.25 ! millert 23224: _ACEOF
1.17 millert 23225:
1.25 ! millert 23226: cat >>$CONFIG_STATUS <<_ACEOF
1.17 millert 23227:
1.25 ! millert 23228: #
! 23229: # CONFIG_FILES section.
! 23230: #
1.17 millert 23231:
1.25 ! millert 23232: # No need to generate the scripts if there are no CONFIG_FILES.
! 23233: # This happens for instance when ./config.status config.h
! 23234: if test -n "\$CONFIG_FILES"; then
! 23235: # Protect against being on the right side of a sed subst in config.status.
! 23236: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
! 23237: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
! 23238: s,@SHELL@,$SHELL,;t t
! 23239: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
! 23240: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
! 23241: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
! 23242: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
! 23243: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
! 23244: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
! 23245: s,@exec_prefix@,$exec_prefix,;t t
! 23246: s,@prefix@,$prefix,;t t
! 23247: s,@program_transform_name@,$program_transform_name,;t t
! 23248: s,@bindir@,$bindir,;t t
! 23249: s,@sbindir@,$sbindir,;t t
! 23250: s,@libexecdir@,$libexecdir,;t t
! 23251: s,@datadir@,$datadir,;t t
! 23252: s,@sysconfdir@,$sysconfdir,;t t
! 23253: s,@sharedstatedir@,$sharedstatedir,;t t
! 23254: s,@localstatedir@,$localstatedir,;t t
! 23255: s,@libdir@,$libdir,;t t
! 23256: s,@includedir@,$includedir,;t t
! 23257: s,@oldincludedir@,$oldincludedir,;t t
! 23258: s,@infodir@,$infodir,;t t
! 23259: s,@mandir@,$mandir,;t t
! 23260: s,@build_alias@,$build_alias,;t t
! 23261: s,@host_alias@,$host_alias,;t t
! 23262: s,@target_alias@,$target_alias,;t t
! 23263: s,@DEFS@,$DEFS,;t t
! 23264: s,@ECHO_C@,$ECHO_C,;t t
! 23265: s,@ECHO_N@,$ECHO_N,;t t
! 23266: s,@ECHO_T@,$ECHO_T,;t t
! 23267: s,@LIBS@,$LIBS,;t t
! 23268: s,@LIBTOOL@,$LIBTOOL,;t t
! 23269: s,@CFLAGS@,$CFLAGS,;t t
! 23270: s,@PROGS@,$PROGS,;t t
! 23271: s,@CPPFLAGS@,$CPPFLAGS,;t t
! 23272: s,@LDFLAGS@,$LDFLAGS,;t t
! 23273: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
! 23274: s,@SUDO_OBJS@,$SUDO_OBJS,;t t
! 23275: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
! 23276: s,@NET_LIBS@,$NET_LIBS,;t t
! 23277: s,@AFS_LIBS@,$AFS_LIBS,;t t
! 23278: s,@OSDEFS@,$OSDEFS,;t t
! 23279: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
! 23280: s,@MANTYPE@,$MANTYPE,;t t
! 23281: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
! 23282: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
! 23283: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
! 23284: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
! 23285: s,@DEV@,$DEV,;t t
! 23286: s,@mansectsu@,$mansectsu,;t t
! 23287: s,@mansectform@,$mansectform,;t t
! 23288: s,@mansrcdir@,$mansrcdir,;t t
! 23289: s,@NOEXECDIR@,$NOEXECDIR,;t t
! 23290: s,@noexec_file@,$noexec_file,;t t
! 23291: s,@INSTALL_NOEXEC@,$INSTALL_NOEXEC,;t t
! 23292: s,@DONT_LEAK_PATH_INFO@,$DONT_LEAK_PATH_INFO,;t t
! 23293: s,@timedir@,$timedir,;t t
! 23294: s,@timeout@,$timeout,;t t
! 23295: s,@password_timeout@,$password_timeout,;t t
! 23296: s,@sudo_umask@,$sudo_umask,;t t
! 23297: s,@passprompt@,$passprompt,;t t
! 23298: s,@long_otp_prompt@,$long_otp_prompt,;t t
! 23299: s,@lecture@,$lecture,;t t
! 23300: s,@logfac@,$logfac,;t t
! 23301: s,@goodpri@,$goodpri,;t t
! 23302: s,@badpri@,$badpri,;t t
! 23303: s,@loglen@,$loglen,;t t
! 23304: s,@ignore_dot@,$ignore_dot,;t t
! 23305: s,@mail_no_user@,$mail_no_user,;t t
! 23306: s,@mail_no_host@,$mail_no_host,;t t
! 23307: s,@mail_no_perms@,$mail_no_perms,;t t
! 23308: s,@mailto@,$mailto,;t t
! 23309: s,@mailsub@,$mailsub,;t t
! 23310: s,@badpass_message@,$badpass_message,;t t
! 23311: s,@fqdn@,$fqdn,;t t
! 23312: s,@runas_default@,$runas_default,;t t
! 23313: s,@env_editor@,$env_editor,;t t
! 23314: s,@passwd_tries@,$passwd_tries,;t t
! 23315: s,@tty_tickets@,$tty_tickets,;t t
! 23316: s,@insults@,$insults,;t t
! 23317: s,@root_sudo@,$root_sudo,;t t
! 23318: s,@path_info@,$path_info,;t t
! 23319: s,@EGREPPROG@,$EGREPPROG,;t t
! 23320: s,@CC@,$CC,;t t
! 23321: s,@ac_ct_CC@,$ac_ct_CC,;t t
! 23322: s,@EXEEXT@,$EXEEXT,;t t
! 23323: s,@OBJEXT@,$OBJEXT,;t t
! 23324: s,@CPP@,$CPP,;t t
! 23325: s,@build@,$build,;t t
! 23326: s,@build_cpu@,$build_cpu,;t t
! 23327: s,@build_vendor@,$build_vendor,;t t
! 23328: s,@build_os@,$build_os,;t t
! 23329: s,@host@,$host,;t t
! 23330: s,@host_cpu@,$host_cpu,;t t
! 23331: s,@host_vendor@,$host_vendor,;t t
! 23332: s,@host_os@,$host_os,;t t
! 23333: s,@target@,$target,;t t
! 23334: s,@target_cpu@,$target_cpu,;t t
! 23335: s,@target_vendor@,$target_vendor,;t t
! 23336: s,@target_os@,$target_os,;t t
! 23337: s,@SED@,$SED,;t t
! 23338: s,@EGREP@,$EGREP,;t t
! 23339: s,@FGREP@,$FGREP,;t t
! 23340: s,@GREP@,$GREP,;t t
! 23341: s,@LD@,$LD,;t t
! 23342: s,@NM@,$NM,;t t
! 23343: s,@LN_S@,$LN_S,;t t
! 23344: s,@AR@,$AR,;t t
! 23345: s,@ac_ct_AR@,$ac_ct_AR,;t t
! 23346: s,@STRIP@,$STRIP,;t t
! 23347: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
! 23348: s,@RANLIB@,$RANLIB,;t t
! 23349: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
! 23350: s,@lt_ECHO@,$lt_ECHO,;t t
! 23351: s,@UNAMEPROG@,$UNAMEPROG,;t t
! 23352: s,@TRPROG@,$TRPROG,;t t
! 23353: s,@NROFFPROG@,$NROFFPROG,;t t
! 23354: s,@YACC@,$YACC,;t t
! 23355: s,@LIBOBJS@,$LIBOBJS,;t t
! 23356: s,@ALLOCA@,$ALLOCA,;t t
! 23357: s,@KRB5CONFIG@,$KRB5CONFIG,;t t
! 23358: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
! 23359: CEOF
1.17 millert 23360:
23361: _ACEOF
23362:
1.25 ! millert 23363: cat >>$CONFIG_STATUS <<\_ACEOF
! 23364: # Split the substitutions into bite-sized pieces for seds with
! 23365: # small command number limits, like on Digital OSF/1 and HP-UX.
! 23366: ac_max_sed_lines=48
! 23367: ac_sed_frag=1 # Number of current file.
! 23368: ac_beg=1 # First line for current file.
! 23369: ac_end=$ac_max_sed_lines # Line after last line for current file.
! 23370: ac_more_lines=:
! 23371: ac_sed_cmds=
! 23372: while $ac_more_lines; do
! 23373: if test $ac_beg -gt 1; then
! 23374: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.17 millert 23375: else
1.25 ! millert 23376: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.17 millert 23377: fi
1.25 ! millert 23378: if test ! -s $tmp/subs.frag; then
! 23379: ac_more_lines=false
1.16 millert 23380: else
1.25 ! millert 23381: # The purpose of the label and of the branching condition is to
! 23382: # speed up the sed processing (if there are no `@' at all, there
! 23383: # is no need to browse any of the substitutions).
! 23384: # These are the two extra sed commands mentioned above.
! 23385: (echo ':t
! 23386: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
! 23387: if test -z "$ac_sed_cmds"; then
! 23388: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
! 23389: else
! 23390: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
! 23391: fi
! 23392: ac_sed_frag=`expr $ac_sed_frag + 1`
! 23393: ac_beg=$ac_end
! 23394: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.17 millert 23395: fi
1.25 ! millert 23396: done
! 23397: if test -z "$ac_sed_cmds"; then
! 23398: ac_sed_cmds=cat
! 23399: fi
! 23400: fi # test -n "$CONFIG_FILES"
1.17 millert 23401:
23402: _ACEOF
1.25 ! millert 23403: cat >>$CONFIG_STATUS <<\_ACEOF
! 23404: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
! 23405: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 23406: case $ac_file in
! 23407: - | *:- | *:-:* ) # input from stdin
! 23408: cat >$tmp/stdin
! 23409: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 23410: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 23411: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 23412: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 23413: * ) ac_file_in=$ac_file.in ;;
! 23414: esac
1.17 millert 23415:
1.25 ! millert 23416: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
! 23417: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 23418: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 23419: X"$ac_file" : 'X\(//\)[^/]' \| \
! 23420: X"$ac_file" : 'X\(//\)$' \| \
! 23421: X"$ac_file" : 'X\(/\)' \| \
! 23422: . : '\(.\)' 2>/dev/null ||
! 23423: echo X"$ac_file" |
! 23424: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 23425: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 23426: /^X\(\/\/\)$/{ s//\1/; q; }
! 23427: /^X\(\/\).*/{ s//\1/; q; }
! 23428: s/.*/./; q'`
! 23429: { if $as_mkdir_p; then
! 23430: mkdir -p "$ac_dir"
! 23431: else
! 23432: as_dir="$ac_dir"
! 23433: as_dirs=
! 23434: while test ! -d "$as_dir"; do
! 23435: as_dirs="$as_dir $as_dirs"
! 23436: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 23437: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 23438: X"$as_dir" : 'X\(//\)[^/]' \| \
! 23439: X"$as_dir" : 'X\(//\)$' \| \
! 23440: X"$as_dir" : 'X\(/\)' \| \
! 23441: . : '\(.\)' 2>/dev/null ||
! 23442: echo X"$as_dir" |
! 23443: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 23444: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 23445: /^X\(\/\/\)$/{ s//\1/; q; }
! 23446: /^X\(\/\).*/{ s//\1/; q; }
! 23447: s/.*/./; q'`
! 23448: done
! 23449: test ! -n "$as_dirs" || mkdir $as_dirs
! 23450: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 23451: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 23452: { (exit 1); exit 1; }; }; }
1.17 millert 23453:
1.25 ! millert 23454: ac_builddir=.
1.23 millert 23455:
1.25 ! millert 23456: if test "$ac_dir" != .; then
! 23457: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 23458: # A "../" for each directory in $ac_dir_suffix.
! 23459: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1.23 millert 23460: else
1.25 ! millert 23461: ac_dir_suffix= ac_top_builddir=
1.23 millert 23462: fi
23463:
1.25 ! millert 23464: case $srcdir in
! 23465: .) # No --srcdir option. We are building in place.
! 23466: ac_srcdir=.
! 23467: if test -z "$ac_top_builddir"; then
! 23468: ac_top_srcdir=.
1.23 millert 23469: else
1.25 ! millert 23470: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 23471: fi ;;
! 23472: [\\/]* | ?:[\\/]* ) # Absolute path.
! 23473: ac_srcdir=$srcdir$ac_dir_suffix;
! 23474: ac_top_srcdir=$srcdir ;;
! 23475: *) # Relative path.
! 23476: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 23477: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 23478: esac
1.23 millert 23479:
1.25 ! millert 23480: # Do not use `cd foo && pwd` to compute absolute paths, because
! 23481: # the directories may not exist.
! 23482: case `pwd` in
! 23483: .) ac_abs_builddir="$ac_dir";;
! 23484: *)
! 23485: case "$ac_dir" in
! 23486: .) ac_abs_builddir=`pwd`;;
! 23487: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
! 23488: *) ac_abs_builddir=`pwd`/"$ac_dir";;
! 23489: esac;;
! 23490: esac
! 23491: case $ac_abs_builddir in
! 23492: .) ac_abs_top_builddir=${ac_top_builddir}.;;
! 23493: *)
! 23494: case ${ac_top_builddir}. in
! 23495: .) ac_abs_top_builddir=$ac_abs_builddir;;
! 23496: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
! 23497: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
! 23498: esac;;
! 23499: esac
! 23500: case $ac_abs_builddir in
! 23501: .) ac_abs_srcdir=$ac_srcdir;;
! 23502: *)
! 23503: case $ac_srcdir in
! 23504: .) ac_abs_srcdir=$ac_abs_builddir;;
! 23505: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
! 23506: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
! 23507: esac;;
! 23508: esac
! 23509: case $ac_abs_builddir in
! 23510: .) ac_abs_top_srcdir=$ac_top_srcdir;;
! 23511: *)
! 23512: case $ac_top_srcdir in
! 23513: .) ac_abs_top_srcdir=$ac_abs_builddir;;
! 23514: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
! 23515: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
! 23516: esac;;
! 23517: esac
1.23 millert 23518:
23519:
23520:
1.25 ! millert 23521: if test x"$ac_file" != x-; then
! 23522: { echo "$as_me:$LINENO: creating $ac_file" >&5
! 23523: echo "$as_me: creating $ac_file" >&6;}
! 23524: rm -f "$ac_file"
! 23525: fi
! 23526: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 23527: # use $as_me), people would be surprised to read:
! 23528: # /* config.h. Generated by config.status. */
! 23529: if test x"$ac_file" = x-; then
! 23530: configure_input=
! 23531: else
! 23532: configure_input="$ac_file. "
! 23533: fi
! 23534: configure_input=$configure_input"Generated from `echo $ac_file_in |
! 23535: sed 's,.*/,,'` by configure."
1.23 millert 23536:
1.25 ! millert 23537: # First look for the input files in the build tree, otherwise in the
! 23538: # src tree.
! 23539: ac_file_inputs=`IFS=:
! 23540: for f in $ac_file_in; do
! 23541: case $f in
! 23542: -) echo $tmp/stdin ;;
! 23543: [\\/$]*)
! 23544: # Absolute (can't be DOS-style, as IFS=:)
! 23545: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 23546: echo "$as_me: error: cannot find input file: $f" >&2;}
! 23547: { (exit 1); exit 1; }; }
! 23548: echo "$f";;
! 23549: *) # Relative
! 23550: if test -f "$f"; then
! 23551: # Build tree
! 23552: echo "$f"
! 23553: elif test -f "$srcdir/$f"; then
! 23554: # Source tree
! 23555: echo "$srcdir/$f"
! 23556: else
! 23557: # /dev/null tree
! 23558: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 23559: echo "$as_me: error: cannot find input file: $f" >&2;}
! 23560: { (exit 1); exit 1; }; }
! 23561: fi;;
! 23562: esac
! 23563: done` || { (exit 1); exit 1; }
1.23 millert 23564: _ACEOF
1.25 ! millert 23565: cat >>$CONFIG_STATUS <<_ACEOF
! 23566: sed "$ac_vpsub
! 23567: $extrasub
1.23 millert 23568: _ACEOF
1.25 ! millert 23569: cat >>$CONFIG_STATUS <<\_ACEOF
! 23570: :t
! 23571: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
! 23572: s,@configure_input@,$configure_input,;t t
! 23573: s,@srcdir@,$ac_srcdir,;t t
! 23574: s,@abs_srcdir@,$ac_abs_srcdir,;t t
! 23575: s,@top_srcdir@,$ac_top_srcdir,;t t
! 23576: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
! 23577: s,@builddir@,$ac_builddir,;t t
! 23578: s,@abs_builddir@,$ac_abs_builddir,;t t
! 23579: s,@top_builddir@,$ac_top_builddir,;t t
! 23580: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
! 23581: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
! 23582: rm -f $tmp/stdin
! 23583: if test x"$ac_file" != x-; then
! 23584: mv $tmp/out $ac_file
! 23585: else
! 23586: cat $tmp/out
! 23587: rm -f $tmp/out
! 23588: fi
1.23 millert 23589:
1.25 ! millert 23590: done
1.23 millert 23591: _ACEOF
1.25 ! millert 23592: cat >>$CONFIG_STATUS <<\_ACEOF
! 23593:
! 23594: #
! 23595: # CONFIG_HEADER section.
! 23596: #
! 23597:
! 23598: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
! 23599: # NAME is the cpp macro being defined and VALUE is the value it is being given.
! 23600: #
! 23601: # ac_d sets the value in "#define NAME VALUE" lines.
! 23602: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
! 23603: ac_dB='[ ].*$,\1#\2'
! 23604: ac_dC=' '
! 23605: ac_dD=',;t'
! 23606: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
! 23607: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
! 23608: ac_uB='$,\1#\2define\3'
! 23609: ac_uC=' '
! 23610: ac_uD=',;t'
1.23 millert 23611:
1.25 ! millert 23612: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
! 23613: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
! 23614: case $ac_file in
! 23615: - | *:- | *:-:* ) # input from stdin
! 23616: cat >$tmp/stdin
! 23617: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 23618: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 23619: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 23620: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
! 23621: * ) ac_file_in=$ac_file.in ;;
! 23622: esac
1.23 millert 23623:
1.25 ! millert 23624: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
! 23625: echo "$as_me: creating $ac_file" >&6;}
1.23 millert 23626:
1.25 ! millert 23627: # First look for the input files in the build tree, otherwise in the
! 23628: # src tree.
! 23629: ac_file_inputs=`IFS=:
! 23630: for f in $ac_file_in; do
! 23631: case $f in
! 23632: -) echo $tmp/stdin ;;
! 23633: [\\/$]*)
! 23634: # Absolute (can't be DOS-style, as IFS=:)
! 23635: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 23636: echo "$as_me: error: cannot find input file: $f" >&2;}
! 23637: { (exit 1); exit 1; }; }
! 23638: # Do quote $f, to prevent DOS paths from being IFS'd.
! 23639: echo "$f";;
! 23640: *) # Relative
! 23641: if test -f "$f"; then
! 23642: # Build tree
! 23643: echo "$f"
! 23644: elif test -f "$srcdir/$f"; then
! 23645: # Source tree
! 23646: echo "$srcdir/$f"
! 23647: else
! 23648: # /dev/null tree
! 23649: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
! 23650: echo "$as_me: error: cannot find input file: $f" >&2;}
! 23651: { (exit 1); exit 1; }; }
! 23652: fi;;
! 23653: esac
! 23654: done` || { (exit 1); exit 1; }
! 23655: # Remove the trailing spaces.
! 23656: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.23 millert 23657:
1.16 millert 23658: _ACEOF
1.23 millert 23659:
1.25 ! millert 23660: # Transform confdefs.h into two sed scripts, `conftest.defines' and
! 23661: # `conftest.undefs', that substitutes the proper values into
! 23662: # config.h.in to produce config.h. The first handles `#define'
! 23663: # templates, and the second `#undef' templates.
! 23664: # And first: Protect against being on the right side of a sed subst in
! 23665: # config.status. Protect against being in an unquoted here document
! 23666: # in config.status.
! 23667: rm -f conftest.defines conftest.undefs
! 23668: # Using a here document instead of a string reduces the quoting nightmare.
! 23669: # Putting comments in sed scripts is not portable.
! 23670: #
! 23671: # `end' is used to avoid that the second main sed command (meant for
! 23672: # 0-ary CPP macros) applies to n-ary macro definitions.
! 23673: # See the Autoconf documentation for `clear'.
! 23674: cat >confdef2sed.sed <<\_ACEOF
! 23675: s/[\\&,]/\\&/g
! 23676: s,[\\$`],\\&,g
! 23677: t clear
! 23678: : clear
! 23679: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
! 23680: t end
! 23681: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
! 23682: : end
1.9 millert 23683: _ACEOF
1.25 ! millert 23684: # If some macros were called several times there might be several times
! 23685: # the same #defines, which is useless. Nevertheless, we may not want to
! 23686: # sort them, since we want the *last* AC-DEFINE to be honored.
! 23687: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
! 23688: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
! 23689: rm -f confdef2sed.sed
1.16 millert 23690:
1.25 ! millert 23691: # This sed command replaces #undef with comments. This is necessary, for
! 23692: # example, in the case of _POSIX_SOURCE, which is predefined and required
! 23693: # on some systems where configure will not decide to define it.
! 23694: cat >>conftest.undefs <<\_ACEOF
! 23695: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.23 millert 23696: _ACEOF
1.17 millert 23697:
1.25 ! millert 23698: # Break up conftest.defines because some shells have a limit on the size
! 23699: # of here documents, and old seds have small limits too (100 cmds).
! 23700: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
! 23701: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
! 23702: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
! 23703: echo ' :' >>$CONFIG_STATUS
! 23704: rm -f conftest.tail
! 23705: while grep . conftest.defines >/dev/null
! 23706: do
! 23707: # Write a limited-size here document to $tmp/defines.sed.
! 23708: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
! 23709: # Speed up: don't consider the non `#define' lines.
! 23710: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
! 23711: # Work around the forget-to-reset-the-flag bug.
! 23712: echo 't clr' >>$CONFIG_STATUS
! 23713: echo ': clr' >>$CONFIG_STATUS
! 23714: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
! 23715: echo 'CEOF
! 23716: sed -f $tmp/defines.sed $tmp/in >$tmp/out
! 23717: rm -f $tmp/in
! 23718: mv $tmp/out $tmp/in
! 23719: ' >>$CONFIG_STATUS
! 23720: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
! 23721: rm -f conftest.defines
! 23722: mv conftest.tail conftest.defines
1.23 millert 23723: done
1.25 ! millert 23724: rm -f conftest.defines
! 23725: echo ' fi # grep' >>$CONFIG_STATUS
! 23726: echo >>$CONFIG_STATUS
1.1 millert 23727:
1.25 ! millert 23728: # Break up conftest.undefs because some shells have a limit on the size
! 23729: # of here documents, and old seds have small limits too (100 cmds).
! 23730: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
! 23731: rm -f conftest.tail
! 23732: while grep . conftest.undefs >/dev/null
! 23733: do
! 23734: # Write a limited-size here document to $tmp/undefs.sed.
! 23735: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
! 23736: # Speed up: don't consider the non `#undef'
! 23737: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
! 23738: # Work around the forget-to-reset-the-flag bug.
! 23739: echo 't clr' >>$CONFIG_STATUS
! 23740: echo ': clr' >>$CONFIG_STATUS
! 23741: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
! 23742: echo 'CEOF
! 23743: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
! 23744: rm -f $tmp/in
! 23745: mv $tmp/out $tmp/in
! 23746: ' >>$CONFIG_STATUS
! 23747: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
! 23748: rm -f conftest.undefs
! 23749: mv conftest.tail conftest.undefs
! 23750: done
! 23751: rm -f conftest.undefs
1.1 millert 23752:
1.25 ! millert 23753: cat >>$CONFIG_STATUS <<\_ACEOF
! 23754: # Let's still pretend it is `configure' which instantiates (i.e., don't
! 23755: # use $as_me), people would be surprised to read:
! 23756: # /* config.h. Generated by config.status. */
! 23757: if test x"$ac_file" = x-; then
! 23758: echo "/* Generated by configure. */" >$tmp/config.h
! 23759: else
! 23760: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
! 23761: fi
! 23762: cat $tmp/in >>$tmp/config.h
! 23763: rm -f $tmp/in
! 23764: if test x"$ac_file" != x-; then
! 23765: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
! 23766: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
! 23767: echo "$as_me: $ac_file is unchanged" >&6;}
! 23768: else
! 23769: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
! 23770: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 23771: X"$ac_file" : 'X\(//\)[^/]' \| \
! 23772: X"$ac_file" : 'X\(//\)$' \| \
! 23773: X"$ac_file" : 'X\(/\)' \| \
! 23774: . : '\(.\)' 2>/dev/null ||
! 23775: echo X"$ac_file" |
! 23776: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 23777: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 23778: /^X\(\/\/\)$/{ s//\1/; q; }
! 23779: /^X\(\/\).*/{ s//\1/; q; }
! 23780: s/.*/./; q'`
! 23781: { if $as_mkdir_p; then
! 23782: mkdir -p "$ac_dir"
! 23783: else
! 23784: as_dir="$ac_dir"
! 23785: as_dirs=
! 23786: while test ! -d "$as_dir"; do
! 23787: as_dirs="$as_dir $as_dirs"
! 23788: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 23789: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 23790: X"$as_dir" : 'X\(//\)[^/]' \| \
! 23791: X"$as_dir" : 'X\(//\)$' \| \
! 23792: X"$as_dir" : 'X\(/\)' \| \
! 23793: . : '\(.\)' 2>/dev/null ||
! 23794: echo X"$as_dir" |
! 23795: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 23796: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 23797: /^X\(\/\/\)$/{ s//\1/; q; }
! 23798: /^X\(\/\).*/{ s//\1/; q; }
! 23799: s/.*/./; q'`
! 23800: done
! 23801: test ! -n "$as_dirs" || mkdir $as_dirs
! 23802: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 23803: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 23804: { (exit 1); exit 1; }; }; }
1.1 millert 23805:
1.25 ! millert 23806: rm -f $ac_file
! 23807: mv $tmp/config.h $ac_file
! 23808: fi
! 23809: else
! 23810: cat $tmp/config.h
! 23811: rm -f $tmp/config.h
! 23812: fi
! 23813: done
! 23814: _ACEOF
! 23815: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 23816:
1.25 ! millert 23817: #
! 23818: # CONFIG_COMMANDS section.
! 23819: #
! 23820: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
! 23821: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
! 23822: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
! 23823: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
! 23824: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 23825: X"$ac_dest" : 'X\(//\)[^/]' \| \
! 23826: X"$ac_dest" : 'X\(//\)$' \| \
! 23827: X"$ac_dest" : 'X\(/\)' \| \
! 23828: . : '\(.\)' 2>/dev/null ||
! 23829: echo X"$ac_dest" |
! 23830: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 23831: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 23832: /^X\(\/\/\)$/{ s//\1/; q; }
! 23833: /^X\(\/\).*/{ s//\1/; q; }
! 23834: s/.*/./; q'`
! 23835: { if $as_mkdir_p; then
! 23836: mkdir -p "$ac_dir"
! 23837: else
! 23838: as_dir="$ac_dir"
! 23839: as_dirs=
! 23840: while test ! -d "$as_dir"; do
! 23841: as_dirs="$as_dir $as_dirs"
! 23842: as_dir=`(dirname "$as_dir") 2>/dev/null ||
! 23843: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 23844: X"$as_dir" : 'X\(//\)[^/]' \| \
! 23845: X"$as_dir" : 'X\(//\)$' \| \
! 23846: X"$as_dir" : 'X\(/\)' \| \
! 23847: . : '\(.\)' 2>/dev/null ||
! 23848: echo X"$as_dir" |
! 23849: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
! 23850: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
! 23851: /^X\(\/\/\)$/{ s//\1/; q; }
! 23852: /^X\(\/\).*/{ s//\1/; q; }
! 23853: s/.*/./; q'`
! 23854: done
! 23855: test ! -n "$as_dirs" || mkdir $as_dirs
! 23856: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
! 23857: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
! 23858: { (exit 1); exit 1; }; }; }
1.1 millert 23859:
1.25 ! millert 23860: ac_builddir=.
1.1 millert 23861:
1.25 ! millert 23862: if test "$ac_dir" != .; then
! 23863: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
! 23864: # A "../" for each directory in $ac_dir_suffix.
! 23865: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1.1 millert 23866: else
1.25 ! millert 23867: ac_dir_suffix= ac_top_builddir=
1.1 millert 23868: fi
23869:
1.25 ! millert 23870: case $srcdir in
! 23871: .) # No --srcdir option. We are building in place.
! 23872: ac_srcdir=.
! 23873: if test -z "$ac_top_builddir"; then
! 23874: ac_top_srcdir=.
1.1 millert 23875: else
1.25 ! millert 23876: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
! 23877: fi ;;
! 23878: [\\/]* | ?:[\\/]* ) # Absolute path.
! 23879: ac_srcdir=$srcdir$ac_dir_suffix;
! 23880: ac_top_srcdir=$srcdir ;;
! 23881: *) # Relative path.
! 23882: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
! 23883: ac_top_srcdir=$ac_top_builddir$srcdir ;;
! 23884: esac
1.1 millert 23885:
1.25 ! millert 23886: # Do not use `cd foo && pwd` to compute absolute paths, because
! 23887: # the directories may not exist.
! 23888: case `pwd` in
! 23889: .) ac_abs_builddir="$ac_dir";;
! 23890: *)
! 23891: case "$ac_dir" in
! 23892: .) ac_abs_builddir=`pwd`;;
! 23893: [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
! 23894: *) ac_abs_builddir=`pwd`/"$ac_dir";;
! 23895: esac;;
! 23896: esac
! 23897: case $ac_abs_builddir in
! 23898: .) ac_abs_top_builddir=${ac_top_builddir}.;;
! 23899: *)
! 23900: case ${ac_top_builddir}. in
! 23901: .) ac_abs_top_builddir=$ac_abs_builddir;;
! 23902: [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
! 23903: *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
! 23904: esac;;
! 23905: esac
! 23906: case $ac_abs_builddir in
! 23907: .) ac_abs_srcdir=$ac_srcdir;;
! 23908: *)
! 23909: case $ac_srcdir in
! 23910: .) ac_abs_srcdir=$ac_abs_builddir;;
! 23911: [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
! 23912: *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
! 23913: esac;;
! 23914: esac
! 23915: case $ac_abs_builddir in
! 23916: .) ac_abs_top_srcdir=$ac_top_srcdir;;
! 23917: *)
! 23918: case $ac_top_srcdir in
! 23919: .) ac_abs_top_srcdir=$ac_abs_builddir;;
! 23920: [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
! 23921: *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
! 23922: esac;;
! 23923: esac
1.1 millert 23924:
23925:
1.25 ! millert 23926: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
! 23927: echo "$as_me: executing $ac_dest commands" >&6;}
! 23928: case $ac_dest in
! 23929: libtool )
1.23 millert 23930:
1.25 ! millert 23931: # See if we are running on zsh, and set the options which allow our
! 23932: # commands through without removal of \ escapes.
! 23933: if test -n "${ZSH_VERSION+set}" ; then
! 23934: setopt NO_GLOB_SUBST
1.23 millert 23935: fi
23936:
1.25 ! millert 23937: cfgfile="${ofile}T"
! 23938: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
! 23939: $RM "$cfgfile"
1.23 millert 23940:
1.25 ! millert 23941: cat <<_LT_EOF >> "$cfgfile"
! 23942: #! $SHELL
1.23 millert 23943:
1.25 ! millert 23944: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
! 23945: # Generated automatically by config.status (GNU $PACKAGE$TIMESTAMP) $VERSION
! 23946: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 23947: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 23948: #
! 23949: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
! 23950: # Free Software Foundation, Inc.
! 23951: #
! 23952: # This file is part of GNU Libtool:
! 23953: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
! 23954: #
! 23955: # This program is free software; you can redistribute it and/or modify
! 23956: # it under the terms of the GNU General Public License as published by
! 23957: # the Free Software Foundation; either version 2 of the License, or
! 23958: # (at your option) any later version.
! 23959: #
! 23960: # This program is distributed in the hope that it will be useful, but
! 23961: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 23962: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 23963: # General Public License for more details.
1.1 millert 23964: #
1.25 ! millert 23965: # You should have received a copy of the GNU General Public License
! 23966: # along with this program; if not, write to the Free Software
! 23967: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1.1 millert 23968: #
1.25 ! millert 23969: # As a special exception to the GNU General Public License, if you
! 23970: # distribute this file as part of a program that contains a
! 23971: # configuration script generated by Autoconf, you may include it under
! 23972: # the same distribution terms that you use for the rest of that program.
! 23973:
! 23974:
1.9 millert 23975:
1.25 ! millert 23976: # The names of the tagged configurations supported by this script.
! 23977: available_tags=""
1.9 millert 23978:
1.25 ! millert 23979: # ### BEGIN LIBTOOL CONFIG
1.1 millert 23980:
1.25 ! millert 23981: # Which release of libtool.m4 was used?
! 23982: macro_version=$macro_version
! 23983: macro_revision=$macro_revision
1.1 millert 23984:
1.25 ! millert 23985: # Whether or not to build static libraries.
! 23986: build_old_libs=$enable_static
1.1 millert 23987:
1.25 ! millert 23988: # Whether or not to build shared libraries.
! 23989: build_libtool_libs=$enable_shared
1.1 millert 23990:
1.25 ! millert 23991: # What type of objects to build.
! 23992: pic_mode=$pic_mode
1.16 millert 23993:
1.25 ! millert 23994: # Whether or not to optimize for fast installation.
! 23995: fast_install=$enable_fast_install
1.16 millert 23996:
1.25 ! millert 23997: # The host system.
! 23998: host_alias=$host_alias
! 23999: host=$host
1.16 millert 24000:
1.25 ! millert 24001: # A sed program that does not truncate output.
! 24002: SED=$lt_SED
1.16 millert 24003:
1.25 ! millert 24004: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
! 24005: Xsed="\$SED -e s/^X//"
1.9 millert 24006:
1.25 ! millert 24007: # A grep program that handles long line.
! 24008: GREP=$lt_GREP
1.9 millert 24009:
1.25 ! millert 24010: # An ERE matcher.
! 24011: EGREP=$lt_EGREP
1.16 millert 24012:
1.25 ! millert 24013: # A literal string matcher.
! 24014: FGREP=$lt_FGREP
1.9 millert 24015:
1.25 ! millert 24016: # A BSD-compatible nm program.
! 24017: NM=$lt_NM
1.16 millert 24018:
1.25 ! millert 24019: # Whether we need soft or hard links.
! 24020: LN_S=$lt_LN_S
1.16 millert 24021:
1.25 ! millert 24022: # What is the maximum length of a command?
! 24023: max_cmd_len=$max_cmd_len
1.16 millert 24024:
1.25 ! millert 24025: # Object file suffix (normally "o").
! 24026: objext=$ac_objext
1.16 millert 24027:
1.25 ! millert 24028: # Executable file suffix (normally "").
! 24029: exeext=$exeext
1.16 millert 24030:
1.25 ! millert 24031: # How to create reloadable object files.
! 24032: reload_flag=$lt_reload_flag
! 24033: reload_cmds=$lt_reload_cmds
1.16 millert 24034:
1.25 ! millert 24035: # Method to check whether dependent libraries are shared objects.
! 24036: deplibs_check_method=$lt_deplibs_check_method
1.16 millert 24037:
1.25 ! millert 24038: # Command to use when deplibs_check_method == "file_magic".
! 24039: file_magic_cmd=$lt_file_magic_cmd
1.16 millert 24040:
1.25 ! millert 24041: # The archiver.
! 24042: AR=$lt_AR
! 24043: AR_FLAGS=$lt_AR_FLAGS
1.16 millert 24044:
1.25 ! millert 24045: # A symbol stripping program.
! 24046: STRIP=$lt_STRIP
1.16 millert 24047:
1.25 ! millert 24048: # Commands used to install an old-style archive.
! 24049: RANLIB=$lt_RANLIB
! 24050: old_postinstall_cmds=$lt_old_postinstall_cmds
! 24051: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.16 millert 24052:
1.25 ! millert 24053: # Take the output of nm and produce a listing of raw symbols and C names.
! 24054: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.16 millert 24055:
1.25 ! millert 24056: # Transform the output of nm in a proper C declaration.
! 24057: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.16 millert 24058:
1.25 ! millert 24059: # Transform the output of nm in a C name address pair.
! 24060: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.16 millert 24061:
1.25 ! millert 24062: # The name of the directory that contains temporary libtool files.
! 24063: objdir=$objdir
1.16 millert 24064:
1.25 ! millert 24065: # A C compiler.
! 24066: LTCC=$lt_CC
1.16 millert 24067:
1.25 ! millert 24068: # LTCC compiler flags.
! 24069: LTCFLAGS=$lt_CFLAGS
1.16 millert 24070:
1.25 ! millert 24071: # Shell to use when invoking shell scripts.
! 24072: SHELL=$lt_SHELL
1.9 millert 24073:
1.25 ! millert 24074: # An echo program that does not interpret backslashes.
! 24075: ECHO=$lt_ECHO
1.9 millert 24076:
1.25 ! millert 24077: # Used to examine libraries when file_magic_cmd begins "file".
! 24078: MAGIC_CMD=$MAGIC_CMD
1.9 millert 24079:
1.25 ! millert 24080: # Whether dlopen is supported.
! 24081: dlopen_support=$enable_dlopen
1.16 millert 24082:
1.25 ! millert 24083: # Whether dlopen of programs is supported.
! 24084: dlopen_self=$enable_dlopen_self
1.9 millert 24085:
1.25 ! millert 24086: # Whether dlopen of statically linked programs is supported.
! 24087: dlopen_self_static=$enable_dlopen_self_static
1.16 millert 24088:
1.25 ! millert 24089: # Does compiler simultaneously support -c and -o options?
! 24090: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.9 millert 24091:
1.25 ! millert 24092: # Must we lock files when doing compilation?
! 24093: need_locks=$lt_need_locks
1.9 millert 24094:
1.25 ! millert 24095: # Old archive suffix (normally "a").
! 24096: libext=$libext
1.9 millert 24097:
1.25 ! millert 24098: # Shared library suffix (normally ".so").
! 24099: shrext_cmds=$lt_shrext_cmds
1.9 millert 24100:
1.25 ! millert 24101: # The commands to extract the exported symbol list from a shared archive.
! 24102: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.9 millert 24103:
1.25 ! millert 24104: # Variables whose values should be saved in libtool wrapper scripts and
! 24105: # restored at link time.
! 24106: variables_saved_for_relink=$lt_variables_saved_for_relink
1.16 millert 24107:
1.25 ! millert 24108: # Do we need the "lib" prefix for modules?
! 24109: need_lib_prefix=$need_lib_prefix
1.16 millert 24110:
1.25 ! millert 24111: # Do we need a version for libraries?
! 24112: need_version=$need_version
1.16 millert 24113:
1.25 ! millert 24114: # Library versioning type.
! 24115: version_type=$version_type
1.9 millert 24116:
1.25 ! millert 24117: # Shared library runtime path variable.
! 24118: runpath_var=$runpath_var
1.9 millert 24119:
1.25 ! millert 24120: # Shared library path variable.
! 24121: shlibpath_var=$shlibpath_var
1.9 millert 24122:
1.25 ! millert 24123: # Is shibpath searched before the hard-coded library search path?
! 24124: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.9 millert 24125:
1.25 ! millert 24126: # Format of library name prefix.
! 24127: libname_spec=$lt_libname_spec
1.9 millert 24128:
1.25 ! millert 24129: # List of archive names. First name is the real one,the rest are links.
! 24130: # The last name is the one that the linker finds with -lNAME
! 24131: library_names_spec=$lt_library_names_spec
1.9 millert 24132:
1.25 ! millert 24133: # The coded name of the library,if different from the real name.
! 24134: soname_spec=$lt_soname_spec
1.9 millert 24135:
1.25 ! millert 24136: # Command to use after installation of a shared archive.
! 24137: postinstall_cmds=$lt_postinstall_cmds
1.9 millert 24138:
1.25 ! millert 24139: # Command to use after uninstallation of a shared archive.
! 24140: postuninstall_cmds=$lt_postuninstall_cmds
1.9 millert 24141:
1.25 ! millert 24142: # Commands used to finish a libtool library installation in a directory.
! 24143: finish_cmds=$lt_finish_cmds
1.9 millert 24144:
1.25 ! millert 24145: # As "finish_cmds",except a single script fragment to be evaled but
! 24146: # not shown.
! 24147: finish_eval=$lt_finish_eval
1.9 millert 24148:
1.25 ! millert 24149: # Whether we should hardcode library paths into libraries.
! 24150: hardcode_into_libs=$hardcode_into_libs
1.9 millert 24151:
1.25 ! millert 24152: # Compile-time system search path for libraries.
! 24153: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.9 millert 24154:
1.25 ! millert 24155: # Run-time system search path for libraries.
! 24156: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.9 millert 24157:
1.25 ! millert 24158: # Commands to strip libraries.
! 24159: old_striplib=$lt_old_striplib
! 24160: striplib=$lt_striplib
1.9 millert 24161:
24162:
1.25 ! millert 24163: # The linker used to build libraries.
! 24164: LD=$lt_LD
1.9 millert 24165:
1.25 ! millert 24166: # Commands used to build an old-style archive.
! 24167: old_archive_cmds=$lt_old_archive_cmds
1.9 millert 24168:
1.25 ! millert 24169: # A language specific compiler.
! 24170: CC=$lt_compiler
1.9 millert 24171:
1.25 ! millert 24172: # Is the compiler the GNU C compiler?
! 24173: with_gcc=$GCC
1.9 millert 24174:
1.25 ! millert 24175: # Compiler flag to turn off builtin functions.
! 24176: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.9 millert 24177:
1.25 ! millert 24178: # How to pass a linker flag through the compiler.
! 24179: wl=$lt_lt_prog_compiler_wl
1.9 millert 24180:
1.25 ! millert 24181: # Additional compiler flags for building library objects.
! 24182: pic_flag=$lt_lt_prog_compiler_pic
1.9 millert 24183:
1.25 ! millert 24184: # Compiler flag to prevent dynamic linking.
! 24185: link_static_flag=$lt_lt_prog_compiler_static
1.16 millert 24186:
1.25 ! millert 24187: # Whether or not to add -lc for building shared libraries.
! 24188: build_libtool_need_lc=$archive_cmds_need_lc
1.16 millert 24189:
1.25 ! millert 24190: # Whether or not to disallow shared libs when runtime libs are static.
! 24191: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.16 millert 24192:
1.25 ! millert 24193: # Compiler flag to allow reflexive dlopens.
! 24194: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.16 millert 24195:
1.25 ! millert 24196: # Compiler flag to generate shared objects directly from archives.
! 24197: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.1 millert 24198:
1.25 ! millert 24199: # Create an old-style archive from a shared archive.
! 24200: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.9 millert 24201:
1.25 ! millert 24202: # Create a temporary old-style archive to link instead of a shared archive.
! 24203: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.9 millert 24204:
1.25 ! millert 24205: # Commands used to build a shared archive.
! 24206: archive_cmds=$lt_archive_cmds
! 24207: archive_expsym_cmds=$lt_archive_expsym_cmds
1.16 millert 24208:
1.25 ! millert 24209: # Commands used to build a loadable module if different from building
! 24210: # a shared archive.
! 24211: module_cmds=$lt_module_cmds
! 24212: module_expsym_cmds=$lt_module_expsym_cmds
1.1 millert 24213:
1.25 ! millert 24214: # Whether we are building with GNU ld or not.
! 24215: with_gnu_ld=$lt_with_gnu_ld
1.1 millert 24216:
1.25 ! millert 24217: # Flag that allows shared libraries with undefined symbols to be built.
! 24218: allow_undefined_flag=$lt_allow_undefined_flag
1.9 millert 24219:
1.25 ! millert 24220: # Flag that enforces no undefined symbols.
! 24221: no_undefined_flag=$lt_no_undefined_flag
1.1 millert 24222:
1.25 ! millert 24223: # Flag to hardcode \$libdir into a binary during linking.
! 24224: # This must work even if \$libdir does not exist
! 24225: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.9 millert 24226:
1.25 ! millert 24227: # If ld is used when linking,flag to hardcode \$libdir into a binary
! 24228: # during linking. This must work even if \$libdir does not exist.
! 24229: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.1 millert 24230:
1.25 ! millert 24231: # Whether we need a single "-rpath" flag with a separated argument.
! 24232: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.1 millert 24233:
1.25 ! millert 24234: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
! 24235: # DIR into the resulting binary.
! 24236: hardcode_direct=$hardcode_direct
1.1 millert 24237:
1.25 ! millert 24238: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
! 24239: # into the resulting binary.
! 24240: hardcode_minus_L=$hardcode_minus_L
1.16 millert 24241:
1.25 ! millert 24242: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
! 24243: # into the resulting binary.
! 24244: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.16 millert 24245:
1.25 ! millert 24246: # Set to "yes" if building a shared library automatically hardcodes DIR
! 24247: # into the library and all subsequent libraries and executables linked
! 24248: # against it.
! 24249: hardcode_automatic=$hardcode_automatic
1.16 millert 24250:
1.25 ! millert 24251: # Set to yes if linker adds runtime paths of dependent libraries
! 24252: # to runtime path list.
! 24253: inherit_rpath=$inherit_rpath
1.1 millert 24254:
1.25 ! millert 24255: # Whether libtool must link a program against all its dependency libraries.
! 24256: link_all_deplibs=$link_all_deplibs
1.1 millert 24257:
1.25 ! millert 24258: # Fix the shell variable \$srcfile for the compiler.
! 24259: fix_srcfile_path=$lt_fix_srcfile_path
1.1 millert 24260:
1.25 ! millert 24261: # Set to "yes" if exported symbols are required.
! 24262: always_export_symbols=$always_export_symbols
1.9 millert 24263:
1.25 ! millert 24264: # The commands to list exported symbols.
! 24265: export_symbols_cmds=$lt_export_symbols_cmds
1.1 millert 24266:
1.25 ! millert 24267: # Symbols that should not be listed in the preloaded symbols.
! 24268: exclude_expsyms=$lt_exclude_expsyms
1.1 millert 24269:
1.25 ! millert 24270: # Symbols that must always be exported.
! 24271: include_expsyms=$lt_include_expsyms
1.1 millert 24272:
1.25 ! millert 24273: # How to hardcode a shared library path into an executable.
! 24274: hardcode_action=$hardcode_action
1.1 millert 24275:
1.25 ! millert 24276: # ### END LIBTOOL CONFIG
1.1 millert 24277:
1.25 ! millert 24278: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 24279: # if CDPATH is set.
! 24280: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 millert 24281:
1.25 ! millert 24282: _LT_EOF
1.1 millert 24283:
1.25 ! millert 24284: case $host_os in
! 24285: aix3*)
! 24286: cat <<\_LT_EOF >> "$cfgfile"
! 24287: # AIX sometimes has problems with the GCC collect2 program. For some
! 24288: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 24289: # vanish in a puff of smoke.
! 24290: if test "X${COLLECT_NAMES+set}" != Xset; then
! 24291: COLLECT_NAMES=
! 24292: export COLLECT_NAMES
! 24293: fi
! 24294: _LT_EOF
! 24295: ;;
! 24296: esac
1.1 millert 24297:
24298:
1.25 ! millert 24299: ltmain="$ac_aux_dir/ltmain.sh"
1.1 millert 24300:
1.9 millert 24301:
1.25 ! millert 24302: # We use sed instead of cat because bash on DJGPP gets confused if
! 24303: # if finds mixed CR/LF and LF-only lines. Since sed operates in
! 24304: # text mode, it properly converts lines to CR/LF. This bash problem
! 24305: # is reportedly fixed, but why not run on old versions too?
! 24306: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.9 millert 24307:
1.25 ! millert 24308: mv -f "$cfgfile" "$ofile" ||
! 24309: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
! 24310: chmod +x "$ofile"
1.9 millert 24311:
1.25 ! millert 24312: ;;
! 24313: esac
1.9 millert 24314: done
1.16 millert 24315: _ACEOF
1.1 millert 24316:
1.16 millert 24317: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 24318:
1.9 millert 24319: { (exit 0); exit 0; }
1.16 millert 24320: _ACEOF
1.1 millert 24321: chmod +x $CONFIG_STATUS
1.9 millert 24322: ac_clean_files=$ac_clean_files_save
1.1 millert 24323:
1.16 millert 24324:
1.9 millert 24325: # configure is writing to config.log, and then calls config.status.
24326: # config.status does its own redirection, appending to config.log.
24327: # Unfortunately, on DOS this fails, as config.log is still kept open
24328: # by configure, so config.status won't be able to write to it; its
24329: # output is simply discarded. So we exec the FD to /dev/null,
24330: # effectively closing config.log, so it can be properly (re)opened and
24331: # appended to by config.status. When coming back to configure, we
24332: # need to make the FD available again.
24333: if test "$no_create" != yes; then
24334: ac_cs_success=:
1.16 millert 24335: ac_config_status_args=
24336: test "$silent" = yes &&
24337: ac_config_status_args="$ac_config_status_args --quiet"
1.9 millert 24338: exec 5>/dev/null
1.16 millert 24339: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9 millert 24340: exec 5>>config.log
24341: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24342: # would make configure fail if this is the last instruction.
24343: $ac_cs_success || { (exit 1); exit 1; }
24344: fi
1.1 millert 24345:
1.16 millert 24346:
1.1 millert 24347: if test "$with_pam" = "yes"; then
24348: case $host in
24349: *-*-linux*)
1.17 millert 24350: { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24351: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1 millert 24352: ;;
24353: esac
24354: fi
1.23 millert 24355:
24356:
24357:
24358:
24359:
24360:
24361:
24362:
24363:
24364:
24365:
24366:
24367:
24368:
24369:
24370:
24371:
24372:
24373:
24374:
24375:
24376:
24377:
24378:
24379:
24380:
24381:
24382:
24383:
24384:
24385:
24386:
24387:
24388:
24389:
24390:
24391:
24392:
24393:
24394:
24395:
24396:
24397:
24398:
24399:
24400:
24401:
24402:
24403:
24404:
24405:
24406:
24407:
24408:
24409:
24410:
24411:
24412:
24413:
24414:
24415:
24416:
24417:
24418:
24419:
24420:
24421:
24422:
24423:
24424:
24425:
24426:
24427:
24428:
24429:
24430:
24431:
24432:
24433:
24434:
24435:
24436:
24437:
24438:
24439:
24440:
24441:
24442:
24443:
24444:
24445:
24446:
24447:
24448:
24449:
24450:
24451:
24452:
24453:
24454:
24455:
24456:
24457:
24458:
24459:
24460:
24461:
24462:
24463:
24464:
24465:
24466:
24467:
24468:
24469:
24470:
24471:
24472:
24473:
24474:
24475:
24476:
24477:
24478:
1.16 millert 24479:
24480:
24481:
24482:
24483:
24484:
24485:
24486:
24487:
24488:
24489:
24490:
24491:
24492:
1.9 millert 24493: