Annotation of src/usr.bin/sudo/configure, Revision 1.23
1.1 millert 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.23 ! millert 3: # Generated by GNU Autoconf 2.57 for sudo 1.6.8.
1.1 millert 4: #
1.16 millert 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.9 millert 6: # Free Software Foundation, Inc.
1.1 millert 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.16 millert 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
1.1 millert 12:
1.16 millert 13: # Be Bourne compatible
14: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15: emulate sh
16: NULLCMD=:
17: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18: # is contrary to our usage. Disable this feature.
19: alias -g '${1+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
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
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
221: as_mkdir_p=false
222: fi
223:
1.9 millert 224: as_executable_p="test -f"
225:
1.16 millert 226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.9 millert 231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
1.16 millert 240: $as_unset CDPATH
241:
1.9 millert 242:
1.23 ! millert 243:
! 244: # Check that we are running under the correct shell.
! 245: SHELL=${CONFIG_SHELL-/bin/sh}
! 246:
! 247: case X$ECHO in
! 248: X*--fallback-echo)
! 249: # Remove one level of quotation (which was required for Make).
! 250: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
! 251: ;;
! 252: esac
! 253:
! 254: echo=${ECHO-echo}
! 255: if test "X$1" = X--no-reexec; then
! 256: # Discard the --no-reexec flag, and continue.
! 257: shift
! 258: elif test "X$1" = X--fallback-echo; then
! 259: # Avoid inline document here, it may be left over
! 260: :
! 261: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
! 262: # Yippee, $echo works!
! 263: :
! 264: else
! 265: # Restart under the correct shell.
! 266: exec $SHELL "$0" --no-reexec ${1+"$@"}
! 267: fi
! 268:
! 269: if test "X$1" = X--fallback-echo; then
! 270: # used as fallback echo
! 271: shift
! 272: cat <<EOF
! 273: $*
! 274: EOF
! 275: exit 0
! 276: fi
! 277:
! 278: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 279: # if CDPATH is set.
! 280: if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
! 281:
! 282: if test -z "$ECHO"; then
! 283: if test "X${echo_test_string+set}" != Xset; then
! 284: # find a string as large as possible, as long as the shell can cope with it
! 285: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
! 286: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
! 287: if (echo_test_string="`eval $cmd`") 2>/dev/null &&
! 288: echo_test_string="`eval $cmd`" &&
! 289: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
! 290: then
! 291: break
! 292: fi
! 293: done
! 294: fi
! 295:
! 296: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 297: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 298: test "X$echo_testing_string" = "X$echo_test_string"; then
! 299: :
! 300: else
! 301: # The Solaris, AIX, and Digital Unix default echo programs unquote
! 302: # backslashes. This makes it impossible to quote backslashes using
! 303: # echo "$something" | sed 's/\\/\\\\/g'
! 304: #
! 305: # So, first we look for a working echo in the user's PATH.
! 306:
! 307: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 308: for dir in $PATH /usr/ucb; do
! 309: IFS="$lt_save_ifs"
! 310: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
! 311: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
! 312: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
! 313: test "X$echo_testing_string" = "X$echo_test_string"; then
! 314: echo="$dir/echo"
! 315: break
! 316: fi
! 317: done
! 318: IFS="$lt_save_ifs"
! 319:
! 320: if test "X$echo" = Xecho; then
! 321: # We didn't find a better echo, so look for alternatives.
! 322: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
! 323: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
! 324: test "X$echo_testing_string" = "X$echo_test_string"; then
! 325: # This shell has a builtin print -r that does the trick.
! 326: echo='print -r'
! 327: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
! 328: test "X$CONFIG_SHELL" != X/bin/ksh; then
! 329: # If we have ksh, try running configure again with it.
! 330: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
! 331: export ORIGINAL_CONFIG_SHELL
! 332: CONFIG_SHELL=/bin/ksh
! 333: export CONFIG_SHELL
! 334: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
! 335: else
! 336: # Try using printf.
! 337: echo='printf %s\n'
! 338: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
! 339: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
! 340: test "X$echo_testing_string" = "X$echo_test_string"; then
! 341: # Cool, printf works
! 342: :
! 343: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 344: test "X$echo_testing_string" = 'X\t' &&
! 345: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 346: test "X$echo_testing_string" = "X$echo_test_string"; then
! 347: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
! 348: export CONFIG_SHELL
! 349: SHELL="$CONFIG_SHELL"
! 350: export SHELL
! 351: echo="$CONFIG_SHELL $0 --fallback-echo"
! 352: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
! 353: test "X$echo_testing_string" = 'X\t' &&
! 354: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
! 355: test "X$echo_testing_string" = "X$echo_test_string"; then
! 356: echo="$CONFIG_SHELL $0 --fallback-echo"
! 357: else
! 358: # maybe with a smaller string...
! 359: prev=:
! 360:
! 361: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
! 362: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
! 363: then
! 364: break
! 365: fi
! 366: prev="$cmd"
! 367: done
! 368:
! 369: if test "$prev" != 'sed 50q "$0"'; then
! 370: echo_test_string=`eval $prev`
! 371: export echo_test_string
! 372: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
! 373: else
! 374: # Oops. We lost completely, so just stick with echo.
! 375: echo=echo
! 376: fi
! 377: fi
! 378: fi
! 379: fi
! 380: fi
! 381: fi
! 382:
! 383: # Copy echo and quote the copy suitably for passing to libtool from
! 384: # the Makefile, instead of quoting the original, which is used later.
! 385: ECHO=$echo
! 386: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
! 387: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
! 388: fi
! 389:
! 390:
! 391:
! 392:
1.9 millert 393: # Name of the host.
394: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395: # so uname gets run too.
396: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397:
398: exec 6>&1
399:
400: #
401: # Initializations.
402: #
1.1 millert 403: ac_default_prefix=/usr/local
1.16 millert 404: ac_config_libobj_dir=.
1.9 millert 405: cross_compiling=no
406: subdirs=
1.16 millert 407: MFLAGS=
408: MAKEFLAGS=
1.9 millert 409: SHELL=${CONFIG_SHELL-/bin/sh}
410:
411: # Maximum number of lines to put in a shell here document.
412: # This variable seems obsolete. It should probably be removed, and
413: # only ac_max_sed_lines should be used.
414: : ${ac_max_here_lines=38}
415:
1.16 millert 416: # Identity of this package.
417: PACKAGE_NAME='sudo'
418: PACKAGE_TARNAME='sudo'
1.23 ! millert 419: PACKAGE_VERSION='1.6.8'
! 420: PACKAGE_STRING='sudo 1.6.8'
1.16 millert 421: PACKAGE_BUGREPORT=''
422:
1.9 millert 423: # Factoring default headers for most tests.
424: ac_includes_default="\
425: #include <stdio.h>
426: #if HAVE_SYS_TYPES_H
427: # include <sys/types.h>
428: #endif
429: #if HAVE_SYS_STAT_H
430: # include <sys/stat.h>
431: #endif
432: #if STDC_HEADERS
433: # include <stdlib.h>
434: # include <stddef.h>
435: #else
436: # if HAVE_STDLIB_H
437: # include <stdlib.h>
438: # endif
439: #endif
440: #if HAVE_STRING_H
441: # if !STDC_HEADERS && HAVE_MEMORY_H
442: # include <memory.h>
443: # endif
444: # include <string.h>
445: #endif
446: #if HAVE_STRINGS_H
447: # include <strings.h>
448: #endif
449: #if HAVE_INTTYPES_H
450: # include <inttypes.h>
451: #else
452: # if HAVE_STDINT_H
453: # include <stdint.h>
454: # endif
455: #endif
456: #if HAVE_UNISTD_H
457: # include <unistd.h>
458: #endif"
1.1 millert 459:
1.23 ! millert 460: 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 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 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 UNAMEPROG TRPROG NROFFPROG YACC LIBOBJS ALLOCA KRB5CONFIG LTLIBOBJS'
1.16 millert 461: ac_subst_files=''
462:
1.1 millert 463: # Initialize some variables set by options.
1.9 millert 464: ac_init_help=
465: ac_init_version=false
1.1 millert 466: # The variables have the same names as the options, with
467: # dashes changed to underlines.
1.9 millert 468: cache_file=/dev/null
1.1 millert 469: exec_prefix=NONE
470: no_create=
471: no_recursion=
472: prefix=NONE
473: program_prefix=NONE
474: program_suffix=NONE
475: program_transform_name=s,x,x,
476: silent=
477: site=
478: srcdir=
479: verbose=
480: x_includes=NONE
481: x_libraries=NONE
1.9 millert 482:
483: # Installation directory options.
484: # These are left unexpanded so users can "make install exec_prefix=/foo"
485: # and all the variables that are supposed to be based on exec_prefix
486: # by default will actually change.
487: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 millert 488: bindir='${exec_prefix}/bin'
489: sbindir='${exec_prefix}/sbin'
490: libexecdir='${exec_prefix}/libexec'
491: datadir='${prefix}/share'
492: sysconfdir='${prefix}/etc'
493: sharedstatedir='${prefix}/com'
494: localstatedir='${prefix}/var'
495: libdir='${exec_prefix}/lib'
496: includedir='${prefix}/include'
497: oldincludedir='/usr/include'
498: infodir='${prefix}/info'
499: mandir='${prefix}/man'
500:
501: ac_prev=
502: for ac_option
503: do
504: # If the previous option needs an argument, assign it.
505: if test -n "$ac_prev"; then
506: eval "$ac_prev=\$ac_option"
507: ac_prev=
508: continue
509: fi
510:
1.9 millert 511: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 millert 512:
513: # Accept the important Cygnus configure options, so we can diagnose typos.
514:
1.9 millert 515: case $ac_option in
1.1 millert 516:
517: -bindir | --bindir | --bindi | --bind | --bin | --bi)
518: ac_prev=bindir ;;
519: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9 millert 520: bindir=$ac_optarg ;;
1.1 millert 521:
522: -build | --build | --buil | --bui | --bu)
1.9 millert 523: ac_prev=build_alias ;;
1.1 millert 524: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9 millert 525: build_alias=$ac_optarg ;;
1.1 millert 526:
527: -cache-file | --cache-file | --cache-fil | --cache-fi \
528: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
529: ac_prev=cache_file ;;
530: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
531: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9 millert 532: cache_file=$ac_optarg ;;
533:
534: --config-cache | -C)
535: cache_file=config.cache ;;
1.1 millert 536:
537: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
538: ac_prev=datadir ;;
539: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
540: | --da=*)
1.9 millert 541: datadir=$ac_optarg ;;
1.1 millert 542:
543: -disable-* | --disable-*)
1.9 millert 544: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 millert 545: # Reject names that are not valid shell variable names.
1.9 millert 546: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
548: { (exit 1); exit 1; }; }
549: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
550: eval "enable_$ac_feature=no" ;;
1.1 millert 551:
552: -enable-* | --enable-*)
1.9 millert 553: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 millert 554: # Reject names that are not valid shell variable names.
1.9 millert 555: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557: { (exit 1); exit 1; }; }
558: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559: case $ac_option in
560: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 561: *) ac_optarg=yes ;;
562: esac
1.9 millert 563: eval enable_$ac_feature='$ac_optarg' ;;
1.1 millert 564:
565: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
566: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
567: | --exec | --exe | --ex)
568: ac_prev=exec_prefix ;;
569: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
570: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
571: | --exec=* | --exe=* | --ex=*)
1.9 millert 572: exec_prefix=$ac_optarg ;;
1.1 millert 573:
574: -gas | --gas | --ga | --g)
575: # Obsolete; use --with-gas.
576: with_gas=yes ;;
577:
1.9 millert 578: -help | --help | --hel | --he | -h)
579: ac_init_help=long ;;
580: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
581: ac_init_help=recursive ;;
582: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
583: ac_init_help=short ;;
1.1 millert 584:
585: -host | --host | --hos | --ho)
1.9 millert 586: ac_prev=host_alias ;;
1.1 millert 587: -host=* | --host=* | --hos=* | --ho=*)
1.9 millert 588: host_alias=$ac_optarg ;;
1.1 millert 589:
590: -includedir | --includedir | --includedi | --included | --include \
591: | --includ | --inclu | --incl | --inc)
592: ac_prev=includedir ;;
593: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
594: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9 millert 595: includedir=$ac_optarg ;;
1.1 millert 596:
597: -infodir | --infodir | --infodi | --infod | --info | --inf)
598: ac_prev=infodir ;;
599: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9 millert 600: infodir=$ac_optarg ;;
1.1 millert 601:
602: -libdir | --libdir | --libdi | --libd)
603: ac_prev=libdir ;;
604: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9 millert 605: libdir=$ac_optarg ;;
1.1 millert 606:
607: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
608: | --libexe | --libex | --libe)
609: ac_prev=libexecdir ;;
610: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
611: | --libexe=* | --libex=* | --libe=*)
1.9 millert 612: libexecdir=$ac_optarg ;;
1.1 millert 613:
614: -localstatedir | --localstatedir | --localstatedi | --localstated \
615: | --localstate | --localstat | --localsta | --localst \
616: | --locals | --local | --loca | --loc | --lo)
617: ac_prev=localstatedir ;;
618: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
619: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
620: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.9 millert 621: localstatedir=$ac_optarg ;;
1.1 millert 622:
623: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
624: ac_prev=mandir ;;
625: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9 millert 626: mandir=$ac_optarg ;;
1.1 millert 627:
628: -nfp | --nfp | --nf)
629: # Obsolete; use --without-fp.
630: with_fp=no ;;
631:
632: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16 millert 633: | --no-cr | --no-c | -n)
1.1 millert 634: no_create=yes ;;
635:
636: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
637: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638: no_recursion=yes ;;
639:
640: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
641: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
642: | --oldin | --oldi | --old | --ol | --o)
643: ac_prev=oldincludedir ;;
644: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
645: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
646: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9 millert 647: oldincludedir=$ac_optarg ;;
1.1 millert 648:
649: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
650: ac_prev=prefix ;;
651: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9 millert 652: prefix=$ac_optarg ;;
1.1 millert 653:
654: -program-prefix | --program-prefix | --program-prefi | --program-pref \
655: | --program-pre | --program-pr | --program-p)
656: ac_prev=program_prefix ;;
657: -program-prefix=* | --program-prefix=* | --program-prefi=* \
658: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9 millert 659: program_prefix=$ac_optarg ;;
1.1 millert 660:
661: -program-suffix | --program-suffix | --program-suffi | --program-suff \
662: | --program-suf | --program-su | --program-s)
663: ac_prev=program_suffix ;;
664: -program-suffix=* | --program-suffix=* | --program-suffi=* \
665: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9 millert 666: program_suffix=$ac_optarg ;;
1.1 millert 667:
668: -program-transform-name | --program-transform-name \
669: | --program-transform-nam | --program-transform-na \
670: | --program-transform-n | --program-transform- \
671: | --program-transform | --program-transfor \
672: | --program-transfo | --program-transf \
673: | --program-trans | --program-tran \
674: | --progr-tra | --program-tr | --program-t)
675: ac_prev=program_transform_name ;;
676: -program-transform-name=* | --program-transform-name=* \
677: | --program-transform-nam=* | --program-transform-na=* \
678: | --program-transform-n=* | --program-transform-=* \
679: | --program-transform=* | --program-transfor=* \
680: | --program-transfo=* | --program-transf=* \
681: | --program-trans=* | --program-tran=* \
682: | --progr-tra=* | --program-tr=* | --program-t=*)
1.9 millert 683: program_transform_name=$ac_optarg ;;
1.1 millert 684:
685: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
686: | -silent | --silent | --silen | --sile | --sil)
687: silent=yes ;;
688:
689: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
690: ac_prev=sbindir ;;
691: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
692: | --sbi=* | --sb=*)
1.9 millert 693: sbindir=$ac_optarg ;;
1.1 millert 694:
695: -sharedstatedir | --sharedstatedir | --sharedstatedi \
696: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
697: | --sharedst | --shareds | --shared | --share | --shar \
698: | --sha | --sh)
699: ac_prev=sharedstatedir ;;
700: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
701: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
702: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
703: | --sha=* | --sh=*)
1.9 millert 704: sharedstatedir=$ac_optarg ;;
1.1 millert 705:
706: -site | --site | --sit)
707: ac_prev=site ;;
708: -site=* | --site=* | --sit=*)
1.9 millert 709: site=$ac_optarg ;;
1.1 millert 710:
711: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
712: ac_prev=srcdir ;;
713: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9 millert 714: srcdir=$ac_optarg ;;
1.1 millert 715:
716: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
717: | --syscon | --sysco | --sysc | --sys | --sy)
718: ac_prev=sysconfdir ;;
719: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
720: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9 millert 721: sysconfdir=$ac_optarg ;;
1.1 millert 722:
723: -target | --target | --targe | --targ | --tar | --ta | --t)
1.9 millert 724: ac_prev=target_alias ;;
1.1 millert 725: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9 millert 726: target_alias=$ac_optarg ;;
1.1 millert 727:
728: -v | -verbose | --verbose | --verbos | --verbo | --verb)
729: verbose=yes ;;
730:
1.9 millert 731: -version | --version | --versio | --versi | --vers | -V)
732: ac_init_version=: ;;
1.1 millert 733:
734: -with-* | --with-*)
1.9 millert 735: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 millert 736: # Reject names that are not valid shell variable names.
1.9 millert 737: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
738: { echo "$as_me: error: invalid package name: $ac_package" >&2
739: { (exit 1); exit 1; }; }
1.1 millert 740: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.9 millert 741: case $ac_option in
742: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 millert 743: *) ac_optarg=yes ;;
744: esac
1.9 millert 745: eval with_$ac_package='$ac_optarg' ;;
1.1 millert 746:
747: -without-* | --without-*)
1.9 millert 748: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 millert 749: # Reject names that are not valid shell variable names.
1.9 millert 750: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
751: { echo "$as_me: error: invalid package name: $ac_package" >&2
752: { (exit 1); exit 1; }; }
753: ac_package=`echo $ac_package | sed 's/-/_/g'`
754: eval "with_$ac_package=no" ;;
1.1 millert 755:
756: --x)
757: # Obsolete; use --with-x.
758: with_x=yes ;;
759:
760: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
761: | --x-incl | --x-inc | --x-in | --x-i)
762: ac_prev=x_includes ;;
763: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
764: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9 millert 765: x_includes=$ac_optarg ;;
1.1 millert 766:
767: -x-libraries | --x-libraries | --x-librarie | --x-librari \
768: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
769: ac_prev=x_libraries ;;
770: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
771: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9 millert 772: x_libraries=$ac_optarg ;;
1.1 millert 773:
1.9 millert 774: -*) { echo "$as_me: error: unrecognized option: $ac_option
775: Try \`$0 --help' for more information." >&2
776: { (exit 1); exit 1; }; }
1.1 millert 777: ;;
778:
1.9 millert 779: *=*)
780: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
781: # Reject names that are not valid shell variable names.
782: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
783: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
784: { (exit 1); exit 1; }; }
785: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
786: eval "$ac_envvar='$ac_optarg'"
787: export $ac_envvar ;;
788:
1.1 millert 789: *)
1.9 millert 790: # FIXME: should be removed in autoconf 3.0.
791: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
792: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
793: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
794: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 millert 795: ;;
796:
797: esac
798: done
799:
800: if test -n "$ac_prev"; then
1.9 millert 801: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
802: { echo "$as_me: error: missing argument to $ac_option" >&2
803: { (exit 1); exit 1; }; }
1.1 millert 804: fi
805:
1.9 millert 806: # Be sure to have absolute paths.
807: for ac_var in exec_prefix prefix
808: do
809: eval ac_val=$`echo $ac_var`
810: case $ac_val in
811: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1.16 millert 812: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9 millert 813: { (exit 1); exit 1; }; };;
814: esac
815: done
1.1 millert 816:
1.9 millert 817: # Be sure to have absolute paths.
818: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
819: localstatedir libdir includedir oldincludedir infodir mandir
1.1 millert 820: do
1.9 millert 821: eval ac_val=$`echo $ac_var`
822: case $ac_val in
823: [\\/$]* | ?:[\\/]* ) ;;
1.16 millert 824: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.9 millert 825: { (exit 1); exit 1; }; };;
1.1 millert 826: esac
827: done
828:
1.9 millert 829: # There might be people who depend on the old broken behavior: `$host'
830: # used to hold the argument of --host etc.
1.16 millert 831: # FIXME: To remove some day.
1.9 millert 832: build=$build_alias
833: host=$host_alias
834: target=$target_alias
835:
1.16 millert 836: # FIXME: To remove some day.
1.9 millert 837: if test "x$host_alias" != x; then
838: if test "x$build_alias" = x; then
839: cross_compiling=maybe
840: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
841: If a cross compiler is detected then cross compile mode will be used." >&2
842: elif test "x$build_alias" != "x$host_alias"; then
843: cross_compiling=yes
844: fi
845: fi
1.1 millert 846:
1.9 millert 847: ac_tool_prefix=
848: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 millert 849:
1.9 millert 850: test "$silent" = yes && exec 6>/dev/null
1.1 millert 851:
1.16 millert 852:
1.1 millert 853: # Find the source files, if location was not specified.
854: if test -z "$srcdir"; then
855: ac_srcdir_defaulted=yes
856: # Try the directory containing this script, then its parent.
1.16 millert 857: ac_confdir=`(dirname "$0") 2>/dev/null ||
858: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
859: X"$0" : 'X\(//\)[^/]' \| \
860: X"$0" : 'X\(//\)$' \| \
861: X"$0" : 'X\(/\)' \| \
862: . : '\(.\)' 2>/dev/null ||
863: echo X"$0" |
864: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
865: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
866: /^X\(\/\/\)$/{ s//\1/; q; }
867: /^X\(\/\).*/{ s//\1/; q; }
868: s/.*/./; q'`
1.1 millert 869: srcdir=$ac_confdir
870: if test ! -r $srcdir/$ac_unique_file; then
871: srcdir=..
872: fi
873: else
874: ac_srcdir_defaulted=no
875: fi
876: if test ! -r $srcdir/$ac_unique_file; then
877: if test "$ac_srcdir_defaulted" = yes; then
1.16 millert 878: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1.9 millert 879: { (exit 1); exit 1; }; }
1.1 millert 880: else
1.16 millert 881: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.9 millert 882: { (exit 1); exit 1; }; }
1.1 millert 883: fi
884: fi
1.16 millert 885: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
886: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
887: { (exit 1); exit 1; }; }
1.9 millert 888: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
889: ac_env_build_alias_set=${build_alias+set}
890: ac_env_build_alias_value=$build_alias
891: ac_cv_env_build_alias_set=${build_alias+set}
892: ac_cv_env_build_alias_value=$build_alias
893: ac_env_host_alias_set=${host_alias+set}
894: ac_env_host_alias_value=$host_alias
895: ac_cv_env_host_alias_set=${host_alias+set}
896: ac_cv_env_host_alias_value=$host_alias
897: ac_env_target_alias_set=${target_alias+set}
898: ac_env_target_alias_value=$target_alias
899: ac_cv_env_target_alias_set=${target_alias+set}
900: ac_cv_env_target_alias_value=$target_alias
901: ac_env_CC_set=${CC+set}
902: ac_env_CC_value=$CC
903: ac_cv_env_CC_set=${CC+set}
904: ac_cv_env_CC_value=$CC
905: ac_env_CFLAGS_set=${CFLAGS+set}
906: ac_env_CFLAGS_value=$CFLAGS
907: ac_cv_env_CFLAGS_set=${CFLAGS+set}
908: ac_cv_env_CFLAGS_value=$CFLAGS
909: ac_env_LDFLAGS_set=${LDFLAGS+set}
910: ac_env_LDFLAGS_value=$LDFLAGS
911: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
912: ac_cv_env_LDFLAGS_value=$LDFLAGS
913: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
914: ac_env_CPPFLAGS_value=$CPPFLAGS
915: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
916: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
917: ac_env_CPP_set=${CPP+set}
918: ac_env_CPP_value=$CPP
919: ac_cv_env_CPP_set=${CPP+set}
920: ac_cv_env_CPP_value=$CPP
1.23 ! millert 921: ac_env_CXX_set=${CXX+set}
! 922: ac_env_CXX_value=$CXX
! 923: ac_cv_env_CXX_set=${CXX+set}
! 924: ac_cv_env_CXX_value=$CXX
! 925: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
! 926: ac_env_CXXFLAGS_value=$CXXFLAGS
! 927: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
! 928: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
! 929: ac_env_CXXCPP_set=${CXXCPP+set}
! 930: ac_env_CXXCPP_value=$CXXCPP
! 931: ac_cv_env_CXXCPP_set=${CXXCPP+set}
! 932: ac_cv_env_CXXCPP_value=$CXXCPP
! 933: ac_env_F77_set=${F77+set}
! 934: ac_env_F77_value=$F77
! 935: ac_cv_env_F77_set=${F77+set}
! 936: ac_cv_env_F77_value=$F77
! 937: ac_env_FFLAGS_set=${FFLAGS+set}
! 938: ac_env_FFLAGS_value=$FFLAGS
! 939: ac_cv_env_FFLAGS_set=${FFLAGS+set}
! 940: ac_cv_env_FFLAGS_value=$FFLAGS
1.9 millert 941:
942: #
943: # Report the --help message.
944: #
945: if test "$ac_init_help" = "long"; then
946: # Omit some internal or obsolete options to make the list less imposing.
947: # This message is too long to be a string in the A/UX 3.1 sh.
1.16 millert 948: cat <<_ACEOF
1.23 ! millert 949: \`configure' configures sudo 1.6.8 to adapt to many kinds of systems.
1.9 millert 950:
951: Usage: $0 [OPTION]... [VAR=VALUE]...
952:
953: To assign environment variables (e.g., CC, CFLAGS...), specify them as
954: VAR=VALUE. See below for descriptions of some of the useful variables.
955:
956: Defaults for the options are specified in brackets.
957:
958: Configuration:
959: -h, --help display this help and exit
960: --help=short display options specific to this package
961: --help=recursive display the short help of all the included packages
962: -V, --version display version information and exit
963: -q, --quiet, --silent do not print \`checking...' messages
964: --cache-file=FILE cache test results in FILE [disabled]
965: -C, --config-cache alias for \`--cache-file=config.cache'
966: -n, --no-create do not create output files
967: --srcdir=DIR find the sources in DIR [configure dir or \`..']
968:
1.16 millert 969: _ACEOF
1.9 millert 970:
1.16 millert 971: cat <<_ACEOF
1.9 millert 972: Installation directories:
973: --prefix=PREFIX install architecture-independent files in PREFIX
974: [$ac_default_prefix]
975: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
976: [PREFIX]
977:
978: By default, \`make install' will install all the files in
979: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
980: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
981: for instance \`--prefix=\$HOME'.
982:
983: For better control, use the options below.
984:
985: Fine tuning of the installation directories:
986: --bindir=DIR user executables [EPREFIX/bin]
987: --sbindir=DIR system admin executables [EPREFIX/sbin]
988: --libexecdir=DIR program executables [EPREFIX/libexec]
989: --datadir=DIR read-only architecture-independent data [PREFIX/share]
990: --sysconfdir=DIR read-only single-machine data [/etc]
991: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
992: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
993: --libdir=DIR object code libraries [EPREFIX/lib]
994: --includedir=DIR C header files [PREFIX/include]
995: --oldincludedir=DIR C header files for non-gcc [/usr/include]
996: --infodir=DIR info documentation [PREFIX/info]
997: --mandir=DIR man documentation [PREFIX/man]
1.16 millert 998: _ACEOF
1.9 millert 999:
1.16 millert 1000: cat <<\_ACEOF
1.9 millert 1001:
1002: System types:
1003: --build=BUILD configure for building on BUILD [guessed]
1.16 millert 1004: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.23 ! millert 1005: --target=TARGET configure for building compilers for TARGET [HOST]
1.16 millert 1006: _ACEOF
1.9 millert 1007: fi
1008:
1009: if test -n "$ac_init_help"; then
1010: case $ac_init_help in
1.23 ! millert 1011: short | recursive ) echo "Configuration of sudo 1.6.8:";;
1.9 millert 1012: esac
1.16 millert 1013: cat <<\_ACEOF
1.9 millert 1014:
1015: Optional Features:
1016: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1017: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1018: --disable-authentication
1019: Do not require authentication by default
1.12 millert 1020: --disable-root-mailer Don't run the mailer as root, run as the user
1.13 millert 1021: --disable-setreuid Don't try to use the setreuid() function
1.16 millert 1022: --disable-setresuid Don't try to use the setresuid() function
1.12 millert 1023: --disable-saved-ids Don't try to use POSIX saved ids
1.9 millert 1024: --disable-shadow Never use shadow passwords
1.12 millert 1025: --disable-root-sudo Don't allow root to run sudo
1.9 millert 1026: --enable-log-host Log the hostname in the log file
1027: --enable-noargs-shell If sudo is given no arguments run a shell
1028: --enable-shell-sets-home
1029: set $HOME to target user in shell mode
1030: --disable-path-info Print 'command not allowed' not 'command not found'
1.23 ! millert 1031: --enable-shared[=PKGS]
! 1032: build shared libraries [default=yes]
! 1033: --enable-static[=PKGS]
! 1034: build static libraries [default=no]
! 1035: --enable-fast-install[=PKGS]
! 1036: optimize for fast installation [default=yes]
! 1037: --disable-libtool-lock avoid locking (might break parallel builds)
1.9 millert 1038: --disable-sia Never use SIA on Digital UNIX
1039:
1040: Optional Packages:
1041: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043: --with-otp-only deprecated
1044: --with-alertmail deprecated
1045: --with-CC C compiler to use
1.17 millert 1046: --with-rpath pass -R flag in addition to -L for lib paths
1047: --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1.9 millert 1048: --with-incpath additional places to look for include files
1049: --with-libpath additional places to look for libraries
1050: --with-libraries additional libraries to link with
1.15 david 1051: --with-devel add development options
1.11 millert 1052: --with-efence link with -lefence for malloc() debugging
1.9 millert 1053: --with-csops add CSOps standard options
1054: --without-passwd don't use passwd/shadow file for authentication
1.17 millert 1055: --with-skey=DIR enable S/Key support
1056: --with-opie=DIR enable OPIE support
1.9 millert 1057: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1.17 millert 1058: --with-SecurID[=DIR] enable SecurID support
1059: --with-fwtk[=DIR] enable FWTK AuthSRV support
1060: --with-kerb4[=DIR] enable Kerberos IV support
1061: --with-kerb5[=DIR] enable Kerberos V support
1.9 millert 1062: --with-authenticate enable AIX general authentication support
1063: --with-pam enable PAM support
1064: --with-AFS enable AFS support
1065: --with-DCE enable DCE support
1066: --with-logincap enable BSD login class support
1067: --with-bsdauth enable BSD authentication support
1068: --without-lecture don't print lecture for first-time sudoer
1069: --with-logging log via syslog, file, or both
1070: --with-logfac syslog facility to log with (default is "local2")
1071: --with-goodpri syslog priority for commands (def is "notice")
1072: --with-badpri syslog priority for failures (def is "alert")
1073: --with-logpath path to the sudo log file
1074: --with-loglen maximum length of a log file line (default is 80)
1075: --with-ignore-dot ignore '.' in the PATH
1076: --without-mail-if-no-user do not send mail if user not in sudoers
1077: --with-mail-if-no-host send mail if user in sudoers but not for this host
1078: --with-mail-if-noperms send mail if user not allowed to run command
1079: --with-mailto who should get sudo mail (default is "root")
1080: --with-mailsubject subject of sudo mail
1081: --with-passprompt default password prompt
1082: --with-badpass-message message the user sees when the password is wrong
1083: --with-fqdn expect fully qualified hosts in sudoers
1084: --with-timedir path to the sudo timestamp dir
1085: --with-sendmail=path set path to sendmail
1086: --without-sendmail do not send mail at all
1087: --with-sudoers-mode mode of sudoers file (defaults to 0440)
1088: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1089: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1090: --with-umask umask with which the prog should run (default is 022)
1091: --without-umask Preserves the umask of the user invoking sudo.
1092: --with-runas-default User to run commands as (default is "root")
1093: --with-exempt=group no passwd needed for users in this group
1094: --with-editor=path Default editor for visudo (defaults to vi)
1095: --with-env-editor Use the environment variable EDITOR for visudo
1096: --with-passwd-tries number of tries to enter password (default is 3)
1097: --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1098: --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1099: --with-execv use execv() instead of execvp()
1100: --with-tty-tickets use a different ticket file for each tty
1101: --with-insults insult the user for entering an incorrect password
1102: --with-all-insults include all the sudo insult sets
1103: --with-classic-insults include the insults from the "classic" sudo
1104: --with-csops-insults include CSOps insults
1105: --with-hal-insults include 2001-like insults
1106: --with-goons-insults include the insults from the "Goon Show"
1.23 ! millert 1107: --with-ldap[=DIR] enable LDAP support
! 1108: --with-ldap-conf-file path to LDAP configuration file
! 1109: --with-pc-insults replace politically incorrect insults with less offensive ones
1.20 millert 1110: --with-secure-path override the user's path with a built-in one
1.9 millert 1111: --without-interfaces don't try to read the ip addr of ether interfaces
1.16 millert 1112: --with-stow properly handle GNU stow packaging
1.23 ! millert 1113: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
! 1114: --with-pic try to use only PIC/non-PIC objects [default=use
! 1115: both]
! 1116: --with-tags[=TAGS]
! 1117: include additional configurations [automatic]
! 1118: --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1.9 millert 1119:
1120: Some influential environment variables:
1121: CC C compiler command
1122: CFLAGS C compiler flags
1123: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1124: nonstandard directory <lib dir>
1125: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1126: headers in a nonstandard directory <include dir>
1127: CPP C preprocessor
1.23 ! millert 1128: CXX C++ compiler command
! 1129: CXXFLAGS C++ compiler flags
! 1130: CXXCPP C++ preprocessor
! 1131: F77 Fortran 77 compiler command
! 1132: FFLAGS Fortran 77 compiler flags
1.9 millert 1133:
1134: Use these variables to override the choices made by `configure' or to help
1135: it to find libraries and programs with nonstandard names/locations.
1136:
1.16 millert 1137: _ACEOF
1.9 millert 1138: fi
1139:
1140: if test "$ac_init_help" = "recursive"; then
1141: # If there are subdirs, report their specific --help.
1142: ac_popdir=`pwd`
1.16 millert 1143: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1144: test -d $ac_dir || continue
1145: ac_builddir=.
1146:
1147: if test "$ac_dir" != .; then
1148: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1149: # A "../" for each directory in $ac_dir_suffix.
1150: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1151: else
1152: ac_dir_suffix= ac_top_builddir=
1153: fi
1154:
1155: case $srcdir in
1156: .) # No --srcdir option. We are building in place.
1157: ac_srcdir=.
1158: if test -z "$ac_top_builddir"; then
1159: ac_top_srcdir=.
1160: else
1161: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1162: fi ;;
1163: [\\/]* | ?:[\\/]* ) # Absolute path.
1164: ac_srcdir=$srcdir$ac_dir_suffix;
1165: ac_top_srcdir=$srcdir ;;
1166: *) # Relative path.
1167: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1168: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1169: esac
1170: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1171: # absolute.
1172: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1173: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1174: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1175: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.9 millert 1176:
1.16 millert 1177: cd $ac_dir
1.9 millert 1178: # Check for guested configure; otherwise get Cygnus style configure.
1.16 millert 1179: if test -f $ac_srcdir/configure.gnu; then
1.9 millert 1180: echo
1.16 millert 1181: $SHELL $ac_srcdir/configure.gnu --help=recursive
1182: elif test -f $ac_srcdir/configure; then
1.9 millert 1183: echo
1.16 millert 1184: $SHELL $ac_srcdir/configure --help=recursive
1185: elif test -f $ac_srcdir/configure.ac ||
1186: test -f $ac_srcdir/configure.in; then
1.9 millert 1187: echo
1188: $ac_configure --help
1189: else
1.16 millert 1190: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.9 millert 1191: fi
1192: cd $ac_popdir
1193: done
1194: fi
1195:
1196: test -n "$ac_init_help" && exit 0
1197: if $ac_init_version; then
1.16 millert 1198: cat <<\_ACEOF
1.23 ! millert 1199: sudo configure 1.6.8
1.16 millert 1200: generated by GNU Autoconf 2.57
1.9 millert 1201:
1.16 millert 1202: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1.9 millert 1203: Free Software Foundation, Inc.
1204: This configure script is free software; the Free Software Foundation
1205: gives unlimited permission to copy, distribute and modify it.
1.16 millert 1206: _ACEOF
1.9 millert 1207: exit 0
1208: fi
1209: exec 5>config.log
1.16 millert 1210: cat >&5 <<_ACEOF
1.9 millert 1211: This file contains any messages produced by compilers while
1212: running configure, to aid debugging if configure makes a mistake.
1213:
1.23 ! millert 1214: It was created by sudo $as_me 1.6.8, which was
1.16 millert 1215: generated by GNU Autoconf 2.57. Invocation command line was
1.9 millert 1216:
1217: $ $0 $@
1218:
1.16 millert 1219: _ACEOF
1.9 millert 1220: {
1221: cat <<_ASUNAME
1.16 millert 1222: ## --------- ##
1223: ## Platform. ##
1224: ## --------- ##
1.9 millert 1225:
1226: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231:
1232: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234:
1235: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242:
1.16 millert 1243: _ASUNAME
1244:
1245: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246: for as_dir in $PATH
1247: do
1248: IFS=$as_save_IFS
1249: test -z "$as_dir" && as_dir=.
1250: echo "PATH: $as_dir"
1251: done
1.9 millert 1252:
1253: } >&5
1254:
1.16 millert 1255: cat >&5 <<_ACEOF
1256:
1257:
1258: ## ----------- ##
1259: ## Core tests. ##
1260: ## ----------- ##
1261:
1262: _ACEOF
1.9 millert 1263:
1264:
1265: # Keep a trace of the command line.
1266: # Strip out --no-create and --no-recursion so they do not pile up.
1.16 millert 1267: # Strip out --silent because we don't want to record it for future runs.
1.9 millert 1268: # Also quote any args containing shell meta-characters.
1.16 millert 1269: # Make two passes to allow for proper duplicate-argument suppression.
1.9 millert 1270: ac_configure_args=
1.16 millert 1271: ac_configure_args0=
1272: ac_configure_args1=
1.9 millert 1273: ac_sep=
1.16 millert 1274: ac_must_keep_next=false
1275: for ac_pass in 1 2
1.9 millert 1276: do
1.16 millert 1277: for ac_arg
1278: do
1279: case $ac_arg in
1280: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282: | -silent | --silent | --silen | --sile | --sil)
1283: continue ;;
1284: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286: esac
1287: case $ac_pass in
1288: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289: 2)
1290: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291: if test $ac_must_keep_next = true; then
1292: ac_must_keep_next=false # Got value, back to normal.
1293: else
1294: case $ac_arg in
1295: *=* | --config-cache | -C | -disable-* | --disable-* \
1296: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298: | -with-* | --with-* | -without-* | --without-* | --x)
1299: case "$ac_configure_args0 " in
1300: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301: esac
1302: ;;
1303: -* ) ac_must_keep_next=true ;;
1304: esac
1305: fi
1306: ac_configure_args="$ac_configure_args$ac_sep\"$ac_arg\""
1307: # Get rid of the leading space.
1308: ac_sep=" "
1309: ;;
1310: esac
1311: done
1.9 millert 1312: done
1.16 millert 1313: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9 millert 1315:
1316: # When interrupted or exit'd, cleanup temporary files, and complete
1317: # config.log. We remove comments because anyway the quotes in there
1318: # would cause problems or look ugly.
1.16 millert 1319: # WARNING: Be sure not to use single quotes in there, as some shells,
1320: # such as our DU 5.0 friend, will then `close' the trap.
1.9 millert 1321: trap 'exit_status=$?
1322: # Save into config.log some information that might help in debugging.
1.16 millert 1323: {
1324: echo
1325:
1326: cat <<\_ASBOX
1327: ## ---------------- ##
1328: ## Cache variables. ##
1329: ## ---------------- ##
1330: _ASBOX
1331: echo
1332: # The following way of writing the cache mishandles newlines in values,
1.9 millert 1333: {
1334: (set) 2>&1 |
1335: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336: *ac_space=\ *)
1337: sed -n \
1338: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1340: ;;
1341: *)
1342: sed -n \
1343: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1344: ;;
1345: esac;
1.16 millert 1346: }
1347: echo
1348:
1349: cat <<\_ASBOX
1350: ## ----------------- ##
1351: ## Output variables. ##
1352: ## ----------------- ##
1353: _ASBOX
1354: echo
1355: for ac_var in $ac_subst_vars
1356: do
1357: eval ac_val=$`echo $ac_var`
1358: echo "$ac_var='"'"'$ac_val'"'"'"
1359: done | sort
1360: echo
1361:
1362: if test -n "$ac_subst_files"; then
1363: cat <<\_ASBOX
1364: ## ------------- ##
1365: ## Output files. ##
1366: ## ------------- ##
1367: _ASBOX
1368: echo
1369: for ac_var in $ac_subst_files
1370: do
1371: eval ac_val=$`echo $ac_var`
1372: echo "$ac_var='"'"'$ac_val'"'"'"
1373: done | sort
1374: echo
1375: fi
1376:
1377: if test -s confdefs.h; then
1378: cat <<\_ASBOX
1379: ## ----------- ##
1380: ## confdefs.h. ##
1381: ## ----------- ##
1382: _ASBOX
1383: echo
1384: sed "/^$/d" confdefs.h | sort
1385: echo
1386: fi
1387: test "$ac_signal" != 0 &&
1388: echo "$as_me: caught signal $ac_signal"
1389: echo "$as_me: exit $exit_status"
1390: } >&5
1391: rm -f core core.* *.core &&
1392: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.9 millert 1393: exit $exit_status
1394: ' 0
1395: for ac_signal in 1 2 13 15; do
1396: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397: done
1398: ac_signal=0
1.1 millert 1399:
1.9 millert 1400: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1401: rm -rf conftest* confdefs.h
1402: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403: echo >confdefs.h
1404:
1.16 millert 1405: # Predefined preprocessor variables.
1406:
1407: cat >>confdefs.h <<_ACEOF
1408: #define PACKAGE_NAME "$PACKAGE_NAME"
1409: _ACEOF
1410:
1411:
1412: cat >>confdefs.h <<_ACEOF
1413: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414: _ACEOF
1415:
1416:
1417: cat >>confdefs.h <<_ACEOF
1418: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1419: _ACEOF
1420:
1421:
1422: cat >>confdefs.h <<_ACEOF
1423: #define PACKAGE_STRING "$PACKAGE_STRING"
1424: _ACEOF
1425:
1426:
1427: cat >>confdefs.h <<_ACEOF
1428: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429: _ACEOF
1430:
1431:
1.9 millert 1432: # Let the site file select an alternate cache file if it wants to.
1.1 millert 1433: # Prefer explicitly selected file to automatically selected ones.
1434: if test -z "$CONFIG_SITE"; then
1435: if test "x$prefix" != xNONE; then
1436: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437: else
1438: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439: fi
1440: fi
1441: for ac_site_file in $CONFIG_SITE; do
1442: if test -r "$ac_site_file"; then
1.16 millert 1443: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9 millert 1444: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16 millert 1445: sed 's/^/| /' "$ac_site_file" >&5
1.1 millert 1446: . "$ac_site_file"
1447: fi
1448: done
1449:
1450: if test -r "$cache_file"; then
1.9 millert 1451: # Some versions of bash will fail to source /dev/null (special
1452: # files actually), so we avoid doing that.
1453: if test -f "$cache_file"; then
1.16 millert 1454: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9 millert 1455: echo "$as_me: loading cache $cache_file" >&6;}
1456: case $cache_file in
1457: [\\/]* | ?:[\\/]* ) . $cache_file;;
1458: *) . ./$cache_file;;
1459: esac
1460: fi
1.1 millert 1461: else
1.16 millert 1462: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9 millert 1463: echo "$as_me: creating cache $cache_file" >&6;}
1464: >$cache_file
1465: fi
1466:
1467: # Check that the precious variables saved in the cache have kept the same
1468: # value.
1469: ac_cache_corrupted=false
1470: for ac_var in `(set) 2>&1 |
1471: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1472: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473: eval ac_new_set=\$ac_env_${ac_var}_set
1474: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475: eval ac_new_val="\$ac_env_${ac_var}_value"
1476: case $ac_old_set,$ac_new_set in
1477: set,)
1.16 millert 1478: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9 millert 1479: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480: ac_cache_corrupted=: ;;
1481: ,set)
1.16 millert 1482: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9 millert 1483: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484: ac_cache_corrupted=: ;;
1485: ,);;
1486: *)
1487: if test "x$ac_old_val" != "x$ac_new_val"; then
1.16 millert 1488: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9 millert 1489: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.16 millert 1490: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.9 millert 1491: echo "$as_me: former value: $ac_old_val" >&2;}
1.16 millert 1492: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.9 millert 1493: echo "$as_me: current value: $ac_new_val" >&2;}
1494: ac_cache_corrupted=:
1495: fi;;
1496: esac
1.16 millert 1497: # Pass precious variables to config.status.
1.9 millert 1498: if test "$ac_new_set" = set; then
1499: case $ac_new_val in
1500: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.16 millert 1501: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502: *) ac_arg=$ac_var=$ac_new_val ;;
1503: esac
1504: case " $ac_configure_args " in
1505: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9 millert 1507: esac
1508: fi
1509: done
1510: if $ac_cache_corrupted; then
1.16 millert 1511: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9 millert 1512: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16 millert 1513: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9 millert 1514: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515: { (exit 1); exit 1; }; }
1.1 millert 1516: fi
1517:
1518: ac_ext=c
1519: ac_cpp='$CPP $CPPFLAGS'
1.9 millert 1520: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523:
1524:
1525:
1.16 millert 1526:
1527:
1528:
1529:
1530:
1531:
1532:
1533:
1534:
1535:
1536:
1537:
1538:
1539:
1540:
1541:
1542:
1543:
1544:
1545:
1546:
1547:
1548:
1549:
1550: ac_config_headers="$ac_config_headers config.h pathnames.h"
1551:
1.23 ! millert 1552: { echo "$as_me:$LINENO: Configuring Sudo version 1.6.8" >&5
! 1553: echo "$as_me: Configuring Sudo version 1.6.8" >&6;}
! 1554:
! 1555:
! 1556:
! 1557:
! 1558:
1.16 millert 1559:
1560:
1561:
1562:
1563:
1564:
1565:
1566:
1567:
1568:
1569:
1570:
1571:
1572:
1573:
1574:
1575:
1576:
1577:
1578:
1579:
1580:
1581:
1582:
1583:
1584:
1.9 millert 1585:
1586: timeout=5
1587: password_timeout=5
1588: sudo_umask=0022
1589: passprompt="Password:"
1590: long_otp_prompt=off
1.23 ! millert 1591: lecture=once
1.9 millert 1592: logfac=local2
1593: goodpri=notice
1594: badpri=alert
1595: loglen=80
1596: ignore_dot=off
1597: mail_no_user=on
1598: mail_no_host=off
1599: mail_no_perms=off
1600: mailto=root
1601: mailsub='*** SECURITY information for %h ***'
1602: badpass_message='Sorry, try again.'
1603: fqdn=off
1604: runas_default=root
1605: env_editor=off
1606: passwd_tries=3
1607: tty_tickets=off
1608: insults=off
1.23 ! millert 1609: root_sudo=on
! 1610: INSTALL_NOEXEC=
1.1 millert 1611: PROGS="sudo visudo"
1.6 millert 1612: test -n "$MANTYPE" || MANTYPE="man"
1613: test -n "$mansrcdir" || mansrcdir="."
1614: test -n "$SUDOERS_MODE" || SUDOERS_MODE=0440
1615: test -n "$SUDOERS_UID" || SUDOERS_UID=0
1616: test -n "$SUDOERS_GID" || SUDOERS_GID=0
1.1 millert 1617: DEV="#"
1618:
1619: CHECKSHADOW=true
1620: CHECKSIA=true
1621:
1622: test "$mandir" = '${prefix}/man' && mandir='$(prefix)/man'
1623: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
1624: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16 millert 1625: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
1626:
1627:
1.1 millert 1628:
1629: # Check whether --with-otp-only or --without-otp-only was given.
1630: if test "${with_otp_only+set}" = set; then
1631: withval="$with_otp_only"
1632: case $with_otp_only in
1633: yes) with_passwd=no
1.23 ! millert 1634: cat >>confdefs.h <<\_ACEOF
1.1 millert 1635: #define WITHOUT_PASSWD 1
1.16 millert 1636: _ACEOF
1.1 millert 1637:
1.17 millert 1638: { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
1639: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1 millert 1640: ;;
1641: esac
1.9 millert 1642: fi;
1.1 millert 1643:
1.16 millert 1644:
1.1 millert 1645: # Check whether --with-alertmail or --without-alertmail was given.
1646: if test "${with_alertmail+set}" = set; then
1647: withval="$with_alertmail"
1648: case $with_alertmail in
1649: *) with_mailto="$with_alertmail"
1.17 millert 1650: { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
1651: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1 millert 1652: ;;
1653: esac
1.9 millert 1654: fi;
1.1 millert 1655:
1.16 millert 1656:
1657:
1.1 millert 1658: # Check whether --with-CC or --without-CC was given.
1659: if test "${with_CC+set}" = set; then
1660: withval="$with_CC"
1661: case $with_CC in
1.16 millert 1662: yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9 millert 1663: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
1664: { (exit 1); exit 1; }; }
1665: ;;
1.16 millert 1666: no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9 millert 1667: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
1668: { (exit 1); exit 1; }; }
1.1 millert 1669: ;;
1670: *) CC=$with_CC
1671: ;;
1672: esac
1.9 millert 1673: fi;
1.1 millert 1674:
1.16 millert 1675:
1.17 millert 1676: # Check whether --with-rpath or --without-rpath was given.
1677: if test "${with_rpath+set}" = set; then
1678: withval="$with_rpath"
1679: case $with_rpath in
1680: yes) ;;
1681: no) ;;
1682: *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
1683: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
1684: { (exit 1); exit 1; }; }
1685: ;;
1686: esac
1687: fi;
1688:
1689:
1690: # Check whether --with-blibpath or --without-blibpath was given.
1691: if test "${with_blibpath+set}" = set; then
1692: withval="$with_blibpath"
1693: case $with_blibpath in
1694: yes) ;;
1695: no) ;;
1696: *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
1697: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
1698: ;;
1699: esac
1700: fi;
1701:
1702:
1.1 millert 1703: # Check whether --with-incpath or --without-incpath was given.
1704: if test "${with_incpath+set}" = set; then
1705: withval="$with_incpath"
1.9 millert 1706: case $with_incpath in
1.16 millert 1707: yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9 millert 1708: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
1709: { (exit 1); exit 1; }; }
1710: ;;
1.16 millert 1711: no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9 millert 1712: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
1713: { (exit 1); exit 1; }; }
1.1 millert 1714: ;;
1.17 millert 1715: *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
1716: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1 millert 1717: for i in ${with_incpath}; do
1718: CPPFLAGS="${CPPFLAGS} -I${i}"
1719: done
1720: ;;
1721: esac
1.9 millert 1722: fi;
1.1 millert 1723:
1.16 millert 1724:
1.1 millert 1725: # Check whether --with-libpath or --without-libpath was given.
1726: if test "${with_libpath+set}" = set; then
1727: withval="$with_libpath"
1.9 millert 1728: case $with_libpath in
1.16 millert 1729: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9 millert 1730: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
1731: { (exit 1); exit 1; }; }
1732: ;;
1.16 millert 1733: no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9 millert 1734: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
1735: { (exit 1); exit 1; }; }
1.1 millert 1736: ;;
1.17 millert 1737: *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
1738: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1 millert 1739: ;;
1740: esac
1.9 millert 1741: fi;
1.1 millert 1742:
1.16 millert 1743:
1.1 millert 1744: # Check whether --with-libraries or --without-libraries was given.
1745: if test "${with_libraries+set}" = set; then
1746: withval="$with_libraries"
1.9 millert 1747: case $with_libraries in
1.16 millert 1748: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9 millert 1749: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
1750: { (exit 1); exit 1; }; }
1751: ;;
1.16 millert 1752: no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9 millert 1753: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
1754: { (exit 1); exit 1; }; }
1.1 millert 1755: ;;
1.17 millert 1756: *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
1757: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1 millert 1758: ;;
1759: esac
1.9 millert 1760: fi;
1.1 millert 1761:
1.16 millert 1762:
1.1 millert 1763: # Check whether --with-devel or --without-devel was given.
1764: if test "${with_devel+set}" = set; then
1765: withval="$with_devel"
1.9 millert 1766: case $with_devel in
1.17 millert 1767: yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
1768: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1 millert 1769: PROGS="${PROGS} testsudoers"
1770: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1771: DEV=""
1772: ;;
1773: no) ;;
1.17 millert 1774: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
1775: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1 millert 1776: ;;
1777: esac
1.9 millert 1778: fi;
1.1 millert 1779:
1.16 millert 1780:
1.11 millert 1781: # Check whether --with-efence or --without-efence was given.
1782: if test "${with_efence+set}" = set; then
1783: withval="$with_efence"
1784: case $with_efence in
1.17 millert 1785: yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
1786: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11 millert 1787: LIBS="${LIBS} -lefence"
1788: if test -f /usr/local/lib/libefence.a; then
1.17 millert 1789: with_libpath="${with_libpath} /usr/local/lib"
1.11 millert 1790: fi
1791: ;;
1792: no) ;;
1.17 millert 1793: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
1794: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11 millert 1795: ;;
1796: esac
1797: fi;
1798:
1.16 millert 1799:
1.1 millert 1800: # Check whether --with-csops or --without-csops was given.
1801: if test "${with_csops+set}" = set; then
1802: withval="$with_csops"
1.9 millert 1803: case $with_csops in
1.17 millert 1804: yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
1805: echo "$as_me: Adding CSOps standard options" >&6;}
1.1 millert 1806: CHECKSIA=false
1807: with_ignore_dot=yes
1.9 millert 1808: insults=on
1.1 millert 1809: with_classic_insults=yes
1810: with_csops_insults=yes
1811: with_env_editor=yes
1.17 millert 1812: test -n "$mansectsu" || mansectsu=8
1813: test -n "$mansectform" || mansectform=5
1.1 millert 1814: ;;
1815: no) ;;
1.17 millert 1816: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
1817: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1 millert 1818: ;;
1819: esac
1.9 millert 1820: fi;
1.1 millert 1821:
1.16 millert 1822:
1.1 millert 1823: # Check whether --with-passwd or --without-passwd was given.
1824: if test "${with_passwd+set}" = set; then
1825: withval="$with_passwd"
1826: case $with_passwd in
1827: yes) ;;
1.16 millert 1828: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 1829: #define WITHOUT_PASSWD 1
1.16 millert 1830: _ACEOF
1.1 millert 1831:
1.16 millert 1832: echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
1.9 millert 1833: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6
1.16 millert 1834: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 1835: echo "${ECHO_T}no" >&6
1.1 millert 1836: ;;
1.16 millert 1837: *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9 millert 1838: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
1839: { (exit 1); exit 1; }; }
1.1 millert 1840: ;;
1841: esac
1.9 millert 1842: fi;
1.1 millert 1843:
1.16 millert 1844:
1.1 millert 1845: # Check whether --with-skey or --without-skey was given.
1846: if test "${with_skey+set}" = set; then
1847: withval="$with_skey"
1848: case $with_skey in
1.17 millert 1849: no) with_skey="";;
1850: *) if test -n "$with_opie"; then
1.16 millert 1851: { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
1.9 millert 1852: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
1853: { (exit 1); exit 1; }; }
1.1 millert 1854: fi
1.23 ! millert 1855: cat >>confdefs.h <<\_ACEOF
1.1 millert 1856: #define HAVE_SKEY 1
1.16 millert 1857: _ACEOF
1.1 millert 1858:
1.16 millert 1859: echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
1.9 millert 1860: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6
1.16 millert 1861: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1862: echo "${ECHO_T}yes" >&6
1.1 millert 1863: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1864: ;;
1865: esac
1.9 millert 1866: fi;
1.1 millert 1867:
1.16 millert 1868:
1.1 millert 1869: # Check whether --with-opie or --without-opie was given.
1870: if test "${with_opie+set}" = set; then
1871: withval="$with_opie"
1872: case $with_opie in
1.17 millert 1873: no) with_opie="";;
1874: *) if test -n "$with_skey"; 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_OPIE 1
1.16 millert 1881: _ACEOF
1.1 millert 1882:
1.16 millert 1883: echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
1.9 millert 1884: echo $ECHO_N "checking whether to try NRL OPIE 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.1 millert 1887: AUTH_OBJS="${AUTH_OBJS} rfc1938.o"
1888: ;;
1889: esac
1.9 millert 1890: fi;
1.1 millert 1891:
1.16 millert 1892:
1.1 millert 1893: # Check whether --with-long-otp-prompt or --without-long-otp-prompt was given.
1894: if test "${with_long_otp_prompt+set}" = set; then
1895: withval="$with_long_otp_prompt"
1896: case $with_long_otp_prompt in
1.23 ! millert 1897: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 1898: #define LONG_OTP_PROMPT 1
1.16 millert 1899: _ACEOF
1.1 millert 1900:
1.16 millert 1901: echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
1.9 millert 1902: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6
1.16 millert 1903: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1904: echo "${ECHO_T}yes" >&6
1905: long_otp_prompt=on
1.1 millert 1906: ;;
1.9 millert 1907: no) long_otp_prompt=off
1908: ;;
1.16 millert 1909: *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9 millert 1910: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
1911: { (exit 1); exit 1; }; }
1.1 millert 1912: ;;
1913: esac
1.9 millert 1914: fi;
1.1 millert 1915:
1.16 millert 1916:
1.1 millert 1917: # Check whether --with-SecurID or --without-SecurID was given.
1918: if test "${with_SecurID+set}" = set; then
1919: withval="$with_SecurID"
1920: case $with_SecurID in
1.17 millert 1921: no) with_SecurID="";;
1.23 ! millert 1922: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 1923: #define HAVE_SECURID 1
1.16 millert 1924: _ACEOF
1.1 millert 1925:
1.16 millert 1926: echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
1.9 millert 1927: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6
1.16 millert 1928: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1929: echo "${ECHO_T}yes" >&6
1.1 millert 1930: with_passwd=no
1931: ;;
1932: esac
1.9 millert 1933: fi;
1.1 millert 1934:
1.16 millert 1935:
1.1 millert 1936: # Check whether --with-fwtk or --without-fwtk was given.
1937: if test "${with_fwtk+set}" = set; then
1938: withval="$with_fwtk"
1939: case $with_fwtk in
1.17 millert 1940: no) with_fwtk="";;
1.23 ! millert 1941: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 1942: #define HAVE_FWTK 1
1.16 millert 1943: _ACEOF
1.1 millert 1944:
1.16 millert 1945: echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
1.9 millert 1946: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6
1.16 millert 1947: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1948: echo "${ECHO_T}yes" >&6
1.1 millert 1949: with_passwd=no
1950: AUTH_OBJS="fwtk.o"
1951: ;;
1952: esac
1.9 millert 1953: fi;
1.1 millert 1954:
1.16 millert 1955:
1.1 millert 1956: # Check whether --with-kerb4 or --without-kerb4 was given.
1957: if test "${with_kerb4+set}" = set; then
1958: withval="$with_kerb4"
1959: case $with_kerb4 in
1.17 millert 1960: no) with_kerb4="";;
1961: *) echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
1962: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6
1.16 millert 1963: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1964: echo "${ECHO_T}yes" >&6
1.1 millert 1965: ;;
1966: esac
1.9 millert 1967: fi;
1.1 millert 1968:
1.16 millert 1969:
1.1 millert 1970: # Check whether --with-kerb5 or --without-kerb5 was given.
1971: if test "${with_kerb5+set}" = set; then
1972: withval="$with_kerb5"
1973: case $with_kerb5 in
1.17 millert 1974: no) with_kerb5="";;
1975: *) echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
1976: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6
1.16 millert 1977: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1978: echo "${ECHO_T}yes" >&6
1.1 millert 1979: ;;
1980: esac
1.9 millert 1981: fi;
1.1 millert 1982:
1.16 millert 1983:
1.1 millert 1984: # Check whether --with-authenticate or --without-authenticate was given.
1985: if test "${with_authenticate+set}" = set; then
1986: withval="$with_authenticate"
1987: case $with_authenticate in
1.23 ! millert 1988: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 1989: #define HAVE_AUTHENTICATE 1
1.16 millert 1990: _ACEOF
1.1 millert 1991:
1.16 millert 1992: echo "$as_me:$LINENO: checking whether to use AIX general authentication" >&5
1.9 millert 1993: echo $ECHO_N "checking whether to use AIX general authentication... $ECHO_C" >&6
1.16 millert 1994: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 1995: echo "${ECHO_T}yes" >&6
1.1 millert 1996: with_passwd=no
1997: AUTH_OBJS="aix_auth.o"
1998: ;;
1999: no) ;;
1.16 millert 2000: *) { { echo "$as_me:$LINENO: error: \"--with-authenticate does not take an argument.\"" >&5
1.9 millert 2001: echo "$as_me: error: \"--with-authenticate does not take an argument.\"" >&2;}
2002: { (exit 1); exit 1; }; }
1.1 millert 2003: ;;
2004: esac
1.9 millert 2005: fi;
1.1 millert 2006:
1.16 millert 2007:
1.1 millert 2008: # Check whether --with-pam or --without-pam was given.
2009: if test "${with_pam+set}" = set; then
2010: withval="$with_pam"
2011: case $with_pam in
1.23 ! millert 2012: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2013: #define HAVE_PAM 1
1.16 millert 2014: _ACEOF
1.1 millert 2015:
1.16 millert 2016: echo "$as_me:$LINENO: checking whether to use PAM authentication" >&5
1.9 millert 2017: echo $ECHO_N "checking whether to use PAM authentication... $ECHO_C" >&6
1.16 millert 2018: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2019: echo "${ECHO_T}yes" >&6
1.1 millert 2020: with_passwd=no
2021: AUTH_OBJS="pam.o"
2022: ;;
2023: no) ;;
1.16 millert 2024: *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9 millert 2025: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2026: { (exit 1); exit 1; }; }
1.1 millert 2027: ;;
2028: esac
1.9 millert 2029: fi;
1.1 millert 2030:
1.16 millert 2031:
1.1 millert 2032: # Check whether --with-AFS or --without-AFS was given.
2033: if test "${with_AFS+set}" = set; then
2034: withval="$with_AFS"
2035: case $with_AFS in
1.23 ! millert 2036: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2037: #define HAVE_AFS 1
1.16 millert 2038: _ACEOF
1.1 millert 2039:
1.16 millert 2040: echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
1.9 millert 2041: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6
1.16 millert 2042: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2043: echo "${ECHO_T}yes" >&6
1.1 millert 2044: AUTH_OBJS="${AUTH_OBJS} afs.o"
2045: ;;
2046: no) ;;
1.16 millert 2047: *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9 millert 2048: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2049: { (exit 1); exit 1; }; }
1.1 millert 2050: ;;
2051: esac
1.9 millert 2052: fi;
1.1 millert 2053:
1.16 millert 2054:
1.1 millert 2055: # Check whether --with-DCE or --without-DCE was given.
2056: if test "${with_DCE+set}" = set; then
2057: withval="$with_DCE"
2058: case $with_DCE in
1.23 ! millert 2059: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2060: #define HAVE_DCE 1
1.16 millert 2061: _ACEOF
1.1 millert 2062:
1.16 millert 2063: echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
1.9 millert 2064: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6
1.16 millert 2065: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2066: echo "${ECHO_T}yes" >&6
1.1 millert 2067: AUTH_OBJS="${AUTH_OBJS} dce.o"
2068: ;;
2069: no) ;;
1.16 millert 2070: *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9 millert 2071: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
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.6 millert 2078: # Check whether --with-logincap or --without-logincap was given.
2079: if test "${with_logincap+set}" = set; then
2080: withval="$with_logincap"
2081: case $with_logincap in
1.7 millert 2082: yes|no) ;;
1.16 millert 2083: *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9 millert 2084: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2085: { (exit 1); exit 1; }; }
1.7 millert 2086: ;;
2087: esac
1.9 millert 2088: fi;
1.6 millert 2089:
1.16 millert 2090:
1.7 millert 2091: # Check whether --with-bsdauth or --without-bsdauth was given.
2092: if test "${with_bsdauth+set}" = set; then
2093: withval="$with_bsdauth"
2094: case $with_bsdauth in
2095: yes) with_logincap=yes
1.6 millert 2096: ;;
2097: no) ;;
1.16 millert 2098: *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9 millert 2099: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2100: { (exit 1); exit 1; }; }
1.6 millert 2101: ;;
2102: esac
1.9 millert 2103: fi;
1.6 millert 2104:
1.16 millert 2105: echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
1.9 millert 2106: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6
1.6 millert 2107:
1.1 millert 2108: # Check whether --with-lecture or --without-lecture was given.
2109: if test "${with_lecture+set}" = set; then
2110: withval="$with_lecture"
1.9 millert 2111: case $with_lecture in
1.23 ! millert 2112: yes|short|always) lecture=once
1.1 millert 2113: ;;
1.23 ! millert 2114: no|none|never) lecture=never
1.1 millert 2115: ;;
1.16 millert 2116: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9 millert 2117: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2118: { (exit 1); exit 1; }; }
1.1 millert 2119: ;;
2120: esac
1.9 millert 2121: fi;
1.23 ! millert 2122: if test "$lecture" = "once"; then
1.16 millert 2123: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2124: echo "${ECHO_T}yes" >&6
1.1 millert 2125: else
1.23 ! millert 2126: cat >>confdefs.h <<\_ACEOF
1.9 millert 2127: #define NO_LECTURE 1
1.16 millert 2128: _ACEOF
1.9 millert 2129:
1.16 millert 2130: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2131: echo "${ECHO_T}no" >&6
1.1 millert 2132: fi
2133:
1.16 millert 2134: echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
1.9 millert 2135: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6
1.1 millert 2136:
2137: # Check whether --with-logging or --without-logging was given.
2138: if test "${with_logging+set}" = set; then
2139: withval="$with_logging"
1.9 millert 2140: case $with_logging in
1.16 millert 2141: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9 millert 2142: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2143: { (exit 1); exit 1; }; }
2144: ;;
1.16 millert 2145: no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9 millert 2146: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2147: { (exit 1); exit 1; }; }
1.1 millert 2148: ;;
1.23 ! millert 2149: syslog) cat >>confdefs.h <<\_ACEOF
1.1 millert 2150: #define LOGGING SLOG_SYSLOG
1.16 millert 2151: _ACEOF
1.1 millert 2152:
1.16 millert 2153: echo "$as_me:$LINENO: result: syslog" >&5
1.9 millert 2154: echo "${ECHO_T}syslog" >&6
1.1 millert 2155: ;;
1.16 millert 2156: file) cat >>confdefs.h <<\_ACEOF
1.1 millert 2157: #define LOGGING SLOG_FILE
1.16 millert 2158: _ACEOF
1.1 millert 2159:
1.16 millert 2160: echo "$as_me:$LINENO: result: file" >&5
1.9 millert 2161: echo "${ECHO_T}file" >&6
1.1 millert 2162: ;;
1.16 millert 2163: both) cat >>confdefs.h <<\_ACEOF
1.1 millert 2164: #define LOGGING SLOG_BOTH
1.16 millert 2165: _ACEOF
1.1 millert 2166:
1.16 millert 2167: echo "$as_me:$LINENO: result: both" >&5
1.9 millert 2168: echo "${ECHO_T}both" >&6
1.1 millert 2169: ;;
1.16 millert 2170: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9 millert 2171: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2172: { (exit 1); exit 1; }; }
1.1 millert 2173: ;;
2174: esac
2175: else
1.16 millert 2176: cat >>confdefs.h <<\_ACEOF
1.1 millert 2177: #define LOGGING SLOG_SYSLOG
1.16 millert 2178: _ACEOF
2179: echo "$as_me:$LINENO: result: syslog" >&5
1.9 millert 2180: echo "${ECHO_T}syslog" >&6
2181: fi;
1.1 millert 2182:
1.16 millert 2183: echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
1.9 millert 2184: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6
1.1 millert 2185:
2186: # Check whether --with-logfac or --without-logfac was given.
2187: if test "${with_logfac+set}" = set; then
2188: withval="$with_logfac"
1.9 millert 2189: case $with_logfac in
1.16 millert 2190: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9 millert 2191: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2192: { (exit 1); exit 1; }; }
2193: ;;
1.16 millert 2194: no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9 millert 2195: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2196: { (exit 1); exit 1; }; }
1.1 millert 2197: ;;
1.9 millert 2198: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1.1 millert 2199: ;;
1.16 millert 2200: *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9 millert 2201: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2202: { (exit 1); exit 1; }; }
1.1 millert 2203: ;;
2204: esac
1.9 millert 2205: fi;
2206:
1.16 millert 2207: cat >>confdefs.h <<_ACEOF
1.9 millert 2208: #define LOGFAC "$logfac"
1.16 millert 2209: _ACEOF
1.1 millert 2210:
1.16 millert 2211: echo "$as_me:$LINENO: result: $logfac" >&5
1.9 millert 2212: echo "${ECHO_T}$logfac" >&6
2213:
1.16 millert 2214: echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
1.9 millert 2215: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6
1.1 millert 2216:
2217: # Check whether --with-goodpri or --without-goodpri was given.
2218: if test "${with_goodpri+set}" = set; then
2219: withval="$with_goodpri"
1.9 millert 2220: case $with_goodpri in
1.16 millert 2221: yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9 millert 2222: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2223: { (exit 1); exit 1; }; }
1.1 millert 2224: ;;
1.16 millert 2225: no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9 millert 2226: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2227: { (exit 1); exit 1; }; }
1.1 millert 2228: ;;
1.9 millert 2229: alert|crit|debug|emerg|err|info|notice|warning)
2230: goodpri=$with_goodpri
1.1 millert 2231: ;;
1.16 millert 2232: *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9 millert 2233: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2234: { (exit 1); exit 1; }; }
1.1 millert 2235: ;;
2236: esac
1.9 millert 2237: fi;
2238:
1.16 millert 2239: cat >>confdefs.h <<_ACEOF
1.9 millert 2240: #define PRI_SUCCESS "$goodpri"
1.16 millert 2241: _ACEOF
1.1 millert 2242:
1.16 millert 2243: echo "$as_me:$LINENO: result: $goodpri" >&5
1.9 millert 2244: echo "${ECHO_T}$goodpri" >&6
2245:
1.16 millert 2246: echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
1.9 millert 2247: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6
1.1 millert 2248:
2249: # Check whether --with-badpri or --without-badpri was given.
2250: if test "${with_badpri+set}" = set; then
2251: withval="$with_badpri"
1.9 millert 2252: case $with_badpri in
1.16 millert 2253: yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9 millert 2254: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2255: { (exit 1); exit 1; }; }
1.1 millert 2256: ;;
1.16 millert 2257: no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9 millert 2258: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2259: { (exit 1); exit 1; }; }
1.1 millert 2260: ;;
1.9 millert 2261: alert|crit|debug|emerg|err|info|notice|warning)
2262: badpri=$with_badpri
1.1 millert 2263: ;;
1.16 millert 2264: *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9 millert 2265: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2266: { (exit 1); exit 1; }; }
1.1 millert 2267: ;;
2268: esac
1.9 millert 2269: fi;
2270:
1.16 millert 2271: cat >>confdefs.h <<_ACEOF
1.9 millert 2272: #define PRI_FAILURE "$badpri"
1.16 millert 2273: _ACEOF
2274:
2275: echo "$as_me:$LINENO: result: $badpri" >&5
2276: echo "${ECHO_T}$badpri" >&6
1.1 millert 2277:
2278:
2279: # Check whether --with-logpath or --without-logpath was given.
2280: if test "${with_logpath+set}" = set; then
2281: withval="$with_logpath"
1.9 millert 2282: case $with_logpath in
1.16 millert 2283: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9 millert 2284: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2285: { (exit 1); exit 1; }; }
1.1 millert 2286: ;;
1.16 millert 2287: no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9 millert 2288: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2289: { (exit 1); exit 1; }; }
1.1 millert 2290: ;;
2291: esac
1.9 millert 2292: fi;
1.1 millert 2293:
1.16 millert 2294: echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
1.9 millert 2295: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6
1.1 millert 2296:
2297: # Check whether --with-loglen or --without-loglen was given.
2298: if test "${with_loglen+set}" = set; then
2299: withval="$with_loglen"
1.9 millert 2300: case $with_loglen in
1.16 millert 2301: yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9 millert 2302: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2303: { (exit 1); exit 1; }; }
1.1 millert 2304: ;;
1.16 millert 2305: no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9 millert 2306: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2307: { (exit 1); exit 1; }; }
1.1 millert 2308: ;;
1.9 millert 2309: [0-9]*) loglen=$with_loglen
1.1 millert 2310: ;;
1.16 millert 2311: *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9 millert 2312: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2313: { (exit 1); exit 1; }; }
1.1 millert 2314: ;;
2315: esac
1.9 millert 2316: fi;
2317:
1.16 millert 2318: cat >>confdefs.h <<_ACEOF
1.9 millert 2319: #define MAXLOGFILELEN $loglen
1.16 millert 2320: _ACEOF
1.1 millert 2321:
1.16 millert 2322: echo "$as_me:$LINENO: result: $loglen" >&5
1.9 millert 2323: echo "${ECHO_T}$loglen" >&6
2324:
1.16 millert 2325: echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
1.9 millert 2326: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6
1.1 millert 2327:
2328: # Check whether --with-ignore-dot or --without-ignore-dot was given.
2329: if test "${with_ignore_dot+set}" = set; then
2330: withval="$with_ignore_dot"
1.9 millert 2331: case $with_ignore_dot in
2332: yes) ignore_dot=on
1.1 millert 2333: ;;
1.9 millert 2334: no) ignore_dot=off
1.1 millert 2335: ;;
1.16 millert 2336: *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9 millert 2337: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2338: { (exit 1); exit 1; }; }
1.1 millert 2339: ;;
2340: esac
1.9 millert 2341: fi;
2342: if test "$ignore_dot" = "on"; then
1.23 ! millert 2343: cat >>confdefs.h <<\_ACEOF
1.9 millert 2344: #define IGNORE_DOT_PATH 1
1.16 millert 2345: _ACEOF
1.9 millert 2346:
1.16 millert 2347: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2348: echo "${ECHO_T}yes" >&6
1.1 millert 2349: else
1.16 millert 2350: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2351: echo "${ECHO_T}no" >&6
1.1 millert 2352: fi
2353:
1.16 millert 2354: echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
1.9 millert 2355: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6
1.1 millert 2356:
1.9 millert 2357: # Check whether --with-mail-if-no-user or --without-mail-if-no-user was given.
2358: if test "${with_mail_if_no_user+set}" = set; then
2359: withval="$with_mail_if_no_user"
2360: case $with_mail_if_no_user in
2361: yes) mail_no_user=on
2362: ;;
2363: no) mail_no_user=off
1.1 millert 2364: ;;
1.16 millert 2365: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9 millert 2366: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2367: { (exit 1); exit 1; }; }
1.1 millert 2368: ;;
1.9 millert 2369: esac
2370: fi;
2371: if test "$mail_no_user" = "on"; then
1.23 ! millert 2372: cat >>confdefs.h <<\_ACEOF
1.9 millert 2373: #define SEND_MAIL_WHEN_NO_USER 1
1.16 millert 2374: _ACEOF
1.1 millert 2375:
1.16 millert 2376: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2377: echo "${ECHO_T}yes" >&6
1.1 millert 2378: else
1.16 millert 2379: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2380: echo "${ECHO_T}no" >&6
1.1 millert 2381: fi
2382:
1.16 millert 2383: echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
1.9 millert 2384: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6
1.1 millert 2385:
1.9 millert 2386: # Check whether --with-mail-if-no-host or --without-mail-if-no-host was given.
2387: if test "${with_mail_if_no_host+set}" = set; then
2388: withval="$with_mail_if_no_host"
2389: case $with_mail_if_no_host in
2390: yes) mail_no_host=on
1.1 millert 2391: ;;
1.9 millert 2392: no) mail_no_host=off
1.1 millert 2393: ;;
1.16 millert 2394: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9 millert 2395: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2396: { (exit 1); exit 1; }; }
1.1 millert 2397: ;;
2398: esac
1.9 millert 2399: fi;
2400: if test "$mail_no_host" = "on"; then
1.23 ! millert 2401: cat >>confdefs.h <<\_ACEOF
1.9 millert 2402: #define SEND_MAIL_WHEN_NO_HOST 1
1.16 millert 2403: _ACEOF
1.1 millert 2404:
1.16 millert 2405: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2406: echo "${ECHO_T}yes" >&6
2407: else
1.16 millert 2408: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2409: echo "${ECHO_T}no" >&6
1.1 millert 2410: fi
2411:
1.16 millert 2412: echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
1.9 millert 2413: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6
1.1 millert 2414:
1.9 millert 2415: # Check whether --with-mail-if-noperms or --without-mail-if-noperms was given.
2416: if test "${with_mail_if_noperms+set}" = set; then
2417: withval="$with_mail_if_noperms"
2418: case $with_mail_if_noperms in
2419: yes) mail_noperms=on
1.1 millert 2420: ;;
1.9 millert 2421: no) mail_noperms=off
1.1 millert 2422: ;;
1.16 millert 2423: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9 millert 2424: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2425: { (exit 1); exit 1; }; }
1.1 millert 2426: ;;
2427: esac
1.9 millert 2428: fi;
2429: if test "$mail_noperms" = "on"; then
1.23 ! millert 2430: cat >>confdefs.h <<\_ACEOF
1.9 millert 2431: #define SEND_MAIL_WHEN_NOT_OK 1
1.16 millert 2432: _ACEOF
1.9 millert 2433:
1.16 millert 2434: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2435: echo "${ECHO_T}yes" >&6
1.1 millert 2436: else
1.16 millert 2437: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2438: echo "${ECHO_T}no" >&6
1.1 millert 2439: fi
2440:
1.16 millert 2441: echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
1.9 millert 2442: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6
1.1 millert 2443:
1.9 millert 2444: # Check whether --with-mailto or --without-mailto was given.
2445: if test "${with_mailto+set}" = set; then
2446: withval="$with_mailto"
2447: case $with_mailto in
1.16 millert 2448: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9 millert 2449: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2450: { (exit 1); exit 1; }; }
1.1 millert 2451: ;;
1.16 millert 2452: no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9 millert 2453: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2454: { (exit 1); exit 1; }; }
1.1 millert 2455: ;;
1.9 millert 2456: *) mailto=$with_mailto
1.1 millert 2457: ;;
2458: esac
1.9 millert 2459: fi;
1.1 millert 2460:
1.16 millert 2461: cat >>confdefs.h <<_ACEOF
1.9 millert 2462: #define MAILTO "$mailto"
1.16 millert 2463: _ACEOF
1.1 millert 2464:
1.16 millert 2465: echo "$as_me:$LINENO: result: $mailto" >&5
1.9 millert 2466: echo "${ECHO_T}$mailto" >&6
1.1 millert 2467:
1.16 millert 2468:
1.9 millert 2469: # Check whether --with-mailsubject or --without-mailsubject was given.
2470: if test "${with_mailsubject+set}" = set; then
2471: withval="$with_mailsubject"
2472: case $with_mailsubject in
1.16 millert 2473: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9 millert 2474: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2475: { (exit 1); exit 1; }; }
1.1 millert 2476: ;;
1.17 millert 2477: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2478: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1 millert 2479: ;;
1.9 millert 2480: *) mailsub="$with_mailsubject"
1.16 millert 2481: echo "$as_me:$LINENO: checking sudo mail subject" >&5
1.9 millert 2482: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6
1.16 millert 2483: echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
1.9 millert 2484: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6
1.1 millert 2485: ;;
2486: esac
1.9 millert 2487: fi;
2488:
1.16 millert 2489: cat >>confdefs.h <<_ACEOF
1.9 millert 2490: #define MAILSUBJECT "$mailsub"
1.16 millert 2491: _ACEOF
2492:
1.1 millert 2493:
1.16 millert 2494: echo "$as_me:$LINENO: checking for bad password prompt" >&5
1.9 millert 2495: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6
1.1 millert 2496:
2497: # Check whether --with-passprompt or --without-passprompt was given.
2498: if test "${with_passprompt+set}" = set; then
2499: withval="$with_passprompt"
1.9 millert 2500: case $with_passprompt in
1.16 millert 2501: yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9 millert 2502: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2503: { (exit 1); exit 1; }; }
1.1 millert 2504: ;;
1.17 millert 2505: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2506: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1 millert 2507: ;;
1.9 millert 2508: *) passprompt="$with_passprompt"
2509: esac
2510: fi;
1.16 millert 2511: echo "$as_me:$LINENO: result: $passprompt" >&5
1.9 millert 2512: echo "${ECHO_T}$passprompt" >&6
1.1 millert 2513:
1.16 millert 2514: cat >>confdefs.h <<_ACEOF
1.9 millert 2515: #define PASSPROMPT "$passprompt"
1.16 millert 2516: _ACEOF
2517:
1.1 millert 2518:
1.16 millert 2519: echo "$as_me:$LINENO: checking for bad password message" >&5
1.9 millert 2520: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6
1.1 millert 2521:
2522: # Check whether --with-badpass-message or --without-badpass-message was given.
2523: if test "${with_badpass_message+set}" = set; then
2524: withval="$with_badpass_message"
1.9 millert 2525: case $with_badpass_message in
1.16 millert 2526: yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9 millert 2527: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
2528: { (exit 1); exit 1; }; }
1.1 millert 2529: ;;
1.17 millert 2530: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
2531: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1 millert 2532: ;;
1.9 millert 2533: *) badpass_message="$with_badpass_message"
1.1 millert 2534: ;;
2535: esac
1.9 millert 2536: fi;
2537:
1.16 millert 2538: cat >>confdefs.h <<_ACEOF
1.9 millert 2539: #define INCORRECT_PASSWORD "$badpass_message"
1.16 millert 2540: _ACEOF
1.1 millert 2541:
1.16 millert 2542: echo "$as_me:$LINENO: result: $badpass_message" >&5
1.9 millert 2543: echo "${ECHO_T}$badpass_message" >&6
2544:
1.16 millert 2545: echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
1.9 millert 2546: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6
1.1 millert 2547:
2548: # Check whether --with-fqdn or --without-fqdn was given.
2549: if test "${with_fqdn+set}" = set; then
2550: withval="$with_fqdn"
1.9 millert 2551: case $with_fqdn in
2552: yes) fqdn=on
1.1 millert 2553: ;;
1.9 millert 2554: no) fqdn=off
1.1 millert 2555: ;;
1.16 millert 2556: *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9 millert 2557: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
2558: { (exit 1); exit 1; }; }
1.1 millert 2559: ;;
2560: esac
1.9 millert 2561: fi;
2562: if test "$fqdn" = "on"; then
1.23 ! millert 2563: cat >>confdefs.h <<\_ACEOF
1.9 millert 2564: #define FQDN 1
1.16 millert 2565: _ACEOF
1.9 millert 2566:
1.16 millert 2567: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2568: echo "${ECHO_T}yes" >&6
1.1 millert 2569: else
1.16 millert 2570: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2571: echo "${ECHO_T}no" >&6
1.1 millert 2572: fi
2573:
1.16 millert 2574:
1.1 millert 2575: # Check whether --with-timedir or --without-timedir was given.
2576: if test "${with_timedir+set}" = set; then
2577: withval="$with_timedir"
1.9 millert 2578: case $with_timedir in
1.16 millert 2579: yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9 millert 2580: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
2581: { (exit 1); exit 1; }; }
1.1 millert 2582: ;;
1.16 millert 2583: no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9 millert 2584: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
2585: { (exit 1); exit 1; }; }
1.1 millert 2586: ;;
2587: esac
1.9 millert 2588: fi;
1.1 millert 2589:
1.16 millert 2590:
1.1 millert 2591: # Check whether --with-sendmail or --without-sendmail was given.
2592: if test "${with_sendmail+set}" = set; then
2593: withval="$with_sendmail"
1.9 millert 2594: case $with_sendmail in
1.1 millert 2595: yes) with_sendmail=""
2596: ;;
2597: no) ;;
1.9 millert 2598: *) cat >>confdefs.h <<EOF
2599: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1 millert 2600: EOF
2601:
2602: ;;
2603: esac
1.9 millert 2604: fi;
1.1 millert 2605:
1.16 millert 2606:
1.1 millert 2607: # Check whether --with-sudoers-mode or --without-sudoers-mode was given.
2608: if test "${with_sudoers_mode+set}" = set; then
2609: withval="$with_sudoers_mode"
1.9 millert 2610: case $with_sudoers_mode in
1.16 millert 2611: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9 millert 2612: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
2613: { (exit 1); exit 1; }; }
2614: ;;
1.16 millert 2615: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9 millert 2616: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
2617: { (exit 1); exit 1; }; }
1.1 millert 2618: ;;
2619: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
2620: ;;
2621: 0*) SUDOERS_MODE=$with_sudoers_mode
2622: ;;
1.16 millert 2623: *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
2624: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9 millert 2625: { (exit 1); exit 1; }; }
1.1 millert 2626: ;;
2627: esac
1.9 millert 2628: fi;
1.1 millert 2629:
1.16 millert 2630:
1.1 millert 2631: # Check whether --with-sudoers-uid or --without-sudoers-uid was given.
2632: if test "${with_sudoers_uid+set}" = set; then
2633: withval="$with_sudoers_uid"
1.9 millert 2634: case $with_sudoers_uid in
1.16 millert 2635: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9 millert 2636: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
2637: { (exit 1); exit 1; }; }
2638: ;;
1.16 millert 2639: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9 millert 2640: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
2641: { (exit 1); exit 1; }; }
1.1 millert 2642: ;;
2643: [0-9]*) SUDOERS_UID=$with_sudoers_uid
2644: ;;
1.16 millert 2645: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
2646: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9 millert 2647: { (exit 1); exit 1; }; }
1.1 millert 2648: ;;
2649: esac
1.9 millert 2650: fi;
1.1 millert 2651:
1.16 millert 2652:
1.1 millert 2653: # Check whether --with-sudoers-gid or --without-sudoers-gid was given.
2654: if test "${with_sudoers_gid+set}" = set; then
2655: withval="$with_sudoers_gid"
1.9 millert 2656: case $with_sudoers_gid in
1.16 millert 2657: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9 millert 2658: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
2659: { (exit 1); exit 1; }; }
2660: ;;
1.16 millert 2661: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9 millert 2662: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
2663: { (exit 1); exit 1; }; }
1.1 millert 2664: ;;
2665: [0-9]*) SUDOERS_GID=$with_sudoers_gid
2666: ;;
1.16 millert 2667: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
2668: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9 millert 2669: { (exit 1); exit 1; }; }
1.1 millert 2670: ;;
2671: esac
1.9 millert 2672: fi;
1.1 millert 2673:
1.16 millert 2674: echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
1.9 millert 2675: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6
1.1 millert 2676:
2677: # Check whether --with-umask or --without-umask was given.
2678: if test "${with_umask+set}" = set; then
2679: withval="$with_umask"
1.9 millert 2680: case $with_umask in
1.16 millert 2681: yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9 millert 2682: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
2683: { (exit 1); exit 1; }; }
1.1 millert 2684: ;;
1.9 millert 2685: no) sudo_umask=0777
1.1 millert 2686: ;;
1.9 millert 2687: [0-9]*) sudo_umask=$with_umask
1.1 millert 2688: ;;
1.16 millert 2689: *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9 millert 2690: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
2691: { (exit 1); exit 1; }; }
1.1 millert 2692: ;;
2693: esac
1.9 millert 2694: fi;
2695:
1.16 millert 2696: cat >>confdefs.h <<_ACEOF
1.9 millert 2697: #define SUDO_UMASK $sudo_umask
1.16 millert 2698: _ACEOF
1.9 millert 2699:
2700: if test "$sudo_umask" = "0777"; then
1.16 millert 2701: echo "$as_me:$LINENO: result: user" >&5
1.9 millert 2702: echo "${ECHO_T}user" >&6
1.1 millert 2703: else
1.16 millert 2704: echo "$as_me:$LINENO: result: $sudo_umask" >&5
1.9 millert 2705: echo "${ECHO_T}$sudo_umask" >&6
1.1 millert 2706: fi
2707:
1.16 millert 2708: echo "$as_me:$LINENO: checking for default user to run commands as" >&5
1.9 millert 2709: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6
1.1 millert 2710:
2711: # Check whether --with-runas-default or --without-runas-default was given.
2712: if test "${with_runas_default+set}" = set; then
2713: withval="$with_runas_default"
1.9 millert 2714: case $with_runas_default in
1.16 millert 2715: yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9 millert 2716: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
2717: { (exit 1); exit 1; }; }
1.1 millert 2718: ;;
1.16 millert 2719: no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9 millert 2720: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
2721: { (exit 1); exit 1; }; }
1.1 millert 2722: ;;
1.9 millert 2723: *) runas_default="$with_runas_default"
1.1 millert 2724: ;;
2725: esac
1.9 millert 2726: fi;
2727:
1.16 millert 2728: cat >>confdefs.h <<_ACEOF
1.9 millert 2729: #define RUNAS_DEFAULT "$runas_default"
1.16 millert 2730: _ACEOF
1.1 millert 2731:
1.16 millert 2732: echo "$as_me:$LINENO: result: $runas_default" >&5
1.9 millert 2733: echo "${ECHO_T}$runas_default" >&6
1.1 millert 2734:
1.16 millert 2735:
1.1 millert 2736: # Check whether --with-exempt or --without-exempt was given.
2737: if test "${with_exempt+set}" = set; then
2738: withval="$with_exempt"
1.9 millert 2739: case $with_exempt in
1.16 millert 2740: yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9 millert 2741: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
2742: { (exit 1); exit 1; }; }
2743: ;;
1.16 millert 2744: no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9 millert 2745: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
2746: { (exit 1); exit 1; }; }
1.1 millert 2747: ;;
1.9 millert 2748: *)
1.16 millert 2749: cat >>confdefs.h <<_ACEOF
1.1 millert 2750: #define EXEMPTGROUP "$with_exempt"
1.16 millert 2751: _ACEOF
1.1 millert 2752:
1.16 millert 2753: echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
1.9 millert 2754: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6
1.16 millert 2755: echo "$as_me:$LINENO: result: $with_exempt" >&5
1.9 millert 2756: echo "${ECHO_T}$with_exempt" >&6
1.1 millert 2757: ;;
2758: esac
1.9 millert 2759: fi;
1.1 millert 2760:
1.16 millert 2761: echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
1.9 millert 2762: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6
1.1 millert 2763:
2764: # Check whether --with-editor or --without-editor was given.
2765: if test "${with_editor+set}" = set; then
2766: withval="$with_editor"
1.9 millert 2767: case $with_editor in
1.16 millert 2768: yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9 millert 2769: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
2770: { (exit 1); exit 1; }; }
2771: ;;
1.16 millert 2772: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 2773: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2774: { (exit 1); exit 1; }; }
1.1 millert 2775: ;;
1.9 millert 2776: *)
1.16 millert 2777: cat >>confdefs.h <<_ACEOF
1.1 millert 2778: #define EDITOR "$with_editor"
1.16 millert 2779: _ACEOF
1.1 millert 2780:
1.16 millert 2781: echo "$as_me:$LINENO: result: $with_editor" >&5
1.9 millert 2782: echo "${ECHO_T}$with_editor" >&6
1.1 millert 2783: ;;
2784: esac
2785: else
1.16 millert 2786: cat >>confdefs.h <<\_ACEOF
1.1 millert 2787: #define EDITOR _PATH_VI
1.16 millert 2788: _ACEOF
2789: echo "$as_me:$LINENO: result: vi" >&5
1.9 millert 2790: echo "${ECHO_T}vi" >&6
2791: fi;
1.1 millert 2792:
1.16 millert 2793: echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
1.9 millert 2794: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6
1.1 millert 2795:
2796: # Check whether --with-env-editor or --without-env-editor was given.
2797: if test "${with_env_editor+set}" = set; then
2798: withval="$with_env_editor"
1.9 millert 2799: case $with_env_editor in
2800: yes) env_editor=on
1.1 millert 2801: ;;
1.9 millert 2802: no) env_editor=off
1.1 millert 2803: ;;
1.16 millert 2804: *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9 millert 2805: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
2806: { (exit 1); exit 1; }; }
1.1 millert 2807: ;;
2808: esac
1.9 millert 2809: fi;
2810: if test "$env_editor" = "on"; then
1.23 ! millert 2811: cat >>confdefs.h <<\_ACEOF
1.9 millert 2812: #define ENV_EDITOR 1
1.16 millert 2813: _ACEOF
1.9 millert 2814:
1.16 millert 2815: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2816: echo "${ECHO_T}yes" >&6
1.1 millert 2817: else
1.16 millert 2818: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2819: echo "${ECHO_T}no" >&6
1.1 millert 2820: fi
2821:
1.16 millert 2822: echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
1.9 millert 2823: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6
1.1 millert 2824:
2825: # Check whether --with-passwd-tries or --without-passwd-tries was given.
2826: if test "${with_passwd_tries+set}" = set; then
2827: withval="$with_passwd_tries"
1.9 millert 2828: case $with_passwd_tries in
2829: yes) ;;
1.16 millert 2830: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 2831: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
2832: { (exit 1); exit 1; }; }
1.1 millert 2833: ;;
1.9 millert 2834: [1-9]*) passwd_tries=$with_passwd_tries
1.1 millert 2835: ;;
1.16 millert 2836: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9 millert 2837: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
2838: { (exit 1); exit 1; }; }
1.1 millert 2839: ;;
2840: esac
1.9 millert 2841: fi;
2842:
1.16 millert 2843: cat >>confdefs.h <<_ACEOF
1.9 millert 2844: #define TRIES_FOR_PASSWORD $passwd_tries
1.16 millert 2845: _ACEOF
1.1 millert 2846:
1.16 millert 2847: echo "$as_me:$LINENO: result: $passwd_tries" >&5
1.9 millert 2848: echo "${ECHO_T}$passwd_tries" >&6
2849:
1.16 millert 2850: echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
1.9 millert 2851: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6
1.1 millert 2852:
2853: # Check whether --with-timeout or --without-timeout was given.
2854: if test "${with_timeout+set}" = set; then
2855: withval="$with_timeout"
1.16 millert 2856: case $with_timeout in
1.9 millert 2857: yes) ;;
2858: no) timeout=0
1.1 millert 2859: ;;
1.9 millert 2860: [0-9]*) timeout=$with_timeout
1.1 millert 2861: ;;
1.16 millert 2862: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2863: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2864: { (exit 1); exit 1; }; }
1.1 millert 2865: ;;
2866: esac
1.9 millert 2867: fi;
2868:
1.16 millert 2869: cat >>confdefs.h <<_ACEOF
1.9 millert 2870: #define TIMEOUT $timeout
1.16 millert 2871: _ACEOF
1.1 millert 2872:
1.16 millert 2873: echo "$as_me:$LINENO: result: $timeout" >&5
1.9 millert 2874: echo "${ECHO_T}$timeout" >&6
2875:
1.16 millert 2876: echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
1.9 millert 2877: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6
1.1 millert 2878:
2879: # Check whether --with-password-timeout or --without-password-timeout was given.
2880: if test "${with_password_timeout+set}" = set; then
2881: withval="$with_password_timeout"
1.9 millert 2882: case $with_password_timeout in
2883: yes) ;;
2884: no) password_timeout=0
1.1 millert 2885: ;;
1.9 millert 2886: [0-9]*) password_timeout=$with_password_timeout
1.1 millert 2887: ;;
1.16 millert 2888: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 2889: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
2890: { (exit 1); exit 1; }; }
1.1 millert 2891: ;;
2892: esac
1.9 millert 2893: fi;
2894:
1.16 millert 2895: cat >>confdefs.h <<_ACEOF
1.9 millert 2896: #define PASSWORD_TIMEOUT $password_timeout
1.16 millert 2897: _ACEOF
1.1 millert 2898:
1.16 millert 2899: echo "$as_me:$LINENO: result: $password_timeout" >&5
1.9 millert 2900: echo "${ECHO_T}$password_timeout" >&6
1.1 millert 2901:
1.16 millert 2902:
1.1 millert 2903: # Check whether --with-execv or --without-execv was given.
2904: if test "${with_execv+set}" = set; then
2905: withval="$with_execv"
1.9 millert 2906: case $with_execv in
1.16 millert 2907: yes) echo "$as_me:$LINENO: checking whether to use execvp or execv" >&5
1.9 millert 2908: echo $ECHO_N "checking whether to use execvp or execv... $ECHO_C" >&6
1.16 millert 2909: echo "$as_me:$LINENO: result: execv" >&5
1.9 millert 2910: echo "${ECHO_T}execv" >&6
1.23 ! millert 2911: cat >>confdefs.h <<\_ACEOF
1.1 millert 2912: #define USE_EXECV 1
1.16 millert 2913: _ACEOF
1.1 millert 2914:
2915: ;;
1.9 millert 2916: no) ;;
1.16 millert 2917: *) { { echo "$as_me:$LINENO: error: \"--with-execv does not take an argument.\"" >&5
1.9 millert 2918: echo "$as_me: error: \"--with-execv does not take an argument.\"" >&2;}
2919: { (exit 1); exit 1; }; }
1.1 millert 2920: ;;
2921: esac
1.9 millert 2922: fi;
1.1 millert 2923:
1.16 millert 2924: echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
1.9 millert 2925: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6
1.1 millert 2926:
2927: # Check whether --with-tty-tickets or --without-tty-tickets was given.
2928: if test "${with_tty_tickets+set}" = set; then
2929: withval="$with_tty_tickets"
1.9 millert 2930: case $with_tty_tickets in
2931: yes) tty_tickets=on
1.1 millert 2932: ;;
1.9 millert 2933: no) tty_tickets=off
1.1 millert 2934: ;;
1.16 millert 2935: *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9 millert 2936: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
2937: { (exit 1); exit 1; }; }
1.1 millert 2938: ;;
2939: esac
1.9 millert 2940: fi;
2941: if test "$tty_tickets" = "on"; then
1.23 ! millert 2942: cat >>confdefs.h <<\_ACEOF
1.9 millert 2943: #define USE_TTY_TICKETS 1
1.16 millert 2944: _ACEOF
1.9 millert 2945:
1.16 millert 2946: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2947: echo "${ECHO_T}yes" >&6
1.1 millert 2948: else
1.16 millert 2949: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2950: echo "${ECHO_T}no" >&6
1.1 millert 2951: fi
2952:
1.16 millert 2953: echo "$as_me:$LINENO: checking whether to include insults" >&5
1.9 millert 2954: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6
1.1 millert 2955:
2956: # Check whether --with-insults or --without-insults was given.
2957: if test "${with_insults+set}" = set; then
2958: withval="$with_insults"
1.9 millert 2959: case $with_insults in
2960: yes) insults=on
1.1 millert 2961: with_classic_insults=yes
2962: with_csops_insults=yes
2963: ;;
1.9 millert 2964: no) insults=off
1.1 millert 2965: ;;
1.16 millert 2966: *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9 millert 2967: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
2968: { (exit 1); exit 1; }; }
1.1 millert 2969: ;;
2970: esac
1.9 millert 2971: fi;
2972: if test "$insults" = "on"; then
1.23 ! millert 2973: cat >>confdefs.h <<\_ACEOF
1.9 millert 2974: #define USE_INSULTS 1
1.16 millert 2975: _ACEOF
1.9 millert 2976:
1.16 millert 2977: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 2978: echo "${ECHO_T}yes" >&6
1.1 millert 2979: else
1.16 millert 2980: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 2981: echo "${ECHO_T}no" >&6
1.1 millert 2982: fi
2983:
1.16 millert 2984:
1.1 millert 2985: # Check whether --with-all-insults or --without-all-insults was given.
2986: if test "${with_all_insults+set}" = set; then
2987: withval="$with_all_insults"
1.9 millert 2988: case $with_all_insults in
1.1 millert 2989: yes) with_classic_insults=yes
2990: with_csops_insults=yes
2991: with_hal_insults=yes
2992: with_goons_insults=yes
2993: ;;
2994: no) ;;
1.16 millert 2995: *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9 millert 2996: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
2997: { (exit 1); exit 1; }; }
1.1 millert 2998: ;;
2999: esac
1.9 millert 3000: fi;
1.1 millert 3001:
1.16 millert 3002:
1.1 millert 3003: # Check whether --with-classic-insults or --without-classic-insults was given.
3004: if test "${with_classic_insults+set}" = set; then
3005: withval="$with_classic_insults"
1.9 millert 3006: case $with_classic_insults in
1.23 ! millert 3007: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3008: #define CLASSIC_INSULTS 1
1.16 millert 3009: _ACEOF
1.1 millert 3010:
3011: ;;
3012: no) ;;
1.16 millert 3013: *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9 millert 3014: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3015: { (exit 1); exit 1; }; }
1.1 millert 3016: ;;
3017: esac
1.9 millert 3018: fi;
1.1 millert 3019:
1.16 millert 3020:
1.1 millert 3021: # Check whether --with-csops-insults or --without-csops-insults was given.
3022: if test "${with_csops_insults+set}" = set; then
3023: withval="$with_csops_insults"
1.9 millert 3024: case $with_csops_insults in
1.23 ! millert 3025: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3026: #define CSOPS_INSULTS 1
1.16 millert 3027: _ACEOF
1.1 millert 3028:
3029: ;;
3030: no) ;;
1.16 millert 3031: *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9 millert 3032: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3033: { (exit 1); exit 1; }; }
1.1 millert 3034: ;;
3035: esac
1.9 millert 3036: fi;
1.1 millert 3037:
1.16 millert 3038:
1.1 millert 3039: # Check whether --with-hal-insults or --without-hal-insults was given.
3040: if test "${with_hal_insults+set}" = set; then
3041: withval="$with_hal_insults"
1.9 millert 3042: case $with_hal_insults in
1.23 ! millert 3043: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3044: #define HAL_INSULTS 1
1.16 millert 3045: _ACEOF
1.1 millert 3046:
3047: ;;
3048: no) ;;
1.16 millert 3049: *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9 millert 3050: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3051: { (exit 1); exit 1; }; }
1.1 millert 3052: ;;
3053: esac
1.9 millert 3054: fi;
1.1 millert 3055:
1.16 millert 3056:
1.1 millert 3057: # Check whether --with-goons-insults or --without-goons-insults was given.
3058: if test "${with_goons_insults+set}" = set; then
3059: withval="$with_goons_insults"
1.9 millert 3060: case $with_goons_insults in
1.23 ! millert 3061: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3062: #define GOONS_INSULTS 1
1.16 millert 3063: _ACEOF
1.1 millert 3064:
3065: ;;
3066: no) ;;
1.16 millert 3067: *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9 millert 3068: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3069: { (exit 1); exit 1; }; }
1.1 millert 3070: ;;
3071: esac
1.9 millert 3072: fi;
1.1 millert 3073:
1.23 ! millert 3074:
! 3075: # Check whether --with-ldap or --without-ldap was given.
! 3076: if test "${with_ldap+set}" = set; then
! 3077: withval="$with_ldap"
! 3078: case $with_ldap in
! 3079: no) with_ldap="";;
! 3080: *) cat >>confdefs.h <<\_ACEOF
! 3081: #define HAVE_LDAP 1
! 3082: _ACEOF
! 3083:
! 3084: echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
! 3085: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6
! 3086: echo "$as_me:$LINENO: result: yes" >&5
! 3087: echo "${ECHO_T}yes" >&6
! 3088: ;;
! 3089: esac
! 3090: fi;
! 3091:
! 3092: # Check whether --with-ldap-conf-file or --without-ldap-conf-file was given.
! 3093: if test "${with_ldap_conf_file+set}" = set; then
! 3094: withval="$with_ldap_conf_file"
! 3095:
! 3096: cat >>confdefs.h <<_ACEOF
! 3097: #define _PATH_LDAP_CONF "$with_ldap_conf_file"
! 3098: _ACEOF
! 3099:
! 3100: fi;
! 3101:
! 3102:
! 3103: # Check whether --with-pc-insults or --without-pc-insults was given.
! 3104: if test "${with_pc_insults+set}" = set; then
! 3105: withval="$with_pc_insults"
! 3106: case $with_pc_insults in
! 3107: yes) cat >>confdefs.h <<\_ACEOF
! 3108: #define PC_INSULTS 1
! 3109: _ACEOF
! 3110:
! 3111: ;;
! 3112: no) ;;
! 3113: *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
! 3114: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
! 3115: { (exit 1); exit 1; }; }
! 3116: ;;
! 3117: esac
! 3118: fi;
! 3119:
1.9 millert 3120: if test "$insults" = "on"; then
1.16 millert 3121: echo "$as_me:$LINENO: checking which insult sets to include" >&5
1.9 millert 3122: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6
1.1 millert 3123: i=""
3124: test "$with_goons_insults" = "yes" && i="goons ${i}"
3125: test "$with_hal_insults" = "yes" && i="hal ${i}"
3126: test "$with_csops_insults" = "yes" && i="csops ${i}"
3127: test "$with_classic_insults" = "yes" && i="classic ${i}"
1.16 millert 3128: echo "$as_me:$LINENO: result: $i" >&5
1.9 millert 3129: echo "${ECHO_T}$i" >&6
1.1 millert 3130: fi
3131:
1.16 millert 3132: echo "$as_me:$LINENO: checking whether to override the user's path" >&5
1.9 millert 3133: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6
3134:
1.1 millert 3135: # Check whether --with-secure-path or --without-secure-path was given.
3136: if test "${with_secure_path+set}" = set; then
3137: withval="$with_secure_path"
1.9 millert 3138: case $with_secure_path in
1.23 ! millert 3139: yes) cat >>confdefs.h <<_ACEOF
1.1 millert 3140: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16 millert 3141: _ACEOF
1.1 millert 3142:
1.16 millert 3143: echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
1.9 millert 3144: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6
1.1 millert 3145: ;;
1.16 millert 3146: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3147: echo "${ECHO_T}no" >&6
1.1 millert 3148: ;;
1.16 millert 3149: *) cat >>confdefs.h <<_ACEOF
1.1 millert 3150: #define SECURE_PATH "$with_secure_path"
1.16 millert 3151: _ACEOF
1.1 millert 3152:
1.16 millert 3153: echo "$as_me:$LINENO: result: $with_secure_path" >&5
1.9 millert 3154: echo "${ECHO_T}$with_secure_path" >&6
1.1 millert 3155: ;;
3156: esac
3157: else
1.16 millert 3158: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3159: echo "${ECHO_T}no" >&6
3160: fi;
1.1 millert 3161:
1.16 millert 3162: echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
1.9 millert 3163: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6
1.1 millert 3164:
3165: # Check whether --with-interfaces or --without-interfaces was given.
3166: if test "${with_interfaces+set}" = set; then
3167: withval="$with_interfaces"
1.9 millert 3168: case $with_interfaces in
1.16 millert 3169: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3170: echo "${ECHO_T}yes" >&6
1.1 millert 3171: ;;
1.23 ! millert 3172: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3173: #define STUB_LOAD_INTERFACES 1
1.16 millert 3174: _ACEOF
1.1 millert 3175:
1.16 millert 3176: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3177: echo "${ECHO_T}no" >&6
1.1 millert 3178: ;;
1.16 millert 3179: *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9 millert 3180: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3181: { (exit 1); exit 1; }; }
1.1 millert 3182: ;;
3183: esac
3184: else
1.16 millert 3185: echo "$as_me:$LINENO: result: yes" >&5
3186: echo "${ECHO_T}yes" >&6
3187: fi;
3188:
3189: echo "$as_me:$LINENO: checking whether stow should be used" >&5
3190: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6
3191:
3192: # Check whether --with-stow or --without-stow was given.
3193: if test "${with_stow+set}" = set; then
3194: withval="$with_stow"
3195: case $with_stow in
3196: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3197: echo "${ECHO_T}yes" >&6
1.23 ! millert 3198: cat >>confdefs.h <<\_ACEOF
1.16 millert 3199: #define USE_STOW 1
3200: _ACEOF
3201:
3202: ;;
3203: no) echo "$as_me:$LINENO: result: no" >&5
3204: echo "${ECHO_T}no" >&6
3205: ;;
3206: *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3207: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3208: { (exit 1); exit 1; }; }
3209: ;;
3210: esac
3211: else
3212: echo "$as_me:$LINENO: result: no" >&5
3213: echo "${ECHO_T}no" >&6
1.9 millert 3214: fi;
1.1 millert 3215:
1.16 millert 3216:
3217: echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
1.9 millert 3218: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6
1.1 millert 3219: # Check whether --enable-authentication or --disable-authentication was given.
3220: if test "${enable_authentication+set}" = set; then
3221: enableval="$enable_authentication"
3222: case "$enableval" in
1.16 millert 3223: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3224: echo "${ECHO_T}yes" >&6
1.1 millert 3225: ;;
1.16 millert 3226: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3227: echo "${ECHO_T}no" >&6
1.23 ! millert 3228: cat >>confdefs.h <<\_ACEOF
1.1 millert 3229: #define NO_AUTHENTICATION 1
1.16 millert 3230: _ACEOF
1.1 millert 3231:
3232: ;;
1.16 millert 3233: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3234: echo "${ECHO_T}no" >&6
1.17 millert 3235: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3236: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1 millert 3237: ;;
3238: esac
3239:
3240: else
1.16 millert 3241: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3242: echo "${ECHO_T}yes" >&6
3243: fi;
1.1 millert 3244:
1.16 millert 3245: echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
1.12 millert 3246: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6
3247: # Check whether --enable-root-mailer or --disable-root-mailer was given.
3248: if test "${enable_root_mailer+set}" = set; then
3249: enableval="$enable_root_mailer"
3250: case "$enableval" in
1.16 millert 3251: yes) echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3252: echo "${ECHO_T}no" >&6
3253: ;;
1.16 millert 3254: no) echo "$as_me:$LINENO: result: yes" >&5
1.12 millert 3255: echo "${ECHO_T}yes" >&6
1.23 ! millert 3256: cat >>confdefs.h <<\_ACEOF
1.12 millert 3257: #define NO_ROOT_MAILER 1
1.16 millert 3258: _ACEOF
1.12 millert 3259:
3260: ;;
1.16 millert 3261: *) echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3262: echo "${ECHO_T}no" >&6
1.17 millert 3263: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3264: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12 millert 3265: ;;
3266: esac
3267:
3268: else
1.16 millert 3269: echo "$as_me:$LINENO: result: no" >&5
1.12 millert 3270: echo "${ECHO_T}no" >&6
3271: fi;
3272:
1.13 millert 3273: # Check whether --enable-setreuid or --disable-setreuid was given.
3274: if test "${enable_setreuid+set}" = set; then
3275: enableval="$enable_setreuid"
3276: case "$enableval" in
1.16 millert 3277: no) SKIP_SETREUID=yes
3278: ;;
3279: *) ;;
3280: esac
3281:
3282: fi;
3283:
3284: # Check whether --enable-setresuid or --disable-setresuid was given.
3285: if test "${enable_setresuid+set}" = set; then
3286: enableval="$enable_setresuid"
3287: case "$enableval" in
3288: no) SKIP_SETRESUID=yes
1.13 millert 3289: ;;
3290: *) ;;
3291: esac
3292:
3293: fi;
3294:
1.16 millert 3295: echo "$as_me:$LINENO: checking whether to disable use of POSIX saved ids" >&5
1.11 millert 3296: echo $ECHO_N "checking whether to disable use of POSIX saved ids... $ECHO_C" >&6
3297: # Check whether --enable-saved-ids or --disable-saved-ids was given.
3298: if test "${enable_saved_ids+set}" = set; then
3299: enableval="$enable_saved_ids"
3300: case "$enableval" in
1.16 millert 3301: yes) echo "$as_me:$LINENO: result: no" >&5
1.11 millert 3302: echo "${ECHO_T}no" >&6
3303: ;;
1.16 millert 3304: no) echo "$as_me:$LINENO: result: yes" >&5
1.11 millert 3305: echo "${ECHO_T}yes" >&6
1.23 ! millert 3306: cat >>confdefs.h <<\_ACEOF
1.11 millert 3307: #define NO_SAVED_IDS 1
1.16 millert 3308: _ACEOF
1.11 millert 3309:
3310: ;;
1.16 millert 3311: *) echo "$as_me:$LINENO: result: no" >&5
1.11 millert 3312: echo "${ECHO_T}no" >&6
1.17 millert 3313: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&5
3314: echo "$as_me: WARNING: Ignoring unknown argument to --enable-saved-ids: $enableval" >&2;}
1.11 millert 3315: ;;
3316: esac
3317:
3318: else
1.16 millert 3319: echo "$as_me:$LINENO: result: no" >&5
1.11 millert 3320: echo "${ECHO_T}no" >&6
3321: fi;
3322:
1.16 millert 3323: echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
1.9 millert 3324: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6
1.1 millert 3325: # Check whether --enable-shadow or --disable-shadow was given.
3326: if test "${enable_shadow+set}" = set; then
3327: enableval="$enable_shadow"
3328: case "$enableval" in
1.16 millert 3329: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3330: echo "${ECHO_T}no" >&6
1.1 millert 3331: ;;
1.16 millert 3332: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3333: echo "${ECHO_T}yes" >&6
1.1 millert 3334: CHECKSHADOW="false"
3335: ;;
1.16 millert 3336: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3337: echo "${ECHO_T}no" >&6
1.17 millert 3338: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3339: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1 millert 3340: ;;
3341: esac
3342:
3343: else
1.16 millert 3344: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3345: echo "${ECHO_T}no" >&6
3346: fi;
1.1 millert 3347:
1.16 millert 3348: echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
1.9 millert 3349: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6
1.1 millert 3350: # Check whether --enable-root-sudo or --disable-root-sudo was given.
3351: if test "${enable_root_sudo+set}" = set; then
3352: enableval="$enable_root_sudo"
1.9 millert 3353: case "$enableval" in
1.16 millert 3354: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3355: echo "${ECHO_T}yes" >&6
1.1 millert 3356: ;;
1.23 ! millert 3357: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3358: #define NO_ROOT_SUDO 1
1.16 millert 3359: _ACEOF
1.1 millert 3360:
1.16 millert 3361: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3362: echo "${ECHO_T}no" >&6
1.23 ! millert 3363: root_sudo=off
1.1 millert 3364: ;;
1.16 millert 3365: *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9 millert 3366: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3367: { (exit 1); exit 1; }; }
1.1 millert 3368: ;;
3369: esac
3370:
3371: else
1.16 millert 3372: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3373: echo "${ECHO_T}yes" >&6
3374: fi;
1.1 millert 3375:
1.16 millert 3376: echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
1.9 millert 3377: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6
1.1 millert 3378: # Check whether --enable-log-host or --disable-log-host was given.
3379: if test "${enable_log_host+set}" = set; then
3380: enableval="$enable_log_host"
3381: case "$enableval" in
1.16 millert 3382: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3383: echo "${ECHO_T}yes" >&6
1.23 ! millert 3384: cat >>confdefs.h <<\_ACEOF
1.1 millert 3385: #define HOST_IN_LOG 1
1.16 millert 3386: _ACEOF
1.1 millert 3387:
3388: ;;
1.16 millert 3389: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3390: echo "${ECHO_T}no" >&6
1.1 millert 3391: ;;
1.16 millert 3392: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3393: echo "${ECHO_T}no" >&6
1.17 millert 3394: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3395: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1 millert 3396: ;;
3397: esac
3398:
3399: else
1.16 millert 3400: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3401: echo "${ECHO_T}no" >&6
3402: fi;
1.1 millert 3403:
1.16 millert 3404: echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
1.9 millert 3405: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6
1.1 millert 3406: # Check whether --enable-noargs-shell or --disable-noargs-shell was given.
3407: if test "${enable_noargs_shell+set}" = set; then
3408: enableval="$enable_noargs_shell"
3409: case "$enableval" in
1.16 millert 3410: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3411: echo "${ECHO_T}yes" >&6
1.23 ! millert 3412: cat >>confdefs.h <<\_ACEOF
1.1 millert 3413: #define SHELL_IF_NO_ARGS 1
1.16 millert 3414: _ACEOF
1.1 millert 3415:
3416: ;;
1.16 millert 3417: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3418: echo "${ECHO_T}no" >&6
1.1 millert 3419: ;;
1.16 millert 3420: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3421: echo "${ECHO_T}no" >&6
1.17 millert 3422: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3423: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1 millert 3424: ;;
3425: esac
3426:
3427: else
1.16 millert 3428: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3429: echo "${ECHO_T}no" >&6
3430: fi;
1.1 millert 3431:
1.16 millert 3432: echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
1.9 millert 3433: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6
1.1 millert 3434: # Check whether --enable-shell-sets-home or --disable-shell-sets-home was given.
3435: if test "${enable_shell_sets_home+set}" = set; then
3436: enableval="$enable_shell_sets_home"
3437: case "$enableval" in
1.16 millert 3438: yes) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3439: echo "${ECHO_T}yes" >&6
1.23 ! millert 3440: cat >>confdefs.h <<\_ACEOF
1.1 millert 3441: #define SHELL_SETS_HOME 1
1.16 millert 3442: _ACEOF
1.1 millert 3443:
3444: ;;
1.16 millert 3445: no) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3446: echo "${ECHO_T}no" >&6
1.1 millert 3447: ;;
1.16 millert 3448: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3449: echo "${ECHO_T}no" >&6
1.17 millert 3450: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3451: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1 millert 3452: ;;
3453: esac
3454:
3455: else
1.16 millert 3456: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3457: echo "${ECHO_T}no" >&6
3458: fi;
1.1 millert 3459:
1.16 millert 3460: echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
1.9 millert 3461: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6
1.1 millert 3462: # Check whether --enable-path_info or --disable-path_info was given.
3463: if test "${enable_path_info+set}" = set; then
3464: enableval="$enable_path_info"
3465: case "$enableval" in
1.16 millert 3466: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3467: echo "${ECHO_T}no" >&6
1.1 millert 3468: ;;
1.16 millert 3469: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3470: echo "${ECHO_T}yes" >&6
1.23 ! millert 3471: cat >>confdefs.h <<\_ACEOF
1.1 millert 3472: #define DONT_LEAK_PATH_INFO 1
1.16 millert 3473: _ACEOF
1.1 millert 3474:
3475: ;;
1.16 millert 3476: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3477: echo "${ECHO_T}no" >&6
1.17 millert 3478: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3479: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1 millert 3480: ;;
3481: esac
3482:
3483: else
1.16 millert 3484: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3485: echo "${ECHO_T}no" >&6
3486: fi;
1.1 millert 3487:
3488: # Extract the first word of "egrep", so it can be a program name with args.
3489: set dummy egrep; ac_word=$2
1.16 millert 3490: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3491: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3493: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3494: else
3495: if test -n "$EGREPPROG"; then
3496: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3497: else
1.16 millert 3498: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499: for as_dir in $PATH
3500: do
3501: IFS=$as_save_IFS
3502: test -z "$as_dir" && as_dir=.
3503: for ac_exec_ext in '' $ac_executable_extensions; do
3504: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3505: ac_cv_prog_EGREPPROG="egrep"
3506: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507: break 2
3508: fi
3509: done
1.9 millert 3510: done
3511:
1.1 millert 3512: fi
3513: fi
1.9 millert 3514: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1 millert 3515: if test -n "$EGREPPROG"; then
1.16 millert 3516: echo "$as_me:$LINENO: result: $EGREPPROG" >&5
1.9 millert 3517: echo "${ECHO_T}$EGREPPROG" >&6
1.1 millert 3518: else
1.16 millert 3519: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3520: echo "${ECHO_T}no" >&6
1.1 millert 3521: fi
3522:
3523: if test -z "$EGREPPROG"; then
1.17 millert 3524: { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
3525: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
3526: { (exit 1); exit 1; }; }
1.1 millert 3527: fi
3528:
1.9 millert 3529: if test "$with_devel" != "yes"; then
3530: ac_cv_prog_cc_g=no
3531: fi
3532:
3533: ac_ext=c
3534: ac_cpp='$CPP $CPPFLAGS'
3535: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538: if test -n "$ac_tool_prefix"; then
3539: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3540: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.16 millert 3541: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3542: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543: if test "${ac_cv_prog_CC+set}" = set; then
3544: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3545: else
3546: if test -n "$CC"; then
3547: ac_cv_prog_CC="$CC" # Let the user override the test.
3548: else
1.16 millert 3549: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550: for as_dir in $PATH
3551: do
3552: IFS=$as_save_IFS
3553: test -z "$as_dir" && as_dir=.
3554: for ac_exec_ext in '' $ac_executable_extensions; do
3555: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3556: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3557: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558: break 2
3559: fi
3560: done
1.9 millert 3561: done
3562:
1.1 millert 3563: fi
3564: fi
1.9 millert 3565: CC=$ac_cv_prog_CC
1.1 millert 3566: if test -n "$CC"; then
1.16 millert 3567: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3568: echo "${ECHO_T}$CC" >&6
1.1 millert 3569: else
1.16 millert 3570: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3571: echo "${ECHO_T}no" >&6
3572: fi
3573:
3574: fi
3575: if test -z "$ac_cv_prog_CC"; then
3576: ac_ct_CC=$CC
3577: # Extract the first word of "gcc", so it can be a program name with args.
3578: set dummy gcc; ac_word=$2
1.16 millert 3579: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3580: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3581: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3582: echo $ECHO_N "(cached) $ECHO_C" >&6
3583: else
3584: if test -n "$ac_ct_CC"; then
3585: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3586: else
1.16 millert 3587: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588: for as_dir in $PATH
3589: do
3590: IFS=$as_save_IFS
3591: test -z "$as_dir" && as_dir=.
3592: for ac_exec_ext in '' $ac_executable_extensions; do
3593: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594: ac_cv_prog_ac_ct_CC="gcc"
3595: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596: break 2
3597: fi
3598: done
1.9 millert 3599: done
3600:
3601: fi
3602: fi
3603: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3604: if test -n "$ac_ct_CC"; then
1.16 millert 3605: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3606: echo "${ECHO_T}$ac_ct_CC" >&6
3607: else
1.16 millert 3608: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3609: echo "${ECHO_T}no" >&6
3610: fi
3611:
3612: CC=$ac_ct_CC
3613: else
3614: CC="$ac_cv_prog_CC"
1.1 millert 3615: fi
3616:
3617: if test -z "$CC"; then
1.9 millert 3618: if test -n "$ac_tool_prefix"; then
3619: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3620: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.16 millert 3621: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3622: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3623: if test "${ac_cv_prog_CC+set}" = set; then
3624: echo $ECHO_N "(cached) $ECHO_C" >&6
3625: else
3626: if test -n "$CC"; then
3627: ac_cv_prog_CC="$CC" # Let the user override the test.
3628: else
1.16 millert 3629: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630: for as_dir in $PATH
3631: do
3632: IFS=$as_save_IFS
3633: test -z "$as_dir" && as_dir=.
3634: for ac_exec_ext in '' $ac_executable_extensions; do
3635: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3636: ac_cv_prog_CC="${ac_tool_prefix}cc"
3637: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638: break 2
3639: fi
3640: done
1.9 millert 3641: done
3642:
3643: fi
3644: fi
3645: CC=$ac_cv_prog_CC
3646: if test -n "$CC"; then
1.16 millert 3647: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3648: echo "${ECHO_T}$CC" >&6
3649: else
1.16 millert 3650: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3651: echo "${ECHO_T}no" >&6
3652: fi
3653:
3654: fi
3655: if test -z "$ac_cv_prog_CC"; then
3656: ac_ct_CC=$CC
1.1 millert 3657: # Extract the first word of "cc", so it can be a program name with args.
3658: set dummy cc; ac_word=$2
1.16 millert 3659: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3660: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3662: echo $ECHO_N "(cached) $ECHO_C" >&6
3663: else
3664: if test -n "$ac_ct_CC"; then
3665: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666: else
1.16 millert 3667: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668: for as_dir in $PATH
3669: do
3670: IFS=$as_save_IFS
3671: test -z "$as_dir" && as_dir=.
3672: for ac_exec_ext in '' $ac_executable_extensions; do
3673: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674: ac_cv_prog_ac_ct_CC="cc"
3675: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676: break 2
3677: fi
3678: done
1.9 millert 3679: done
3680:
3681: fi
3682: fi
3683: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684: if test -n "$ac_ct_CC"; then
1.16 millert 3685: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3686: echo "${ECHO_T}$ac_ct_CC" >&6
3687: else
1.16 millert 3688: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3689: echo "${ECHO_T}no" >&6
3690: fi
3691:
3692: CC=$ac_ct_CC
3693: else
3694: CC="$ac_cv_prog_CC"
3695: fi
3696:
3697: fi
3698: if test -z "$CC"; then
3699: # Extract the first word of "cc", so it can be a program name with args.
3700: set dummy cc; ac_word=$2
1.16 millert 3701: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3702: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703: if test "${ac_cv_prog_CC+set}" = set; then
3704: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 3705: else
3706: if test -n "$CC"; then
3707: ac_cv_prog_CC="$CC" # Let the user override the test.
3708: else
3709: ac_prog_rejected=no
1.16 millert 3710: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711: for as_dir in $PATH
3712: do
3713: IFS=$as_save_IFS
3714: test -z "$as_dir" && as_dir=.
3715: for ac_exec_ext in '' $ac_executable_extensions; do
3716: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3718: ac_prog_rejected=yes
3719: continue
3720: fi
3721: ac_cv_prog_CC="cc"
3722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723: break 2
3724: fi
3725: done
1.9 millert 3726: done
3727:
1.1 millert 3728: if test $ac_prog_rejected = yes; then
3729: # We found a bogon in the path, so make sure we never use it.
3730: set dummy $ac_cv_prog_CC
3731: shift
1.9 millert 3732: if test $# != 0; then
1.1 millert 3733: # We chose a different compiler from the bogus one.
3734: # However, it has the same basename, so the bogon will be chosen
3735: # first if we set CC to just the basename; use the full file name.
3736: shift
1.16 millert 3737: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 millert 3738: fi
3739: fi
3740: fi
3741: fi
1.9 millert 3742: CC=$ac_cv_prog_CC
1.1 millert 3743: if test -n "$CC"; then
1.16 millert 3744: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3745: echo "${ECHO_T}$CC" >&6
3746: else
1.16 millert 3747: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3748: echo "${ECHO_T}no" >&6
3749: fi
3750:
3751: fi
3752: if test -z "$CC"; then
3753: if test -n "$ac_tool_prefix"; then
3754: for ac_prog in cl
3755: do
3756: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3757: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.16 millert 3758: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3759: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760: if test "${ac_cv_prog_CC+set}" = set; then
3761: echo $ECHO_N "(cached) $ECHO_C" >&6
3762: else
3763: if test -n "$CC"; then
3764: ac_cv_prog_CC="$CC" # Let the user override the test.
3765: else
1.16 millert 3766: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767: for as_dir in $PATH
3768: do
3769: IFS=$as_save_IFS
3770: test -z "$as_dir" && as_dir=.
3771: for ac_exec_ext in '' $ac_executable_extensions; do
3772: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3774: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775: break 2
3776: fi
3777: done
1.9 millert 3778: done
3779:
3780: fi
3781: fi
3782: CC=$ac_cv_prog_CC
3783: if test -n "$CC"; then
1.16 millert 3784: echo "$as_me:$LINENO: result: $CC" >&5
1.9 millert 3785: echo "${ECHO_T}$CC" >&6
3786: else
1.16 millert 3787: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3788: echo "${ECHO_T}no" >&6
3789: fi
3790:
3791: test -n "$CC" && break
3792: done
3793: fi
3794: if test -z "$CC"; then
3795: ac_ct_CC=$CC
3796: for ac_prog in cl
3797: do
3798: # Extract the first word of "$ac_prog", so it can be a program name with args.
3799: set dummy $ac_prog; ac_word=$2
1.16 millert 3800: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 3801: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3803: echo $ECHO_N "(cached) $ECHO_C" >&6
3804: else
3805: if test -n "$ac_ct_CC"; then
3806: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807: else
1.16 millert 3808: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809: for as_dir in $PATH
3810: do
3811: IFS=$as_save_IFS
3812: test -z "$as_dir" && as_dir=.
3813: for ac_exec_ext in '' $ac_executable_extensions; do
3814: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815: ac_cv_prog_ac_ct_CC="$ac_prog"
3816: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817: break 2
3818: fi
3819: done
1.9 millert 3820: done
3821:
3822: fi
3823: fi
3824: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825: if test -n "$ac_ct_CC"; then
1.16 millert 3826: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.9 millert 3827: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 millert 3828: else
1.16 millert 3829: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 3830: echo "${ECHO_T}no" >&6
3831: fi
3832:
3833: test -n "$ac_ct_CC" && break
3834: done
3835:
3836: CC=$ac_ct_CC
1.1 millert 3837: fi
3838:
3839: fi
3840:
1.16 millert 3841:
3842: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3843: See \`config.log' for more details." >&5
3844: echo "$as_me: error: no acceptable C compiler found in \$PATH
3845: See \`config.log' for more details." >&2;}
1.9 millert 3846: { (exit 1); exit 1; }; }
3847:
3848: # Provide some information about the compiler.
1.16 millert 3849: echo "$as_me:$LINENO:" \
1.9 millert 3850: "checking for C compiler version" >&5
3851: ac_compiler=`set X $ac_compile; echo $2`
1.16 millert 3852: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.9 millert 3853: (eval $ac_compiler --version </dev/null >&5) 2>&5
3854: ac_status=$?
1.16 millert 3855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3856: (exit $ac_status); }
1.16 millert 3857: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.9 millert 3858: (eval $ac_compiler -v </dev/null >&5) 2>&5
3859: ac_status=$?
1.16 millert 3860: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3861: (exit $ac_status); }
1.16 millert 3862: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.9 millert 3863: (eval $ac_compiler -V </dev/null >&5) 2>&5
3864: ac_status=$?
1.16 millert 3865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3866: (exit $ac_status); }
3867:
3868: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 3869: #line $LINENO "configure"
3870: /* confdefs.h. */
3871: _ACEOF
3872: cat confdefs.h >>conftest.$ac_ext
3873: cat >>conftest.$ac_ext <<_ACEOF
3874: /* end confdefs.h. */
1.9 millert 3875:
3876: int
3877: main ()
3878: {
1.1 millert 3879:
1.9 millert 3880: ;
3881: return 0;
3882: }
3883: _ACEOF
3884: ac_clean_files_save=$ac_clean_files
1.16 millert 3885: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9 millert 3886: # Try to create an executable without -o first, disregard a.out.
3887: # It will help us diagnose broken compilers, and finding out an intuition
3888: # of exeext.
1.16 millert 3889: echo "$as_me:$LINENO: checking for C compiler default output" >&5
1.9 millert 3890: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
3891: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.16 millert 3892: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1.9 millert 3893: (eval $ac_link_default) 2>&5
3894: ac_status=$?
1.16 millert 3895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3896: (exit $ac_status); }; then
3897: # Find the output, starting from the most likely. This scheme is
3898: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3899: # resort.
1.16 millert 3900:
3901: # Be careful to initialize this variable, since it used to be cached.
3902: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3903: ac_cv_exeext=
3904: # b.out is created by i960 compilers.
3905: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
3906: do
3907: test -f "$ac_file" || continue
1.9 millert 3908: case $ac_file in
1.16 millert 3909: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3910: ;;
3911: conftest.$ac_ext )
3912: # This is the source file.
3913: ;;
3914: [ab].out )
3915: # We found the default executable, but exeext='' is most
3916: # certainly right.
3917: break;;
3918: *.* )
3919: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920: # FIXME: I believe we export ac_cv_exeext for Libtool,
3921: # but it would be cool to find out if it's true. Does anybody
3922: # maintain Libtool? --akim.
3923: export ac_cv_exeext
3924: break;;
3925: * )
3926: break;;
1.9 millert 3927: esac
3928: done
3929: else
3930: echo "$as_me: failed program was:" >&5
1.16 millert 3931: sed 's/^/| /' conftest.$ac_ext >&5
3932:
3933: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3934: See \`config.log' for more details." >&5
3935: echo "$as_me: error: C compiler cannot create executables
3936: See \`config.log' for more details." >&2;}
1.9 millert 3937: { (exit 77); exit 77; }; }
3938: fi
3939:
3940: ac_exeext=$ac_cv_exeext
1.16 millert 3941: echo "$as_me:$LINENO: result: $ac_file" >&5
1.9 millert 3942: echo "${ECHO_T}$ac_file" >&6
3943:
3944: # Check the compiler produces executables we can run. If not, either
3945: # the compiler is broken, or we cross compile.
1.16 millert 3946: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.9 millert 3947: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3948: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3949: # If not cross compiling, check that we can run a simple program.
3950: if test "$cross_compiling" != yes; then
3951: if { ac_try='./$ac_file'
1.16 millert 3952: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 3953: (eval $ac_try) 2>&5
3954: ac_status=$?
1.16 millert 3955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3956: (exit $ac_status); }; }; then
3957: cross_compiling=no
1.1 millert 3958: else
1.9 millert 3959: if test "$cross_compiling" = maybe; then
3960: cross_compiling=yes
3961: else
1.16 millert 3962: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3963: If you meant to cross compile, use \`--host'.
3964: See \`config.log' for more details." >&5
1.9 millert 3965: echo "$as_me: error: cannot run C compiled programs.
1.16 millert 3966: If you meant to cross compile, use \`--host'.
3967: See \`config.log' for more details." >&2;}
1.9 millert 3968: { (exit 1); exit 1; }; }
3969: fi
1.1 millert 3970: fi
1.9 millert 3971: fi
1.16 millert 3972: echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 3973: echo "${ECHO_T}yes" >&6
3974:
1.16 millert 3975: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9 millert 3976: ac_clean_files=$ac_clean_files_save
3977: # Check the compiler produces executables we can run. If not, either
3978: # the compiler is broken, or we cross compile.
1.16 millert 3979: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.9 millert 3980: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.16 millert 3981: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.9 millert 3982: echo "${ECHO_T}$cross_compiling" >&6
3983:
1.16 millert 3984: echo "$as_me:$LINENO: checking for suffix of executables" >&5
3985: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3986: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 3987: (eval $ac_link) 2>&5
3988: ac_status=$?
1.16 millert 3989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 3990: (exit $ac_status); }; then
3991: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3992: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3993: # work properly (i.e., refer to `conftest.exe'), while it won't with
3994: # `rm'.
1.16 millert 3995: for ac_file in conftest.exe conftest conftest.*; do
3996: test -f "$ac_file" || continue
1.9 millert 3997: case $ac_file in
1.16 millert 3998: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.9 millert 3999: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4000: export ac_cv_exeext
4001: break;;
4002: * ) break;;
4003: esac
4004: done
1.1 millert 4005: else
1.16 millert 4006: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4007: See \`config.log' for more details." >&5
4008: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4009: See \`config.log' for more details." >&2;}
1.9 millert 4010: { (exit 1); exit 1; }; }
1.1 millert 4011: fi
4012:
1.9 millert 4013: rm -f conftest$ac_cv_exeext
1.16 millert 4014: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.9 millert 4015: echo "${ECHO_T}$ac_cv_exeext" >&6
1.1 millert 4016:
1.9 millert 4017: rm -f conftest.$ac_ext
4018: EXEEXT=$ac_cv_exeext
4019: ac_exeext=$EXEEXT
1.16 millert 4020: echo "$as_me:$LINENO: checking for suffix of object files" >&5
4021: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1.9 millert 4022: if test "${ac_cv_objext+set}" = set; then
4023: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4024: else
1.9 millert 4025: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4026: #line $LINENO "configure"
4027: /* confdefs.h. */
4028: _ACEOF
4029: cat confdefs.h >>conftest.$ac_ext
4030: cat >>conftest.$ac_ext <<_ACEOF
4031: /* end confdefs.h. */
1.9 millert 4032:
4033: int
4034: main ()
4035: {
4036:
4037: ;
4038: return 0;
4039: }
4040: _ACEOF
4041: rm -f conftest.o conftest.obj
1.16 millert 4042: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4043: (eval $ac_compile) 2>&5
4044: ac_status=$?
1.16 millert 4045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4046: (exit $ac_status); }; then
4047: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4048: case $ac_file in
1.16 millert 4049: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.9 millert 4050: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051: break;;
4052: esac
4053: done
1.1 millert 4054: else
1.9 millert 4055: echo "$as_me: failed program was:" >&5
1.16 millert 4056: sed 's/^/| /' conftest.$ac_ext >&5
4057:
4058: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4059: See \`config.log' for more details." >&5
4060: echo "$as_me: error: cannot compute suffix of object files: cannot compile
4061: See \`config.log' for more details." >&2;}
1.9 millert 4062: { (exit 1); exit 1; }; }
1.1 millert 4063: fi
1.9 millert 4064:
4065: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1 millert 4066: fi
1.16 millert 4067: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.9 millert 4068: echo "${ECHO_T}$ac_cv_objext" >&6
4069: OBJEXT=$ac_cv_objext
4070: ac_objext=$OBJEXT
1.16 millert 4071: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.9 millert 4072: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4073: if test "${ac_cv_c_compiler_gnu+set}" = set; then
4074: echo $ECHO_N "(cached) $ECHO_C" >&6
4075: else
4076: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4077: #line $LINENO "configure"
4078: /* confdefs.h. */
4079: _ACEOF
4080: cat confdefs.h >>conftest.$ac_ext
4081: cat >>conftest.$ac_ext <<_ACEOF
4082: /* end confdefs.h. */
1.1 millert 4083:
1.9 millert 4084: int
4085: main ()
4086: {
4087: #ifndef __GNUC__
4088: choke me
4089: #endif
1.1 millert 4090:
1.9 millert 4091: ;
4092: return 0;
4093: }
4094: _ACEOF
4095: rm -f conftest.$ac_objext
1.16 millert 4096: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4097: (eval $ac_compile) 2>&5
4098: ac_status=$?
1.16 millert 4099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4100: (exit $ac_status); } &&
4101: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4102: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4103: (eval $ac_try) 2>&5
4104: ac_status=$?
1.16 millert 4105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4106: (exit $ac_status); }; }; then
4107: ac_compiler_gnu=yes
4108: else
4109: echo "$as_me: failed program was:" >&5
1.16 millert 4110: sed 's/^/| /' conftest.$ac_ext >&5
4111:
1.9 millert 4112: ac_compiler_gnu=no
4113: fi
4114: rm -f conftest.$ac_objext conftest.$ac_ext
4115: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4116:
4117: fi
1.16 millert 4118: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.9 millert 4119: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4120: GCC=`test $ac_compiler_gnu = yes && echo yes`
4121: ac_test_CFLAGS=${CFLAGS+set}
4122: ac_save_CFLAGS=$CFLAGS
4123: CFLAGS="-g"
1.16 millert 4124: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.9 millert 4125: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4126: if test "${ac_cv_prog_cc_g+set}" = set; then
4127: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4128: else
1.9 millert 4129: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4130: #line $LINENO "configure"
4131: /* confdefs.h. */
4132: _ACEOF
4133: cat confdefs.h >>conftest.$ac_ext
4134: cat >>conftest.$ac_ext <<_ACEOF
4135: /* end confdefs.h. */
1.9 millert 4136:
4137: int
4138: main ()
4139: {
4140:
4141: ;
4142: return 0;
4143: }
4144: _ACEOF
4145: rm -f conftest.$ac_objext
1.16 millert 4146: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4147: (eval $ac_compile) 2>&5
4148: ac_status=$?
1.16 millert 4149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4150: (exit $ac_status); } &&
4151: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4152: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4153: (eval $ac_try) 2>&5
4154: ac_status=$?
1.16 millert 4155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4156: (exit $ac_status); }; }; then
1.1 millert 4157: ac_cv_prog_cc_g=yes
4158: else
1.9 millert 4159: echo "$as_me: failed program was:" >&5
1.16 millert 4160: sed 's/^/| /' conftest.$ac_ext >&5
4161:
1.9 millert 4162: ac_cv_prog_cc_g=no
4163: fi
4164: rm -f conftest.$ac_objext conftest.$ac_ext
4165: fi
1.16 millert 4166: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.9 millert 4167: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4168: if test "$ac_test_CFLAGS" = set; then
4169: CFLAGS=$ac_save_CFLAGS
4170: elif test $ac_cv_prog_cc_g = yes; then
4171: if test "$GCC" = yes; then
4172: CFLAGS="-g -O2"
4173: else
4174: CFLAGS="-g"
4175: fi
4176: else
4177: if test "$GCC" = yes; then
4178: CFLAGS="-O2"
4179: else
4180: CFLAGS=
4181: fi
4182: fi
1.16 millert 4183: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4184: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4185: if test "${ac_cv_prog_cc_stdc+set}" = set; then
4186: echo $ECHO_N "(cached) $ECHO_C" >&6
4187: else
4188: ac_cv_prog_cc_stdc=no
4189: ac_save_CC=$CC
1.9 millert 4190: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4191: #line $LINENO "configure"
4192: /* confdefs.h. */
1.9 millert 4193: _ACEOF
1.16 millert 4194: cat confdefs.h >>conftest.$ac_ext
4195: cat >>conftest.$ac_ext <<_ACEOF
4196: /* end confdefs.h. */
4197: #include <stdarg.h>
4198: #include <stdio.h>
4199: #include <sys/types.h>
4200: #include <sys/stat.h>
4201: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4202: struct buf { int x; };
4203: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4204: static char *e (p, i)
4205: char **p;
4206: int i;
1.9 millert 4207: {
1.16 millert 4208: return p[i];
1.9 millert 4209: }
1.16 millert 4210: static char *f (char * (*g) (char **, int), char **p, ...)
4211: {
4212: char *s;
4213: va_list v;
4214: va_start (v,p);
4215: s = g (p, va_arg (v,int));
4216: va_end (v);
4217: return s;
4218: }
4219: int test (int i, double x);
4220: struct s1 {int (*f) (int a);};
4221: struct s2 {int (*f) (double a);};
4222: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4223: int argc;
4224: char **argv;
4225: int
4226: main ()
4227: {
4228: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4229: ;
4230: return 0;
4231: }
4232: _ACEOF
4233: # Don't try gcc -ansi; that turns off useful extensions and
4234: # breaks some systems' header files.
4235: # AIX -qlanglvl=ansi
4236: # Ultrix and OSF/1 -std1
4237: # HP-UX 10.20 and later -Ae
4238: # HP-UX older versions -Aa -D_HPUX_SOURCE
4239: # SVR4 -Xc -D__EXTENSIONS__
4240: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241: do
4242: CC="$ac_save_CC $ac_arg"
4243: rm -f conftest.$ac_objext
4244: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4245: (eval $ac_compile) 2>&5
4246: ac_status=$?
4247: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248: (exit $ac_status); } &&
4249: { ac_try='test -s conftest.$ac_objext'
4250: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251: (eval $ac_try) 2>&5
4252: ac_status=$?
4253: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254: (exit $ac_status); }; }; then
4255: ac_cv_prog_cc_stdc=$ac_arg
4256: break
4257: else
4258: echo "$as_me: failed program was:" >&5
4259: sed 's/^/| /' conftest.$ac_ext >&5
4260:
4261: fi
4262: rm -f conftest.$ac_objext
4263: done
4264: rm -f conftest.$ac_ext conftest.$ac_objext
4265: CC=$ac_save_CC
4266:
4267: fi
4268:
4269: case "x$ac_cv_prog_cc_stdc" in
4270: x|xno)
4271: echo "$as_me:$LINENO: result: none needed" >&5
4272: echo "${ECHO_T}none needed" >&6 ;;
4273: *)
4274: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4275: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4276: CC="$CC $ac_cv_prog_cc_stdc" ;;
4277: esac
4278:
4279: # Some people use a C++ compiler to compile C. Since we use `exit',
4280: # in C++ we need to declare it. In case someone uses the same compiler
4281: # for both compiling C and C++ we need to have the C++ compiler decide
4282: # the declaration of exit, since it's the most demanding environment.
4283: cat >conftest.$ac_ext <<_ACEOF
4284: #ifndef __cplusplus
4285: choke me
4286: #endif
1.9 millert 4287: _ACEOF
4288: rm -f conftest.$ac_objext
1.16 millert 4289: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4290: (eval $ac_compile) 2>&5
4291: ac_status=$?
1.16 millert 4292: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4293: (exit $ac_status); } &&
4294: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4295: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4296: (eval $ac_try) 2>&5
4297: ac_status=$?
1.16 millert 4298: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299: (exit $ac_status); }; }; then
4300: for ac_declaration in \
4301: ''\
4302: '#include <stdlib.h>' \
4303: 'extern "C" void std::exit (int) throw (); using std::exit;' \
4304: 'extern "C" void std::exit (int); using std::exit;' \
4305: 'extern "C" void exit (int) throw ();' \
4306: 'extern "C" void exit (int);' \
4307: 'void exit (int);'
4308: do
4309: cat >conftest.$ac_ext <<_ACEOF
4310: #line $LINENO "configure"
4311: /* confdefs.h. */
4312: _ACEOF
4313: cat confdefs.h >>conftest.$ac_ext
4314: cat >>conftest.$ac_ext <<_ACEOF
4315: /* end confdefs.h. */
4316: #include <stdlib.h>
4317: $ac_declaration
4318: int
4319: main ()
4320: {
4321: exit (42);
4322: ;
4323: return 0;
4324: }
4325: _ACEOF
4326: rm -f conftest.$ac_objext
4327: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328: (eval $ac_compile) 2>&5
4329: ac_status=$?
4330: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331: (exit $ac_status); } &&
4332: { ac_try='test -s conftest.$ac_objext'
4333: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334: (eval $ac_try) 2>&5
4335: ac_status=$?
4336: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4337: (exit $ac_status); }; }; then
4338: :
4339: else
4340: echo "$as_me: failed program was:" >&5
1.16 millert 4341: sed 's/^/| /' conftest.$ac_ext >&5
4342:
1.9 millert 4343: continue
4344: fi
4345: rm -f conftest.$ac_objext conftest.$ac_ext
4346: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4347: #line $LINENO "configure"
4348: /* confdefs.h. */
4349: _ACEOF
4350: cat confdefs.h >>conftest.$ac_ext
4351: cat >>conftest.$ac_ext <<_ACEOF
4352: /* end confdefs.h. */
1.9 millert 4353: $ac_declaration
4354: int
4355: main ()
4356: {
4357: exit (42);
4358: ;
4359: return 0;
4360: }
4361: _ACEOF
4362: rm -f conftest.$ac_objext
1.16 millert 4363: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 4364: (eval $ac_compile) 2>&5
4365: ac_status=$?
1.16 millert 4366: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4367: (exit $ac_status); } &&
4368: { ac_try='test -s conftest.$ac_objext'
1.16 millert 4369: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4370: (eval $ac_try) 2>&5
4371: ac_status=$?
1.16 millert 4372: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4373: (exit $ac_status); }; }; then
4374: break
4375: else
4376: echo "$as_me: failed program was:" >&5
1.16 millert 4377: sed 's/^/| /' conftest.$ac_ext >&5
4378:
1.1 millert 4379: fi
1.9 millert 4380: rm -f conftest.$ac_objext conftest.$ac_ext
4381: done
1.1 millert 4382: rm -f conftest*
1.9 millert 4383: if test -n "$ac_declaration"; then
4384: echo '#ifdef __cplusplus' >>confdefs.h
4385: echo $ac_declaration >>confdefs.h
4386: echo '#endif' >>confdefs.h
4387: fi
1.1 millert 4388:
1.9 millert 4389: else
4390: echo "$as_me: failed program was:" >&5
1.16 millert 4391: sed 's/^/| /' conftest.$ac_ext >&5
4392:
1.1 millert 4393: fi
1.9 millert 4394: rm -f conftest.$ac_objext conftest.$ac_ext
4395: ac_ext=c
4396: ac_cpp='$CPP $CPPFLAGS'
4397: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 4400:
1.9 millert 4401:
1.16 millert 4402: echo "$as_me:$LINENO: checking for library containing strerror" >&5
4403: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
4404: if test "${ac_cv_search_strerror+set}" = set; then
1.9 millert 4405: echo $ECHO_N "(cached) $ECHO_C" >&6
4406: else
1.16 millert 4407: ac_func_search_save_LIBS=$LIBS
4408: ac_cv_search_strerror=no
1.9 millert 4409: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4410: #line $LINENO "configure"
4411: /* confdefs.h. */
4412: _ACEOF
4413: cat confdefs.h >>conftest.$ac_ext
4414: cat >>conftest.$ac_ext <<_ACEOF
4415: /* end confdefs.h. */
4416:
4417: /* Override any gcc2 internal prototype to avoid an error. */
4418: #ifdef __cplusplus
4419: extern "C"
4420: #endif
4421: /* We use char because int might match the return type of a gcc2
4422: builtin and then its argument prototype would still apply. */
4423: char strerror ();
4424: int
4425: main ()
1.9 millert 4426: {
1.16 millert 4427: strerror ();
4428: ;
4429: return 0;
1.9 millert 4430: }
1.16 millert 4431: _ACEOF
4432: rm -f conftest.$ac_objext conftest$ac_exeext
4433: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4434: (eval $ac_link) 2>&5
4435: ac_status=$?
4436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437: (exit $ac_status); } &&
4438: { ac_try='test -s conftest$ac_exeext'
4439: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4440: (eval $ac_try) 2>&5
4441: ac_status=$?
4442: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443: (exit $ac_status); }; }; then
4444: ac_cv_search_strerror="none required"
4445: else
4446: echo "$as_me: failed program was:" >&5
4447: sed 's/^/| /' conftest.$ac_ext >&5
4448:
4449: fi
4450: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4451: if test "$ac_cv_search_strerror" = no; then
4452: for ac_lib in cposix; do
4453: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4454: cat >conftest.$ac_ext <<_ACEOF
4455: #line $LINENO "configure"
4456: /* confdefs.h. */
4457: _ACEOF
4458: cat confdefs.h >>conftest.$ac_ext
4459: cat >>conftest.$ac_ext <<_ACEOF
4460: /* end confdefs.h. */
4461:
4462: /* Override any gcc2 internal prototype to avoid an error. */
4463: #ifdef __cplusplus
4464: extern "C"
4465: #endif
4466: /* We use char because int might match the return type of a gcc2
4467: builtin and then its argument prototype would still apply. */
4468: char strerror ();
1.9 millert 4469: int
4470: main ()
4471: {
1.16 millert 4472: strerror ();
1.9 millert 4473: ;
4474: return 0;
4475: }
4476: _ACEOF
1.16 millert 4477: rm -f conftest.$ac_objext conftest$ac_exeext
4478: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4479: (eval $ac_link) 2>&5
1.9 millert 4480: ac_status=$?
1.16 millert 4481: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4482: (exit $ac_status); } &&
1.16 millert 4483: { ac_try='test -s conftest$ac_exeext'
4484: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 4485: (eval $ac_try) 2>&5
4486: ac_status=$?
1.16 millert 4487: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4488: (exit $ac_status); }; }; then
1.16 millert 4489: ac_cv_search_strerror="-l$ac_lib"
1.9 millert 4490: break
4491: else
4492: echo "$as_me: failed program was:" >&5
1.16 millert 4493: sed 's/^/| /' conftest.$ac_ext >&5
4494:
4495: fi
4496: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4497: done
4498: fi
4499: LIBS=$ac_func_search_save_LIBS
1.9 millert 4500: fi
1.16 millert 4501: echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4502: echo "${ECHO_T}$ac_cv_search_strerror" >&6
4503: if test "$ac_cv_search_strerror" != no; then
4504: test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1.9 millert 4505:
4506: fi
4507:
4508:
4509: ac_ext=c
4510: ac_cpp='$CPP $CPPFLAGS'
4511: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 millert 4514: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.9 millert 4515: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.1 millert 4516: # On Suns, sometimes $CPP names a directory.
4517: if test -n "$CPP" && test -d "$CPP"; then
4518: CPP=
4519: fi
4520: if test -z "$CPP"; then
1.9 millert 4521: if test "${ac_cv_prog_CPP+set}" = set; then
4522: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4523: else
1.9 millert 4524: # Double quotes because CPP needs to be expanded
4525: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4526: do
4527: ac_preproc_ok=false
4528: for ac_c_preproc_warn_flag in '' yes
4529: do
4530: # Use a header file that comes with gcc, so configuring glibc
4531: # with a fresh cross-compiler works.
1.16 millert 4532: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533: # <limits.h> exists even on freestanding compilers.
1.1 millert 4534: # On the NeXT, cc -E runs the code through the compiler's parser,
1.9 millert 4535: # not just through cpp. "Syntax error" is here to catch this case.
4536: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4537: #line $LINENO "configure"
4538: /* confdefs.h. */
4539: _ACEOF
4540: cat confdefs.h >>conftest.$ac_ext
4541: cat >>conftest.$ac_ext <<_ACEOF
4542: /* end confdefs.h. */
4543: #ifdef __STDC__
4544: # include <limits.h>
4545: #else
4546: # include <assert.h>
4547: #endif
1.9 millert 4548: Syntax error
4549: _ACEOF
1.16 millert 4550: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4551: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4552: ac_status=$?
1.16 millert 4553: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4554: rm -f conftest.er1
4555: cat conftest.err >&5
1.16 millert 4556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4557: (exit $ac_status); } >/dev/null; then
4558: if test -s conftest.err; then
4559: ac_cpp_err=$ac_c_preproc_warn_flag
4560: else
4561: ac_cpp_err=
4562: fi
4563: else
4564: ac_cpp_err=yes
4565: fi
4566: if test -z "$ac_cpp_err"; then
1.1 millert 4567: :
4568: else
1.9 millert 4569: echo "$as_me: failed program was:" >&5
1.16 millert 4570: sed 's/^/| /' conftest.$ac_ext >&5
4571:
1.9 millert 4572: # Broken: fails on valid input.
4573: continue
4574: fi
4575: rm -f conftest.err conftest.$ac_ext
4576:
4577: # OK, works on sane cases. Now check whether non-existent headers
4578: # can be detected and how.
4579: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4580: #line $LINENO "configure"
4581: /* confdefs.h. */
4582: _ACEOF
4583: cat confdefs.h >>conftest.$ac_ext
4584: cat >>conftest.$ac_ext <<_ACEOF
4585: /* end confdefs.h. */
1.9 millert 4586: #include <ac_nonexistent.h>
4587: _ACEOF
1.16 millert 4588: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4589: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4590: ac_status=$?
1.16 millert 4591: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4592: rm -f conftest.er1
4593: cat conftest.err >&5
1.16 millert 4594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4595: (exit $ac_status); } >/dev/null; then
4596: if test -s conftest.err; then
4597: ac_cpp_err=$ac_c_preproc_warn_flag
4598: else
4599: ac_cpp_err=
4600: fi
4601: else
4602: ac_cpp_err=yes
4603: fi
4604: if test -z "$ac_cpp_err"; then
4605: # Broken: success on invalid input.
4606: continue
4607: else
4608: echo "$as_me: failed program was:" >&5
1.16 millert 4609: sed 's/^/| /' conftest.$ac_ext >&5
4610:
1.9 millert 4611: # Passes both tests.
4612: ac_preproc_ok=:
4613: break
4614: fi
4615: rm -f conftest.err conftest.$ac_ext
4616:
4617: done
4618: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619: rm -f conftest.err conftest.$ac_ext
4620: if $ac_preproc_ok; then
4621: break
4622: fi
4623:
4624: done
4625: ac_cv_prog_CPP=$CPP
4626:
4627: fi
4628: CPP=$ac_cv_prog_CPP
4629: else
4630: ac_cv_prog_CPP=$CPP
4631: fi
1.16 millert 4632: echo "$as_me:$LINENO: result: $CPP" >&5
1.9 millert 4633: echo "${ECHO_T}$CPP" >&6
4634: ac_preproc_ok=false
4635: for ac_c_preproc_warn_flag in '' yes
4636: do
4637: # Use a header file that comes with gcc, so configuring glibc
4638: # with a fresh cross-compiler works.
1.16 millert 4639: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640: # <limits.h> exists even on freestanding compilers.
1.9 millert 4641: # On the NeXT, cc -E runs the code through the compiler's parser,
4642: # not just through cpp. "Syntax error" is here to catch this case.
4643: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4644: #line $LINENO "configure"
4645: /* confdefs.h. */
4646: _ACEOF
4647: cat confdefs.h >>conftest.$ac_ext
4648: cat >>conftest.$ac_ext <<_ACEOF
4649: /* end confdefs.h. */
4650: #ifdef __STDC__
4651: # include <limits.h>
4652: #else
4653: # include <assert.h>
4654: #endif
1.9 millert 4655: Syntax error
4656: _ACEOF
1.16 millert 4657: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4658: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4659: ac_status=$?
1.16 millert 4660: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4661: rm -f conftest.er1
4662: cat conftest.err >&5
1.16 millert 4663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4664: (exit $ac_status); } >/dev/null; then
4665: if test -s conftest.err; then
4666: ac_cpp_err=$ac_c_preproc_warn_flag
4667: else
4668: ac_cpp_err=
4669: fi
4670: else
4671: ac_cpp_err=yes
4672: fi
4673: if test -z "$ac_cpp_err"; then
1.1 millert 4674: :
4675: else
1.9 millert 4676: echo "$as_me: failed program was:" >&5
1.16 millert 4677: sed 's/^/| /' conftest.$ac_ext >&5
4678:
1.9 millert 4679: # Broken: fails on valid input.
4680: continue
1.1 millert 4681: fi
1.9 millert 4682: rm -f conftest.err conftest.$ac_ext
4683:
4684: # OK, works on sane cases. Now check whether non-existent headers
4685: # can be detected and how.
4686: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4687: #line $LINENO "configure"
4688: /* confdefs.h. */
4689: _ACEOF
4690: cat confdefs.h >>conftest.$ac_ext
4691: cat >>conftest.$ac_ext <<_ACEOF
4692: /* end confdefs.h. */
1.9 millert 4693: #include <ac_nonexistent.h>
4694: _ACEOF
1.16 millert 4695: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 4696: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4697: ac_status=$?
1.16 millert 4698: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 4699: rm -f conftest.er1
4700: cat conftest.err >&5
1.16 millert 4701: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4702: (exit $ac_status); } >/dev/null; then
4703: if test -s conftest.err; then
4704: ac_cpp_err=$ac_c_preproc_warn_flag
4705: else
4706: ac_cpp_err=
4707: fi
4708: else
4709: ac_cpp_err=yes
1.1 millert 4710: fi
1.9 millert 4711: if test -z "$ac_cpp_err"; then
4712: # Broken: success on invalid input.
4713: continue
1.1 millert 4714: else
1.9 millert 4715: echo "$as_me: failed program was:" >&5
1.16 millert 4716: sed 's/^/| /' conftest.$ac_ext >&5
4717:
1.9 millert 4718: # Passes both tests.
4719: ac_preproc_ok=:
4720: break
1.1 millert 4721: fi
1.9 millert 4722: rm -f conftest.err conftest.$ac_ext
1.1 millert 4723:
1.9 millert 4724: done
4725: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4726: rm -f conftest.err conftest.$ac_ext
4727: if $ac_preproc_ok; then
4728: :
1.1 millert 4729: else
1.16 millert 4730: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4731: See \`config.log' for more details." >&5
4732: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4733: See \`config.log' for more details." >&2;}
1.9 millert 4734: { (exit 1); exit 1; }; }
1.1 millert 4735: fi
4736:
1.9 millert 4737: ac_ext=c
4738: ac_cpp='$CPP $CPPFLAGS'
4739: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 4742:
1.16 millert 4743:
1.23 ! millert 4744: ac_aux_dir=
! 4745: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
! 4746: if test -f $ac_dir/install-sh; then
! 4747: ac_aux_dir=$ac_dir
! 4748: ac_install_sh="$ac_aux_dir/install-sh -c"
! 4749: break
! 4750: elif test -f $ac_dir/install.sh; then
! 4751: ac_aux_dir=$ac_dir
! 4752: ac_install_sh="$ac_aux_dir/install.sh -c"
! 4753: break
! 4754: elif test -f $ac_dir/shtool; then
! 4755: ac_aux_dir=$ac_dir
! 4756: ac_install_sh="$ac_aux_dir/shtool install -c"
! 4757: break
! 4758: fi
! 4759: done
! 4760: if test -z "$ac_aux_dir"; then
! 4761: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
! 4762: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
! 4763: { (exit 1); exit 1; }; }
1.1 millert 4764: fi
1.23 ! millert 4765: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
! 4766: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
! 4767: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
! 4768:
! 4769: # Make sure we can run config.sub.
! 4770: $ac_config_sub sun4 >/dev/null 2>&1 ||
! 4771: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
! 4772: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
! 4773: { (exit 1); exit 1; }; }
1.1 millert 4774:
1.23 ! millert 4775: echo "$as_me:$LINENO: checking build system type" >&5
! 4776: echo $ECHO_N "checking build system type... $ECHO_C" >&6
! 4777: if test "${ac_cv_build+set}" = set; then
1.9 millert 4778: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4779: else
1.23 ! millert 4780: ac_cv_build_alias=$build_alias
! 4781: test -z "$ac_cv_build_alias" &&
! 4782: ac_cv_build_alias=`$ac_config_guess`
! 4783: test -z "$ac_cv_build_alias" &&
! 4784: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
! 4785: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
! 4786: { (exit 1); exit 1; }; }
! 4787: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
! 4788: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
! 4789: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
! 4790: { (exit 1); exit 1; }; }
1.9 millert 4791:
1.1 millert 4792: fi
1.23 ! millert 4793: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
! 4794: echo "${ECHO_T}$ac_cv_build" >&6
! 4795: build=$ac_cv_build
! 4796: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 4797: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 4798: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 4799:
! 4800:
! 4801: echo "$as_me:$LINENO: checking host system type" >&5
! 4802: echo $ECHO_N "checking host system type... $ECHO_C" >&6
! 4803: if test "${ac_cv_host+set}" = set; then
! 4804: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4805: else
1.23 ! millert 4806: ac_cv_host_alias=$host_alias
! 4807: test -z "$ac_cv_host_alias" &&
! 4808: ac_cv_host_alias=$ac_cv_build_alias
! 4809: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
! 4810: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
! 4811: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
! 4812: { (exit 1); exit 1; }; }
! 4813:
1.1 millert 4814: fi
1.23 ! millert 4815: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
! 4816: echo "${ECHO_T}$ac_cv_host" >&6
! 4817: host=$ac_cv_host
! 4818: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 4819: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 4820: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1 millert 4821:
1.23 ! millert 4822:
! 4823: echo "$as_me:$LINENO: checking target system type" >&5
! 4824: echo $ECHO_N "checking target system type... $ECHO_C" >&6
! 4825: if test "${ac_cv_target+set}" = set; then
! 4826: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4827: else
! 4828: ac_cv_target_alias=$target_alias
! 4829: test "x$ac_cv_target_alias" = "x" &&
! 4830: ac_cv_target_alias=$ac_cv_host_alias
! 4831: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
! 4832: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
! 4833: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
! 4834: { (exit 1); exit 1; }; }
! 4835:
! 4836: fi
! 4837: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
! 4838: echo "${ECHO_T}$ac_cv_target" >&6
! 4839: target=$ac_cv_target
! 4840: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
! 4841: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
! 4842: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
! 4843:
! 4844:
! 4845: # The aliases save the names the user supplied, while $host etc.
! 4846: # will get canonicalized.
! 4847: test -n "$target_alias" &&
! 4848: test "$program_prefix$program_suffix$program_transform_name" = \
! 4849: NONENONEs,x,x, &&
! 4850: program_prefix=${target_alias}-
! 4851: # Check whether --enable-shared or --disable-shared was given.
! 4852: if test "${enable_shared+set}" = set; then
! 4853: enableval="$enable_shared"
! 4854: p=${PACKAGE-default}
! 4855: case $enableval in
! 4856: yes) enable_shared=yes ;;
! 4857: no) enable_shared=no ;;
! 4858: *)
! 4859: enable_shared=no
! 4860: # Look at the argument we got. We use all the common list separators.
! 4861: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 4862: for pkg in $enableval; do
! 4863: IFS="$lt_save_ifs"
! 4864: if test "X$pkg" = "X$p"; then
! 4865: enable_shared=yes
! 4866: fi
! 4867: done
! 4868: IFS="$lt_save_ifs"
! 4869: ;;
! 4870: esac
! 4871: else
! 4872: enable_shared=yes
! 4873: fi;
! 4874:
! 4875: # Check whether --enable-static or --disable-static was given.
! 4876: if test "${enable_static+set}" = set; then
! 4877: enableval="$enable_static"
! 4878: p=${PACKAGE-default}
! 4879: case $enableval in
! 4880: yes) enable_static=yes ;;
! 4881: no) enable_static=no ;;
! 4882: *)
! 4883: enable_static=no
! 4884: # Look at the argument we got. We use all the common list separators.
! 4885: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 4886: for pkg in $enableval; do
! 4887: IFS="$lt_save_ifs"
! 4888: if test "X$pkg" = "X$p"; then
! 4889: enable_static=yes
! 4890: fi
! 4891: done
! 4892: IFS="$lt_save_ifs"
! 4893: ;;
! 4894: esac
! 4895: else
! 4896: enable_static=no
! 4897: fi;
! 4898:
! 4899:
! 4900: # Check whether --enable-fast-install or --disable-fast-install was given.
! 4901: if test "${enable_fast_install+set}" = set; then
! 4902: enableval="$enable_fast_install"
! 4903: p=${PACKAGE-default}
! 4904: case $enableval in
! 4905: yes) enable_fast_install=yes ;;
! 4906: no) enable_fast_install=no ;;
! 4907: *)
! 4908: enable_fast_install=no
! 4909: # Look at the argument we got. We use all the common list separators.
! 4910: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 4911: for pkg in $enableval; do
! 4912: IFS="$lt_save_ifs"
! 4913: if test "X$pkg" = "X$p"; then
! 4914: enable_fast_install=yes
! 4915: fi
! 4916: done
! 4917: IFS="$lt_save_ifs"
! 4918: ;;
! 4919: esac
! 4920: else
! 4921: enable_fast_install=yes
! 4922: fi;
! 4923:
! 4924: echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
! 4925: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
! 4926: if test "${lt_cv_path_SED+set}" = set; then
! 4927: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4928: else
! 4929: # Loop through the user's path and test for sed and gsed.
! 4930: # Then use that list of sed's as ones to test for truncation.
! 4931: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 4932: for as_dir in $PATH
! 4933: do
! 4934: IFS=$as_save_IFS
! 4935: test -z "$as_dir" && as_dir=.
! 4936: for lt_ac_prog in sed gsed; do
! 4937: for ac_exec_ext in '' $ac_executable_extensions; do
! 4938: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
! 4939: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
! 4940: fi
! 4941: done
! 4942: done
! 4943: done
! 4944: lt_ac_max=0
! 4945: lt_ac_count=0
! 4946: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
! 4947: # along with /bin/sed that truncates output.
! 4948: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
! 4949: test ! -f $lt_ac_sed && break
! 4950: cat /dev/null > conftest.in
! 4951: lt_ac_count=0
! 4952: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
! 4953: # Check for GNU sed and select it if it is found.
! 4954: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
! 4955: lt_cv_path_SED=$lt_ac_sed
! 4956: break
! 4957: fi
! 4958: while true; do
! 4959: cat conftest.in conftest.in >conftest.tmp
! 4960: mv conftest.tmp conftest.in
! 4961: cp conftest.in conftest.nl
! 4962: echo >>conftest.nl
! 4963: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
! 4964: cmp -s conftest.out conftest.nl || break
! 4965: # 10000 chars as input seems more than enough
! 4966: test $lt_ac_count -gt 10 && break
! 4967: lt_ac_count=`expr $lt_ac_count + 1`
! 4968: if test $lt_ac_count -gt $lt_ac_max; then
! 4969: lt_ac_max=$lt_ac_count
! 4970: lt_cv_path_SED=$lt_ac_sed
! 4971: fi
! 4972: done
! 4973: done
! 4974: SED=$lt_cv_path_SED
! 4975:
! 4976: fi
! 4977:
! 4978: echo "$as_me:$LINENO: result: $SED" >&5
! 4979: echo "${ECHO_T}$SED" >&6
! 4980:
! 4981: echo "$as_me:$LINENO: checking for egrep" >&5
! 4982: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
! 4983: if test "${ac_cv_prog_egrep+set}" = set; then
! 4984: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4985: else
! 4986: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
! 4987: then ac_cv_prog_egrep='grep -E'
! 4988: else ac_cv_prog_egrep='egrep'
! 4989: fi
! 4990: fi
! 4991: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
! 4992: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
! 4993: EGREP=$ac_cv_prog_egrep
! 4994:
! 4995:
! 4996:
! 4997: # Check whether --with-gnu-ld or --without-gnu-ld was given.
! 4998: if test "${with_gnu_ld+set}" = set; then
! 4999: withval="$with_gnu_ld"
! 5000: test "$withval" = no || with_gnu_ld=yes
! 5001: else
! 5002: with_gnu_ld=no
! 5003: fi;
! 5004: ac_prog=ld
! 5005: if test "$GCC" = yes; then
! 5006: # Check if gcc -print-prog-name=ld gives a path.
! 5007: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 5008: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
! 5009: case $host in
! 5010: *-*-mingw*)
! 5011: # gcc leaves a trailing carriage return which upsets mingw
! 5012: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 5013: *)
! 5014: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
! 5015: esac
! 5016: case $ac_prog in
! 5017: # Accept absolute paths.
! 5018: [\\/]* | ?:[\\/]*)
! 5019: re_direlt='/[^/][^/]*/\.\./'
! 5020: # Canonicalize the path of ld
! 5021: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
! 5022: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
! 5023: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
! 5024: done
! 5025: test -z "$LD" && LD="$ac_prog"
! 5026: ;;
! 5027: "")
! 5028: # If it fails, then pretend we aren't using GCC.
! 5029: ac_prog=ld
! 5030: ;;
! 5031: *)
! 5032: # If it is relative, then search for the first ld in PATH.
! 5033: with_gnu_ld=unknown
! 5034: ;;
! 5035: esac
! 5036: elif test "$with_gnu_ld" = yes; then
! 5037: echo "$as_me:$LINENO: checking for GNU ld" >&5
! 5038: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
! 5039: else
! 5040: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 5041: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
! 5042: fi
! 5043: if test "${lt_cv_path_LD+set}" = set; then
! 5044: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5045: else
! 5046: if test -z "$LD"; then
! 5047: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 5048: for ac_dir in $PATH; do
! 5049: IFS="$lt_save_ifs"
! 5050: test -z "$ac_dir" && ac_dir=.
! 5051: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
! 5052: lt_cv_path_LD="$ac_dir/$ac_prog"
! 5053: # Check to see if the program is GNU ld. I'd rather use --version,
! 5054: # but apparently some GNU ld's only accept -v.
! 5055: # Break only if it was the GNU/non-GNU ld that we prefer.
! 5056: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
! 5057: *GNU* | *'with BFD'*)
! 5058: test "$with_gnu_ld" != no && break
! 5059: ;;
! 5060: *)
! 5061: test "$with_gnu_ld" != yes && break
! 5062: ;;
! 5063: esac
! 5064: fi
! 5065: done
! 5066: IFS="$lt_save_ifs"
! 5067: else
! 5068: lt_cv_path_LD="$LD" # Let the user override the test with a path.
! 5069: fi
! 5070: fi
! 5071:
! 5072: LD="$lt_cv_path_LD"
! 5073: if test -n "$LD"; then
! 5074: echo "$as_me:$LINENO: result: $LD" >&5
! 5075: echo "${ECHO_T}$LD" >&6
! 5076: else
! 5077: echo "$as_me:$LINENO: result: no" >&5
! 5078: echo "${ECHO_T}no" >&6
! 5079: fi
! 5080: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 5081: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 5082: { (exit 1); exit 1; }; }
! 5083: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 5084: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
! 5085: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 5086: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5087: else
! 5088: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
! 5089: case `"$LD" -v 2>&1 </dev/null` in
! 5090: *GNU* | *'with BFD'*)
! 5091: lt_cv_prog_gnu_ld=yes
! 5092: ;;
! 5093: *)
! 5094: lt_cv_prog_gnu_ld=no
! 5095: ;;
! 5096: esac
! 5097: fi
! 5098: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 5099: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
! 5100: with_gnu_ld=$lt_cv_prog_gnu_ld
! 5101:
! 5102:
! 5103: echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
! 5104: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
! 5105: if test "${lt_cv_ld_reload_flag+set}" = set; then
! 5106: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5107: else
! 5108: lt_cv_ld_reload_flag='-r'
! 5109: fi
! 5110: echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
! 5111: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
! 5112: reload_flag=$lt_cv_ld_reload_flag
! 5113: case $reload_flag in
! 5114: "" | " "*) ;;
! 5115: *) reload_flag=" $reload_flag" ;;
! 5116: esac
! 5117: reload_cmds='$LD$reload_flag -o $output$reload_objs'
! 5118:
! 5119: echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
! 5120: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
! 5121: if test "${lt_cv_path_NM+set}" = set; then
! 5122: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5123: else
! 5124: if test -n "$NM"; then
! 5125: # Let the user override the test.
! 5126: lt_cv_path_NM="$NM"
! 5127: else
! 5128: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 5129: for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
! 5130: IFS="$lt_save_ifs"
! 5131: test -z "$ac_dir" && ac_dir=.
! 5132: tmp_nm="$ac_dir/${ac_tool_prefix}nm"
! 5133: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
! 5134: # Check to see if the nm accepts a BSD-compat flag.
! 5135: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
! 5136: # nm: unknown option "B" ignored
! 5137: # Tru64's nm complains that /dev/null is an invalid object file
! 5138: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
! 5139: */dev/null* | *'Invalid file or object type'*)
! 5140: lt_cv_path_NM="$tmp_nm -B"
! 5141: break
! 5142: ;;
! 5143: *)
! 5144: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
! 5145: */dev/null*)
! 5146: lt_cv_path_NM="$tmp_nm -p"
! 5147: break
! 5148: ;;
! 5149: *)
! 5150: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
! 5151: continue # so that we can try to find one that supports BSD flags
! 5152: ;;
! 5153: esac
! 5154: esac
! 5155: fi
! 5156: done
! 5157: IFS="$lt_save_ifs"
! 5158: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
! 5159: fi
! 5160: fi
! 5161: echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
! 5162: echo "${ECHO_T}$lt_cv_path_NM" >&6
! 5163: NM="$lt_cv_path_NM"
! 5164:
! 5165: echo "$as_me:$LINENO: checking whether ln -s works" >&5
! 5166: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
! 5167: LN_S=$as_ln_s
! 5168: if test "$LN_S" = "ln -s"; then
! 5169: echo "$as_me:$LINENO: result: yes" >&5
! 5170: echo "${ECHO_T}yes" >&6
! 5171: else
! 5172: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
! 5173: echo "${ECHO_T}no, using $LN_S" >&6
! 5174: fi
! 5175:
! 5176: echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
! 5177: echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
! 5178: if test "${lt_cv_deplibs_check_method+set}" = set; then
! 5179: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5180: else
! 5181: lt_cv_file_magic_cmd='$MAGIC_CMD'
! 5182: lt_cv_file_magic_test_file=
! 5183: lt_cv_deplibs_check_method='unknown'
! 5184: # Need to set the preceding variable on all platforms that support
! 5185: # interlibrary dependencies.
! 5186: # 'none' -- dependencies not supported.
! 5187: # `unknown' -- same as none, but documents that we really don't know.
! 5188: # 'pass_all' -- all dependencies passed with no checks.
! 5189: # 'test_compile' -- check by making test program.
! 5190: # 'file_magic [[regex]]' -- check by looking for files in library path
! 5191: # which responds to the $file_magic_cmd with a given extended regex.
! 5192: # If you have `file' or equivalent on your system and you're not sure
! 5193: # whether `pass_all' will *always* work, you probably want this one.
! 5194:
! 5195: case $host_os in
! 5196: aix4* | aix5*)
! 5197: lt_cv_deplibs_check_method=pass_all
! 5198: ;;
! 5199:
! 5200: beos*)
! 5201: lt_cv_deplibs_check_method=pass_all
! 5202: ;;
! 5203:
! 5204: bsdi4*)
! 5205: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
! 5206: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 5207: lt_cv_file_magic_test_file=/shlib/libc.so
! 5208: ;;
! 5209:
! 5210: cygwin* | mingw* | pw32*)
! 5211: # win32_libid is a shell function defined in ltmain.sh
! 5212: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
! 5213: lt_cv_file_magic_cmd='win32_libid'
! 5214: ;;
! 5215:
! 5216: darwin* | rhapsody*)
! 5217: # this will be overwritten by pass_all, but leave it in just in case
! 5218: lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
! 5219: lt_cv_file_magic_cmd='/usr/bin/file -L'
! 5220: case "$host_os" in
! 5221: rhapsody* | darwin1.[012])
! 5222: lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
! 5223: ;;
! 5224: *) # Darwin 1.3 on
! 5225: lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
! 5226: ;;
! 5227: esac
! 5228: lt_cv_deplibs_check_method=pass_all
! 5229: ;;
! 5230:
! 5231: freebsd*)
! 5232: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 5233: case $host_cpu in
! 5234: i*86 )
! 5235: # Not sure whether the presence of OpenBSD here was a mistake.
! 5236: # Let's accept both of them until this is cleared up.
! 5237: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
! 5238: lt_cv_file_magic_cmd=/usr/bin/file
! 5239: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
! 5240: ;;
! 5241: esac
! 5242: else
! 5243: lt_cv_deplibs_check_method=pass_all
! 5244: fi
! 5245: ;;
! 5246:
! 5247: gnu*)
! 5248: lt_cv_deplibs_check_method=pass_all
! 5249: ;;
! 5250:
! 5251: hpux10.20* | hpux11*)
! 5252: lt_cv_file_magic_cmd=/usr/bin/file
! 5253: case "$host_cpu" in
! 5254: ia64*)
! 5255: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
! 5256: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
! 5257: ;;
! 5258: hppa*64*)
! 5259: 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]'
! 5260: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
! 5261: ;;
! 5262: *)
! 5263: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
! 5264: lt_cv_file_magic_test_file=/usr/lib/libc.sl
! 5265: ;;
! 5266: esac
! 5267: ;;
! 5268:
! 5269: irix5* | irix6* | nonstopux*)
! 5270: case $host_os in
! 5271: irix5* | nonstopux*)
! 5272: # this will be overridden with pass_all, but let us keep it just in case
! 5273: lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
! 5274: ;;
! 5275: *)
! 5276: case $LD in
! 5277: *-32|*"-32 ") libmagic=32-bit;;
! 5278: *-n32|*"-n32 ") libmagic=N32;;
! 5279: *-64|*"-64 ") libmagic=64-bit;;
! 5280: *) libmagic=never-match;;
! 5281: esac
! 5282: # this will be overridden with pass_all, but let us keep it just in case
! 5283: lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
! 5284: ;;
! 5285: esac
! 5286: lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
! 5287: lt_cv_deplibs_check_method=pass_all
! 5288: ;;
! 5289:
! 5290: # This must be Linux ELF.
! 5291: linux*)
! 5292: case $host_cpu in
! 5293: alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
! 5294: lt_cv_deplibs_check_method=pass_all ;;
! 5295: *)
! 5296: # glibc up to 2.1.1 does not perform some relocations on ARM
! 5297: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
! 5298: esac
! 5299: lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
! 5300: ;;
! 5301:
! 5302: netbsd*)
! 5303: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
! 5304: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
! 5305: else
! 5306: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
! 5307: fi
! 5308: ;;
! 5309:
! 5310: newos6*)
! 5311: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
! 5312: lt_cv_file_magic_cmd=/usr/bin/file
! 5313: lt_cv_file_magic_test_file=/usr/lib/libnls.so
! 5314: ;;
! 5315:
! 5316: nto-qnx)
! 5317: lt_cv_deplibs_check_method=unknown
! 5318: ;;
! 5319:
! 5320: openbsd*)
! 5321: lt_cv_file_magic_cmd=/usr/bin/file
! 5322: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
! 5323: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 5324: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
! 5325: else
! 5326: lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
! 5327: fi
! 5328: ;;
! 5329:
! 5330: osf3* | osf4* | osf5*)
! 5331: # this will be overridden with pass_all, but let us keep it just in case
! 5332: lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
! 5333: lt_cv_file_magic_test_file=/shlib/libc.so
! 5334: lt_cv_deplibs_check_method=pass_all
! 5335: ;;
! 5336:
! 5337: sco3.2v5*)
! 5338: lt_cv_deplibs_check_method=pass_all
! 5339: ;;
! 5340:
! 5341: solaris*)
! 5342: lt_cv_deplibs_check_method=pass_all
! 5343: lt_cv_file_magic_test_file=/lib/libc.so
! 5344: ;;
! 5345:
! 5346: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 5347: case $host_vendor in
! 5348: motorola)
! 5349: 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]'
! 5350: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
! 5351: ;;
! 5352: ncr)
! 5353: lt_cv_deplibs_check_method=pass_all
! 5354: ;;
! 5355: sequent)
! 5356: lt_cv_file_magic_cmd='/bin/file'
! 5357: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
! 5358: ;;
! 5359: sni)
! 5360: lt_cv_file_magic_cmd='/bin/file'
! 5361: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
! 5362: lt_cv_file_magic_test_file=/lib/libc.so
! 5363: ;;
! 5364: siemens)
! 5365: lt_cv_deplibs_check_method=pass_all
! 5366: ;;
! 5367: esac
! 5368: ;;
! 5369:
! 5370: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
! 5371: lt_cv_deplibs_check_method=pass_all
! 5372: ;;
! 5373: esac
! 5374:
! 5375: fi
! 5376: echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
! 5377: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
! 5378: file_magic_cmd=$lt_cv_file_magic_cmd
! 5379: deplibs_check_method=$lt_cv_deplibs_check_method
! 5380: test -z "$deplibs_check_method" && deplibs_check_method=unknown
! 5381:
! 5382:
! 5383:
! 5384:
! 5385: # If no C compiler was specified, use CC.
! 5386: LTCC=${LTCC-"$CC"}
! 5387:
! 5388: # Allow CC to be a program name with arguments.
! 5389: compiler=$CC
! 5390:
! 5391: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 5392: if test "${enable_libtool_lock+set}" = set; then
! 5393: enableval="$enable_libtool_lock"
! 5394:
! 5395: fi;
! 5396: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 5397:
! 5398: # Some flags need to be propagated to the compiler or linker for good
! 5399: # libtool support.
! 5400: case $host in
! 5401: ia64-*-hpux*)
! 5402: # Find out which ABI we are using.
! 5403: echo 'int i;' > conftest.$ac_ext
! 5404: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5405: (eval $ac_compile) 2>&5
! 5406: ac_status=$?
! 5407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5408: (exit $ac_status); }; then
! 5409: case `/usr/bin/file conftest.$ac_objext` in
! 5410: *ELF-32*)
! 5411: HPUX_IA64_MODE="32"
! 5412: ;;
! 5413: *ELF-64*)
! 5414: HPUX_IA64_MODE="64"
! 5415: ;;
! 5416: esac
! 5417: fi
! 5418: rm -rf conftest*
! 5419: ;;
! 5420: *-*-irix6*)
! 5421: # Find out which ABI we are using.
! 5422: echo '#line 5422 "configure"' > conftest.$ac_ext
! 5423: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5424: (eval $ac_compile) 2>&5
! 5425: ac_status=$?
! 5426: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5427: (exit $ac_status); }; then
! 5428: if test "$lt_cv_prog_gnu_ld" = yes; then
! 5429: case `/usr/bin/file conftest.$ac_objext` in
! 5430: *32-bit*)
! 5431: LD="${LD-ld} -melf32bsmip"
! 5432: ;;
! 5433: *N32*)
! 5434: LD="${LD-ld} -melf32bmipn32"
! 5435: ;;
! 5436: *64-bit*)
! 5437: LD="${LD-ld} -melf64bmip"
! 5438: ;;
! 5439: esac
! 5440: else
! 5441: case `/usr/bin/file conftest.$ac_objext` in
! 5442: *32-bit*)
! 5443: LD="${LD-ld} -32"
! 5444: ;;
! 5445: *N32*)
! 5446: LD="${LD-ld} -n32"
! 5447: ;;
! 5448: *64-bit*)
! 5449: LD="${LD-ld} -64"
! 5450: ;;
! 5451: esac
! 5452: fi
! 5453: fi
! 5454: rm -rf conftest*
! 5455: ;;
! 5456:
! 5457: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
! 5458: # Find out which ABI we are using.
! 5459: echo 'int i;' > conftest.$ac_ext
! 5460: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5461: (eval $ac_compile) 2>&5
! 5462: ac_status=$?
! 5463: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5464: (exit $ac_status); }; then
! 5465: case "`/usr/bin/file conftest.o`" in
! 5466: *32-bit*)
! 5467: case $host in
! 5468: x86_64-*linux*)
! 5469: LD="${LD-ld} -m elf_i386"
! 5470: ;;
! 5471: ppc64-*linux*)
! 5472: LD="${LD-ld} -m elf32ppclinux"
! 5473: ;;
! 5474: s390x-*linux*)
! 5475: LD="${LD-ld} -m elf_s390"
! 5476: ;;
! 5477: sparc64-*linux*)
! 5478: LD="${LD-ld} -m elf32_sparc"
! 5479: ;;
! 5480: esac
! 5481: ;;
! 5482: *64-bit*)
! 5483: case $host in
! 5484: x86_64-*linux*)
! 5485: LD="${LD-ld} -m elf_x86_64"
! 5486: ;;
! 5487: ppc*-*linux*|powerpc*-*linux*)
! 5488: LD="${LD-ld} -m elf64ppc"
! 5489: ;;
! 5490: s390*-*linux*)
! 5491: LD="${LD-ld} -m elf64_s390"
! 5492: ;;
! 5493: sparc*-*linux*)
! 5494: LD="${LD-ld} -m elf64_sparc"
! 5495: ;;
! 5496: esac
! 5497: ;;
! 5498: esac
! 5499: fi
! 5500: rm -rf conftest*
! 5501: ;;
! 5502:
! 5503: *-*-sco3.2v5*)
! 5504: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
! 5505: SAVE_CFLAGS="$CFLAGS"
! 5506: CFLAGS="$CFLAGS -belf"
! 5507: echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
! 5508: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
! 5509: if test "${lt_cv_cc_needs_belf+set}" = set; then
! 5510: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5511: else
! 5512: ac_ext=c
! 5513: ac_cpp='$CPP $CPPFLAGS'
! 5514: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5515: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5516: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 5517:
! 5518: cat >conftest.$ac_ext <<_ACEOF
! 5519: #line $LINENO "configure"
! 5520: /* confdefs.h. */
! 5521: _ACEOF
! 5522: cat confdefs.h >>conftest.$ac_ext
! 5523: cat >>conftest.$ac_ext <<_ACEOF
! 5524: /* end confdefs.h. */
! 5525:
! 5526: int
! 5527: main ()
! 5528: {
! 5529:
! 5530: ;
! 5531: return 0;
! 5532: }
! 5533: _ACEOF
! 5534: rm -f conftest.$ac_objext conftest$ac_exeext
! 5535: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5536: (eval $ac_link) 2>&5
! 5537: ac_status=$?
! 5538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5539: (exit $ac_status); } &&
! 5540: { ac_try='test -s conftest$ac_exeext'
! 5541: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5542: (eval $ac_try) 2>&5
! 5543: ac_status=$?
! 5544: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5545: (exit $ac_status); }; }; then
! 5546: lt_cv_cc_needs_belf=yes
! 5547: else
! 5548: echo "$as_me: failed program was:" >&5
! 5549: sed 's/^/| /' conftest.$ac_ext >&5
! 5550:
! 5551: lt_cv_cc_needs_belf=no
! 5552: fi
! 5553: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 5554: ac_ext=c
! 5555: ac_cpp='$CPP $CPPFLAGS'
! 5556: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5557: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5558: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 5559:
! 5560: fi
! 5561: echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
! 5562: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
! 5563: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
! 5564: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
! 5565: CFLAGS="$SAVE_CFLAGS"
! 5566: fi
! 5567: ;;
! 5568:
! 5569: esac
! 5570:
! 5571: need_locks="$enable_libtool_lock"
! 5572:
! 5573:
! 5574:
! 5575: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 5576: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 5577: if test "${ac_cv_header_stdc+set}" = set; then
! 5578: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5579: else
! 5580: cat >conftest.$ac_ext <<_ACEOF
! 5581: #line $LINENO "configure"
! 5582: /* confdefs.h. */
! 5583: _ACEOF
! 5584: cat confdefs.h >>conftest.$ac_ext
! 5585: cat >>conftest.$ac_ext <<_ACEOF
! 5586: /* end confdefs.h. */
! 5587: #include <stdlib.h>
! 5588: #include <stdarg.h>
! 5589: #include <string.h>
! 5590: #include <float.h>
! 5591:
! 5592: int
! 5593: main ()
! 5594: {
! 5595:
! 5596: ;
! 5597: return 0;
! 5598: }
! 5599: _ACEOF
! 5600: rm -f conftest.$ac_objext
! 5601: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5602: (eval $ac_compile) 2>&5
! 5603: ac_status=$?
! 5604: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5605: (exit $ac_status); } &&
! 5606: { ac_try='test -s conftest.$ac_objext'
! 5607: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5608: (eval $ac_try) 2>&5
! 5609: ac_status=$?
! 5610: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5611: (exit $ac_status); }; }; then
! 5612: ac_cv_header_stdc=yes
! 5613: else
! 5614: echo "$as_me: failed program was:" >&5
! 5615: sed 's/^/| /' conftest.$ac_ext >&5
! 5616:
! 5617: ac_cv_header_stdc=no
! 5618: fi
! 5619: rm -f conftest.$ac_objext conftest.$ac_ext
! 5620:
! 5621: if test $ac_cv_header_stdc = yes; then
! 5622: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 5623: cat >conftest.$ac_ext <<_ACEOF
! 5624: #line $LINENO "configure"
! 5625: /* confdefs.h. */
! 5626: _ACEOF
! 5627: cat confdefs.h >>conftest.$ac_ext
! 5628: cat >>conftest.$ac_ext <<_ACEOF
! 5629: /* end confdefs.h. */
! 5630: #include <string.h>
! 5631:
! 5632: _ACEOF
! 5633: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5634: $EGREP "memchr" >/dev/null 2>&1; then
! 5635: :
! 5636: else
! 5637: ac_cv_header_stdc=no
! 5638: fi
! 5639: rm -f conftest*
! 5640:
! 5641: fi
! 5642:
! 5643: if test $ac_cv_header_stdc = yes; then
! 5644: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 5645: cat >conftest.$ac_ext <<_ACEOF
! 5646: #line $LINENO "configure"
! 5647: /* confdefs.h. */
! 5648: _ACEOF
! 5649: cat confdefs.h >>conftest.$ac_ext
! 5650: cat >>conftest.$ac_ext <<_ACEOF
! 5651: /* end confdefs.h. */
! 5652: #include <stdlib.h>
! 5653:
! 5654: _ACEOF
! 5655: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5656: $EGREP "free" >/dev/null 2>&1; then
! 5657: :
! 5658: else
! 5659: ac_cv_header_stdc=no
! 5660: fi
! 5661: rm -f conftest*
! 5662:
! 5663: fi
! 5664:
! 5665: if test $ac_cv_header_stdc = yes; then
! 5666: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 5667: if test "$cross_compiling" = yes; then
! 5668: :
! 5669: else
! 5670: cat >conftest.$ac_ext <<_ACEOF
! 5671: #line $LINENO "configure"
! 5672: /* confdefs.h. */
! 5673: _ACEOF
! 5674: cat confdefs.h >>conftest.$ac_ext
! 5675: cat >>conftest.$ac_ext <<_ACEOF
! 5676: /* end confdefs.h. */
! 5677: #include <ctype.h>
! 5678: #if ((' ' & 0x0FF) == 0x020)
! 5679: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 5680: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 5681: #else
! 5682: # define ISLOWER(c) \
! 5683: (('a' <= (c) && (c) <= 'i') \
! 5684: || ('j' <= (c) && (c) <= 'r') \
! 5685: || ('s' <= (c) && (c) <= 'z'))
! 5686: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 5687: #endif
! 5688:
! 5689: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 5690: int
! 5691: main ()
! 5692: {
! 5693: int i;
! 5694: for (i = 0; i < 256; i++)
! 5695: if (XOR (islower (i), ISLOWER (i))
! 5696: || toupper (i) != TOUPPER (i))
! 5697: exit(2);
! 5698: exit (0);
! 5699: }
! 5700: _ACEOF
! 5701: rm -f conftest$ac_exeext
! 5702: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 5703: (eval $ac_link) 2>&5
! 5704: ac_status=$?
! 5705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5706: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 5707: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5708: (eval $ac_try) 2>&5
! 5709: ac_status=$?
! 5710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5711: (exit $ac_status); }; }; then
! 5712: :
! 5713: else
! 5714: echo "$as_me: program exited with status $ac_status" >&5
! 5715: echo "$as_me: failed program was:" >&5
! 5716: sed 's/^/| /' conftest.$ac_ext >&5
! 5717:
! 5718: ( exit $ac_status )
! 5719: ac_cv_header_stdc=no
! 5720: fi
! 5721: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 5722: fi
! 5723: fi
! 5724: fi
! 5725: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 5726: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 5727: if test $ac_cv_header_stdc = yes; then
! 5728:
! 5729: cat >>confdefs.h <<\_ACEOF
! 5730: #define STDC_HEADERS 1
! 5731: _ACEOF
! 5732:
! 5733: fi
! 5734:
! 5735: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
! 5736:
! 5737:
! 5738:
! 5739:
! 5740:
! 5741:
! 5742:
! 5743:
! 5744:
! 5745: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
! 5746: inttypes.h stdint.h unistd.h
! 5747: do
! 5748: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 5749: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5750: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 5751: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 5752: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5753: else
! 5754: cat >conftest.$ac_ext <<_ACEOF
! 5755: #line $LINENO "configure"
! 5756: /* confdefs.h. */
! 5757: _ACEOF
! 5758: cat confdefs.h >>conftest.$ac_ext
! 5759: cat >>conftest.$ac_ext <<_ACEOF
! 5760: /* end confdefs.h. */
! 5761: $ac_includes_default
! 5762:
! 5763: #include <$ac_header>
! 5764: _ACEOF
! 5765: rm -f conftest.$ac_objext
! 5766: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5767: (eval $ac_compile) 2>&5
! 5768: ac_status=$?
! 5769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5770: (exit $ac_status); } &&
! 5771: { ac_try='test -s conftest.$ac_objext'
! 5772: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5773: (eval $ac_try) 2>&5
! 5774: ac_status=$?
! 5775: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5776: (exit $ac_status); }; }; then
! 5777: eval "$as_ac_Header=yes"
! 5778: else
! 5779: echo "$as_me: failed program was:" >&5
! 5780: sed 's/^/| /' conftest.$ac_ext >&5
! 5781:
! 5782: eval "$as_ac_Header=no"
! 5783: fi
! 5784: rm -f conftest.$ac_objext conftest.$ac_ext
! 5785: fi
! 5786: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 5787: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 5788: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 5789: cat >>confdefs.h <<_ACEOF
! 5790: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5791: _ACEOF
! 5792:
! 5793: fi
! 5794:
! 5795: done
! 5796:
! 5797:
! 5798:
! 5799: for ac_header in dlfcn.h
! 5800: do
! 5801: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 5802: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 5803: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5804: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 5805: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 5806: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5807: fi
! 5808: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 5809: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 5810: else
! 5811: # Is the header compilable?
! 5812: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 5813: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 5814: cat >conftest.$ac_ext <<_ACEOF
! 5815: #line $LINENO "configure"
! 5816: /* confdefs.h. */
! 5817: _ACEOF
! 5818: cat confdefs.h >>conftest.$ac_ext
! 5819: cat >>conftest.$ac_ext <<_ACEOF
! 5820: /* end confdefs.h. */
! 5821: $ac_includes_default
! 5822: #include <$ac_header>
! 5823: _ACEOF
! 5824: rm -f conftest.$ac_objext
! 5825: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 5826: (eval $ac_compile) 2>&5
! 5827: ac_status=$?
! 5828: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5829: (exit $ac_status); } &&
! 5830: { ac_try='test -s conftest.$ac_objext'
! 5831: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 5832: (eval $ac_try) 2>&5
! 5833: ac_status=$?
! 5834: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5835: (exit $ac_status); }; }; then
! 5836: ac_header_compiler=yes
! 5837: else
! 5838: echo "$as_me: failed program was:" >&5
! 5839: sed 's/^/| /' conftest.$ac_ext >&5
! 5840:
! 5841: ac_header_compiler=no
! 5842: fi
! 5843: rm -f conftest.$ac_objext conftest.$ac_ext
! 5844: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 5845: echo "${ECHO_T}$ac_header_compiler" >&6
! 5846:
! 5847: # Is the header present?
! 5848: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 5849: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 5850: cat >conftest.$ac_ext <<_ACEOF
! 5851: #line $LINENO "configure"
! 5852: /* confdefs.h. */
! 5853: _ACEOF
! 5854: cat confdefs.h >>conftest.$ac_ext
! 5855: cat >>conftest.$ac_ext <<_ACEOF
! 5856: /* end confdefs.h. */
! 5857: #include <$ac_header>
! 5858: _ACEOF
! 5859: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 5860: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 5861: ac_status=$?
! 5862: grep -v '^ *+' conftest.er1 >conftest.err
! 5863: rm -f conftest.er1
! 5864: cat conftest.err >&5
! 5865: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 5866: (exit $ac_status); } >/dev/null; then
! 5867: if test -s conftest.err; then
! 5868: ac_cpp_err=$ac_c_preproc_warn_flag
! 5869: else
! 5870: ac_cpp_err=
! 5871: fi
! 5872: else
! 5873: ac_cpp_err=yes
! 5874: fi
! 5875: if test -z "$ac_cpp_err"; then
! 5876: ac_header_preproc=yes
! 5877: else
! 5878: echo "$as_me: failed program was:" >&5
! 5879: sed 's/^/| /' conftest.$ac_ext >&5
! 5880:
! 5881: ac_header_preproc=no
! 5882: fi
! 5883: rm -f conftest.err conftest.$ac_ext
! 5884: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 5885: echo "${ECHO_T}$ac_header_preproc" >&6
! 5886:
! 5887: # So? What about this header?
! 5888: case $ac_header_compiler:$ac_header_preproc in
! 5889: yes:no )
! 5890: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 5891: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 5892: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 5893: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 5894: (
! 5895: cat <<\_ASBOX
! 5896: ## ------------------------------------ ##
! 5897: ## Report this to bug-autoconf@gnu.org. ##
! 5898: ## ------------------------------------ ##
! 5899: _ASBOX
! 5900: ) |
! 5901: sed "s/^/$as_me: WARNING: /" >&2
! 5902: ;;
! 5903: no:yes )
! 5904: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 5905: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 5906: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 5907: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 5908: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 5909: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 5910: (
! 5911: cat <<\_ASBOX
! 5912: ## ------------------------------------ ##
! 5913: ## Report this to bug-autoconf@gnu.org. ##
! 5914: ## ------------------------------------ ##
! 5915: _ASBOX
! 5916: ) |
! 5917: sed "s/^/$as_me: WARNING: /" >&2
! 5918: ;;
! 5919: esac
! 5920: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 5921: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 5922: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 5923: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5924: else
! 5925: eval "$as_ac_Header=$ac_header_preproc"
! 5926: fi
! 5927: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 5928: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 5929:
! 5930: fi
! 5931: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 5932: cat >>confdefs.h <<_ACEOF
! 5933: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 5934: _ACEOF
! 5935:
! 5936: fi
! 5937:
! 5938: done
! 5939:
! 5940: ac_ext=cc
! 5941: ac_cpp='$CXXCPP $CPPFLAGS'
! 5942: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 5943: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 5944: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 5945: if test -n "$ac_tool_prefix"; then
! 5946: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 5947: do
! 5948: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 5949: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 5950: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5951: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5952: if test "${ac_cv_prog_CXX+set}" = set; then
! 5953: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5954: else
! 5955: if test -n "$CXX"; then
! 5956: ac_cv_prog_CXX="$CXX" # Let the user override the test.
! 5957: else
! 5958: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 5959: for as_dir in $PATH
! 5960: do
! 5961: IFS=$as_save_IFS
! 5962: test -z "$as_dir" && as_dir=.
! 5963: for ac_exec_ext in '' $ac_executable_extensions; do
! 5964: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 5965: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
! 5966: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 5967: break 2
! 5968: fi
! 5969: done
! 5970: done
! 5971:
! 5972: fi
! 5973: fi
! 5974: CXX=$ac_cv_prog_CXX
! 5975: if test -n "$CXX"; then
! 5976: echo "$as_me:$LINENO: result: $CXX" >&5
! 5977: echo "${ECHO_T}$CXX" >&6
! 5978: else
! 5979: echo "$as_me:$LINENO: result: no" >&5
! 5980: echo "${ECHO_T}no" >&6
! 5981: fi
! 5982:
! 5983: test -n "$CXX" && break
! 5984: done
! 5985: fi
! 5986: if test -z "$CXX"; then
! 5987: ac_ct_CXX=$CXX
! 5988: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
! 5989: do
! 5990: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 5991: set dummy $ac_prog; ac_word=$2
! 5992: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 5993: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 5994: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
! 5995: echo $ECHO_N "(cached) $ECHO_C" >&6
! 5996: else
! 5997: if test -n "$ac_ct_CXX"; then
! 5998: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
! 5999: else
! 6000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6001: for as_dir in $PATH
! 6002: do
! 6003: IFS=$as_save_IFS
! 6004: test -z "$as_dir" && as_dir=.
! 6005: for ac_exec_ext in '' $ac_executable_extensions; do
! 6006: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 6007: ac_cv_prog_ac_ct_CXX="$ac_prog"
! 6008: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6009: break 2
! 6010: fi
! 6011: done
! 6012: done
! 6013:
! 6014: fi
! 6015: fi
! 6016: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
! 6017: if test -n "$ac_ct_CXX"; then
! 6018: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
! 6019: echo "${ECHO_T}$ac_ct_CXX" >&6
! 6020: else
! 6021: echo "$as_me:$LINENO: result: no" >&5
! 6022: echo "${ECHO_T}no" >&6
! 6023: fi
! 6024:
! 6025: test -n "$ac_ct_CXX" && break
! 6026: done
! 6027: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
! 6028:
! 6029: CXX=$ac_ct_CXX
! 6030: fi
! 6031:
! 6032:
! 6033: # Provide some information about the compiler.
! 6034: echo "$as_me:$LINENO:" \
! 6035: "checking for C++ compiler version" >&5
! 6036: ac_compiler=`set X $ac_compile; echo $2`
! 6037: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 6038: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 6039: ac_status=$?
! 6040: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6041: (exit $ac_status); }
! 6042: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 6043: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 6044: ac_status=$?
! 6045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6046: (exit $ac_status); }
! 6047: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 6048: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 6049: ac_status=$?
! 6050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6051: (exit $ac_status); }
! 6052:
! 6053: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
! 6054: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
! 6055: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
! 6056: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6057: else
! 6058: cat >conftest.$ac_ext <<_ACEOF
! 6059: #line $LINENO "configure"
! 6060: /* confdefs.h. */
! 6061: _ACEOF
! 6062: cat confdefs.h >>conftest.$ac_ext
! 6063: cat >>conftest.$ac_ext <<_ACEOF
! 6064: /* end confdefs.h. */
! 6065:
! 6066: int
! 6067: main ()
! 6068: {
! 6069: #ifndef __GNUC__
! 6070: choke me
! 6071: #endif
! 6072:
! 6073: ;
! 6074: return 0;
! 6075: }
! 6076: _ACEOF
! 6077: rm -f conftest.$ac_objext
! 6078: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6079: (eval $ac_compile) 2>&5
! 6080: ac_status=$?
! 6081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6082: (exit $ac_status); } &&
! 6083: { ac_try='test -s conftest.$ac_objext'
! 6084: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6085: (eval $ac_try) 2>&5
! 6086: ac_status=$?
! 6087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6088: (exit $ac_status); }; }; then
! 6089: ac_compiler_gnu=yes
! 6090: else
! 6091: echo "$as_me: failed program was:" >&5
! 6092: sed 's/^/| /' conftest.$ac_ext >&5
! 6093:
! 6094: ac_compiler_gnu=no
! 6095: fi
! 6096: rm -f conftest.$ac_objext conftest.$ac_ext
! 6097: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
! 6098:
! 6099: fi
! 6100: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
! 6101: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
! 6102: GXX=`test $ac_compiler_gnu = yes && echo yes`
! 6103: ac_test_CXXFLAGS=${CXXFLAGS+set}
! 6104: ac_save_CXXFLAGS=$CXXFLAGS
! 6105: CXXFLAGS="-g"
! 6106: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
! 6107: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
! 6108: if test "${ac_cv_prog_cxx_g+set}" = set; then
! 6109: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6110: else
! 6111: cat >conftest.$ac_ext <<_ACEOF
! 6112: #line $LINENO "configure"
! 6113: /* confdefs.h. */
! 6114: _ACEOF
! 6115: cat confdefs.h >>conftest.$ac_ext
! 6116: cat >>conftest.$ac_ext <<_ACEOF
! 6117: /* end confdefs.h. */
! 6118:
! 6119: int
! 6120: main ()
! 6121: {
! 6122:
! 6123: ;
! 6124: return 0;
! 6125: }
! 6126: _ACEOF
! 6127: rm -f conftest.$ac_objext
! 6128: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6129: (eval $ac_compile) 2>&5
! 6130: ac_status=$?
! 6131: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6132: (exit $ac_status); } &&
! 6133: { ac_try='test -s conftest.$ac_objext'
! 6134: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6135: (eval $ac_try) 2>&5
! 6136: ac_status=$?
! 6137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6138: (exit $ac_status); }; }; then
! 6139: ac_cv_prog_cxx_g=yes
! 6140: else
! 6141: echo "$as_me: failed program was:" >&5
! 6142: sed 's/^/| /' conftest.$ac_ext >&5
! 6143:
! 6144: ac_cv_prog_cxx_g=no
! 6145: fi
! 6146: rm -f conftest.$ac_objext conftest.$ac_ext
! 6147: fi
! 6148: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
! 6149: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
! 6150: if test "$ac_test_CXXFLAGS" = set; then
! 6151: CXXFLAGS=$ac_save_CXXFLAGS
! 6152: elif test $ac_cv_prog_cxx_g = yes; then
! 6153: if test "$GXX" = yes; then
! 6154: CXXFLAGS="-g -O2"
! 6155: else
! 6156: CXXFLAGS="-g"
! 6157: fi
! 6158: else
! 6159: if test "$GXX" = yes; then
! 6160: CXXFLAGS="-O2"
! 6161: else
! 6162: CXXFLAGS=
! 6163: fi
! 6164: fi
! 6165: for ac_declaration in \
! 6166: ''\
! 6167: '#include <stdlib.h>' \
! 6168: 'extern "C" void std::exit (int) throw (); using std::exit;' \
! 6169: 'extern "C" void std::exit (int); using std::exit;' \
! 6170: 'extern "C" void exit (int) throw ();' \
! 6171: 'extern "C" void exit (int);' \
! 6172: 'void exit (int);'
! 6173: do
! 6174: cat >conftest.$ac_ext <<_ACEOF
! 6175: #line $LINENO "configure"
! 6176: /* confdefs.h. */
! 6177: _ACEOF
! 6178: cat confdefs.h >>conftest.$ac_ext
! 6179: cat >>conftest.$ac_ext <<_ACEOF
! 6180: /* end confdefs.h. */
! 6181: #include <stdlib.h>
! 6182: $ac_declaration
! 6183: int
! 6184: main ()
! 6185: {
! 6186: exit (42);
! 6187: ;
! 6188: return 0;
! 6189: }
! 6190: _ACEOF
! 6191: rm -f conftest.$ac_objext
! 6192: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6193: (eval $ac_compile) 2>&5
! 6194: ac_status=$?
! 6195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6196: (exit $ac_status); } &&
! 6197: { ac_try='test -s conftest.$ac_objext'
! 6198: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6199: (eval $ac_try) 2>&5
! 6200: ac_status=$?
! 6201: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6202: (exit $ac_status); }; }; then
! 6203: :
! 6204: else
! 6205: echo "$as_me: failed program was:" >&5
! 6206: sed 's/^/| /' conftest.$ac_ext >&5
! 6207:
! 6208: continue
! 6209: fi
! 6210: rm -f conftest.$ac_objext conftest.$ac_ext
! 6211: cat >conftest.$ac_ext <<_ACEOF
! 6212: #line $LINENO "configure"
! 6213: /* confdefs.h. */
! 6214: _ACEOF
! 6215: cat confdefs.h >>conftest.$ac_ext
! 6216: cat >>conftest.$ac_ext <<_ACEOF
! 6217: /* end confdefs.h. */
! 6218: $ac_declaration
! 6219: int
! 6220: main ()
! 6221: {
! 6222: exit (42);
! 6223: ;
! 6224: return 0;
! 6225: }
! 6226: _ACEOF
! 6227: rm -f conftest.$ac_objext
! 6228: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6229: (eval $ac_compile) 2>&5
! 6230: ac_status=$?
! 6231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6232: (exit $ac_status); } &&
! 6233: { ac_try='test -s conftest.$ac_objext'
! 6234: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6235: (eval $ac_try) 2>&5
! 6236: ac_status=$?
! 6237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6238: (exit $ac_status); }; }; then
! 6239: break
! 6240: else
! 6241: echo "$as_me: failed program was:" >&5
! 6242: sed 's/^/| /' conftest.$ac_ext >&5
! 6243:
! 6244: fi
! 6245: rm -f conftest.$ac_objext conftest.$ac_ext
! 6246: done
! 6247: rm -f conftest*
! 6248: if test -n "$ac_declaration"; then
! 6249: echo '#ifdef __cplusplus' >>confdefs.h
! 6250: echo $ac_declaration >>confdefs.h
! 6251: echo '#endif' >>confdefs.h
! 6252: fi
! 6253:
! 6254: ac_ext=cc
! 6255: ac_cpp='$CXXCPP $CPPFLAGS'
! 6256: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6257: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6258: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 6259:
! 6260: ac_ext=cc
! 6261: ac_cpp='$CXXCPP $CPPFLAGS'
! 6262: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6263: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6264: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 6265: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
! 6266: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
! 6267: if test -z "$CXXCPP"; then
! 6268: if test "${ac_cv_prog_CXXCPP+set}" = set; then
! 6269: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6270: else
! 6271: # Double quotes because CXXCPP needs to be expanded
! 6272: for CXXCPP in "$CXX -E" "/lib/cpp"
! 6273: do
! 6274: ac_preproc_ok=false
! 6275: for ac_cxx_preproc_warn_flag in '' yes
! 6276: do
! 6277: # Use a header file that comes with gcc, so configuring glibc
! 6278: # with a fresh cross-compiler works.
! 6279: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 6280: # <limits.h> exists even on freestanding compilers.
! 6281: # On the NeXT, cc -E runs the code through the compiler's parser,
! 6282: # not just through cpp. "Syntax error" is here to catch this case.
! 6283: cat >conftest.$ac_ext <<_ACEOF
! 6284: #line $LINENO "configure"
! 6285: /* confdefs.h. */
! 6286: _ACEOF
! 6287: cat confdefs.h >>conftest.$ac_ext
! 6288: cat >>conftest.$ac_ext <<_ACEOF
! 6289: /* end confdefs.h. */
! 6290: #ifdef __STDC__
! 6291: # include <limits.h>
! 6292: #else
! 6293: # include <assert.h>
! 6294: #endif
! 6295: Syntax error
! 6296: _ACEOF
! 6297: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6298: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6299: ac_status=$?
! 6300: grep -v '^ *+' conftest.er1 >conftest.err
! 6301: rm -f conftest.er1
! 6302: cat conftest.err >&5
! 6303: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6304: (exit $ac_status); } >/dev/null; then
! 6305: if test -s conftest.err; then
! 6306: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 6307: else
! 6308: ac_cpp_err=
! 6309: fi
! 6310: else
! 6311: ac_cpp_err=yes
! 6312: fi
! 6313: if test -z "$ac_cpp_err"; then
! 6314: :
! 6315: else
! 6316: echo "$as_me: failed program was:" >&5
! 6317: sed 's/^/| /' conftest.$ac_ext >&5
! 6318:
! 6319: # Broken: fails on valid input.
! 6320: continue
! 6321: fi
! 6322: rm -f conftest.err conftest.$ac_ext
! 6323:
! 6324: # OK, works on sane cases. Now check whether non-existent headers
! 6325: # can be detected and how.
! 6326: cat >conftest.$ac_ext <<_ACEOF
! 6327: #line $LINENO "configure"
! 6328: /* confdefs.h. */
! 6329: _ACEOF
! 6330: cat confdefs.h >>conftest.$ac_ext
! 6331: cat >>conftest.$ac_ext <<_ACEOF
! 6332: /* end confdefs.h. */
! 6333: #include <ac_nonexistent.h>
! 6334: _ACEOF
! 6335: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6336: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6337: ac_status=$?
! 6338: grep -v '^ *+' conftest.er1 >conftest.err
! 6339: rm -f conftest.er1
! 6340: cat conftest.err >&5
! 6341: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6342: (exit $ac_status); } >/dev/null; then
! 6343: if test -s conftest.err; then
! 6344: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 6345: else
! 6346: ac_cpp_err=
! 6347: fi
! 6348: else
! 6349: ac_cpp_err=yes
! 6350: fi
! 6351: if test -z "$ac_cpp_err"; then
! 6352: # Broken: success on invalid input.
! 6353: continue
! 6354: else
! 6355: echo "$as_me: failed program was:" >&5
! 6356: sed 's/^/| /' conftest.$ac_ext >&5
! 6357:
! 6358: # Passes both tests.
! 6359: ac_preproc_ok=:
! 6360: break
! 6361: fi
! 6362: rm -f conftest.err conftest.$ac_ext
! 6363:
! 6364: done
! 6365: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 6366: rm -f conftest.err conftest.$ac_ext
! 6367: if $ac_preproc_ok; then
! 6368: break
! 6369: fi
! 6370:
! 6371: done
! 6372: ac_cv_prog_CXXCPP=$CXXCPP
! 6373:
! 6374: fi
! 6375: CXXCPP=$ac_cv_prog_CXXCPP
! 6376: else
! 6377: ac_cv_prog_CXXCPP=$CXXCPP
! 6378: fi
! 6379: echo "$as_me:$LINENO: result: $CXXCPP" >&5
! 6380: echo "${ECHO_T}$CXXCPP" >&6
! 6381: ac_preproc_ok=false
! 6382: for ac_cxx_preproc_warn_flag in '' yes
! 6383: do
! 6384: # Use a header file that comes with gcc, so configuring glibc
! 6385: # with a fresh cross-compiler works.
! 6386: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 6387: # <limits.h> exists even on freestanding compilers.
! 6388: # On the NeXT, cc -E runs the code through the compiler's parser,
! 6389: # not just through cpp. "Syntax error" is here to catch this case.
! 6390: cat >conftest.$ac_ext <<_ACEOF
! 6391: #line $LINENO "configure"
! 6392: /* confdefs.h. */
! 6393: _ACEOF
! 6394: cat confdefs.h >>conftest.$ac_ext
! 6395: cat >>conftest.$ac_ext <<_ACEOF
! 6396: /* end confdefs.h. */
! 6397: #ifdef __STDC__
! 6398: # include <limits.h>
! 6399: #else
! 6400: # include <assert.h>
! 6401: #endif
! 6402: Syntax error
! 6403: _ACEOF
! 6404: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6405: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6406: ac_status=$?
! 6407: grep -v '^ *+' conftest.er1 >conftest.err
! 6408: rm -f conftest.er1
! 6409: cat conftest.err >&5
! 6410: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6411: (exit $ac_status); } >/dev/null; then
! 6412: if test -s conftest.err; then
! 6413: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 6414: else
! 6415: ac_cpp_err=
! 6416: fi
! 6417: else
! 6418: ac_cpp_err=yes
! 6419: fi
! 6420: if test -z "$ac_cpp_err"; then
! 6421: :
! 6422: else
! 6423: echo "$as_me: failed program was:" >&5
! 6424: sed 's/^/| /' conftest.$ac_ext >&5
! 6425:
! 6426: # Broken: fails on valid input.
! 6427: continue
! 6428: fi
! 6429: rm -f conftest.err conftest.$ac_ext
! 6430:
! 6431: # OK, works on sane cases. Now check whether non-existent headers
! 6432: # can be detected and how.
! 6433: cat >conftest.$ac_ext <<_ACEOF
! 6434: #line $LINENO "configure"
! 6435: /* confdefs.h. */
! 6436: _ACEOF
! 6437: cat confdefs.h >>conftest.$ac_ext
! 6438: cat >>conftest.$ac_ext <<_ACEOF
! 6439: /* end confdefs.h. */
! 6440: #include <ac_nonexistent.h>
! 6441: _ACEOF
! 6442: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 6443: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 6444: ac_status=$?
! 6445: grep -v '^ *+' conftest.er1 >conftest.err
! 6446: rm -f conftest.er1
! 6447: cat conftest.err >&5
! 6448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6449: (exit $ac_status); } >/dev/null; then
! 6450: if test -s conftest.err; then
! 6451: ac_cpp_err=$ac_cxx_preproc_warn_flag
! 6452: else
! 6453: ac_cpp_err=
! 6454: fi
! 6455: else
! 6456: ac_cpp_err=yes
! 6457: fi
! 6458: if test -z "$ac_cpp_err"; then
! 6459: # Broken: success on invalid input.
! 6460: continue
! 6461: else
! 6462: echo "$as_me: failed program was:" >&5
! 6463: sed 's/^/| /' conftest.$ac_ext >&5
! 6464:
! 6465: # Passes both tests.
! 6466: ac_preproc_ok=:
! 6467: break
! 6468: fi
! 6469: rm -f conftest.err conftest.$ac_ext
! 6470:
! 6471: done
! 6472: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
! 6473: rm -f conftest.err conftest.$ac_ext
! 6474: if $ac_preproc_ok; then
! 6475: :
! 6476: else
! 6477: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 6478: See \`config.log' for more details." >&5
! 6479: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
! 6480: See \`config.log' for more details." >&2;}
! 6481: { (exit 1); exit 1; }; }
! 6482: fi
! 6483:
! 6484: ac_ext=cc
! 6485: ac_cpp='$CXXCPP $CPPFLAGS'
! 6486: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6487: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6488: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 6489:
! 6490:
! 6491: ac_ext=f
! 6492: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
! 6493: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6494: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
! 6495: if test -n "$ac_tool_prefix"; then
! 6496: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
! 6497: do
! 6498: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
! 6499: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
! 6500: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6501: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6502: if test "${ac_cv_prog_F77+set}" = set; then
! 6503: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6504: else
! 6505: if test -n "$F77"; then
! 6506: ac_cv_prog_F77="$F77" # Let the user override the test.
! 6507: else
! 6508: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6509: for as_dir in $PATH
! 6510: do
! 6511: IFS=$as_save_IFS
! 6512: test -z "$as_dir" && as_dir=.
! 6513: for ac_exec_ext in '' $ac_executable_extensions; do
! 6514: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 6515: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
! 6516: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6517: break 2
! 6518: fi
! 6519: done
! 6520: done
! 6521:
! 6522: fi
! 6523: fi
! 6524: F77=$ac_cv_prog_F77
! 6525: if test -n "$F77"; then
! 6526: echo "$as_me:$LINENO: result: $F77" >&5
! 6527: echo "${ECHO_T}$F77" >&6
! 6528: else
! 6529: echo "$as_me:$LINENO: result: no" >&5
! 6530: echo "${ECHO_T}no" >&6
! 6531: fi
! 6532:
! 6533: test -n "$F77" && break
! 6534: done
! 6535: fi
! 6536: if test -z "$F77"; then
! 6537: ac_ct_F77=$F77
! 6538: for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
! 6539: do
! 6540: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 6541: set dummy $ac_prog; ac_word=$2
! 6542: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 6543: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 6544: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
! 6545: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6546: else
! 6547: if test -n "$ac_ct_F77"; then
! 6548: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
! 6549: else
! 6550: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6551: for as_dir in $PATH
! 6552: do
! 6553: IFS=$as_save_IFS
! 6554: test -z "$as_dir" && as_dir=.
! 6555: for ac_exec_ext in '' $ac_executable_extensions; do
! 6556: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 6557: ac_cv_prog_ac_ct_F77="$ac_prog"
! 6558: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6559: break 2
! 6560: fi
! 6561: done
! 6562: done
! 6563:
! 6564: fi
! 6565: fi
! 6566: ac_ct_F77=$ac_cv_prog_ac_ct_F77
! 6567: if test -n "$ac_ct_F77"; then
! 6568: echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
! 6569: echo "${ECHO_T}$ac_ct_F77" >&6
! 6570: else
! 6571: echo "$as_me:$LINENO: result: no" >&5
! 6572: echo "${ECHO_T}no" >&6
! 6573: fi
! 6574:
! 6575: test -n "$ac_ct_F77" && break
! 6576: done
! 6577:
! 6578: F77=$ac_ct_F77
! 6579: fi
! 6580:
! 6581:
! 6582: # Provide some information about the compiler.
! 6583: echo "$as_me:6583:" \
! 6584: "checking for Fortran 77 compiler version" >&5
! 6585: ac_compiler=`set X $ac_compile; echo $2`
! 6586: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
! 6587: (eval $ac_compiler --version </dev/null >&5) 2>&5
! 6588: ac_status=$?
! 6589: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6590: (exit $ac_status); }
! 6591: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
! 6592: (eval $ac_compiler -v </dev/null >&5) 2>&5
! 6593: ac_status=$?
! 6594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6595: (exit $ac_status); }
! 6596: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
! 6597: (eval $ac_compiler -V </dev/null >&5) 2>&5
! 6598: ac_status=$?
! 6599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6600: (exit $ac_status); }
! 6601:
! 6602: # If we don't use `.F' as extension, the preprocessor is not run on the
! 6603: # input file.
! 6604: ac_save_ext=$ac_ext
! 6605: ac_ext=F
! 6606: echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
! 6607: echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
! 6608: if test "${ac_cv_f77_compiler_gnu+set}" = set; then
! 6609: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6610: else
! 6611: cat >conftest.$ac_ext <<_ACEOF
! 6612: program main
! 6613: #ifndef __GNUC__
! 6614: choke me
! 6615: #endif
! 6616:
! 6617: end
! 6618: _ACEOF
! 6619: rm -f conftest.$ac_objext
! 6620: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6621: (eval $ac_compile) 2>&5
! 6622: ac_status=$?
! 6623: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6624: (exit $ac_status); } &&
! 6625: { ac_try='test -s conftest.$ac_objext'
! 6626: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6627: (eval $ac_try) 2>&5
! 6628: ac_status=$?
! 6629: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6630: (exit $ac_status); }; }; then
! 6631: ac_compiler_gnu=yes
! 6632: else
! 6633: echo "$as_me: failed program was:" >&5
! 6634: sed 's/^/| /' conftest.$ac_ext >&5
! 6635:
! 6636: ac_compiler_gnu=no
! 6637: fi
! 6638: rm -f conftest.$ac_objext conftest.$ac_ext
! 6639: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
! 6640:
! 6641: fi
! 6642: echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
! 6643: echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
! 6644: ac_ext=$ac_save_ext
! 6645: G77=`test $ac_compiler_gnu = yes && echo yes`
! 6646: ac_test_FFLAGS=${FFLAGS+set}
! 6647: ac_save_FFLAGS=$FFLAGS
! 6648: FFLAGS=
! 6649: echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
! 6650: echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
! 6651: if test "${ac_cv_prog_f77_g+set}" = set; then
! 6652: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6653: else
! 6654: FFLAGS=-g
! 6655: cat >conftest.$ac_ext <<_ACEOF
! 6656: program main
! 6657:
! 6658: end
! 6659: _ACEOF
! 6660: rm -f conftest.$ac_objext
! 6661: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6662: (eval $ac_compile) 2>&5
! 6663: ac_status=$?
! 6664: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6665: (exit $ac_status); } &&
! 6666: { ac_try='test -s conftest.$ac_objext'
! 6667: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 6668: (eval $ac_try) 2>&5
! 6669: ac_status=$?
! 6670: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6671: (exit $ac_status); }; }; then
! 6672: ac_cv_prog_f77_g=yes
! 6673: else
! 6674: echo "$as_me: failed program was:" >&5
! 6675: sed 's/^/| /' conftest.$ac_ext >&5
! 6676:
! 6677: ac_cv_prog_f77_g=no
! 6678: fi
! 6679: rm -f conftest.$ac_objext conftest.$ac_ext
! 6680:
! 6681: fi
! 6682: echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
! 6683: echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
! 6684: if test "$ac_test_FFLAGS" = set; then
! 6685: FFLAGS=$ac_save_FFLAGS
! 6686: elif test $ac_cv_prog_f77_g = yes; then
! 6687: if test "$G77" = yes; then
! 6688: FFLAGS="-g -O2"
! 6689: else
! 6690: FFLAGS="-g"
! 6691: fi
! 6692: else
! 6693: if test "$G77" = yes; then
! 6694: FFLAGS="-O2"
! 6695: else
! 6696: FFLAGS=
! 6697: fi
! 6698: fi
! 6699: ac_ext=c
! 6700: ac_cpp='$CPP $CPPFLAGS'
! 6701: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 6702: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 6703: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 6704:
! 6705:
! 6706:
! 6707: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
! 6708:
! 6709: # find the maximum length of command line arguments
! 6710: echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
! 6711: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
! 6712: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
! 6713: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6714: else
! 6715: i=0
! 6716: testring="ABCD"
! 6717:
! 6718: case $build_os in
! 6719: msdosdjgpp*)
! 6720: # On DJGPP, this test can blow up pretty badly due to problems in libc
! 6721: # (any single argument exceeding 2000 bytes causes a buffer overrun
! 6722: # during glob expansion). Even if it were fixed, the result of this
! 6723: # check would be larger than it should be.
! 6724: lt_cv_sys_max_cmd_len=12288; # 12K is about right
! 6725: ;;
! 6726:
! 6727: gnu*)
! 6728: # Under GNU Hurd, this test is not required because there is
! 6729: # no limit to the length of command line arguments.
! 6730: # Libtool will interpret -1 as no limit whatsoever
! 6731: lt_cv_sys_max_cmd_len=-1;
! 6732: ;;
! 6733:
! 6734: cygwin* | mingw*)
! 6735: # On Win9x/ME, this test blows up -- it succeeds, but takes
! 6736: # about 5 minutes as the teststring grows exponentially.
! 6737: # Worse, since 9x/ME are not pre-emptively multitasking,
! 6738: # you end up with a "frozen" computer, even though with patience
! 6739: # the test eventually succeeds (with a max line length of 256k).
! 6740: # Instead, let's just punt: use the minimum linelength reported by
! 6741: # all of the supported platforms: 8192 (on NT/2K/XP).
! 6742: lt_cv_sys_max_cmd_len=8192;
! 6743: ;;
! 6744:
! 6745: *)
! 6746: # If test is not a shell built-in, we'll probably end up computing a
! 6747: # maximum length that is only half of the actual maximum length, but
! 6748: # we can't tell.
! 6749: while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
! 6750: = "XX$testring") >/dev/null 2>&1 &&
! 6751: new_result=`expr "X$testring" : ".*" 2>&1` &&
! 6752: lt_cv_sys_max_cmd_len=$new_result &&
! 6753: test $i != 17 # 1/2 MB should be enough
! 6754: do
! 6755: i=`expr $i + 1`
! 6756: testring=$testring$testring
! 6757: done
! 6758: testring=
! 6759: # Add a significant safety factor because C++ compilers can tack on massive
! 6760: # amounts of additional arguments before passing them to the linker.
! 6761: # It appears as though 1/2 is a usable value.
! 6762: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
! 6763: ;;
! 6764: esac
! 6765:
! 6766: fi
! 6767:
! 6768: if test -n $lt_cv_sys_max_cmd_len ; then
! 6769: echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
! 6770: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
! 6771: else
! 6772: echo "$as_me:$LINENO: result: none" >&5
! 6773: echo "${ECHO_T}none" >&6
! 6774: fi
! 6775:
! 6776:
! 6777:
! 6778:
! 6779: # Check for command to grab the raw symbol name followed by C symbol from nm.
! 6780: echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
! 6781: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
! 6782: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
! 6783: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6784: else
! 6785:
! 6786: # These are sane defaults that work on at least a few old systems.
! 6787: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
! 6788:
! 6789: # Character class describing NM global symbol codes.
! 6790: symcode='[BCDEGRST]'
! 6791:
! 6792: # Regexp to match symbols that can be accessed directly from C.
! 6793: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
! 6794:
! 6795: # Transform the above into a raw symbol and a C symbol.
! 6796: symxfrm='\1 \2\3 \3'
! 6797:
! 6798: # Transform an extracted symbol line into a proper C declaration
! 6799: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
! 6800:
! 6801: # Transform an extracted symbol line into symbol name and symbol address
! 6802: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
! 6803:
! 6804: # Define system-specific variables.
! 6805: case $host_os in
! 6806: aix*)
! 6807: symcode='[BCDT]'
! 6808: ;;
! 6809: cygwin* | mingw* | pw32*)
! 6810: symcode='[ABCDGISTW]'
! 6811: ;;
! 6812: hpux*) # Its linker distinguishes data from code symbols
! 6813: if test "$host_cpu" = ia64; then
! 6814: symcode='[ABCDEGRST]'
! 6815: fi
! 6816: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
! 6817: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
! 6818: ;;
! 6819: irix* | nonstopux*)
! 6820: symcode='[BCDEGRST]'
! 6821: ;;
! 6822: osf*)
! 6823: symcode='[BCDEGQRST]'
! 6824: ;;
! 6825: solaris* | sysv5*)
! 6826: symcode='[BDT]'
! 6827: ;;
! 6828: sysv4)
! 6829: symcode='[DFNSTU]'
! 6830: ;;
! 6831: esac
! 6832:
! 6833: # Handle CRLF in mingw tool chain
! 6834: opt_cr=
! 6835: case $build_os in
! 6836: mingw*)
! 6837: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
! 6838: ;;
! 6839: esac
! 6840:
! 6841: # If we're using GNU nm, then use its standard symbol codes.
! 6842: case `$NM -V 2>&1` in
! 6843: *GNU* | *'with BFD'*)
! 6844: symcode='[ABCDGISTW]' ;;
! 6845: esac
! 6846:
! 6847: # Try without a prefix undercore, then with it.
! 6848: for ac_symprfx in "" "_"; do
! 6849:
! 6850: # Write the raw and C identifiers.
! 6851: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
! 6852:
! 6853: # Check to see that the pipe works correctly.
! 6854: pipe_works=no
! 6855:
! 6856: rm -f conftest*
! 6857: cat > conftest.$ac_ext <<EOF
! 6858: #ifdef __cplusplus
! 6859: extern "C" {
! 6860: #endif
! 6861: char nm_test_var;
! 6862: void nm_test_func(){}
! 6863: #ifdef __cplusplus
! 6864: }
! 6865: #endif
! 6866: int main(){nm_test_var='a';nm_test_func();return(0);}
! 6867: EOF
! 6868:
! 6869: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 6870: (eval $ac_compile) 2>&5
! 6871: ac_status=$?
! 6872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6873: (exit $ac_status); }; then
! 6874: # Now try to grab the symbols.
! 6875: nlist=conftest.nm
! 6876: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
! 6877: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
! 6878: ac_status=$?
! 6879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6880: (exit $ac_status); } && test -s "$nlist"; then
! 6881: # Try sorting and uniquifying the output.
! 6882: if sort "$nlist" | uniq > "$nlist"T; then
! 6883: mv -f "$nlist"T "$nlist"
! 6884: else
! 6885: rm -f "$nlist"T
! 6886: fi
! 6887:
! 6888: # Make sure that we snagged all the symbols we need.
! 6889: if grep ' nm_test_var$' "$nlist" >/dev/null; then
! 6890: if grep ' nm_test_func$' "$nlist" >/dev/null; then
! 6891: cat <<EOF > conftest.$ac_ext
! 6892: #ifdef __cplusplus
! 6893: extern "C" {
! 6894: #endif
! 6895:
! 6896: EOF
! 6897: # Now generate the symbol file.
! 6898: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
! 6899:
! 6900: cat <<EOF >> conftest.$ac_ext
! 6901: #if defined (__STDC__) && __STDC__
! 6902: # define lt_ptr_t void *
! 6903: #else
! 6904: # define lt_ptr_t char *
! 6905: # define const
! 6906: #endif
! 6907:
! 6908: /* The mapping between symbol names and symbols. */
! 6909: const struct {
! 6910: const char *name;
! 6911: lt_ptr_t address;
! 6912: }
! 6913: lt_preloaded_symbols[] =
! 6914: {
! 6915: EOF
! 6916: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
! 6917: cat <<\EOF >> conftest.$ac_ext
! 6918: {0, (lt_ptr_t) 0}
! 6919: };
! 6920:
! 6921: #ifdef __cplusplus
! 6922: }
! 6923: #endif
! 6924: EOF
! 6925: # Now try linking the two files.
! 6926: mv conftest.$ac_objext conftstm.$ac_objext
! 6927: lt_save_LIBS="$LIBS"
! 6928: lt_save_CFLAGS="$CFLAGS"
! 6929: LIBS="conftstm.$ac_objext"
! 6930: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
! 6931: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 6932: (eval $ac_link) 2>&5
! 6933: ac_status=$?
! 6934: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 6935: (exit $ac_status); } && test -s conftest${ac_exeext}; then
! 6936: pipe_works=yes
! 6937: fi
! 6938: LIBS="$lt_save_LIBS"
! 6939: CFLAGS="$lt_save_CFLAGS"
! 6940: else
! 6941: echo "cannot find nm_test_func in $nlist" >&5
! 6942: fi
! 6943: else
! 6944: echo "cannot find nm_test_var in $nlist" >&5
! 6945: fi
! 6946: else
! 6947: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
! 6948: fi
! 6949: else
! 6950: echo "$progname: failed program was:" >&5
! 6951: cat conftest.$ac_ext >&5
! 6952: fi
! 6953: rm -f conftest* conftst*
! 6954:
! 6955: # Do not use the global_symbol_pipe unless it works.
! 6956: if test "$pipe_works" = yes; then
! 6957: break
! 6958: else
! 6959: lt_cv_sys_global_symbol_pipe=
! 6960: fi
! 6961: done
! 6962:
! 6963: fi
! 6964:
! 6965: if test -z "$lt_cv_sys_global_symbol_pipe"; then
! 6966: lt_cv_sys_global_symbol_to_cdecl=
! 6967: fi
! 6968: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
! 6969: echo "$as_me:$LINENO: result: failed" >&5
! 6970: echo "${ECHO_T}failed" >&6
! 6971: else
! 6972: echo "$as_me:$LINENO: result: ok" >&5
! 6973: echo "${ECHO_T}ok" >&6
! 6974: fi
! 6975:
! 6976: echo "$as_me:$LINENO: checking for objdir" >&5
! 6977: echo $ECHO_N "checking for objdir... $ECHO_C" >&6
! 6978: if test "${lt_cv_objdir+set}" = set; then
! 6979: echo $ECHO_N "(cached) $ECHO_C" >&6
! 6980: else
! 6981: rm -f .libs 2>/dev/null
! 6982: mkdir .libs 2>/dev/null
! 6983: if test -d .libs; then
! 6984: lt_cv_objdir=.libs
! 6985: else
! 6986: # MS-DOS does not allow filenames that begin with a dot.
! 6987: lt_cv_objdir=_libs
! 6988: fi
! 6989: rmdir .libs 2>/dev/null
! 6990: fi
! 6991: echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
! 6992: echo "${ECHO_T}$lt_cv_objdir" >&6
! 6993: objdir=$lt_cv_objdir
! 6994:
! 6995:
! 6996:
! 6997:
! 6998:
! 6999: case $host_os in
! 7000: aix3*)
! 7001: # AIX sometimes has problems with the GCC collect2 program. For some
! 7002: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 7003: # vanish in a puff of smoke.
! 7004: if test "X${COLLECT_NAMES+set}" != Xset; then
! 7005: COLLECT_NAMES=
! 7006: export COLLECT_NAMES
! 7007: fi
! 7008: ;;
! 7009: esac
! 7010:
! 7011: # Sed substitution that helps us do robust quoting. It backslashifies
! 7012: # metacharacters that are still active within double-quoted strings.
! 7013: Xsed='sed -e s/^X//'
! 7014: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
! 7015:
! 7016: # Same as above, but do not quote variable references.
! 7017: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
! 7018:
! 7019: # Sed substitution to delay expansion of an escaped shell variable in a
! 7020: # double_quote_subst'ed string.
! 7021: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
! 7022:
! 7023: # Sed substitution to avoid accidental globbing in evaled expressions
! 7024: no_glob_subst='s/\*/\\\*/g'
! 7025:
! 7026: # Constants:
! 7027: rm="rm -f"
! 7028:
! 7029: # Global variables:
! 7030: default_ofile=libtool
! 7031: can_build_shared=yes
! 7032:
! 7033: # All known linkers require a `.a' archive for static linking (except M$VC,
! 7034: # which needs '.lib').
! 7035: libext=a
! 7036: ltmain="$ac_aux_dir/ltmain.sh"
! 7037: ofile="$default_ofile"
! 7038: with_gnu_ld="$lt_cv_prog_gnu_ld"
! 7039:
! 7040: if test -n "$ac_tool_prefix"; then
! 7041: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
! 7042: set dummy ${ac_tool_prefix}ar; ac_word=$2
! 7043: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7044: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7045: if test "${ac_cv_prog_AR+set}" = set; then
! 7046: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7047: else
! 7048: if test -n "$AR"; then
! 7049: ac_cv_prog_AR="$AR" # Let the user override the test.
! 7050: else
! 7051: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7052: for as_dir in $PATH
! 7053: do
! 7054: IFS=$as_save_IFS
! 7055: test -z "$as_dir" && as_dir=.
! 7056: for ac_exec_ext in '' $ac_executable_extensions; do
! 7057: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7058: ac_cv_prog_AR="${ac_tool_prefix}ar"
! 7059: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7060: break 2
! 7061: fi
! 7062: done
! 7063: done
! 7064:
! 7065: fi
! 7066: fi
! 7067: AR=$ac_cv_prog_AR
! 7068: if test -n "$AR"; then
! 7069: echo "$as_me:$LINENO: result: $AR" >&5
! 7070: echo "${ECHO_T}$AR" >&6
! 7071: else
! 7072: echo "$as_me:$LINENO: result: no" >&5
! 7073: echo "${ECHO_T}no" >&6
! 7074: fi
! 7075:
! 7076: fi
! 7077: if test -z "$ac_cv_prog_AR"; then
! 7078: ac_ct_AR=$AR
! 7079: # Extract the first word of "ar", so it can be a program name with args.
! 7080: set dummy ar; ac_word=$2
! 7081: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7082: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7083: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
! 7084: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7085: else
! 7086: if test -n "$ac_ct_AR"; then
! 7087: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
! 7088: else
! 7089: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7090: for as_dir in $PATH
! 7091: do
! 7092: IFS=$as_save_IFS
! 7093: test -z "$as_dir" && as_dir=.
! 7094: for ac_exec_ext in '' $ac_executable_extensions; do
! 7095: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7096: ac_cv_prog_ac_ct_AR="ar"
! 7097: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7098: break 2
! 7099: fi
! 7100: done
! 7101: done
! 7102:
! 7103: test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
! 7104: fi
! 7105: fi
! 7106: ac_ct_AR=$ac_cv_prog_ac_ct_AR
! 7107: if test -n "$ac_ct_AR"; then
! 7108: echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
! 7109: echo "${ECHO_T}$ac_ct_AR" >&6
! 7110: else
! 7111: echo "$as_me:$LINENO: result: no" >&5
! 7112: echo "${ECHO_T}no" >&6
! 7113: fi
! 7114:
! 7115: AR=$ac_ct_AR
! 7116: else
! 7117: AR="$ac_cv_prog_AR"
! 7118: fi
! 7119:
! 7120: if test -n "$ac_tool_prefix"; then
! 7121: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
! 7122: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
! 7123: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7124: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7125: if test "${ac_cv_prog_RANLIB+set}" = set; then
! 7126: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7127: else
! 7128: if test -n "$RANLIB"; then
! 7129: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
! 7130: else
! 7131: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7132: for as_dir in $PATH
! 7133: do
! 7134: IFS=$as_save_IFS
! 7135: test -z "$as_dir" && as_dir=.
! 7136: for ac_exec_ext in '' $ac_executable_extensions; do
! 7137: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7138: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
! 7139: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7140: break 2
! 7141: fi
! 7142: done
! 7143: done
! 7144:
! 7145: fi
! 7146: fi
! 7147: RANLIB=$ac_cv_prog_RANLIB
! 7148: if test -n "$RANLIB"; then
! 7149: echo "$as_me:$LINENO: result: $RANLIB" >&5
! 7150: echo "${ECHO_T}$RANLIB" >&6
! 7151: else
! 7152: echo "$as_me:$LINENO: result: no" >&5
! 7153: echo "${ECHO_T}no" >&6
! 7154: fi
! 7155:
! 7156: fi
! 7157: if test -z "$ac_cv_prog_RANLIB"; then
! 7158: ac_ct_RANLIB=$RANLIB
! 7159: # Extract the first word of "ranlib", so it can be a program name with args.
! 7160: set dummy ranlib; ac_word=$2
! 7161: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7162: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7163: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
! 7164: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7165: else
! 7166: if test -n "$ac_ct_RANLIB"; then
! 7167: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
! 7168: else
! 7169: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7170: for as_dir in $PATH
! 7171: do
! 7172: IFS=$as_save_IFS
! 7173: test -z "$as_dir" && as_dir=.
! 7174: for ac_exec_ext in '' $ac_executable_extensions; do
! 7175: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7176: ac_cv_prog_ac_ct_RANLIB="ranlib"
! 7177: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7178: break 2
! 7179: fi
! 7180: done
! 7181: done
! 7182:
! 7183: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
! 7184: fi
! 7185: fi
! 7186: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
! 7187: if test -n "$ac_ct_RANLIB"; then
! 7188: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
! 7189: echo "${ECHO_T}$ac_ct_RANLIB" >&6
! 7190: else
! 7191: echo "$as_me:$LINENO: result: no" >&5
! 7192: echo "${ECHO_T}no" >&6
! 7193: fi
! 7194:
! 7195: RANLIB=$ac_ct_RANLIB
! 7196: else
! 7197: RANLIB="$ac_cv_prog_RANLIB"
! 7198: fi
! 7199:
! 7200: if test -n "$ac_tool_prefix"; then
! 7201: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
! 7202: set dummy ${ac_tool_prefix}strip; ac_word=$2
! 7203: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7204: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7205: if test "${ac_cv_prog_STRIP+set}" = set; then
! 7206: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7207: else
! 7208: if test -n "$STRIP"; then
! 7209: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
! 7210: else
! 7211: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7212: for as_dir in $PATH
! 7213: do
! 7214: IFS=$as_save_IFS
! 7215: test -z "$as_dir" && as_dir=.
! 7216: for ac_exec_ext in '' $ac_executable_extensions; do
! 7217: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7218: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
! 7219: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7220: break 2
! 7221: fi
! 7222: done
! 7223: done
! 7224:
! 7225: fi
! 7226: fi
! 7227: STRIP=$ac_cv_prog_STRIP
! 7228: if test -n "$STRIP"; then
! 7229: echo "$as_me:$LINENO: result: $STRIP" >&5
! 7230: echo "${ECHO_T}$STRIP" >&6
! 7231: else
! 7232: echo "$as_me:$LINENO: result: no" >&5
! 7233: echo "${ECHO_T}no" >&6
! 7234: fi
! 7235:
! 7236: fi
! 7237: if test -z "$ac_cv_prog_STRIP"; then
! 7238: ac_ct_STRIP=$STRIP
! 7239: # Extract the first word of "strip", so it can be a program name with args.
! 7240: set dummy strip; ac_word=$2
! 7241: echo "$as_me:$LINENO: checking for $ac_word" >&5
! 7242: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
! 7243: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
! 7244: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7245: else
! 7246: if test -n "$ac_ct_STRIP"; then
! 7247: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
! 7248: else
! 7249: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 7250: for as_dir in $PATH
! 7251: do
! 7252: IFS=$as_save_IFS
! 7253: test -z "$as_dir" && as_dir=.
! 7254: for ac_exec_ext in '' $ac_executable_extensions; do
! 7255: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
! 7256: ac_cv_prog_ac_ct_STRIP="strip"
! 7257: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
! 7258: break 2
! 7259: fi
! 7260: done
! 7261: done
! 7262:
! 7263: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
! 7264: fi
! 7265: fi
! 7266: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
! 7267: if test -n "$ac_ct_STRIP"; then
! 7268: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
! 7269: echo "${ECHO_T}$ac_ct_STRIP" >&6
! 7270: else
! 7271: echo "$as_me:$LINENO: result: no" >&5
! 7272: echo "${ECHO_T}no" >&6
! 7273: fi
! 7274:
! 7275: STRIP=$ac_ct_STRIP
! 7276: else
! 7277: STRIP="$ac_cv_prog_STRIP"
! 7278: fi
! 7279:
! 7280:
! 7281: old_CC="$CC"
! 7282: old_CFLAGS="$CFLAGS"
! 7283:
! 7284: # Set sane defaults for various variables
! 7285: test -z "$AR" && AR=ar
! 7286: test -z "$AR_FLAGS" && AR_FLAGS=cru
! 7287: test -z "$AS" && AS=as
! 7288: test -z "$CC" && CC=cc
! 7289: test -z "$LTCC" && LTCC=$CC
! 7290: test -z "$DLLTOOL" && DLLTOOL=dlltool
! 7291: test -z "$LD" && LD=ld
! 7292: test -z "$LN_S" && LN_S="ln -s"
! 7293: test -z "$MAGIC_CMD" && MAGIC_CMD=file
! 7294: test -z "$NM" && NM=nm
! 7295: test -z "$SED" && SED=sed
! 7296: test -z "$OBJDUMP" && OBJDUMP=objdump
! 7297: test -z "$RANLIB" && RANLIB=:
! 7298: test -z "$STRIP" && STRIP=:
! 7299: test -z "$ac_objext" && ac_objext=o
! 7300:
! 7301: # Determine commands to create old-style static archives.
! 7302: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
! 7303: old_postinstall_cmds='chmod 644 $oldlib'
! 7304: old_postuninstall_cmds=
! 7305:
! 7306: if test -n "$RANLIB"; then
! 7307: case $host_os in
! 7308: openbsd*)
! 7309: old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
! 7310: ;;
! 7311: *)
! 7312: old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
! 7313: ;;
! 7314: esac
! 7315: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
! 7316: fi
! 7317:
! 7318: # Only perform the check for file, if the check method requires it
! 7319: case $deplibs_check_method in
! 7320: file_magic*)
! 7321: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
! 7322: echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
! 7323: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
! 7324: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7325: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7326: else
! 7327: case $MAGIC_CMD in
! 7328: [\\/*] | ?:[\\/]*)
! 7329: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7330: ;;
! 7331: *)
! 7332: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7333: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7334: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7335: for ac_dir in $ac_dummy; do
! 7336: IFS="$lt_save_ifs"
! 7337: test -z "$ac_dir" && ac_dir=.
! 7338: if test -f $ac_dir/${ac_tool_prefix}file; then
! 7339: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
! 7340: if test -n "$file_magic_test_file"; then
! 7341: case $deplibs_check_method in
! 7342: "file_magic "*)
! 7343: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 7344: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7345: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7346: $EGREP "$file_magic_regex" > /dev/null; then
! 7347: :
! 7348: else
! 7349: cat <<EOF 1>&2
! 7350:
! 7351: *** Warning: the command libtool uses to detect shared libraries,
! 7352: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7353: *** The result is that libtool may fail to recognize shared libraries
! 7354: *** as such. This will affect the creation of libtool libraries that
! 7355: *** depend on shared libraries, but programs linked with such libtool
! 7356: *** libraries will work regardless of this problem. Nevertheless, you
! 7357: *** may want to report the problem to your system manager and/or to
! 7358: *** bug-libtool@gnu.org
! 7359:
! 7360: EOF
! 7361: fi ;;
! 7362: esac
! 7363: fi
! 7364: break
! 7365: fi
! 7366: done
! 7367: IFS="$lt_save_ifs"
! 7368: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7369: ;;
! 7370: esac
! 7371: fi
! 7372:
! 7373: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7374: if test -n "$MAGIC_CMD"; then
! 7375: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7376: echo "${ECHO_T}$MAGIC_CMD" >&6
! 7377: else
! 7378: echo "$as_me:$LINENO: result: no" >&5
! 7379: echo "${ECHO_T}no" >&6
! 7380: fi
! 7381:
! 7382: if test -z "$lt_cv_path_MAGIC_CMD"; then
! 7383: if test -n "$ac_tool_prefix"; then
! 7384: echo "$as_me:$LINENO: checking for file" >&5
! 7385: echo $ECHO_N "checking for file... $ECHO_C" >&6
! 7386: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
! 7387: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7388: else
! 7389: case $MAGIC_CMD in
! 7390: [\\/*] | ?:[\\/]*)
! 7391: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
! 7392: ;;
! 7393: *)
! 7394: lt_save_MAGIC_CMD="$MAGIC_CMD"
! 7395: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 7396: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
! 7397: for ac_dir in $ac_dummy; do
! 7398: IFS="$lt_save_ifs"
! 7399: test -z "$ac_dir" && ac_dir=.
! 7400: if test -f $ac_dir/file; then
! 7401: lt_cv_path_MAGIC_CMD="$ac_dir/file"
! 7402: if test -n "$file_magic_test_file"; then
! 7403: case $deplibs_check_method in
! 7404: "file_magic "*)
! 7405: file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
! 7406: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7407: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
! 7408: $EGREP "$file_magic_regex" > /dev/null; then
! 7409: :
! 7410: else
! 7411: cat <<EOF 1>&2
! 7412:
! 7413: *** Warning: the command libtool uses to detect shared libraries,
! 7414: *** $file_magic_cmd, produces output that libtool cannot recognize.
! 7415: *** The result is that libtool may fail to recognize shared libraries
! 7416: *** as such. This will affect the creation of libtool libraries that
! 7417: *** depend on shared libraries, but programs linked with such libtool
! 7418: *** libraries will work regardless of this problem. Nevertheless, you
! 7419: *** may want to report the problem to your system manager and/or to
! 7420: *** bug-libtool@gnu.org
! 7421:
! 7422: EOF
! 7423: fi ;;
! 7424: esac
! 7425: fi
! 7426: break
! 7427: fi
! 7428: done
! 7429: IFS="$lt_save_ifs"
! 7430: MAGIC_CMD="$lt_save_MAGIC_CMD"
! 7431: ;;
! 7432: esac
! 7433: fi
! 7434:
! 7435: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
! 7436: if test -n "$MAGIC_CMD"; then
! 7437: echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
! 7438: echo "${ECHO_T}$MAGIC_CMD" >&6
! 7439: else
! 7440: echo "$as_me:$LINENO: result: no" >&5
! 7441: echo "${ECHO_T}no" >&6
! 7442: fi
! 7443:
! 7444: else
! 7445: MAGIC_CMD=:
! 7446: fi
! 7447: fi
! 7448:
! 7449: fi
! 7450: ;;
! 7451: esac
! 7452:
! 7453: enable_dlopen=no
! 7454: enable_win32_dll=no
! 7455:
! 7456: # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
! 7457: if test "${enable_libtool_lock+set}" = set; then
! 7458: enableval="$enable_libtool_lock"
! 7459:
! 7460: fi;
! 7461: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
! 7462:
! 7463:
! 7464: # Check whether --with-pic or --without-pic was given.
! 7465: if test "${with_pic+set}" = set; then
! 7466: withval="$with_pic"
! 7467: pic_mode="$withval"
! 7468: else
! 7469: pic_mode=default
! 7470: fi;
! 7471: test -z "$pic_mode" && pic_mode=default
! 7472:
! 7473: # Use C for the default configuration in the libtool script
! 7474: tagname=
! 7475: lt_save_CC="$CC"
! 7476: ac_ext=c
! 7477: ac_cpp='$CPP $CPPFLAGS'
! 7478: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 7479: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 7480: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 7481:
! 7482:
! 7483: # Source file extension for C test sources.
! 7484: ac_ext=c
! 7485:
! 7486: # Object file extension for compiled C test sources.
! 7487: objext=o
! 7488: objext=$objext
! 7489:
! 7490: # Code to be used in simple compile tests
! 7491: lt_simple_compile_test_code="int some_variable = 0;\n"
! 7492:
! 7493: # Code to be used in simple link tests
! 7494: lt_simple_link_test_code='int main(){return(0);}\n'
! 7495:
! 7496:
! 7497: # If no C compiler was specified, use CC.
! 7498: LTCC=${LTCC-"$CC"}
! 7499:
! 7500: # Allow CC to be a program name with arguments.
! 7501: compiler=$CC
! 7502:
! 7503:
! 7504: #
! 7505: # Check for any special shared library compilation flags.
! 7506: #
! 7507: lt_prog_cc_shlib=
! 7508: if test "$GCC" = no; then
! 7509: case $host_os in
! 7510: sco3.2v5*)
! 7511: lt_prog_cc_shlib='-belf'
! 7512: ;;
! 7513: esac
! 7514: fi
! 7515: if test -n "$lt_prog_cc_shlib"; then
! 7516: { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
! 7517: echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
! 7518: if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
! 7519: else
! 7520: { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
! 7521: echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
! 7522: lt_cv_prog_cc_can_build_shared=no
! 7523: fi
! 7524: fi
! 7525:
! 7526:
! 7527: #
! 7528: # Check to make sure the static flag actually works.
! 7529: #
! 7530: echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
! 7531: echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
! 7532: if test "${lt_prog_compiler_static_works+set}" = set; then
! 7533: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7534: else
! 7535: lt_prog_compiler_static_works=no
! 7536: save_LDFLAGS="$LDFLAGS"
! 7537: LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
! 7538: printf "$lt_simple_link_test_code" > conftest.$ac_ext
! 7539: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
! 7540: # The compiler can only warn and ignore the option if not recognized
! 7541: # So say no if there are warnings
! 7542: if test -s conftest.err; then
! 7543: # Append any errors to the config.log.
! 7544: cat conftest.err 1>&5
! 7545: else
! 7546: lt_prog_compiler_static_works=yes
! 7547: fi
! 7548: fi
! 7549: $rm conftest*
! 7550: LDFLAGS="$save_LDFLAGS"
! 7551:
! 7552: fi
! 7553: echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
! 7554: echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
! 7555:
! 7556: if test x"$lt_prog_compiler_static_works" = xyes; then
! 7557: :
! 7558: else
! 7559: lt_prog_compiler_static=
! 7560: fi
! 7561:
! 7562:
! 7563:
! 7564: ## CAVEAT EMPTOR:
! 7565: ## There is no encapsulation within the following macros, do not change
! 7566: ## the running order or otherwise move them around unless you know exactly
! 7567: ## what you are doing...
! 7568:
! 7569: lt_prog_compiler_no_builtin_flag=
! 7570:
! 7571: if test "$GCC" = yes; then
! 7572: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
! 7573:
! 7574: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 7575: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 7576: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 7577: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7578: else
! 7579: lt_cv_prog_compiler_rtti_exceptions=no
! 7580: ac_outfile=conftest.$ac_objext
! 7581: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7582: lt_compiler_flag="-fno-rtti -fno-exceptions"
! 7583: # Insert the option either (1) after the last *FLAGS variable, or
! 7584: # (2) before a word containing "conftest.", or (3) at the end.
! 7585: # Note that $ac_compile itself does not contain backslashes and begins
! 7586: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7587: # The option is referenced via a variable to avoid confusing sed.
! 7588: lt_compile=`echo "$ac_compile" | $SED \
! 7589: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 7590: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7591: -e 's:$: $lt_compiler_flag:'`
! 7592: (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
! 7593: (eval "$lt_compile" 2>conftest.err)
! 7594: ac_status=$?
! 7595: cat conftest.err >&5
! 7596: echo "$as_me:7596: \$? = $ac_status" >&5
! 7597: if (exit $ac_status) && test -s "$ac_outfile"; then
! 7598: # The compiler can only warn and ignore the option if not recognized
! 7599: # So say no if there are warnings
! 7600: if test ! -s conftest.err; then
! 7601: lt_cv_prog_compiler_rtti_exceptions=yes
! 7602: fi
! 7603: fi
! 7604: $rm conftest*
! 7605:
! 7606: fi
! 7607: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 7608: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
! 7609:
! 7610: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 7611: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
! 7612: else
! 7613: :
! 7614: fi
! 7615:
! 7616: fi
! 7617:
! 7618: lt_prog_compiler_wl=
! 7619: lt_prog_compiler_pic=
! 7620: lt_prog_compiler_static=
! 7621:
! 7622: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 7623: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 7624:
! 7625: if test "$GCC" = yes; then
! 7626: lt_prog_compiler_wl='-Wl,'
! 7627: lt_prog_compiler_static='-static'
! 7628:
! 7629: case $host_os in
! 7630: aix*)
! 7631: # All AIX code is PIC.
! 7632: if test "$host_cpu" = ia64; then
! 7633: # AIX 5 now supports IA64 processor
! 7634: lt_prog_compiler_static='-Bstatic'
! 7635: fi
! 7636: ;;
! 7637:
! 7638: amigaos*)
! 7639: # FIXME: we need at least 68020 code to build shared libraries, but
! 7640: # adding the `-m68020' flag to GCC prevents building anything better,
! 7641: # like `-m68040'.
! 7642: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
! 7643: ;;
! 7644:
! 7645: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 7646: # PIC is the default for these OSes.
! 7647: ;;
! 7648:
! 7649: mingw* | pw32* | os2*)
! 7650: # This hack is so that the source file can tell whether it is being
! 7651: # built for inclusion in a dll (and should export symbols for example).
! 7652: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7653: ;;
! 7654:
! 7655: darwin* | rhapsody*)
! 7656: # PIC is the default on this platform
! 7657: # Common symbols not allowed in MH_DYLIB files
! 7658: lt_prog_compiler_pic='-fno-common'
! 7659: ;;
! 7660:
! 7661: msdosdjgpp*)
! 7662: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 7663: # on systems that don't support them.
! 7664: lt_prog_compiler_can_build_shared=no
! 7665: enable_shared=no
! 7666: ;;
! 7667:
! 7668: sysv4*MP*)
! 7669: if test -d /usr/nec; then
! 7670: lt_prog_compiler_pic=-Kconform_pic
! 7671: fi
! 7672: ;;
! 7673:
! 7674: hpux*)
! 7675: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 7676: # not for PA HP-UX.
! 7677: case "$host_cpu" in
! 7678: hppa*64*|ia64*)
! 7679: # +Z the default
! 7680: ;;
! 7681: *)
! 7682: lt_prog_compiler_pic='-fPIC'
! 7683: ;;
! 7684: esac
! 7685: ;;
! 7686:
! 7687: *)
! 7688: lt_prog_compiler_pic='-fPIC'
! 7689: ;;
! 7690: esac
! 7691: else
! 7692: # PORTME Check for flag to pass linker flags through the system compiler.
! 7693: case $host_os in
! 7694: aix*)
! 7695: lt_prog_compiler_wl='-Wl,'
! 7696: if test "$host_cpu" = ia64; then
! 7697: # AIX 5 now supports IA64 processor
! 7698: lt_prog_compiler_static='-Bstatic'
! 7699: else
! 7700: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
! 7701: fi
! 7702: ;;
! 7703:
! 7704: mingw* | pw32* | os2*)
! 7705: # This hack is so that the source file can tell whether it is being
! 7706: # built for inclusion in a dll (and should export symbols for example).
! 7707: lt_prog_compiler_pic='-DDLL_EXPORT'
! 7708: ;;
! 7709:
! 7710: hpux9* | hpux10* | hpux11*)
! 7711: lt_prog_compiler_wl='-Wl,'
! 7712: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 7713: # not for PA HP-UX.
! 7714: case "$host_cpu" in
! 7715: hppa*64*|ia64*)
! 7716: # +Z the default
! 7717: ;;
! 7718: *)
! 7719: lt_prog_compiler_pic='+Z'
! 7720: ;;
! 7721: esac
! 7722: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 7723: lt_prog_compiler_static='${wl}-a ${wl}archive'
! 7724: ;;
! 7725:
! 7726: irix5* | irix6* | nonstopux*)
! 7727: lt_prog_compiler_wl='-Wl,'
! 7728: # PIC (with -KPIC) is the default.
! 7729: lt_prog_compiler_static='-non_shared'
! 7730: ;;
! 7731:
! 7732: newsos6)
! 7733: lt_prog_compiler_pic='-KPIC'
! 7734: lt_prog_compiler_static='-Bstatic'
! 7735: ;;
! 7736:
! 7737: linux*)
! 7738: case $CC in
! 7739: icc|ecc)
! 7740: lt_prog_compiler_wl='-Wl,'
! 7741: lt_prog_compiler_pic='-KPIC'
! 7742: lt_prog_compiler_static='-static'
! 7743: ;;
! 7744: ccc)
! 7745: lt_prog_compiler_wl='-Wl,'
! 7746: # All Alpha code is PIC.
! 7747: lt_prog_compiler_static='-non_shared'
! 7748: ;;
! 7749: esac
! 7750: ;;
! 7751:
! 7752: osf3* | osf4* | osf5*)
! 7753: lt_prog_compiler_wl='-Wl,'
! 7754: # All OSF/1 code is PIC.
! 7755: lt_prog_compiler_static='-non_shared'
! 7756: ;;
! 7757:
! 7758: sco3.2v5*)
! 7759: lt_prog_compiler_pic='-Kpic'
! 7760: lt_prog_compiler_static='-dn'
! 7761: ;;
! 7762:
! 7763: solaris*)
! 7764: lt_prog_compiler_wl='-Wl,'
! 7765: lt_prog_compiler_pic='-KPIC'
! 7766: lt_prog_compiler_static='-Bstatic'
! 7767: ;;
! 7768:
! 7769: sunos4*)
! 7770: lt_prog_compiler_wl='-Qoption ld '
! 7771: lt_prog_compiler_pic='-PIC'
! 7772: lt_prog_compiler_static='-Bstatic'
! 7773: ;;
! 7774:
! 7775: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 7776: lt_prog_compiler_wl='-Wl,'
! 7777: lt_prog_compiler_pic='-KPIC'
! 7778: lt_prog_compiler_static='-Bstatic'
! 7779: ;;
! 7780:
! 7781: sysv4*MP*)
! 7782: if test -d /usr/nec ;then
! 7783: lt_prog_compiler_pic='-Kconform_pic'
! 7784: lt_prog_compiler_static='-Bstatic'
! 7785: fi
! 7786: ;;
! 7787:
! 7788: uts4*)
! 7789: lt_prog_compiler_pic='-pic'
! 7790: lt_prog_compiler_static='-Bstatic'
! 7791: ;;
! 7792:
! 7793: *)
! 7794: lt_prog_compiler_can_build_shared=no
! 7795: ;;
! 7796: esac
! 7797: fi
! 7798:
! 7799: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
! 7800: echo "${ECHO_T}$lt_prog_compiler_pic" >&6
! 7801:
! 7802: #
! 7803: # Check to make sure the PIC flag actually works.
! 7804: #
! 7805: if test -n "$lt_prog_compiler_pic"; then
! 7806: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
! 7807: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
! 7808: if test "${lt_prog_compiler_pic_works+set}" = set; then
! 7809: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7810: else
! 7811: lt_prog_compiler_pic_works=no
! 7812: ac_outfile=conftest.$ac_objext
! 7813: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7814: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
! 7815: # Insert the option either (1) after the last *FLAGS variable, or
! 7816: # (2) before a word containing "conftest.", or (3) at the end.
! 7817: # Note that $ac_compile itself does not contain backslashes and begins
! 7818: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7819: # The option is referenced via a variable to avoid confusing sed.
! 7820: lt_compile=`echo "$ac_compile" | $SED \
! 7821: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 7822: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7823: -e 's:$: $lt_compiler_flag:'`
! 7824: (eval echo "\"\$as_me:7824: $lt_compile\"" >&5)
! 7825: (eval "$lt_compile" 2>conftest.err)
! 7826: ac_status=$?
! 7827: cat conftest.err >&5
! 7828: echo "$as_me:7828: \$? = $ac_status" >&5
! 7829: if (exit $ac_status) && test -s "$ac_outfile"; then
! 7830: # The compiler can only warn and ignore the option if not recognized
! 7831: # So say no if there are warnings
! 7832: if test ! -s conftest.err; then
! 7833: lt_prog_compiler_pic_works=yes
! 7834: fi
! 7835: fi
! 7836: $rm conftest*
! 7837:
! 7838: fi
! 7839: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
! 7840: echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
! 7841:
! 7842: if test x"$lt_prog_compiler_pic_works" = xyes; then
! 7843: case $lt_prog_compiler_pic in
! 7844: "" | " "*) ;;
! 7845: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
! 7846: esac
! 7847: else
! 7848: lt_prog_compiler_pic=
! 7849: lt_prog_compiler_can_build_shared=no
! 7850: fi
! 7851:
! 7852: fi
! 7853: case "$host_os" in
! 7854: # For platforms which do not support PIC, -DPIC is meaningless:
! 7855: *djgpp*)
! 7856: lt_prog_compiler_pic=
! 7857: ;;
! 7858: *)
! 7859: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
! 7860: ;;
! 7861: esac
! 7862:
! 7863: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 7864: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 7865: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
! 7866: echo $ECHO_N "(cached) $ECHO_C" >&6
! 7867: else
! 7868: lt_cv_prog_compiler_c_o=no
! 7869: $rm -r conftest 2>/dev/null
! 7870: mkdir conftest
! 7871: cd conftest
! 7872: mkdir out
! 7873: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 7874:
! 7875: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 7876: # that will create temporary files in the current directory regardless of
! 7877: # the output directory. Thus, making CWD read-only will cause this test
! 7878: # to fail, enabling locking or at least warning the user not to do parallel
! 7879: # builds.
! 7880: chmod -w .
! 7881:
! 7882: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 7883: # Insert the option either (1) after the last *FLAGS variable, or
! 7884: # (2) before a word containing "conftest.", or (3) at the end.
! 7885: # Note that $ac_compile itself does not contain backslashes and begins
! 7886: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 7887: lt_compile=`echo "$ac_compile" | $SED \
! 7888: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 7889: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 7890: -e 's:$: $lt_compiler_flag:'`
! 7891: (eval echo "\"\$as_me:7891: $lt_compile\"" >&5)
! 7892: (eval "$lt_compile" 2>out/conftest.err)
! 7893: ac_status=$?
! 7894: cat out/conftest.err >&5
! 7895: echo "$as_me:7895: \$? = $ac_status" >&5
! 7896: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 7897: then
! 7898: # The compiler can only warn and ignore the option if not recognized
! 7899: # So say no if there are warnings
! 7900: if test ! -s out/conftest.err; then
! 7901: lt_cv_prog_compiler_c_o=yes
! 7902: fi
! 7903: fi
! 7904: chmod u+w .
! 7905: $rm conftest* out/*
! 7906: rmdir out
! 7907: cd ..
! 7908: rmdir conftest
! 7909: $rm conftest*
! 7910:
! 7911: fi
! 7912: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
! 7913: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
! 7914:
! 7915:
! 7916: hard_links="nottested"
! 7917: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
! 7918: # do not overwrite the value of need_locks provided by the user
! 7919: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 7920: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 7921: hard_links=yes
! 7922: $rm conftest*
! 7923: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 7924: touch conftest.a
! 7925: ln conftest.a conftest.b 2>&5 || hard_links=no
! 7926: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 7927: echo "$as_me:$LINENO: result: $hard_links" >&5
! 7928: echo "${ECHO_T}$hard_links" >&6
! 7929: if test "$hard_links" = no; then
! 7930: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 7931: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 7932: need_locks=warn
! 7933: fi
! 7934: else
! 7935: need_locks=no
! 7936: fi
! 7937:
! 7938: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 7939: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 7940:
! 7941: runpath_var=
! 7942: allow_undefined_flag=
! 7943: enable_shared_with_static_runtimes=no
! 7944: archive_cmds=
! 7945: archive_expsym_cmds=
! 7946: old_archive_From_new_cmds=
! 7947: old_archive_from_expsyms_cmds=
! 7948: export_dynamic_flag_spec=
! 7949: whole_archive_flag_spec=
! 7950: thread_safe_flag_spec=
! 7951: hardcode_libdir_flag_spec=
! 7952: hardcode_libdir_flag_spec_ld=
! 7953: hardcode_libdir_separator=
! 7954: hardcode_direct=no
! 7955: hardcode_minus_L=no
! 7956: hardcode_shlibpath_var=unsupported
! 7957: link_all_deplibs=unknown
! 7958: hardcode_automatic=no
! 7959: module_cmds=
! 7960: module_expsym_cmds=
! 7961: always_export_symbols=no
! 7962: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 7963: # include_expsyms should be a list of space-separated symbols to be *always*
! 7964: # included in the symbol list
! 7965: include_expsyms=
! 7966: # exclude_expsyms can be an extended regexp of symbols to exclude
! 7967: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 7968: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 7969: # as well as any symbol that contains `d'.
! 7970: exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
! 7971: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 7972: # platforms (ab)use it in PIC code, but their linkers get confused if
! 7973: # the symbol is explicitly referenced. Since portable code cannot
! 7974: # rely on this symbol name, it's probably fine to never include it in
! 7975: # preloaded symbol tables.
! 7976: extract_expsyms_cmds=
! 7977:
! 7978: case $host_os in
! 7979: cygwin* | mingw* | pw32*)
! 7980: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 7981: # When not using gcc, we currently assume that we are using
! 7982: # Microsoft Visual C++.
! 7983: if test "$GCC" != yes; then
! 7984: with_gnu_ld=no
! 7985: fi
! 7986: ;;
! 7987: openbsd*)
! 7988: with_gnu_ld=no
! 7989: ;;
! 7990: esac
! 7991:
! 7992: ld_shlibs=yes
! 7993: if test "$with_gnu_ld" = yes; then
! 7994: # If archive_cmds runs LD, not CC, wlarc should be empty
! 7995: wlarc='${wl}'
! 7996:
! 7997: # See if GNU ld supports shared libraries.
! 7998: case $host_os in
! 7999: aix3* | aix4* | aix5*)
! 8000: # On AIX/PPC, the GNU linker is very broken
! 8001: if test "$host_cpu" != ia64; then
! 8002: ld_shlibs=no
! 8003: cat <<EOF 1>&2
! 8004:
! 8005: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 8006: *** to be unable to reliably create shared libraries on AIX.
! 8007: *** Therefore, libtool is disabling shared libraries support. If you
! 8008: *** really care for shared libraries, you may want to modify your PATH
! 8009: *** so that a non-GNU linker is found, and then restart.
! 8010:
! 8011: EOF
! 8012: fi
! 8013: ;;
! 8014:
! 8015: amigaos*)
! 8016: 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)'
! 8017: hardcode_libdir_flag_spec='-L$libdir'
! 8018: hardcode_minus_L=yes
! 8019:
! 8020: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 8021: # that the semantics of dynamic libraries on AmigaOS, at least up
! 8022: # to version 4, is to share data among multiple programs linked
! 8023: # with the same dynamic library. Since this doesn't match the
! 8024: # behavior of shared libraries on other platforms, we can't use
! 8025: # them.
! 8026: ld_shlibs=no
! 8027: ;;
! 8028:
! 8029: beos*)
! 8030: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8031: allow_undefined_flag=unsupported
! 8032: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 8033: # support --undefined. This deserves some investigation. FIXME
! 8034: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8035: else
! 8036: ld_shlibs=no
! 8037: fi
! 8038: ;;
! 8039:
! 8040: cygwin* | mingw* | pw32*)
! 8041: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
! 8042: # as there is no search path for DLLs.
! 8043: hardcode_libdir_flag_spec='-L$libdir'
! 8044: allow_undefined_flag=unsupported
! 8045: always_export_symbols=no
! 8046: enable_shared_with_static_runtimes=yes
! 8047: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
! 8048:
! 8049: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 8050: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 8051: # If the export-symbols file already is a .def file (1st line
! 8052: # is EXPORTS), use it as is; otherwise, prepend...
! 8053: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 8054: cp $export_symbols $output_objdir/$soname.def;
! 8055: else
! 8056: echo EXPORTS > $output_objdir/$soname.def;
! 8057: cat $export_symbols >> $output_objdir/$soname.def;
! 8058: fi~
! 8059: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 8060: else
! 8061: ld_shlibs=no
! 8062: fi
! 8063: ;;
! 8064:
! 8065: netbsd*)
! 8066: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 8067: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 8068: wlarc=
! 8069: else
! 8070: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8071: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8072: fi
! 8073: ;;
! 8074:
! 8075: solaris* | sysv5*)
! 8076: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
! 8077: ld_shlibs=no
! 8078: cat <<EOF 1>&2
! 8079:
! 8080: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 8081: *** create shared libraries on Solaris systems. Therefore, libtool
! 8082: *** is disabling shared libraries support. We urge you to upgrade GNU
! 8083: *** binutils to release 2.9.1 or newer. Another option is to modify
! 8084: *** your PATH or compiler configuration so that the native linker is
! 8085: *** used, and then restart.
! 8086:
! 8087: EOF
! 8088: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8089: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8090: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8091: else
! 8092: ld_shlibs=no
! 8093: fi
! 8094: ;;
! 8095:
! 8096: sunos4*)
! 8097: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8098: wlarc=
! 8099: hardcode_direct=yes
! 8100: hardcode_shlibpath_var=no
! 8101: ;;
! 8102:
! 8103: *)
! 8104: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 8105: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 8106: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 8107: else
! 8108: ld_shlibs=no
! 8109: fi
! 8110: ;;
! 8111: esac
! 8112:
! 8113: if test "$ld_shlibs" = yes; then
! 8114: runpath_var=LD_RUN_PATH
! 8115: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
! 8116: export_dynamic_flag_spec='${wl}--export-dynamic'
! 8117: # ancient GNU ld didn't support --whole-archive et. al.
! 8118: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 8119: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 8120: else
! 8121: whole_archive_flag_spec=
! 8122: fi
! 8123: fi
! 8124: else
! 8125: # PORTME fill in a description of your system's linker (not GNU ld)
! 8126: case $host_os in
! 8127: aix3*)
! 8128: allow_undefined_flag=unsupported
! 8129: always_export_symbols=yes
! 8130: 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'
! 8131: # Note: this linker hardcodes the directories in LIBPATH if there
! 8132: # are no directories specified by -L.
! 8133: hardcode_minus_L=yes
! 8134: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 8135: # Neither direct hardcoding nor static linking is supported with a
! 8136: # broken collect2.
! 8137: hardcode_direct=unsupported
! 8138: fi
! 8139: ;;
! 8140:
! 8141: aix4* | aix5*)
! 8142: if test "$host_cpu" = ia64; then
! 8143: # On IA64, the linker does run time linking by default, so we don't
! 8144: # have to do anything special.
! 8145: aix_use_runtimelinking=no
! 8146: exp_sym_flag='-Bexport'
! 8147: no_entry_flag=""
! 8148: else
! 8149: # If we're using GNU nm, then we don't want the "-C" option.
! 8150: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 8151: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 8152: 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'
! 8153: else
! 8154: 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'
! 8155: fi
! 8156: aix_use_runtimelinking=no
! 8157:
! 8158: # Test if we are trying to use run time linking or normal
! 8159: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 8160: # need to do runtime linking.
! 8161: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 8162: for ld_flag in $LDFLAGS; do
! 8163: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 8164: aix_use_runtimelinking=yes
! 8165: break
! 8166: fi
! 8167: done
! 8168: esac
! 8169:
! 8170: exp_sym_flag='-bexport'
! 8171: no_entry_flag='-bnoentry'
! 8172: fi
! 8173:
! 8174: # When large executables or shared objects are built, AIX ld can
! 8175: # have problems creating the table of contents. If linking a library
! 8176: # or program results in "error TOC overflow" add -mminimal-toc to
! 8177: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 8178: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 8179:
! 8180: archive_cmds=''
! 8181: hardcode_direct=yes
! 8182: hardcode_libdir_separator=':'
! 8183: link_all_deplibs=yes
! 8184:
! 8185: if test "$GCC" = yes; then
! 8186: case $host_os in aix4.012|aix4.012.*)
! 8187: # We only want to do this on AIX 4.2 and lower, the check
! 8188: # below for broken collect2 doesn't work under 4.3+
! 8189: collect2name=`${CC} -print-prog-name=collect2`
! 8190: if test -f "$collect2name" && \
! 8191: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 8192: then
! 8193: # We have reworked collect2
! 8194: hardcode_direct=yes
! 8195: else
! 8196: # We have old collect2
! 8197: hardcode_direct=unsupported
! 8198: # It fails to find uninstalled libraries when the uninstalled
! 8199: # path is not listed in the libpath. Setting hardcode_minus_L
! 8200: # to unsupported forces relinking
! 8201: hardcode_minus_L=yes
! 8202: hardcode_libdir_flag_spec='-L$libdir'
! 8203: hardcode_libdir_separator=
! 8204: fi
! 8205: esac
! 8206: shared_flag='-shared'
! 8207: else
! 8208: # not using gcc
! 8209: if test "$host_cpu" = ia64; then
! 8210: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 8211: # chokes on -Wl,-G. The following line is correct:
! 8212: shared_flag='-G'
! 8213: else
! 8214: if test "$aix_use_runtimelinking" = yes; then
! 8215: shared_flag='${wl}-G'
! 8216: else
! 8217: shared_flag='${wl}-bM:SRE'
! 8218: fi
! 8219: fi
! 8220: fi
! 8221:
! 8222: # It seems that -bexpall does not export symbols beginning with
! 8223: # underscore (_), so it is better to generate a list of symbols to export.
! 8224: always_export_symbols=yes
! 8225: if test "$aix_use_runtimelinking" = yes; then
! 8226: # Warning - without using the other runtime loading flags (-brtl),
! 8227: # -berok will link without error, but may produce a broken library.
! 8228: allow_undefined_flag='-berok'
! 8229: # Determine the default libpath from the value encoded in an empty executable.
! 8230: cat >conftest.$ac_ext <<_ACEOF
! 8231: #line $LINENO "configure"
! 8232: /* confdefs.h. */
! 8233: _ACEOF
! 8234: cat confdefs.h >>conftest.$ac_ext
! 8235: cat >>conftest.$ac_ext <<_ACEOF
! 8236: /* end confdefs.h. */
! 8237:
! 8238: int
! 8239: main ()
! 8240: {
! 8241:
! 8242: ;
! 8243: return 0;
! 8244: }
! 8245: _ACEOF
! 8246: rm -f conftest.$ac_objext conftest$ac_exeext
! 8247: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8248: (eval $ac_link) 2>&5
! 8249: ac_status=$?
! 8250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8251: (exit $ac_status); } &&
! 8252: { ac_try='test -s conftest$ac_exeext'
! 8253: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8254: (eval $ac_try) 2>&5
! 8255: ac_status=$?
! 8256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8257: (exit $ac_status); }; }; then
! 8258:
! 8259: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8260: }'`
! 8261: # Check for a 64-bit object if we didn't find anything.
! 8262: 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; }
! 8263: }'`; fi
! 8264: else
! 8265: echo "$as_me: failed program was:" >&5
! 8266: sed 's/^/| /' conftest.$ac_ext >&5
! 8267:
! 8268: fi
! 8269: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8270: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8271:
! 8272: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8273: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 8274: else
! 8275: if test "$host_cpu" = ia64; then
! 8276: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
! 8277: allow_undefined_flag="-z nodefs"
! 8278: 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"
! 8279: else
! 8280: # Determine the default libpath from the value encoded in an empty executable.
! 8281: cat >conftest.$ac_ext <<_ACEOF
! 8282: #line $LINENO "configure"
! 8283: /* confdefs.h. */
! 8284: _ACEOF
! 8285: cat confdefs.h >>conftest.$ac_ext
! 8286: cat >>conftest.$ac_ext <<_ACEOF
! 8287: /* end confdefs.h. */
! 8288:
! 8289: int
! 8290: main ()
! 8291: {
! 8292:
! 8293: ;
! 8294: return 0;
! 8295: }
! 8296: _ACEOF
! 8297: rm -f conftest.$ac_objext conftest$ac_exeext
! 8298: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 8299: (eval $ac_link) 2>&5
! 8300: ac_status=$?
! 8301: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8302: (exit $ac_status); } &&
! 8303: { ac_try='test -s conftest$ac_exeext'
! 8304: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 8305: (eval $ac_try) 2>&5
! 8306: ac_status=$?
! 8307: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8308: (exit $ac_status); }; }; then
! 8309:
! 8310: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 8311: }'`
! 8312: # Check for a 64-bit object if we didn't find anything.
! 8313: 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; }
! 8314: }'`; fi
! 8315: else
! 8316: echo "$as_me: failed program was:" >&5
! 8317: sed 's/^/| /' conftest.$ac_ext >&5
! 8318:
! 8319: fi
! 8320: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 8321: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 8322:
! 8323: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
! 8324: # Warning - without using the other run time loading flags,
! 8325: # -berok will link without error, but may produce a broken library.
! 8326: no_undefined_flag=' ${wl}-bernotok'
! 8327: allow_undefined_flag=' ${wl}-berok'
! 8328: # -bexpall does not export symbols beginning with underscore (_)
! 8329: always_export_symbols=yes
! 8330: # Exported symbols can be pulled into shared objects from archives
! 8331: whole_archive_flag_spec=' '
! 8332: archive_cmds_need_lc=yes
! 8333: # This is similar to how AIX traditionally builds it's shared libraries.
! 8334: 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'
! 8335: fi
! 8336: fi
! 8337: ;;
! 8338:
! 8339: amigaos*)
! 8340: 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)'
! 8341: hardcode_libdir_flag_spec='-L$libdir'
! 8342: hardcode_minus_L=yes
! 8343: # see comment about different semantics on the GNU ld section
! 8344: ld_shlibs=no
! 8345: ;;
! 8346:
! 8347: bsdi4*)
! 8348: export_dynamic_flag_spec=-rdynamic
! 8349: ;;
! 8350:
! 8351: cygwin* | mingw* | pw32*)
! 8352: # When not using gcc, we currently assume that we are using
! 8353: # Microsoft Visual C++.
! 8354: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 8355: # no search path for DLLs.
! 8356: hardcode_libdir_flag_spec=' '
! 8357: allow_undefined_flag=unsupported
! 8358: # Tell ltmain to make .lib files, not .a files.
! 8359: libext=lib
! 8360: # Tell ltmain to make .dll files, not .so files.
! 8361: shrext=".dll"
! 8362: # FIXME: Setting linknames here is a bad hack.
! 8363: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 8364: # The linker will automatically build a .lib file if we build a DLL.
! 8365: old_archive_From_new_cmds='true'
! 8366: # FIXME: Should let the user specify the lib program.
! 8367: old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 8368: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 8369: enable_shared_with_static_runtimes=yes
! 8370: ;;
! 8371:
! 8372: darwin* | rhapsody*)
! 8373: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 8374: archive_cmds_need_lc=no
! 8375: case "$host_os" in
! 8376: rhapsody* | darwin1.[012])
! 8377: allow_undefined_flag='-undefined suppress'
! 8378: ;;
! 8379: *) # Darwin 1.3 on
! 8380: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
! 8381: ;;
! 8382: esac
! 8383: # FIXME: Relying on posixy $() will cause problems for
! 8384: # cross-compilation, but unfortunately the echo tests do not
! 8385: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 8386: # `"' quotes if we put them in here... so don't!
! 8387: lt_int_apple_cc_single_mod=no
! 8388: output_verbose_link_cmd='echo'
! 8389: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
! 8390: lt_int_apple_cc_single_mod=yes
! 8391: fi
! 8392: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 8393: archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 8394: else
! 8395: archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 8396: fi
! 8397: module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
! 8398: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
! 8399: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 8400: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8401: else
! 8402: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8403: fi
! 8404: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 8405: hardcode_direct=no
! 8406: hardcode_automatic=yes
! 8407: hardcode_shlibpath_var=unsupported
! 8408: whole_archive_flag_spec='-all_load $convenience'
! 8409: link_all_deplibs=yes
! 8410: fi
! 8411: ;;
! 8412:
! 8413: dgux*)
! 8414: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8415: hardcode_libdir_flag_spec='-L$libdir'
! 8416: hardcode_shlibpath_var=no
! 8417: ;;
! 8418:
! 8419: freebsd1*)
! 8420: ld_shlibs=no
! 8421: ;;
! 8422:
! 8423: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 8424: # support. Future versions do this automatically, but an explicit c++rt0.o
! 8425: # does not break anything, and helps significantly (at the cost of a little
! 8426: # extra space).
! 8427: freebsd2.2*)
! 8428: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 8429: hardcode_libdir_flag_spec='-R$libdir'
! 8430: hardcode_direct=yes
! 8431: hardcode_shlibpath_var=no
! 8432: ;;
! 8433:
! 8434: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 8435: freebsd2*)
! 8436: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8437: hardcode_direct=yes
! 8438: hardcode_minus_L=yes
! 8439: hardcode_shlibpath_var=no
! 8440: ;;
! 8441:
! 8442: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 8443: freebsd*)
! 8444: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 8445: hardcode_libdir_flag_spec='-R$libdir'
! 8446: hardcode_direct=yes
! 8447: hardcode_shlibpath_var=no
! 8448: ;;
! 8449:
! 8450: hpux9*)
! 8451: if test "$GCC" = yes; then
! 8452: 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'
! 8453: else
! 8454: 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'
! 8455: fi
! 8456: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8457: hardcode_libdir_separator=:
! 8458: hardcode_direct=yes
! 8459:
! 8460: # hardcode_minus_L: Not really in the search PATH,
! 8461: # but as the default location of the library.
! 8462: hardcode_minus_L=yes
! 8463: export_dynamic_flag_spec='${wl}-E'
! 8464: ;;
! 8465:
! 8466: hpux10* | hpux11*)
! 8467: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 8468: case "$host_cpu" in
! 8469: hppa*64*|ia64*)
! 8470: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8471: ;;
! 8472: *)
! 8473: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 8474: ;;
! 8475: esac
! 8476: else
! 8477: case "$host_cpu" in
! 8478: hppa*64*|ia64*)
! 8479: archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8480: ;;
! 8481: *)
! 8482: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 8483: ;;
! 8484: esac
! 8485: fi
! 8486: if test "$with_gnu_ld" = no; then
! 8487: case "$host_cpu" in
! 8488: hppa*64*)
! 8489: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8490: hardcode_libdir_flag_spec_ld='+b $libdir'
! 8491: hardcode_libdir_separator=:
! 8492: hardcode_direct=no
! 8493: hardcode_shlibpath_var=no
! 8494: ;;
! 8495: ia64*)
! 8496: hardcode_libdir_flag_spec='-L$libdir'
! 8497: hardcode_direct=no
! 8498: hardcode_shlibpath_var=no
! 8499:
! 8500: # hardcode_minus_L: Not really in the search PATH,
! 8501: # but as the default location of the library.
! 8502: hardcode_minus_L=yes
! 8503: ;;
! 8504: *)
! 8505: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
! 8506: hardcode_libdir_separator=:
! 8507: hardcode_direct=yes
! 8508: export_dynamic_flag_spec='${wl}-E'
! 8509:
! 8510: # hardcode_minus_L: Not really in the search PATH,
! 8511: # but as the default location of the library.
! 8512: hardcode_minus_L=yes
! 8513: ;;
! 8514: esac
! 8515: fi
! 8516: ;;
! 8517:
! 8518: irix5* | irix6* | nonstopux*)
! 8519: if test "$GCC" = yes; then
! 8520: 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'
! 8521: else
! 8522: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 8523: hardcode_libdir_flag_spec_ld='-rpath $libdir'
! 8524: fi
! 8525: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8526: hardcode_libdir_separator=:
! 8527: link_all_deplibs=yes
! 8528: ;;
! 8529:
! 8530: netbsd*)
! 8531: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 8532: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 8533: else
! 8534: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 8535: fi
! 8536: hardcode_libdir_flag_spec='-R$libdir'
! 8537: hardcode_direct=yes
! 8538: hardcode_shlibpath_var=no
! 8539: ;;
! 8540:
! 8541: newsos6)
! 8542: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8543: hardcode_direct=yes
! 8544: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8545: hardcode_libdir_separator=:
! 8546: hardcode_shlibpath_var=no
! 8547: ;;
! 8548:
! 8549: openbsd*)
! 8550: case "$host_cpu" in
! 8551: m88k|hppa|vax)
! 8552: ld_shlibs=no
! 8553: ;;
! 8554: *)
! 8555: hardcode_direct=yes
! 8556: hardcode_shlibpath_var=no
! 8557: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 8558: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8559: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8560: export_dynamic_flag_spec='${wl}-E'
! 8561: else
! 8562: case $host_os in
! 8563: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 8564: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 8565: hardcode_libdir_flag_spec='-R$libdir'
! 8566: ;;
! 8567: *)
! 8568: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 8569: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
! 8570: ;;
! 8571: esac
! 8572: fi
! 8573: ;;
! 8574: esac
! 8575: ;;
! 8576:
! 8577: os2*)
! 8578: hardcode_libdir_flag_spec='-L$libdir'
! 8579: hardcode_minus_L=yes
! 8580: allow_undefined_flag=unsupported
! 8581: 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'
! 8582: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 8583: ;;
! 8584:
! 8585: osf3*)
! 8586: if test "$GCC" = yes; then
! 8587: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8588: 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'
! 8589: else
! 8590: allow_undefined_flag=' -expect_unresolved \*'
! 8591: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 8592: fi
! 8593: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8594: hardcode_libdir_separator=:
! 8595: ;;
! 8596:
! 8597: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 8598: if test "$GCC" = yes; then
! 8599: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
! 8600: 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'
! 8601: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
! 8602: else
! 8603: allow_undefined_flag=' -expect_unresolved \*'
! 8604: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 8605: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 8606: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
! 8607:
! 8608: # Both c and cxx compiler support -rpath directly
! 8609: hardcode_libdir_flag_spec='-rpath $libdir'
! 8610: fi
! 8611: hardcode_libdir_separator=:
! 8612: ;;
! 8613:
! 8614: sco3.2v5*)
! 8615: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8616: hardcode_shlibpath_var=no
! 8617: export_dynamic_flag_spec='${wl}-Bexport'
! 8618: runpath_var=LD_RUN_PATH
! 8619: hardcode_runpath_var=yes
! 8620: ;;
! 8621:
! 8622: solaris*)
! 8623: no_undefined_flag=' -z text'
! 8624: if test "$GCC" = yes; then
! 8625: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8626: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8627: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 8628: else
! 8629: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8630: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8631: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 8632: fi
! 8633: hardcode_libdir_flag_spec='-R$libdir'
! 8634: hardcode_shlibpath_var=no
! 8635: case $host_os in
! 8636: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 8637: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
! 8638: whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
! 8639: esac
! 8640: link_all_deplibs=yes
! 8641: ;;
! 8642:
! 8643: sunos4*)
! 8644: if test "x$host_vendor" = xsequent; then
! 8645: # Use $CC to link under sequent, because it throws in some extra .o
! 8646: # files that make .init and .fini sections work.
! 8647: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 8648: else
! 8649: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 8650: fi
! 8651: hardcode_libdir_flag_spec='-L$libdir'
! 8652: hardcode_direct=yes
! 8653: hardcode_minus_L=yes
! 8654: hardcode_shlibpath_var=no
! 8655: ;;
! 8656:
! 8657: sysv4)
! 8658: case $host_vendor in
! 8659: sni)
! 8660: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8661: hardcode_direct=yes # is this really true???
! 8662: ;;
! 8663: siemens)
! 8664: ## LD is ld it makes a PLAMLIB
! 8665: ## CC just makes a GrossModule.
! 8666: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 8667: reload_cmds='$CC -r -o $output$reload_objs'
! 8668: hardcode_direct=no
! 8669: ;;
! 8670: motorola)
! 8671: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8672: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
! 8673: ;;
! 8674: esac
! 8675: runpath_var='LD_RUN_PATH'
! 8676: hardcode_shlibpath_var=no
! 8677: ;;
! 8678:
! 8679: sysv4.3*)
! 8680: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8681: hardcode_shlibpath_var=no
! 8682: export_dynamic_flag_spec='-Bexport'
! 8683: ;;
! 8684:
! 8685: sysv4*MP*)
! 8686: if test -d /usr/nec; then
! 8687: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8688: hardcode_shlibpath_var=no
! 8689: runpath_var=LD_RUN_PATH
! 8690: hardcode_runpath_var=yes
! 8691: ld_shlibs=yes
! 8692: fi
! 8693: ;;
! 8694:
! 8695: sysv4.2uw2*)
! 8696: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 8697: hardcode_direct=yes
! 8698: hardcode_minus_L=no
! 8699: hardcode_shlibpath_var=no
! 8700: hardcode_runpath_var=yes
! 8701: runpath_var=LD_RUN_PATH
! 8702: ;;
! 8703:
! 8704: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
! 8705: no_undefined_flag='${wl}-z ${wl}text'
! 8706: if test "$GCC" = yes; then
! 8707: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8708: else
! 8709: archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 8710: fi
! 8711: runpath_var='LD_RUN_PATH'
! 8712: hardcode_shlibpath_var=no
! 8713: ;;
! 8714:
! 8715: sysv5*)
! 8716: no_undefined_flag=' -z text'
! 8717: # $CC -shared without GNU ld will not create a library from C++
! 8718: # object files and a static libstdc++, better avoid it by now
! 8719: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8720: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 8721: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 8722: hardcode_libdir_flag_spec=
! 8723: hardcode_shlibpath_var=no
! 8724: runpath_var='LD_RUN_PATH'
! 8725: ;;
! 8726:
! 8727: uts4*)
! 8728: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 8729: hardcode_libdir_flag_spec='-L$libdir'
! 8730: hardcode_shlibpath_var=no
! 8731: ;;
! 8732:
! 8733: *)
! 8734: ld_shlibs=no
! 8735: ;;
! 8736: esac
! 8737: fi
! 8738:
! 8739: echo "$as_me:$LINENO: result: $ld_shlibs" >&5
! 8740: echo "${ECHO_T}$ld_shlibs" >&6
! 8741: test "$ld_shlibs" = no && can_build_shared=no
! 8742:
! 8743: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 8744: if test "$GCC" = yes; then
! 8745: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 8746: fi
! 8747:
! 8748: #
! 8749: # Do we need to explicitly link libc?
! 8750: #
! 8751: case "x$archive_cmds_need_lc" in
! 8752: x|xyes)
! 8753: # Assume -lc should be added
! 8754: archive_cmds_need_lc=yes
! 8755:
! 8756: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 8757: case $archive_cmds in
! 8758: *'~'*)
! 8759: # FIXME: we may have to deal with multi-command sequences.
! 8760: ;;
! 8761: '$CC '*)
! 8762: # Test whether the compiler implicitly links with -lc since on some
! 8763: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 8764: # to ld, don't add -lc before -lgcc.
! 8765: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 8766: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 8767: $rm conftest*
! 8768: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 8769:
! 8770: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 8771: (eval $ac_compile) 2>&5
! 8772: ac_status=$?
! 8773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8774: (exit $ac_status); } 2>conftest.err; then
! 8775: soname=conftest
! 8776: lib=conftest
! 8777: libobjs=conftest.$ac_objext
! 8778: deplibs=
! 8779: wl=$lt_prog_compiler_wl
! 8780: compiler_flags=-v
! 8781: linker_flags=-v
! 8782: verstring=
! 8783: output_objdir=.
! 8784: libname=conftest
! 8785: lt_save_allow_undefined_flag=$allow_undefined_flag
! 8786: allow_undefined_flag=
! 8787: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 8788: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 8789: ac_status=$?
! 8790: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 8791: (exit $ac_status); }
! 8792: then
! 8793: archive_cmds_need_lc=no
! 8794: else
! 8795: archive_cmds_need_lc=yes
! 8796: fi
! 8797: allow_undefined_flag=$lt_save_allow_undefined_flag
! 8798: else
! 8799: cat conftest.err 1>&5
! 8800: fi
! 8801: $rm conftest*
! 8802: echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
! 8803: echo "${ECHO_T}$archive_cmds_need_lc" >&6
! 8804: ;;
! 8805: esac
! 8806: fi
! 8807: ;;
! 8808: esac
! 8809:
! 8810: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 8811: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 8812: hardcode_action=
! 8813: if test -n "$hardcode_libdir_flag_spec" || \
! 8814: test -n "$runpath_var " || \
! 8815: test "X$hardcode_automatic"="Xyes" ; then
! 8816:
! 8817: # We can hardcode non-existant directories.
! 8818: if test "$hardcode_direct" != no &&
! 8819: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 8820: # have to relink, otherwise we might link with an installed library
! 8821: # when we should be linking with a yet-to-be-installed one
! 8822: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
! 8823: test "$hardcode_minus_L" != no; then
! 8824: # Linking always hardcodes the temporary library directory.
! 8825: hardcode_action=relink
! 8826: else
! 8827: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 8828: hardcode_action=immediate
! 8829: fi
! 8830: else
! 8831: # We cannot hardcode anything, or else we can only hardcode existing
! 8832: # directories.
! 8833: hardcode_action=unsupported
! 8834: fi
! 8835: echo "$as_me:$LINENO: result: $hardcode_action" >&5
! 8836: echo "${ECHO_T}$hardcode_action" >&6
! 8837:
! 8838: if test "$hardcode_action" = relink; then
! 8839: # Fast installation is not supported
! 8840: enable_fast_install=no
! 8841: elif test "$shlibpath_overrides_runpath" = yes ||
! 8842: test "$enable_shared" = no; then
! 8843: # Fast installation is not necessary
! 8844: enable_fast_install=needless
! 8845: fi
! 8846:
! 8847: striplib=
! 8848: old_striplib=
! 8849: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 8850: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 8851: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 8852: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 8853: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 8854: echo "$as_me:$LINENO: result: yes" >&5
! 8855: echo "${ECHO_T}yes" >&6
! 8856: else
! 8857: # FIXME - insert some real tests, host_os isn't really good enough
! 8858: case $host_os in
! 8859: darwin*)
! 8860: if test -n "$STRIP" ; then
! 8861: striplib="$STRIP -x"
! 8862: echo "$as_me:$LINENO: result: yes" >&5
! 8863: echo "${ECHO_T}yes" >&6
! 8864: else
! 8865: echo "$as_me:$LINENO: result: no" >&5
! 8866: echo "${ECHO_T}no" >&6
! 8867: fi
! 8868: ;;
! 8869: *)
! 8870: echo "$as_me:$LINENO: result: no" >&5
! 8871: echo "${ECHO_T}no" >&6
! 8872: ;;
! 8873: esac
! 8874: fi
! 8875:
! 8876: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 8877: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 8878: library_names_spec=
! 8879: libname_spec='lib$name'
! 8880: soname_spec=
! 8881: shrext=".so"
! 8882: postinstall_cmds=
! 8883: postuninstall_cmds=
! 8884: finish_cmds=
! 8885: finish_eval=
! 8886: shlibpath_var=
! 8887: shlibpath_overrides_runpath=unknown
! 8888: version_type=none
! 8889: dynamic_linker="$host_os ld.so"
! 8890: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 8891: if test "$GCC" = yes; then
! 8892: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 8893: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 8894: # if the path contains ";" then we assume it to be the separator
! 8895: # otherwise default to the standard path separator (i.e. ":") - it is
! 8896: # assumed that no part of a normal pathname contains ";" but that should
! 8897: # okay in the real world where ";" in dirpaths is itself problematic.
! 8898: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 8899: else
! 8900: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 8901: fi
! 8902: else
! 8903: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 8904: fi
! 8905: need_lib_prefix=no
! 8906: hardcode_into_libs=no
! 8907:
! 8908: # when you set need_version to no, make sure it does not cause -set_version
! 8909: # flags to be left without arguments
! 8910: need_version=no
! 8911:
! 8912: case $host_os in
! 8913: aix3*)
! 8914: version_type=linux
! 8915: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 8916: shlibpath_var=LIBPATH
! 8917:
! 8918: # AIX 3 has no versioning support, so we append a major version to the name.
! 8919: soname_spec='${libname}${release}${shared_ext}$major'
! 8920: ;;
! 8921:
! 8922: aix4* | aix5*)
! 8923: version_type=linux
! 8924: hardcode_into_libs=yes
! 8925: if test "$host_cpu" = ia64; then
! 8926: # AIX 5 supports IA64
! 8927: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 8928: shlibpath_var=LD_LIBRARY_PATH
! 8929: else
! 8930: # With GCC up to 2.95.x, collect2 would create an import file
! 8931: # for dependence libraries. The import file would start with
! 8932: # the line `#! .'. This would cause the generated library to
! 8933: # depend on `.', always an invalid library. This was fixed in
! 8934: # development snapshots of GCC prior to 3.0.
! 8935: case $host_os in
! 8936: aix4 | aix4.[01] | aix4.[01].*)
! 8937: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 8938: echo ' yes '
! 8939: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 8940: :
! 8941: else
! 8942: can_build_shared=no
! 8943: fi
! 8944: ;;
! 8945: esac
! 8946: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 8947: # soname into executable. Probably we can add versioning support to
! 8948: # collect2, so additional links can be useful in future.
! 8949: if test "$aix_use_runtimelinking" = yes; then
! 8950: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 8951: # instead of lib<name>.a to let people know that these are not
! 8952: # typical AIX shared libraries.
! 8953: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 8954: else
! 8955: # We preserve .a as extension for shared libraries through AIX4.2
! 8956: # and later when we are not doing run time linking.
! 8957: library_names_spec='${libname}${release}.a $libname.a'
! 8958: soname_spec='${libname}${release}${shared_ext}$major'
! 8959: fi
! 8960: shlibpath_var=LIBPATH
! 8961: fi
! 8962: ;;
! 8963:
! 8964: amigaos*)
! 8965: library_names_spec='$libname.ixlibrary $libname.a'
! 8966: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 8967: 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'
! 8968: ;;
! 8969:
! 8970: beos*)
! 8971: library_names_spec='${libname}${shared_ext}'
! 8972: dynamic_linker="$host_os ld.so"
! 8973: shlibpath_var=LIBRARY_PATH
! 8974: ;;
! 8975:
! 8976: bsdi4*)
! 8977: version_type=linux
! 8978: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 8979: soname_spec='${libname}${release}${shared_ext}$major'
! 8980: #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 8981: shlibpath_var=LD_LIBRARY_PATH
! 8982: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 8983: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 8984: # the default ld.so.conf also contains /usr/contrib/lib and
! 8985: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 8986: # libtool to hard-code these into programs
! 8987: ;;
! 8988:
! 8989: cygwin* | mingw* | pw32*)
! 8990: version_type=windows
! 8991: shrext=".dll"
! 8992:
! 8993: case $GCC,$host_os in
! 8994: yes,cygwin* | yes,mingw* | yes,pw32*)
! 8995: library_names_spec='$libname.dll.a'
! 8996: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 8997: postinstall_cmds='base_file=`basename \${file}`~
! 8998: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 8999: dldir=$destdir/`dirname \$dlpath`~
! 9000: test -d \$dldir || mkdir -p \$dldir~
! 9001: $install_prog $dir/$dlname \$dldir/$dlname'
! 9002: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 9003: dlpath=$dir/\$dldll~
! 9004: $rm \$dlpath'
! 9005: shlibpath_overrides_runpath=yes
! 9006:
! 9007: case $host_os in
! 9008: cygwin*)
! 9009: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 9010: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9011: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
! 9012: ;;
! 9013: mingw*)
! 9014: # MinGW DLLs use traditional 'lib' prefix
! 9015: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 9016: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 9017: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 9018: # It is most probably a Windows format PATH printed by
! 9019: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 9020: # path with ; separators, and with drive letters. We can handle the
! 9021: # drive letters (cygwin fileutils understands them), so leave them,
! 9022: # especially as we might pass files found there to a mingw objdump,
! 9023: # which wouldn't understand a cygwinified path. Ahh.
! 9024: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 9025: else
! 9026: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 9027: fi
! 9028: ;;
! 9029: pw32*)
! 9030: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 9031: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
! 9032: ;;
! 9033: esac
! 9034: ;;
! 9035:
! 9036: *)
! 9037: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 9038: ;;
! 9039: esac
! 9040: dynamic_linker='Win32 ld.exe'
! 9041: # FIXME: first we should search . and the directory the executable is in
! 9042: shlibpath_var=PATH
! 9043: ;;
! 9044:
! 9045: darwin* | rhapsody*)
! 9046: dynamic_linker="$host_os dyld"
! 9047: version_type=darwin
! 9048: # FIXME: Relying on posixy $() will cause problems for
! 9049: # cross-compilation, but unfortunately the echo tests do not
! 9050: # yet detect zsh echo's removal of \ escapes.
! 9051: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 9052: soname_spec='${libname}${release}${major}$shared_ext'
! 9053: shlibpath_overrides_runpath=yes
! 9054: shlibpath_var=DYLD_LIBRARY_PATH
! 9055: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
! 9056: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 9057: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 9058: 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"`
! 9059: fi
! 9060: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 9061: ;;
! 9062:
! 9063: dgux*)
! 9064: version_type=linux
! 9065: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 9066: soname_spec='${libname}${release}${shared_ext}$major'
! 9067: shlibpath_var=LD_LIBRARY_PATH
! 9068: ;;
! 9069:
! 9070: freebsd1*)
! 9071: dynamic_linker=no
! 9072: ;;
! 9073:
! 9074: freebsd*)
! 9075: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 9076: version_type=freebsd-$objformat
! 9077: case $version_type in
! 9078: freebsd-elf*)
! 9079: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 9080: ;;
! 9081: freebsd-*)
! 9082: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 9083: ;;
! 9084: esac
! 9085: shlibpath_var=LD_LIBRARY_PATH
! 9086: case $host_os in
! 9087: freebsd2*)
! 9088: shlibpath_overrides_runpath=yes
! 9089: ;;
! 9090: freebsd3.01* | freebsdelf3.01*)
! 9091: shlibpath_overrides_runpath=yes
! 9092: hardcode_into_libs=yes
! 9093: ;;
! 9094: *) # from 3.2 on
! 9095: shlibpath_overrides_runpath=no
! 9096: hardcode_into_libs=yes
! 9097: ;;
! 9098: esac
! 9099: ;;
! 9100:
! 9101: gnu*)
! 9102: version_type=linux
! 9103: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 9104: soname_spec='${libname}${release}${shared_ext}$major'
! 9105: shlibpath_var=LD_LIBRARY_PATH
! 9106: hardcode_into_libs=yes
! 9107: ;;
! 9108:
! 9109: hpux9* | hpux10* | hpux11*)
! 9110: # Give a soname corresponding to the major version so that dld.sl refuses to
! 9111: # link against other versions.
! 9112: version_type=sunos
! 9113: case "$host_cpu" in
! 9114: ia64*)
! 9115: shrext='.so'
! 9116: hardcode_into_libs=yes
! 9117: dynamic_linker="$host_os dld.so"
! 9118: shlibpath_var=LD_LIBRARY_PATH
! 9119: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 9120: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9121: soname_spec='${libname}${release}${shared_ext}$major'
! 9122: if test "X$HPUX_IA64_MODE" = X32; then
! 9123: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 9124: else
! 9125: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 9126: fi
! 9127: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 9128: ;;
! 9129: hppa*64*)
! 9130: shrext='.sl'
! 9131: hardcode_into_libs=yes
! 9132: dynamic_linker="$host_os dld.sl"
! 9133: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 9134: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 9135: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9136: soname_spec='${libname}${release}${shared_ext}$major'
! 9137: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 9138: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 9139: ;;
! 9140: *)
! 9141: shrext='.sl'
! 9142: dynamic_linker="$host_os dld.sl"
! 9143: shlibpath_var=SHLIB_PATH
! 9144: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 9145: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9146: soname_spec='${libname}${release}${shared_ext}$major'
! 9147: ;;
! 9148: esac
! 9149: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 9150: postinstall_cmds='chmod 555 $lib'
! 9151: ;;
! 9152:
! 9153: irix5* | irix6* | nonstopux*)
! 9154: case $host_os in
! 9155: nonstopux*) version_type=nonstopux ;;
! 9156: *)
! 9157: if test "$lt_cv_prog_gnu_ld" = yes; then
! 9158: version_type=linux
! 9159: else
! 9160: version_type=irix
! 9161: fi ;;
! 9162: esac
! 9163: soname_spec='${libname}${release}${shared_ext}$major'
! 9164: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 9165: case $host_os in
! 9166: irix5* | nonstopux*)
! 9167: libsuff= shlibsuff=
! 9168: ;;
! 9169: *)
! 9170: case $LD in # libtool.m4 will add one of these switches to LD
! 9171: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 9172: libsuff= shlibsuff= libmagic=32-bit;;
! 9173: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 9174: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 9175: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 9176: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 9177: *) libsuff= shlibsuff= libmagic=never-match;;
! 9178: esac
! 9179: ;;
! 9180: esac
! 9181: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 9182: shlibpath_overrides_runpath=no
! 9183: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 9184: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 9185: hardcode_into_libs=yes
! 9186: ;;
! 9187:
! 9188: # No shared lib support for Linux oldld, aout, or coff.
! 9189: linux*oldld* | linux*aout* | linux*coff*)
! 9190: dynamic_linker=no
! 9191: ;;
! 9192:
! 9193: # This must be Linux ELF.
! 9194: linux*)
! 9195: version_type=linux
! 9196: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9197: soname_spec='${libname}${release}${shared_ext}$major'
! 9198: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 9199: shlibpath_var=LD_LIBRARY_PATH
! 9200: shlibpath_overrides_runpath=no
! 9201: # This implies no fast_install, which is unacceptable.
! 9202: # Some rework will be needed to allow for fast_install
! 9203: # before this can be enabled.
! 9204: hardcode_into_libs=yes
! 9205:
! 9206: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 9207: # powerpc, because MkLinux only supported shared libraries with the
! 9208: # GNU dynamic linker. Since this was broken with cross compilers,
! 9209: # most powerpc-linux boxes support dynamic linking these days and
! 9210: # people can always --disable-shared, the test was removed, and we
! 9211: # assume the GNU/Linux dynamic linker is in use.
! 9212: dynamic_linker='GNU/Linux ld.so'
! 9213: ;;
! 9214:
! 9215: netbsd*)
! 9216: version_type=sunos
! 9217: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 9218: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9219: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 9220: dynamic_linker='NetBSD (a.out) ld.so'
! 9221: else
! 9222: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
! 9223: soname_spec='${libname}${release}${shared_ext}$major'
! 9224: dynamic_linker='NetBSD ld.elf_so'
! 9225: fi
! 9226: shlibpath_var=LD_LIBRARY_PATH
! 9227: shlibpath_overrides_runpath=yes
! 9228: hardcode_into_libs=yes
! 9229: ;;
! 9230:
! 9231: newsos6)
! 9232: version_type=linux
! 9233: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9234: shlibpath_var=LD_LIBRARY_PATH
! 9235: shlibpath_overrides_runpath=yes
! 9236: ;;
! 9237:
! 9238: nto-qnx)
! 9239: version_type=linux
! 9240: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9241: soname_spec='${libname}${release}${shared_ext}$major'
! 9242: shlibpath_var=LD_LIBRARY_PATH
! 9243: shlibpath_overrides_runpath=yes
! 9244: ;;
! 9245:
! 9246: openbsd*)
! 9247: version_type=sunos
! 9248: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9249: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 9250: shlibpath_var=LD_LIBRARY_PATH
! 9251: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 9252: dynamic_linker='OpenBSD (ELF) ld.so'
! 9253: case $host_os in
! 9254: openbsd2.[89] | openbsd2.[89].*)
! 9255: shlibpath_overrides_runpath=no
! 9256: ;;
! 9257: *)
! 9258: shlibpath_overrides_runpath=yes
! 9259: ;;
! 9260: esac
! 9261: else
! 9262: dynamic_linker='OpenBSD (a.out) ld.so'
! 9263: shlibpath_overrides_runpath=yes
! 9264: fi
! 9265: ;;
! 9266:
! 9267: os2*)
! 9268: libname_spec='$name'
! 9269: shrext=".dll"
! 9270: library_names_spec='$libname${shared_ext} $libname.a'
! 9271: dynamic_linker='OS/2 ld.exe'
! 9272: shlibpath_var=LIBPATH
! 9273: ;;
! 9274:
! 9275: osf3* | osf4* | osf5*)
! 9276: version_type=osf
! 9277: soname_spec='${libname}${release}${shared_ext}$major'
! 9278: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9279: shlibpath_var=LD_LIBRARY_PATH
! 9280: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 9281: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 9282: ;;
! 9283:
! 9284: sco3.2v5*)
! 9285: version_type=osf
! 9286: soname_spec='${libname}${release}${shared_ext}$major'
! 9287: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9288: shlibpath_var=LD_LIBRARY_PATH
! 9289: ;;
! 9290:
! 9291: solaris*)
! 9292: version_type=linux
! 9293: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9294: soname_spec='${libname}${release}${shared_ext}$major'
! 9295: shlibpath_var=LD_LIBRARY_PATH
! 9296: shlibpath_overrides_runpath=yes
! 9297: hardcode_into_libs=yes
! 9298: # ldd complains unless libraries are executable
! 9299: postinstall_cmds='chmod +x $lib'
! 9300: ;;
! 9301:
! 9302: sunos4*)
! 9303: version_type=sunos
! 9304: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 9305: #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 9306: shlibpath_var=LD_LIBRARY_PATH
! 9307: shlibpath_overrides_runpath=yes
! 9308: ;;
! 9309:
! 9310: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 9311: version_type=linux
! 9312: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9313: soname_spec='${libname}${release}${shared_ext}$major'
! 9314: shlibpath_var=LD_LIBRARY_PATH
! 9315: case $host_vendor in
! 9316: sni)
! 9317: shlibpath_overrides_runpath=no
! 9318: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 9319: runpath_var=LD_RUN_PATH
! 9320: ;;
! 9321: motorola)
! 9322: shlibpath_overrides_runpath=no
! 9323: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 9324: ;;
! 9325: esac
! 9326: ;;
! 9327:
! 9328: sysv4*MP*)
! 9329: if test -d /usr/nec ;then
! 9330: version_type=linux
! 9331: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 9332: soname_spec='$libname${shared_ext}.$major'
! 9333: shlibpath_var=LD_LIBRARY_PATH
! 9334: fi
! 9335: ;;
! 9336:
! 9337: uts4*)
! 9338: version_type=linux
! 9339: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 9340: soname_spec='${libname}${release}${shared_ext}$major'
! 9341: shlibpath_var=LD_LIBRARY_PATH
! 9342: ;;
! 9343:
! 9344: *)
! 9345: dynamic_linker=no
! 9346: ;;
! 9347: esac
! 9348: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 9349: echo "${ECHO_T}$dynamic_linker" >&6
! 9350: test "$dynamic_linker" = no && can_build_shared=no
! 9351:
! 9352: if test "x$enable_dlopen" != xyes; then
! 9353: enable_dlopen=unknown
! 9354: enable_dlopen_self=unknown
! 9355: enable_dlopen_self_static=unknown
! 9356: else
! 9357: lt_cv_dlopen=no
! 9358: lt_cv_dlopen_libs=
! 9359:
! 9360: case $host_os in
! 9361: beos*)
! 9362: lt_cv_dlopen="load_add_on"
! 9363: lt_cv_dlopen_libs=
! 9364: lt_cv_dlopen_self=yes
! 9365: ;;
! 9366:
! 9367: mingw* | pw32*)
! 9368: lt_cv_dlopen="LoadLibrary"
! 9369: lt_cv_dlopen_libs=
! 9370: ;;
! 9371:
! 9372: cygwin*)
! 9373: lt_cv_dlopen="dlopen"
! 9374: lt_cv_dlopen_libs=
! 9375: ;;
! 9376:
! 9377: darwin*)
! 9378: # if libdl is installed we need to link against it
! 9379: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 9380: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 9381: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 9382: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9383: else
! 9384: ac_check_lib_save_LIBS=$LIBS
! 9385: LIBS="-ldl $LIBS"
! 9386: cat >conftest.$ac_ext <<_ACEOF
! 9387: #line $LINENO "configure"
! 9388: /* confdefs.h. */
! 9389: _ACEOF
! 9390: cat confdefs.h >>conftest.$ac_ext
! 9391: cat >>conftest.$ac_ext <<_ACEOF
! 9392: /* end confdefs.h. */
! 9393:
! 9394: /* Override any gcc2 internal prototype to avoid an error. */
! 9395: #ifdef __cplusplus
! 9396: extern "C"
! 9397: #endif
! 9398: /* We use char because int might match the return type of a gcc2
! 9399: builtin and then its argument prototype would still apply. */
! 9400: char dlopen ();
! 9401: int
! 9402: main ()
! 9403: {
! 9404: dlopen ();
! 9405: ;
! 9406: return 0;
! 9407: }
! 9408: _ACEOF
! 9409: rm -f conftest.$ac_objext conftest$ac_exeext
! 9410: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9411: (eval $ac_link) 2>&5
! 9412: ac_status=$?
! 9413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9414: (exit $ac_status); } &&
! 9415: { ac_try='test -s conftest$ac_exeext'
! 9416: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9417: (eval $ac_try) 2>&5
! 9418: ac_status=$?
! 9419: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9420: (exit $ac_status); }; }; then
! 9421: ac_cv_lib_dl_dlopen=yes
! 9422: else
! 9423: echo "$as_me: failed program was:" >&5
! 9424: sed 's/^/| /' conftest.$ac_ext >&5
! 9425:
! 9426: ac_cv_lib_dl_dlopen=no
! 9427: fi
! 9428: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9429: LIBS=$ac_check_lib_save_LIBS
! 9430: fi
! 9431: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 9432: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 9433: if test $ac_cv_lib_dl_dlopen = yes; then
! 9434: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 9435: else
! 9436:
! 9437: lt_cv_dlopen="dyld"
! 9438: lt_cv_dlopen_libs=
! 9439: lt_cv_dlopen_self=yes
! 9440:
! 9441: fi
! 9442:
! 9443: ;;
! 9444:
! 9445: *)
! 9446: echo "$as_me:$LINENO: checking for shl_load" >&5
! 9447: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 9448: if test "${ac_cv_func_shl_load+set}" = set; then
! 9449: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9450: else
! 9451: cat >conftest.$ac_ext <<_ACEOF
! 9452: #line $LINENO "configure"
! 9453: /* confdefs.h. */
! 9454: _ACEOF
! 9455: cat confdefs.h >>conftest.$ac_ext
! 9456: cat >>conftest.$ac_ext <<_ACEOF
! 9457: /* end confdefs.h. */
! 9458: /* System header to define __stub macros and hopefully few prototypes,
! 9459: which can conflict with char shl_load (); below.
! 9460: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 9461: <limits.h> exists even on freestanding compilers. */
! 9462: #ifdef __STDC__
! 9463: # include <limits.h>
! 9464: #else
! 9465: # include <assert.h>
! 9466: #endif
! 9467: /* Override any gcc2 internal prototype to avoid an error. */
! 9468: #ifdef __cplusplus
! 9469: extern "C"
! 9470: {
! 9471: #endif
! 9472: /* We use char because int might match the return type of a gcc2
! 9473: builtin and then its argument prototype would still apply. */
! 9474: char shl_load ();
! 9475: /* The GNU C library defines this for functions which it implements
! 9476: to always fail with ENOSYS. Some functions are actually named
! 9477: something starting with __ and the normal name is an alias. */
! 9478: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 9479: choke me
! 9480: #else
! 9481: char (*f) () = shl_load;
! 9482: #endif
! 9483: #ifdef __cplusplus
! 9484: }
! 9485: #endif
! 9486:
! 9487: int
! 9488: main ()
! 9489: {
! 9490: return f != shl_load;
! 9491: ;
! 9492: return 0;
! 9493: }
! 9494: _ACEOF
! 9495: rm -f conftest.$ac_objext conftest$ac_exeext
! 9496: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9497: (eval $ac_link) 2>&5
! 9498: ac_status=$?
! 9499: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9500: (exit $ac_status); } &&
! 9501: { ac_try='test -s conftest$ac_exeext'
! 9502: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9503: (eval $ac_try) 2>&5
! 9504: ac_status=$?
! 9505: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9506: (exit $ac_status); }; }; then
! 9507: ac_cv_func_shl_load=yes
! 9508: else
! 9509: echo "$as_me: failed program was:" >&5
! 9510: sed 's/^/| /' conftest.$ac_ext >&5
! 9511:
! 9512: ac_cv_func_shl_load=no
! 9513: fi
! 9514: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9515: fi
! 9516: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 9517: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 9518: if test $ac_cv_func_shl_load = yes; then
! 9519: lt_cv_dlopen="shl_load"
! 9520: else
! 9521: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 9522: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 9523: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 9524: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9525: else
! 9526: ac_check_lib_save_LIBS=$LIBS
! 9527: LIBS="-ldld $LIBS"
! 9528: cat >conftest.$ac_ext <<_ACEOF
! 9529: #line $LINENO "configure"
! 9530: /* confdefs.h. */
! 9531: _ACEOF
! 9532: cat confdefs.h >>conftest.$ac_ext
! 9533: cat >>conftest.$ac_ext <<_ACEOF
! 9534: /* end confdefs.h. */
! 9535:
! 9536: /* Override any gcc2 internal prototype to avoid an error. */
! 9537: #ifdef __cplusplus
! 9538: extern "C"
! 9539: #endif
! 9540: /* We use char because int might match the return type of a gcc2
! 9541: builtin and then its argument prototype would still apply. */
! 9542: char shl_load ();
! 9543: int
! 9544: main ()
! 9545: {
! 9546: shl_load ();
! 9547: ;
! 9548: return 0;
! 9549: }
! 9550: _ACEOF
! 9551: rm -f conftest.$ac_objext conftest$ac_exeext
! 9552: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9553: (eval $ac_link) 2>&5
! 9554: ac_status=$?
! 9555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9556: (exit $ac_status); } &&
! 9557: { ac_try='test -s conftest$ac_exeext'
! 9558: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9559: (eval $ac_try) 2>&5
! 9560: ac_status=$?
! 9561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9562: (exit $ac_status); }; }; then
! 9563: ac_cv_lib_dld_shl_load=yes
! 9564: else
! 9565: echo "$as_me: failed program was:" >&5
! 9566: sed 's/^/| /' conftest.$ac_ext >&5
! 9567:
! 9568: ac_cv_lib_dld_shl_load=no
! 9569: fi
! 9570: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9571: LIBS=$ac_check_lib_save_LIBS
! 9572: fi
! 9573: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 9574: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 9575: if test $ac_cv_lib_dld_shl_load = yes; then
! 9576: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 9577: else
! 9578: echo "$as_me:$LINENO: checking for dlopen" >&5
! 9579: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 9580: if test "${ac_cv_func_dlopen+set}" = set; then
! 9581: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9582: else
! 9583: cat >conftest.$ac_ext <<_ACEOF
! 9584: #line $LINENO "configure"
! 9585: /* confdefs.h. */
! 9586: _ACEOF
! 9587: cat confdefs.h >>conftest.$ac_ext
! 9588: cat >>conftest.$ac_ext <<_ACEOF
! 9589: /* end confdefs.h. */
! 9590: /* System header to define __stub macros and hopefully few prototypes,
! 9591: which can conflict with char dlopen (); below.
! 9592: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 9593: <limits.h> exists even on freestanding compilers. */
! 9594: #ifdef __STDC__
! 9595: # include <limits.h>
! 9596: #else
! 9597: # include <assert.h>
! 9598: #endif
! 9599: /* Override any gcc2 internal prototype to avoid an error. */
! 9600: #ifdef __cplusplus
! 9601: extern "C"
! 9602: {
! 9603: #endif
! 9604: /* We use char because int might match the return type of a gcc2
! 9605: builtin and then its argument prototype would still apply. */
! 9606: char dlopen ();
! 9607: /* The GNU C library defines this for functions which it implements
! 9608: to always fail with ENOSYS. Some functions are actually named
! 9609: something starting with __ and the normal name is an alias. */
! 9610: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 9611: choke me
! 9612: #else
! 9613: char (*f) () = dlopen;
! 9614: #endif
! 9615: #ifdef __cplusplus
! 9616: }
! 9617: #endif
! 9618:
! 9619: int
! 9620: main ()
! 9621: {
! 9622: return f != dlopen;
! 9623: ;
! 9624: return 0;
! 9625: }
! 9626: _ACEOF
! 9627: rm -f conftest.$ac_objext conftest$ac_exeext
! 9628: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9629: (eval $ac_link) 2>&5
! 9630: ac_status=$?
! 9631: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9632: (exit $ac_status); } &&
! 9633: { ac_try='test -s conftest$ac_exeext'
! 9634: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9635: (eval $ac_try) 2>&5
! 9636: ac_status=$?
! 9637: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9638: (exit $ac_status); }; }; then
! 9639: ac_cv_func_dlopen=yes
! 9640: else
! 9641: echo "$as_me: failed program was:" >&5
! 9642: sed 's/^/| /' conftest.$ac_ext >&5
! 9643:
! 9644: ac_cv_func_dlopen=no
! 9645: fi
! 9646: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9647: fi
! 9648: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 9649: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 9650: if test $ac_cv_func_dlopen = yes; then
! 9651: lt_cv_dlopen="dlopen"
! 9652: else
! 9653: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 9654: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 9655: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 9656: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9657: else
! 9658: ac_check_lib_save_LIBS=$LIBS
! 9659: LIBS="-ldl $LIBS"
! 9660: cat >conftest.$ac_ext <<_ACEOF
! 9661: #line $LINENO "configure"
! 9662: /* confdefs.h. */
! 9663: _ACEOF
! 9664: cat confdefs.h >>conftest.$ac_ext
! 9665: cat >>conftest.$ac_ext <<_ACEOF
! 9666: /* end confdefs.h. */
! 9667:
! 9668: /* Override any gcc2 internal prototype to avoid an error. */
! 9669: #ifdef __cplusplus
! 9670: extern "C"
! 9671: #endif
! 9672: /* We use char because int might match the return type of a gcc2
! 9673: builtin and then its argument prototype would still apply. */
! 9674: char dlopen ();
! 9675: int
! 9676: main ()
! 9677: {
! 9678: dlopen ();
! 9679: ;
! 9680: return 0;
! 9681: }
! 9682: _ACEOF
! 9683: rm -f conftest.$ac_objext conftest$ac_exeext
! 9684: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9685: (eval $ac_link) 2>&5
! 9686: ac_status=$?
! 9687: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9688: (exit $ac_status); } &&
! 9689: { ac_try='test -s conftest$ac_exeext'
! 9690: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9691: (eval $ac_try) 2>&5
! 9692: ac_status=$?
! 9693: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9694: (exit $ac_status); }; }; then
! 9695: ac_cv_lib_dl_dlopen=yes
! 9696: else
! 9697: echo "$as_me: failed program was:" >&5
! 9698: sed 's/^/| /' conftest.$ac_ext >&5
! 9699:
! 9700: ac_cv_lib_dl_dlopen=no
! 9701: fi
! 9702: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9703: LIBS=$ac_check_lib_save_LIBS
! 9704: fi
! 9705: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 9706: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 9707: if test $ac_cv_lib_dl_dlopen = yes; then
! 9708: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 9709: else
! 9710: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 9711: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 9712: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 9713: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9714: else
! 9715: ac_check_lib_save_LIBS=$LIBS
! 9716: LIBS="-lsvld $LIBS"
! 9717: cat >conftest.$ac_ext <<_ACEOF
! 9718: #line $LINENO "configure"
! 9719: /* confdefs.h. */
! 9720: _ACEOF
! 9721: cat confdefs.h >>conftest.$ac_ext
! 9722: cat >>conftest.$ac_ext <<_ACEOF
! 9723: /* end confdefs.h. */
! 9724:
! 9725: /* Override any gcc2 internal prototype to avoid an error. */
! 9726: #ifdef __cplusplus
! 9727: extern "C"
! 9728: #endif
! 9729: /* We use char because int might match the return type of a gcc2
! 9730: builtin and then its argument prototype would still apply. */
! 9731: char dlopen ();
! 9732: int
! 9733: main ()
! 9734: {
! 9735: dlopen ();
! 9736: ;
! 9737: return 0;
! 9738: }
! 9739: _ACEOF
! 9740: rm -f conftest.$ac_objext conftest$ac_exeext
! 9741: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9742: (eval $ac_link) 2>&5
! 9743: ac_status=$?
! 9744: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9745: (exit $ac_status); } &&
! 9746: { ac_try='test -s conftest$ac_exeext'
! 9747: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9748: (eval $ac_try) 2>&5
! 9749: ac_status=$?
! 9750: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9751: (exit $ac_status); }; }; then
! 9752: ac_cv_lib_svld_dlopen=yes
! 9753: else
! 9754: echo "$as_me: failed program was:" >&5
! 9755: sed 's/^/| /' conftest.$ac_ext >&5
! 9756:
! 9757: ac_cv_lib_svld_dlopen=no
! 9758: fi
! 9759: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9760: LIBS=$ac_check_lib_save_LIBS
! 9761: fi
! 9762: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 9763: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 9764: if test $ac_cv_lib_svld_dlopen = yes; then
! 9765: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 9766: else
! 9767: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 9768: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 9769: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 9770: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9771: else
! 9772: ac_check_lib_save_LIBS=$LIBS
! 9773: LIBS="-ldld $LIBS"
! 9774: cat >conftest.$ac_ext <<_ACEOF
! 9775: #line $LINENO "configure"
! 9776: /* confdefs.h. */
! 9777: _ACEOF
! 9778: cat confdefs.h >>conftest.$ac_ext
! 9779: cat >>conftest.$ac_ext <<_ACEOF
! 9780: /* end confdefs.h. */
! 9781:
! 9782: /* Override any gcc2 internal prototype to avoid an error. */
! 9783: #ifdef __cplusplus
! 9784: extern "C"
! 9785: #endif
! 9786: /* We use char because int might match the return type of a gcc2
! 9787: builtin and then its argument prototype would still apply. */
! 9788: char dld_link ();
! 9789: int
! 9790: main ()
! 9791: {
! 9792: dld_link ();
! 9793: ;
! 9794: return 0;
! 9795: }
! 9796: _ACEOF
! 9797: rm -f conftest.$ac_objext conftest$ac_exeext
! 9798: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9799: (eval $ac_link) 2>&5
! 9800: ac_status=$?
! 9801: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9802: (exit $ac_status); } &&
! 9803: { ac_try='test -s conftest$ac_exeext'
! 9804: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 9805: (eval $ac_try) 2>&5
! 9806: ac_status=$?
! 9807: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9808: (exit $ac_status); }; }; then
! 9809: ac_cv_lib_dld_dld_link=yes
! 9810: else
! 9811: echo "$as_me: failed program was:" >&5
! 9812: sed 's/^/| /' conftest.$ac_ext >&5
! 9813:
! 9814: ac_cv_lib_dld_dld_link=no
! 9815: fi
! 9816: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 9817: LIBS=$ac_check_lib_save_LIBS
! 9818: fi
! 9819: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 9820: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 9821: if test $ac_cv_lib_dld_dld_link = yes; then
! 9822: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 9823: fi
! 9824:
! 9825:
! 9826: fi
! 9827:
! 9828:
! 9829: fi
! 9830:
! 9831:
! 9832: fi
! 9833:
! 9834:
! 9835: fi
! 9836:
! 9837:
! 9838: fi
! 9839:
! 9840: ;;
! 9841: esac
! 9842:
! 9843: if test "x$lt_cv_dlopen" != xno; then
! 9844: enable_dlopen=yes
! 9845: else
! 9846: enable_dlopen=no
! 9847: fi
! 9848:
! 9849: case $lt_cv_dlopen in
! 9850: dlopen)
! 9851: save_CPPFLAGS="$CPPFLAGS"
! 9852: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 9853:
! 9854: save_LDFLAGS="$LDFLAGS"
! 9855: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 9856:
! 9857: save_LIBS="$LIBS"
! 9858: LIBS="$lt_cv_dlopen_libs $LIBS"
! 9859:
! 9860: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 9861: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 9862: if test "${lt_cv_dlopen_self+set}" = set; then
! 9863: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9864: else
! 9865: if test "$cross_compiling" = yes; then :
! 9866: lt_cv_dlopen_self=cross
! 9867: else
! 9868: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 9869: lt_status=$lt_dlunknown
! 9870: cat > conftest.$ac_ext <<EOF
! 9871: #line 9871 "configure"
! 9872: #include "confdefs.h"
! 9873:
! 9874: #if HAVE_DLFCN_H
! 9875: #include <dlfcn.h>
! 9876: #endif
! 9877:
! 9878: #include <stdio.h>
! 9879:
! 9880: #ifdef RTLD_GLOBAL
! 9881: # define LT_DLGLOBAL RTLD_GLOBAL
! 9882: #else
! 9883: # ifdef DL_GLOBAL
! 9884: # define LT_DLGLOBAL DL_GLOBAL
! 9885: # else
! 9886: # define LT_DLGLOBAL 0
! 9887: # endif
! 9888: #endif
! 9889:
! 9890: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 9891: find out it does not work in some platform. */
! 9892: #ifndef LT_DLLAZY_OR_NOW
! 9893: # ifdef RTLD_LAZY
! 9894: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 9895: # else
! 9896: # ifdef DL_LAZY
! 9897: # define LT_DLLAZY_OR_NOW DL_LAZY
! 9898: # else
! 9899: # ifdef RTLD_NOW
! 9900: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 9901: # else
! 9902: # ifdef DL_NOW
! 9903: # define LT_DLLAZY_OR_NOW DL_NOW
! 9904: # else
! 9905: # define LT_DLLAZY_OR_NOW 0
! 9906: # endif
! 9907: # endif
! 9908: # endif
! 9909: # endif
! 9910: #endif
! 9911:
! 9912: #ifdef __cplusplus
! 9913: extern "C" void exit (int);
! 9914: #endif
! 9915:
! 9916: void fnord() { int i=42;}
! 9917: int main ()
! 9918: {
! 9919: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 9920: int status = $lt_dlunknown;
! 9921:
! 9922: if (self)
! 9923: {
! 9924: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 9925: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 9926: /* dlclose (self); */
! 9927: }
! 9928:
! 9929: exit (status);
! 9930: }
! 9931: EOF
! 9932: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 9933: (eval $ac_link) 2>&5
! 9934: ac_status=$?
! 9935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 9936: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 9937: (./conftest; exit; ) 2>/dev/null
! 9938: lt_status=$?
! 9939: case x$lt_status in
! 9940: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 9941: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 9942: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 9943: esac
! 9944: else :
! 9945: # compilation failed
! 9946: lt_cv_dlopen_self=no
! 9947: fi
! 9948: fi
! 9949: rm -fr conftest*
! 9950:
! 9951:
! 9952: fi
! 9953: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 9954: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 9955:
! 9956: if test "x$lt_cv_dlopen_self" = xyes; then
! 9957: LDFLAGS="$LDFLAGS $link_static_flag"
! 9958: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 9959: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 9960: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 9961: echo $ECHO_N "(cached) $ECHO_C" >&6
! 9962: else
! 9963: if test "$cross_compiling" = yes; then :
! 9964: lt_cv_dlopen_self_static=cross
! 9965: else
! 9966: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 9967: lt_status=$lt_dlunknown
! 9968: cat > conftest.$ac_ext <<EOF
! 9969: #line 9969 "configure"
! 9970: #include "confdefs.h"
! 9971:
! 9972: #if HAVE_DLFCN_H
! 9973: #include <dlfcn.h>
! 9974: #endif
! 9975:
! 9976: #include <stdio.h>
! 9977:
! 9978: #ifdef RTLD_GLOBAL
! 9979: # define LT_DLGLOBAL RTLD_GLOBAL
! 9980: #else
! 9981: # ifdef DL_GLOBAL
! 9982: # define LT_DLGLOBAL DL_GLOBAL
! 9983: # else
! 9984: # define LT_DLGLOBAL 0
! 9985: # endif
! 9986: #endif
! 9987:
! 9988: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 9989: find out it does not work in some platform. */
! 9990: #ifndef LT_DLLAZY_OR_NOW
! 9991: # ifdef RTLD_LAZY
! 9992: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 9993: # else
! 9994: # ifdef DL_LAZY
! 9995: # define LT_DLLAZY_OR_NOW DL_LAZY
! 9996: # else
! 9997: # ifdef RTLD_NOW
! 9998: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 9999: # else
! 10000: # ifdef DL_NOW
! 10001: # define LT_DLLAZY_OR_NOW DL_NOW
! 10002: # else
! 10003: # define LT_DLLAZY_OR_NOW 0
! 10004: # endif
! 10005: # endif
! 10006: # endif
! 10007: # endif
! 10008: #endif
! 10009:
! 10010: #ifdef __cplusplus
! 10011: extern "C" void exit (int);
! 10012: #endif
! 10013:
! 10014: void fnord() { int i=42;}
! 10015: int main ()
! 10016: {
! 10017: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 10018: int status = $lt_dlunknown;
! 10019:
! 10020: if (self)
! 10021: {
! 10022: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 10023: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 10024: /* dlclose (self); */
! 10025: }
! 10026:
! 10027: exit (status);
! 10028: }
! 10029: EOF
! 10030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 10031: (eval $ac_link) 2>&5
! 10032: ac_status=$?
! 10033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 10034: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 10035: (./conftest; exit; ) 2>/dev/null
! 10036: lt_status=$?
! 10037: case x$lt_status in
! 10038: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 10039: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 10040: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 10041: esac
! 10042: else :
! 10043: # compilation failed
! 10044: lt_cv_dlopen_self_static=no
! 10045: fi
! 10046: fi
! 10047: rm -fr conftest*
! 10048:
! 10049:
! 10050: fi
! 10051: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 10052: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 10053: fi
! 10054:
! 10055: CPPFLAGS="$save_CPPFLAGS"
! 10056: LDFLAGS="$save_LDFLAGS"
! 10057: LIBS="$save_LIBS"
! 10058: ;;
! 10059: esac
! 10060:
! 10061: case $lt_cv_dlopen_self in
! 10062: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 10063: *) enable_dlopen_self=unknown ;;
! 10064: esac
! 10065:
! 10066: case $lt_cv_dlopen_self_static in
! 10067: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 10068: *) enable_dlopen_self_static=unknown ;;
! 10069: esac
! 10070: fi
! 10071:
! 10072:
! 10073: # Report which librarie types wil actually be built
! 10074: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 10075: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
! 10076: echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 10077: echo "${ECHO_T}$can_build_shared" >&6
! 10078:
! 10079: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 10080: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
! 10081: test "$can_build_shared" = "no" && enable_shared=no
! 10082:
! 10083: # On AIX, shared libraries and static libraries use the same namespace, and
! 10084: # are all built from PIC.
! 10085: case "$host_os" in
! 10086: aix3*)
! 10087: test "$enable_shared" = yes && enable_static=no
! 10088: if test -n "$RANLIB"; then
! 10089: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 10090: postinstall_cmds='$RANLIB $lib'
! 10091: fi
! 10092: ;;
! 10093:
! 10094: aix4*)
! 10095: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
! 10096: test "$enable_shared" = yes && enable_static=no
! 10097: fi
! 10098: ;;
! 10099: darwin* | rhapsody*)
! 10100: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 10101: archive_cmds_need_lc=no
! 10102: case "$host_os" in
! 10103: rhapsody* | darwin1.[012])
! 10104: allow_undefined_flag='-undefined suppress'
! 10105: ;;
! 10106: *) # Darwin 1.3 on
! 10107: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
! 10108: ;;
! 10109: esac
! 10110: # FIXME: Relying on posixy $() will cause problems for
! 10111: # cross-compilation, but unfortunately the echo tests do not
! 10112: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 10113: # `"' quotes if we put them in here... so don't!
! 10114: output_verbose_link_cmd='echo'
! 10115: archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
! 10116: module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
! 10117: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
! 10118: 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}'
! 10119: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 10120: hardcode_direct=no
! 10121: hardcode_automatic=yes
! 10122: hardcode_shlibpath_var=unsupported
! 10123: whole_archive_flag_spec='-all_load $convenience'
! 10124: link_all_deplibs=yes
! 10125: fi
! 10126: ;;
! 10127: esac
! 10128: echo "$as_me:$LINENO: result: $enable_shared" >&5
! 10129: echo "${ECHO_T}$enable_shared" >&6
! 10130:
! 10131: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 10132: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
! 10133: # Make sure either enable_shared or enable_static is yes.
! 10134: test "$enable_shared" = yes || enable_static=yes
! 10135: echo "$as_me:$LINENO: result: $enable_static" >&5
! 10136: echo "${ECHO_T}$enable_static" >&6
! 10137:
! 10138: # The else clause should only fire when bootstrapping the
! 10139: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 10140: # with your package, and you will get complaints that there are
! 10141: # no rules to generate ltmain.sh.
! 10142: if test -f "$ltmain"; then
! 10143: # See if we are running on zsh, and set the options which allow our commands through
! 10144: # without removal of \ escapes.
! 10145: if test -n "${ZSH_VERSION+set}" ; then
! 10146: setopt NO_GLOB_SUBST
! 10147: fi
! 10148: # Now quote all the things that may contain metacharacters while being
! 10149: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 10150: # variables and quote the copies for generation of the libtool script.
! 10151: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
! 10152: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 10153: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 10154: deplibs_check_method reload_flag reload_cmds need_locks \
! 10155: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 10156: lt_cv_sys_global_symbol_to_c_name_address \
! 10157: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 10158: old_postinstall_cmds old_postuninstall_cmds \
! 10159: compiler \
! 10160: CC \
! 10161: LD \
! 10162: lt_prog_compiler_wl \
! 10163: lt_prog_compiler_pic \
! 10164: lt_prog_compiler_static \
! 10165: lt_prog_compiler_no_builtin_flag \
! 10166: export_dynamic_flag_spec \
! 10167: thread_safe_flag_spec \
! 10168: whole_archive_flag_spec \
! 10169: enable_shared_with_static_runtimes \
! 10170: old_archive_cmds \
! 10171: old_archive_from_new_cmds \
! 10172: predep_objects \
! 10173: postdep_objects \
! 10174: predeps \
! 10175: postdeps \
! 10176: compiler_lib_search_path \
! 10177: archive_cmds \
! 10178: archive_expsym_cmds \
! 10179: postinstall_cmds \
! 10180: postuninstall_cmds \
! 10181: old_archive_from_expsyms_cmds \
! 10182: allow_undefined_flag \
! 10183: no_undefined_flag \
! 10184: export_symbols_cmds \
! 10185: hardcode_libdir_flag_spec \
! 10186: hardcode_libdir_flag_spec_ld \
! 10187: hardcode_libdir_separator \
! 10188: hardcode_automatic \
! 10189: module_cmds \
! 10190: module_expsym_cmds \
! 10191: lt_cv_prog_compiler_c_o \
! 10192: exclude_expsyms \
! 10193: include_expsyms; do
! 10194:
! 10195: case $var in
! 10196: old_archive_cmds | \
! 10197: old_archive_from_new_cmds | \
! 10198: archive_cmds | \
! 10199: archive_expsym_cmds | \
! 10200: module_cmds | \
! 10201: module_expsym_cmds | \
! 10202: old_archive_from_expsyms_cmds | \
! 10203: export_symbols_cmds | \
! 10204: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 10205: postinstall_cmds | postuninstall_cmds | \
! 10206: old_postinstall_cmds | old_postuninstall_cmds | \
! 10207: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 10208: # Double-quote double-evaled strings.
! 10209: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 10210: ;;
! 10211: *)
! 10212: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 10213: ;;
! 10214: esac
! 10215: done
! 10216:
! 10217: case $lt_echo in
! 10218: *'\$0 --fallback-echo"')
! 10219: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 10220: ;;
! 10221: esac
! 10222:
! 10223: cfgfile="${ofile}T"
! 10224: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
! 10225: $rm -f "$cfgfile"
! 10226: { echo "$as_me:$LINENO: creating $ofile" >&5
! 10227: echo "$as_me: creating $ofile" >&6;}
! 10228:
! 10229: cat <<__EOF__ >> "$cfgfile"
! 10230: #! $SHELL
! 10231:
! 10232: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
! 10233: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
! 10234: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
! 10235: #
! 10236: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
! 10237: # Free Software Foundation, Inc.
! 10238: #
! 10239: # This file is part of GNU Libtool:
! 10240: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
! 10241: #
! 10242: # This program is free software; you can redistribute it and/or modify
! 10243: # it under the terms of the GNU General Public License as published by
! 10244: # the Free Software Foundation; either version 2 of the License, or
! 10245: # (at your option) any later version.
! 10246: #
! 10247: # This program is distributed in the hope that it will be useful, but
! 10248: # WITHOUT ANY WARRANTY; without even the implied warranty of
! 10249: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
! 10250: # General Public License for more details.
! 10251: #
! 10252: # You should have received a copy of the GNU General Public License
! 10253: # along with this program; if not, write to the Free Software
! 10254: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
! 10255: #
! 10256: # As a special exception to the GNU General Public License, if you
! 10257: # distribute this file as part of a program that contains a
! 10258: # configuration script generated by Autoconf, you may include it under
! 10259: # the same distribution terms that you use for the rest of that program.
! 10260:
! 10261: # A sed program that does not truncate output.
! 10262: SED=$lt_SED
! 10263:
! 10264: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
! 10265: Xsed="$SED -e s/^X//"
! 10266:
! 10267: # The HP-UX ksh and POSIX shell print the target directory to stdout
! 10268: # if CDPATH is set.
! 10269: if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
! 10270:
! 10271: # The names of the tagged configurations supported by this script.
! 10272: available_tags=
! 10273:
! 10274: # ### BEGIN LIBTOOL CONFIG
! 10275:
! 10276: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 10277:
! 10278: # Shell to use when invoking shell scripts.
! 10279: SHELL=$lt_SHELL
! 10280:
! 10281: # Whether or not to build shared libraries.
! 10282: build_libtool_libs=$enable_shared
! 10283:
! 10284: # Whether or not to build static libraries.
! 10285: build_old_libs=$enable_static
! 10286:
! 10287: # Whether or not to add -lc for building shared libraries.
! 10288: build_libtool_need_lc=$archive_cmds_need_lc
! 10289:
! 10290: # Whether or not to disallow shared libs when runtime libs are static
! 10291: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
! 10292:
! 10293: # Whether or not to optimize for fast installation.
! 10294: fast_install=$enable_fast_install
! 10295:
! 10296: # The host system.
! 10297: host_alias=$host_alias
! 10298: host=$host
! 10299:
! 10300: # An echo program that does not interpret backslashes.
! 10301: echo=$lt_echo
! 10302:
! 10303: # The archiver.
! 10304: AR=$lt_AR
! 10305: AR_FLAGS=$lt_AR_FLAGS
! 10306:
! 10307: # A C compiler.
! 10308: LTCC=$lt_LTCC
! 10309:
! 10310: # A language-specific compiler.
! 10311: CC=$lt_compiler
! 10312:
! 10313: # Is the compiler the GNU C compiler?
! 10314: with_gcc=$GCC
! 10315:
! 10316: # An ERE matcher.
! 10317: EGREP=$lt_EGREP
! 10318:
! 10319: # The linker used to build libraries.
! 10320: LD=$lt_LD
! 10321:
! 10322: # Whether we need hard or soft links.
! 10323: LN_S=$lt_LN_S
! 10324:
! 10325: # A BSD-compatible nm program.
! 10326: NM=$lt_NM
! 10327:
! 10328: # A symbol stripping program
! 10329: STRIP=$STRIP
! 10330:
! 10331: # Used to examine libraries when file_magic_cmd begins "file"
! 10332: MAGIC_CMD=$MAGIC_CMD
! 10333:
! 10334: # Used on cygwin: DLL creation program.
! 10335: DLLTOOL="$DLLTOOL"
! 10336:
! 10337: # Used on cygwin: object dumper.
! 10338: OBJDUMP="$OBJDUMP"
! 10339:
! 10340: # Used on cygwin: assembler.
! 10341: AS="$AS"
! 10342:
! 10343: # The name of the directory that contains temporary libtool files.
! 10344: objdir=$objdir
! 10345:
! 10346: # How to create reloadable object files.
! 10347: reload_flag=$lt_reload_flag
! 10348: reload_cmds=$lt_reload_cmds
! 10349:
! 10350: # How to pass a linker flag through the compiler.
! 10351: wl=$lt_lt_prog_compiler_wl
! 10352:
! 10353: # Object file suffix (normally "o").
! 10354: objext="$ac_objext"
! 10355:
! 10356: # Old archive suffix (normally "a").
! 10357: libext="$libext"
! 10358:
! 10359: # Shared library suffix (normally ".so").
! 10360: shrext='$shrext'
! 10361:
! 10362: # Executable file suffix (normally "").
! 10363: exeext="$exeext"
! 10364:
! 10365: # Additional compiler flags for building library objects.
! 10366: pic_flag=$lt_lt_prog_compiler_pic
! 10367: pic_mode=$pic_mode
! 10368:
! 10369: # What is the maximum length of a command?
! 10370: max_cmd_len=$lt_cv_sys_max_cmd_len
! 10371:
! 10372: # Does compiler simultaneously support -c and -o options?
! 10373: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
! 10374:
! 10375: # Must we lock files when doing compilation ?
! 10376: need_locks=$lt_need_locks
! 10377:
! 10378: # Do we need the lib prefix for modules?
! 10379: need_lib_prefix=$need_lib_prefix
! 10380:
! 10381: # Do we need a version for libraries?
! 10382: need_version=$need_version
! 10383:
! 10384: # Whether dlopen is supported.
! 10385: dlopen_support=$enable_dlopen
! 10386:
! 10387: # Whether dlopen of programs is supported.
! 10388: dlopen_self=$enable_dlopen_self
! 10389:
! 10390: # Whether dlopen of statically linked programs is supported.
! 10391: dlopen_self_static=$enable_dlopen_self_static
! 10392:
! 10393: # Compiler flag to prevent dynamic linking.
! 10394: link_static_flag=$lt_lt_prog_compiler_static
! 10395:
! 10396: # Compiler flag to turn off builtin functions.
! 10397: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
! 10398:
! 10399: # Compiler flag to allow reflexive dlopens.
! 10400: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
! 10401:
! 10402: # Compiler flag to generate shared objects directly from archives.
! 10403: whole_archive_flag_spec=$lt_whole_archive_flag_spec
! 10404:
! 10405: # Compiler flag to generate thread-safe objects.
! 10406: thread_safe_flag_spec=$lt_thread_safe_flag_spec
! 10407:
! 10408: # Library versioning type.
! 10409: version_type=$version_type
! 10410:
! 10411: # Format of library name prefix.
! 10412: libname_spec=$lt_libname_spec
! 10413:
! 10414: # List of archive names. First name is the real one, the rest are links.
! 10415: # The last name is the one that the linker finds with -lNAME.
! 10416: library_names_spec=$lt_library_names_spec
! 10417:
! 10418: # The coded name of the library, if different from the real name.
! 10419: soname_spec=$lt_soname_spec
! 10420:
! 10421: # Commands used to build and install an old-style archive.
! 10422: RANLIB=$lt_RANLIB
! 10423: old_archive_cmds=$lt_old_archive_cmds
! 10424: old_postinstall_cmds=$lt_old_postinstall_cmds
! 10425: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 10426:
! 10427: # Create an old-style archive from a shared archive.
! 10428: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
! 10429:
! 10430: # Create a temporary old-style archive to link instead of a shared archive.
! 10431: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
! 10432:
! 10433: # Commands used to build and install a shared archive.
! 10434: archive_cmds=$lt_archive_cmds
! 10435: archive_expsym_cmds=$lt_archive_expsym_cmds
! 10436: postinstall_cmds=$lt_postinstall_cmds
! 10437: postuninstall_cmds=$lt_postuninstall_cmds
! 10438:
! 10439: # Commands used to build a loadable module (assumed same as above if empty)
! 10440: module_cmds=$lt_module_cmds
! 10441: module_expsym_cmds=$lt_module_expsym_cmds
! 10442:
! 10443: # Commands to strip libraries.
! 10444: old_striplib=$lt_old_striplib
! 10445: striplib=$lt_striplib
! 10446:
! 10447: # Dependencies to place before the objects being linked to create a
! 10448: # shared library.
! 10449: predep_objects=$lt_predep_objects
! 10450:
! 10451: # Dependencies to place after the objects being linked to create a
! 10452: # shared library.
! 10453: postdep_objects=$lt_postdep_objects
! 10454:
! 10455: # Dependencies to place before the objects being linked to create a
! 10456: # shared library.
! 10457: predeps=$lt_predeps
! 10458:
! 10459: # Dependencies to place after the objects being linked to create a
! 10460: # shared library.
! 10461: postdeps=$lt_postdeps
! 10462:
! 10463: # The library search path used internally by the compiler when linking
! 10464: # a shared library.
! 10465: compiler_lib_search_path=$lt_compiler_lib_search_path
! 10466:
! 10467: # Method to check whether dependent libraries are shared objects.
! 10468: deplibs_check_method=$lt_deplibs_check_method
! 10469:
! 10470: # Command to use when deplibs_check_method == file_magic.
! 10471: file_magic_cmd=$lt_file_magic_cmd
! 10472:
! 10473: # Flag that allows shared libraries with undefined symbols to be built.
! 10474: allow_undefined_flag=$lt_allow_undefined_flag
! 10475:
! 10476: # Flag that forces no undefined symbols.
! 10477: no_undefined_flag=$lt_no_undefined_flag
! 10478:
! 10479: # Commands used to finish a libtool library installation in a directory.
! 10480: finish_cmds=$lt_finish_cmds
! 10481:
! 10482: # Same as above, but a single script fragment to be evaled but not shown.
! 10483: finish_eval=$lt_finish_eval
! 10484:
! 10485: # Take the output of nm and produce a listing of raw symbols and C names.
! 10486: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 10487:
! 10488: # Transform the output of nm in a proper C declaration
! 10489: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 10490:
! 10491: # Transform the output of nm in a C name address pair
! 10492: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 10493:
! 10494: # This is the shared library runtime path variable.
! 10495: runpath_var=$runpath_var
! 10496:
! 10497: # This is the shared library path variable.
! 10498: shlibpath_var=$shlibpath_var
! 10499:
! 10500: # Is shlibpath searched before the hard-coded library search path?
! 10501: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 10502:
! 10503: # How to hardcode a shared library path into an executable.
! 10504: hardcode_action=$hardcode_action
! 10505:
! 10506: # Whether we should hardcode library paths into libraries.
! 10507: hardcode_into_libs=$hardcode_into_libs
! 10508:
! 10509: # Flag to hardcode \$libdir into a binary during linking.
! 10510: # This must work even if \$libdir does not exist.
! 10511: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
! 10512:
! 10513: # If ld is used when linking, flag to hardcode \$libdir into
! 10514: # a binary during linking. This must work even if \$libdir does
! 10515: # not exist.
! 10516: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
! 10517:
! 10518: # Whether we need a single -rpath flag with a separated argument.
! 10519: hardcode_libdir_separator=$lt_hardcode_libdir_separator
! 10520:
! 10521: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 10522: # resulting binary.
! 10523: hardcode_direct=$hardcode_direct
! 10524:
! 10525: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 10526: # resulting binary.
! 10527: hardcode_minus_L=$hardcode_minus_L
! 10528:
! 10529: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 10530: # the resulting binary.
! 10531: hardcode_shlibpath_var=$hardcode_shlibpath_var
! 10532:
! 10533: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 10534: # and all subsequent libraries and executables linked against it.
! 10535: hardcode_automatic=$hardcode_automatic
! 10536:
! 10537: # Variables whose values should be saved in libtool wrapper scripts and
! 10538: # restored at relink time.
! 10539: variables_saved_for_relink="$variables_saved_for_relink"
! 10540:
! 10541: # Whether libtool must link a program against all its dependency libraries.
! 10542: link_all_deplibs=$link_all_deplibs
! 10543:
! 10544: # Compile-time system search path for libraries
! 10545: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 10546:
! 10547: # Run-time system search path for libraries
! 10548: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 10549:
! 10550: # Fix the shell variable \$srcfile for the compiler.
! 10551: fix_srcfile_path="$fix_srcfile_path"
! 10552:
! 10553: # Set to yes if exported symbols are required.
! 10554: always_export_symbols=$always_export_symbols
! 10555:
! 10556: # The commands to list exported symbols.
! 10557: export_symbols_cmds=$lt_export_symbols_cmds
! 10558:
! 10559: # The commands to extract the exported symbol list from a shared archive.
! 10560: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 10561:
! 10562: # Symbols that should not be listed in the preloaded symbols.
! 10563: exclude_expsyms=$lt_exclude_expsyms
! 10564:
! 10565: # Symbols that must always be exported.
! 10566: include_expsyms=$lt_include_expsyms
! 10567:
! 10568: # ### END LIBTOOL CONFIG
! 10569:
! 10570: __EOF__
! 10571:
! 10572:
! 10573: case $host_os in
! 10574: aix3*)
! 10575: cat <<\EOF >> "$cfgfile"
! 10576:
! 10577: # AIX sometimes has problems with the GCC collect2 program. For some
! 10578: # reason, if we set the COLLECT_NAMES environment variable, the problems
! 10579: # vanish in a puff of smoke.
! 10580: if test "X${COLLECT_NAMES+set}" != Xset; then
! 10581: COLLECT_NAMES=
! 10582: export COLLECT_NAMES
! 10583: fi
! 10584: EOF
! 10585: ;;
! 10586: esac
! 10587:
! 10588: # We use sed instead of cat because bash on DJGPP gets confused if
! 10589: # if finds mixed CR/LF and LF-only lines. Since sed operates in
! 10590: # text mode, it properly converts lines to CR/LF. This bash problem
! 10591: # is reportedly fixed, but why not run on old versions too?
! 10592: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
! 10593:
! 10594: mv -f "$cfgfile" "$ofile" || \
! 10595: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
! 10596: chmod +x "$ofile"
! 10597:
! 10598: else
! 10599: # If there is no Makefile yet, we rely on a make rule to execute
! 10600: # `config.status --recheck' to rerun these tests and create the
! 10601: # libtool script then.
! 10602: test -f Makefile && make "$ltmain"
! 10603: fi
! 10604:
! 10605:
! 10606: ac_ext=c
! 10607: ac_cpp='$CPP $CPPFLAGS'
! 10608: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 10609: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 10610: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 10611:
! 10612: CC="$lt_save_CC"
! 10613:
! 10614:
! 10615: # Check whether --with-tags or --without-tags was given.
! 10616: if test "${with_tags+set}" = set; then
! 10617: withval="$with_tags"
! 10618: tagnames="$withval"
! 10619: fi;
! 10620:
! 10621: if test -f "$ltmain" && test -n "$tagnames"; then
! 10622: if test ! -f "${ofile}"; then
! 10623: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
! 10624: echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
! 10625: fi
! 10626:
! 10627: if test -z "$LTCC"; then
! 10628: eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
! 10629: if test -z "$LTCC"; then
! 10630: { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
! 10631: echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
! 10632: else
! 10633: { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
! 10634: echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
! 10635: fi
! 10636: fi
! 10637:
! 10638: # Extract list of available tagged configurations in $ofile.
! 10639: # Note that this assumes the entire list is on one line.
! 10640: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
! 10641:
! 10642: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
! 10643: for tagname in $tagnames; do
! 10644: IFS="$lt_save_ifs"
! 10645: # Check whether tagname contains only valid characters
! 10646: case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
! 10647: "") ;;
! 10648: *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
! 10649: echo "$as_me: error: invalid tag name: $tagname" >&2;}
! 10650: { (exit 1); exit 1; }; }
! 10651: ;;
! 10652: esac
! 10653:
! 10654: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
! 10655: then
! 10656: { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
! 10657: echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
! 10658: { (exit 1); exit 1; }; }
! 10659: fi
! 10660:
! 10661: # Update the list of available tags.
! 10662: if test -n "$tagname"; then
! 10663: echo appending configuration tag \"$tagname\" to $ofile
! 10664:
! 10665: case $tagname in
! 10666: CXX)
! 10667: if test -n "$CXX" && test "X$CXX" != "Xno"; then
! 10668: ac_ext=cc
! 10669: ac_cpp='$CXXCPP $CPPFLAGS'
! 10670: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 10671: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 10672: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
! 10673:
! 10674:
! 10675:
! 10676:
! 10677: archive_cmds_need_lc_CXX=no
! 10678: allow_undefined_flag_CXX=
! 10679: always_export_symbols_CXX=no
! 10680: archive_expsym_cmds_CXX=
! 10681: export_dynamic_flag_spec_CXX=
! 10682: hardcode_direct_CXX=no
! 10683: hardcode_libdir_flag_spec_CXX=
! 10684: hardcode_libdir_flag_spec_ld_CXX=
! 10685: hardcode_libdir_separator_CXX=
! 10686: hardcode_minus_L_CXX=no
! 10687: hardcode_automatic_CXX=no
! 10688: module_cmds_CXX=
! 10689: module_expsym_cmds_CXX=
! 10690: link_all_deplibs_CXX=unknown
! 10691: old_archive_cmds_CXX=$old_archive_cmds
! 10692: no_undefined_flag_CXX=
! 10693: whole_archive_flag_spec_CXX=
! 10694: enable_shared_with_static_runtimes_CXX=no
! 10695:
! 10696: # Dependencies to place before and after the object being linked:
! 10697: predep_objects_CXX=
! 10698: postdep_objects_CXX=
! 10699: predeps_CXX=
! 10700: postdeps_CXX=
! 10701: compiler_lib_search_path_CXX=
! 10702:
! 10703: # Source file extension for C++ test sources.
! 10704: ac_ext=cc
! 10705:
! 10706: # Object file extension for compiled C++ test sources.
! 10707: objext=o
! 10708: objext_CXX=$objext
! 10709:
! 10710: # Code to be used in simple compile tests
! 10711: lt_simple_compile_test_code="int some_variable = 0;\n"
! 10712:
! 10713: # Code to be used in simple link tests
! 10714: lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
! 10715:
! 10716: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 10717:
! 10718: # If no C compiler was specified, use CC.
! 10719: LTCC=${LTCC-"$CC"}
! 10720:
! 10721: # Allow CC to be a program name with arguments.
! 10722: compiler=$CC
! 10723:
! 10724:
! 10725: # Allow CC to be a program name with arguments.
! 10726: lt_save_CC=$CC
! 10727: lt_save_LD=$LD
! 10728: lt_save_GCC=$GCC
! 10729: GCC=$GXX
! 10730: lt_save_with_gnu_ld=$with_gnu_ld
! 10731: lt_save_path_LD=$lt_cv_path_LD
! 10732: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
! 10733: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
! 10734: else
! 10735: unset lt_cv_prog_gnu_ld
! 10736: fi
! 10737: if test -n "${lt_cv_path_LDCXX+set}"; then
! 10738: lt_cv_path_LD=$lt_cv_path_LDCXX
! 10739: else
! 10740: unset lt_cv_path_LD
! 10741: fi
! 10742: test -z "${LDCXX+set}" || LD=$LDCXX
! 10743: CC=${CXX-"c++"}
! 10744: compiler=$CC
! 10745: compiler_CXX=$CC
! 10746: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
! 10747:
! 10748: # We don't want -fno-exception wen compiling C++ code, so set the
! 10749: # no_builtin_flag separately
! 10750: if test "$GXX" = yes; then
! 10751: lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
! 10752: else
! 10753: lt_prog_compiler_no_builtin_flag_CXX=
! 10754: fi
! 10755:
! 10756: if test "$GXX" = yes; then
! 10757: # Set up default GNU C++ configuration
! 10758:
! 10759:
! 10760: # Check whether --with-gnu-ld or --without-gnu-ld was given.
! 10761: if test "${with_gnu_ld+set}" = set; then
! 10762: withval="$with_gnu_ld"
! 10763: test "$withval" = no || with_gnu_ld=yes
! 10764: else
! 10765: with_gnu_ld=no
! 10766: fi;
! 10767: ac_prog=ld
! 10768: if test "$GCC" = yes; then
! 10769: # Check if gcc -print-prog-name=ld gives a path.
! 10770: echo "$as_me:$LINENO: checking for ld used by $CC" >&5
! 10771: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
! 10772: case $host in
! 10773: *-*-mingw*)
! 10774: # gcc leaves a trailing carriage return which upsets mingw
! 10775: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
! 10776: *)
! 10777: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
! 10778: esac
! 10779: case $ac_prog in
! 10780: # Accept absolute paths.
! 10781: [\\/]* | ?:[\\/]*)
! 10782: re_direlt='/[^/][^/]*/\.\./'
! 10783: # Canonicalize the path of ld
! 10784: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
! 10785: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
! 10786: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
! 10787: done
! 10788: test -z "$LD" && LD="$ac_prog"
! 10789: ;;
! 10790: "")
! 10791: # If it fails, then pretend we aren't using GCC.
! 10792: ac_prog=ld
! 10793: ;;
! 10794: *)
! 10795: # If it is relative, then search for the first ld in PATH.
! 10796: with_gnu_ld=unknown
! 10797: ;;
! 10798: esac
! 10799: elif test "$with_gnu_ld" = yes; then
! 10800: echo "$as_me:$LINENO: checking for GNU ld" >&5
! 10801: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
! 10802: else
! 10803: echo "$as_me:$LINENO: checking for non-GNU ld" >&5
! 10804: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
! 10805: fi
! 10806: if test "${lt_cv_path_LD+set}" = set; then
! 10807: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10808: else
! 10809: if test -z "$LD"; then
! 10810: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
! 10811: for ac_dir in $PATH; do
! 10812: IFS="$lt_save_ifs"
! 10813: test -z "$ac_dir" && ac_dir=.
! 10814: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
! 10815: lt_cv_path_LD="$ac_dir/$ac_prog"
! 10816: # Check to see if the program is GNU ld. I'd rather use --version,
! 10817: # but apparently some GNU ld's only accept -v.
! 10818: # Break only if it was the GNU/non-GNU ld that we prefer.
! 10819: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
! 10820: *GNU* | *'with BFD'*)
! 10821: test "$with_gnu_ld" != no && break
! 10822: ;;
! 10823: *)
! 10824: test "$with_gnu_ld" != yes && break
! 10825: ;;
! 10826: esac
! 10827: fi
! 10828: done
! 10829: IFS="$lt_save_ifs"
! 10830: else
! 10831: lt_cv_path_LD="$LD" # Let the user override the test with a path.
! 10832: fi
! 10833: fi
! 10834:
! 10835: LD="$lt_cv_path_LD"
! 10836: if test -n "$LD"; then
! 10837: echo "$as_me:$LINENO: result: $LD" >&5
! 10838: echo "${ECHO_T}$LD" >&6
! 10839: else
! 10840: echo "$as_me:$LINENO: result: no" >&5
! 10841: echo "${ECHO_T}no" >&6
! 10842: fi
! 10843: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
! 10844: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
! 10845: { (exit 1); exit 1; }; }
! 10846: echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
! 10847: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
! 10848: if test "${lt_cv_prog_gnu_ld+set}" = set; then
! 10849: echo $ECHO_N "(cached) $ECHO_C" >&6
! 10850: else
! 10851: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
! 10852: case `"$LD" -v 2>&1 </dev/null` in
! 10853: *GNU* | *'with BFD'*)
! 10854: lt_cv_prog_gnu_ld=yes
! 10855: ;;
! 10856: *)
! 10857: lt_cv_prog_gnu_ld=no
! 10858: ;;
! 10859: esac
! 10860: fi
! 10861: echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
! 10862: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
! 10863: with_gnu_ld=$lt_cv_prog_gnu_ld
! 10864:
! 10865:
! 10866:
! 10867: # Check if GNU C++ uses GNU ld as the underlying linker, since the
! 10868: # archiving commands below assume that GNU ld is being used.
! 10869: if test "$with_gnu_ld" = yes; then
! 10870: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 10871: archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 10872:
! 10873: hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
! 10874: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 10875:
! 10876: # If archive_cmds runs LD, not CC, wlarc should be empty
! 10877: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
! 10878: # investigate it a little bit more. (MM)
! 10879: wlarc='${wl}'
! 10880:
! 10881: # ancient GNU ld didn't support --whole-archive et. al.
! 10882: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
! 10883: grep 'no-whole-archive' > /dev/null; then
! 10884: whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 10885: else
! 10886: whole_archive_flag_spec_CXX=
! 10887: fi
! 10888: else
! 10889: with_gnu_ld=no
! 10890: wlarc=
! 10891:
! 10892: # A generic and very simple default shared library creation
! 10893: # command for GNU C++ for the case where it uses the native
! 10894: # linker, instead of GNU ld. If possible, this setting should
! 10895: # overridden to take advantage of the native linker features on
! 10896: # the platform it is being used on.
! 10897: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
! 10898: fi
! 10899:
! 10900: # Commands to make compiler produce verbose output that lists
! 10901: # what "hidden" libraries, object files and flags are used when
! 10902: # linking a shared library.
! 10903: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
! 10904:
! 10905: else
! 10906: GXX=no
! 10907: with_gnu_ld=no
! 10908: wlarc=
! 10909: fi
! 10910:
! 10911: # PORTME: fill in a description of your system's C++ link characteristics
! 10912: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 10913: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 10914: ld_shlibs_CXX=yes
! 10915: case $host_os in
! 10916: aix3*)
! 10917: # FIXME: insert proper C++ library support
! 10918: ld_shlibs_CXX=no
! 10919: ;;
! 10920: aix4* | aix5*)
! 10921: if test "$host_cpu" = ia64; then
! 10922: # On IA64, the linker does run time linking by default, so we don't
! 10923: # have to do anything special.
! 10924: aix_use_runtimelinking=no
! 10925: exp_sym_flag='-Bexport'
! 10926: no_entry_flag=""
! 10927: else
! 10928: aix_use_runtimelinking=no
! 10929:
! 10930: # Test if we are trying to use run time linking or normal
! 10931: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 10932: # need to do runtime linking.
! 10933: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 10934: for ld_flag in $LDFLAGS; do
! 10935: case $ld_flag in
! 10936: *-brtl*)
! 10937: aix_use_runtimelinking=yes
! 10938: break
! 10939: ;;
! 10940: esac
! 10941: done
! 10942: esac
! 10943:
! 10944: exp_sym_flag='-bexport'
! 10945: no_entry_flag='-bnoentry'
! 10946: fi
! 10947:
! 10948: # When large executables or shared objects are built, AIX ld can
! 10949: # have problems creating the table of contents. If linking a library
! 10950: # or program results in "error TOC overflow" add -mminimal-toc to
! 10951: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 10952: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 10953:
! 10954: archive_cmds_CXX=''
! 10955: hardcode_direct_CXX=yes
! 10956: hardcode_libdir_separator_CXX=':'
! 10957: link_all_deplibs_CXX=yes
! 10958:
! 10959: if test "$GXX" = yes; then
! 10960: case $host_os in aix4.012|aix4.012.*)
! 10961: # We only want to do this on AIX 4.2 and lower, the check
! 10962: # below for broken collect2 doesn't work under 4.3+
! 10963: collect2name=`${CC} -print-prog-name=collect2`
! 10964: if test -f "$collect2name" && \
! 10965: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 10966: then
! 10967: # We have reworked collect2
! 10968: hardcode_direct_CXX=yes
! 10969: else
! 10970: # We have old collect2
! 10971: hardcode_direct_CXX=unsupported
! 10972: # It fails to find uninstalled libraries when the uninstalled
! 10973: # path is not listed in the libpath. Setting hardcode_minus_L
! 10974: # to unsupported forces relinking
! 10975: hardcode_minus_L_CXX=yes
! 10976: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 10977: hardcode_libdir_separator_CXX=
! 10978: fi
! 10979: esac
! 10980: shared_flag='-shared'
! 10981: else
! 10982: # not using gcc
! 10983: if test "$host_cpu" = ia64; then
! 10984: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 10985: # chokes on -Wl,-G. The following line is correct:
! 10986: shared_flag='-G'
! 10987: else
! 10988: if test "$aix_use_runtimelinking" = yes; then
! 10989: shared_flag='${wl}-G'
! 10990: else
! 10991: shared_flag='${wl}-bM:SRE'
! 10992: fi
! 10993: fi
! 10994: fi
! 10995:
! 10996: # It seems that -bexpall does not export symbols beginning with
! 10997: # underscore (_), so it is better to generate a list of symbols to export.
! 10998: always_export_symbols_CXX=yes
! 10999: if test "$aix_use_runtimelinking" = yes; then
! 11000: # Warning - without using the other runtime loading flags (-brtl),
! 11001: # -berok will link without error, but may produce a broken library.
! 11002: allow_undefined_flag_CXX='-berok'
! 11003: # Determine the default libpath from the value encoded in an empty executable.
! 11004: cat >conftest.$ac_ext <<_ACEOF
! 11005: #line $LINENO "configure"
! 11006: /* confdefs.h. */
! 11007: _ACEOF
! 11008: cat confdefs.h >>conftest.$ac_ext
! 11009: cat >>conftest.$ac_ext <<_ACEOF
! 11010: /* end confdefs.h. */
! 11011:
! 11012: int
! 11013: main ()
! 11014: {
! 11015:
! 11016: ;
! 11017: return 0;
! 11018: }
! 11019: _ACEOF
! 11020: rm -f conftest.$ac_objext conftest$ac_exeext
! 11021: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 11022: (eval $ac_link) 2>&5
! 11023: ac_status=$?
! 11024: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11025: (exit $ac_status); } &&
! 11026: { ac_try='test -s conftest$ac_exeext'
! 11027: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11028: (eval $ac_try) 2>&5
! 11029: ac_status=$?
! 11030: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11031: (exit $ac_status); }; }; then
! 11032:
! 11033: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 11034: }'`
! 11035: # Check for a 64-bit object if we didn't find anything.
! 11036: 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; }
! 11037: }'`; fi
! 11038: else
! 11039: echo "$as_me: failed program was:" >&5
! 11040: sed 's/^/| /' conftest.$ac_ext >&5
! 11041:
! 11042: fi
! 11043: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 11044: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 11045:
! 11046: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
! 11047:
! 11048: archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 11049: else
! 11050: if test "$host_cpu" = ia64; then
! 11051: hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
! 11052: allow_undefined_flag_CXX="-z nodefs"
! 11053: archive_expsym_cmds_CXX="\$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"
! 11054: else
! 11055: # Determine the default libpath from the value encoded in an empty executable.
! 11056: cat >conftest.$ac_ext <<_ACEOF
! 11057: #line $LINENO "configure"
! 11058: /* confdefs.h. */
! 11059: _ACEOF
! 11060: cat confdefs.h >>conftest.$ac_ext
! 11061: cat >>conftest.$ac_ext <<_ACEOF
! 11062: /* end confdefs.h. */
! 11063:
! 11064: int
! 11065: main ()
! 11066: {
! 11067:
! 11068: ;
! 11069: return 0;
! 11070: }
! 11071: _ACEOF
! 11072: rm -f conftest.$ac_objext conftest$ac_exeext
! 11073: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 11074: (eval $ac_link) 2>&5
! 11075: ac_status=$?
! 11076: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11077: (exit $ac_status); } &&
! 11078: { ac_try='test -s conftest$ac_exeext'
! 11079: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 11080: (eval $ac_try) 2>&5
! 11081: ac_status=$?
! 11082: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11083: (exit $ac_status); }; }; then
! 11084:
! 11085: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 11086: }'`
! 11087: # Check for a 64-bit object if we didn't find anything.
! 11088: 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; }
! 11089: }'`; fi
! 11090: else
! 11091: echo "$as_me: failed program was:" >&5
! 11092: sed 's/^/| /' conftest.$ac_ext >&5
! 11093:
! 11094: fi
! 11095: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 11096: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 11097:
! 11098: hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
! 11099: # Warning - without using the other run time loading flags,
! 11100: # -berok will link without error, but may produce a broken library.
! 11101: no_undefined_flag_CXX=' ${wl}-bernotok'
! 11102: allow_undefined_flag_CXX=' ${wl}-berok'
! 11103: # -bexpall does not export symbols beginning with underscore (_)
! 11104: always_export_symbols_CXX=yes
! 11105: # Exported symbols can be pulled into shared objects from archives
! 11106: whole_archive_flag_spec_CXX=' '
! 11107: archive_cmds_need_lc_CXX=yes
! 11108: # This is similar to how AIX traditionally builds it's shared libraries.
! 11109: archive_expsym_cmds_CXX="\$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'
! 11110: fi
! 11111: fi
! 11112: ;;
! 11113: chorus*)
! 11114: case $cc_basename in
! 11115: *)
! 11116: # FIXME: insert proper C++ library support
! 11117: ld_shlibs_CXX=no
! 11118: ;;
! 11119: esac
! 11120: ;;
! 11121:
! 11122: cygwin* | mingw* | pw32*)
! 11123: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
! 11124: # as there is no search path for DLLs.
! 11125: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 11126: allow_undefined_flag_CXX=unsupported
! 11127: always_export_symbols_CXX=no
! 11128: enable_shared_with_static_runtimes_CXX=yes
! 11129:
! 11130: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 11131: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 11132: # If the export-symbols file already is a .def file (1st line
! 11133: # is EXPORTS), use it as is; otherwise, prepend...
! 11134: archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 11135: cp $export_symbols $output_objdir/$soname.def;
! 11136: else
! 11137: echo EXPORTS > $output_objdir/$soname.def;
! 11138: cat $export_symbols >> $output_objdir/$soname.def;
! 11139: fi~
! 11140: $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 11141: else
! 11142: ld_shlibs_CXX=no
! 11143: fi
! 11144: ;;
! 11145:
! 11146: darwin* | rhapsody*)
! 11147: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 11148: archive_cmds_need_lc_CXX=no
! 11149: case "$host_os" in
! 11150: rhapsody* | darwin1.[012])
! 11151: allow_undefined_flag_CXX='-undefined suppress'
! 11152: ;;
! 11153: *) # Darwin 1.3 on
! 11154: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
! 11155: ;;
! 11156: esac
! 11157: lt_int_apple_cc_single_mod=no
! 11158: output_verbose_link_cmd='echo'
! 11159: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
! 11160: lt_int_apple_cc_single_mod=yes
! 11161: fi
! 11162: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 11163: archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 11164: else
! 11165: archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 11166: fi
! 11167: module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
! 11168:
! 11169: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
! 11170: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 11171: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 11172: else
! 11173: archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 11174: fi
! 11175: module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 11176: hardcode_direct_CXX=no
! 11177: hardcode_automatic_CXX=yes
! 11178: hardcode_shlibpath_var_CXX=unsupported
! 11179: whole_archive_flag_spec_CXX='-all_load $convenience'
! 11180: link_all_deplibs_CXX=yes
! 11181: fi
! 11182: ;;
! 11183:
! 11184: dgux*)
! 11185: case $cc_basename in
! 11186: ec++)
! 11187: # FIXME: insert proper C++ library support
! 11188: ld_shlibs_CXX=no
! 11189: ;;
! 11190: ghcx)
! 11191: # Green Hills C++ Compiler
! 11192: # FIXME: insert proper C++ library support
! 11193: ld_shlibs_CXX=no
! 11194: ;;
! 11195: *)
! 11196: # FIXME: insert proper C++ library support
! 11197: ld_shlibs_CXX=no
! 11198: ;;
! 11199: esac
! 11200: ;;
! 11201: freebsd12*)
! 11202: # C++ shared libraries reported to be fairly broken before switch to ELF
! 11203: ld_shlibs_CXX=no
! 11204: ;;
! 11205: freebsd-elf*)
! 11206: archive_cmds_need_lc_CXX=no
! 11207: ;;
! 11208: freebsd*)
! 11209: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
! 11210: # conventions
! 11211: ld_shlibs_CXX=yes
! 11212: ;;
! 11213: gnu*)
! 11214: ;;
! 11215: hpux9*)
! 11216: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 11217: hardcode_libdir_separator_CXX=:
! 11218: export_dynamic_flag_spec_CXX='${wl}-E'
! 11219: hardcode_direct_CXX=yes
! 11220: hardcode_minus_L_CXX=yes # Not in the search PATH,
! 11221: # but as the default
! 11222: # location of the library.
! 11223:
! 11224: case $cc_basename in
! 11225: CC)
! 11226: # FIXME: insert proper C++ library support
! 11227: ld_shlibs_CXX=no
! 11228: ;;
! 11229: aCC)
! 11230: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
! 11231: # Commands to make compiler produce verbose output that lists
! 11232: # what "hidden" libraries, object files and flags are used when
! 11233: # linking a shared library.
! 11234: #
! 11235: # There doesn't appear to be a way to prevent this compiler from
! 11236: # explicitly linking system object files so we need to strip them
! 11237: # from the output so that they don't get included in the library
! 11238: # dependencies.
! 11239: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 11240: ;;
! 11241: *)
! 11242: if test "$GXX" = yes; then
! 11243: archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
! 11244: else
! 11245: # FIXME: insert proper C++ library support
! 11246: ld_shlibs_CXX=no
! 11247: fi
! 11248: ;;
! 11249: esac
! 11250: ;;
! 11251: hpux10*|hpux11*)
! 11252: if test $with_gnu_ld = no; then
! 11253: case "$host_cpu" in
! 11254: hppa*64*)
! 11255: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 11256: hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
! 11257: hardcode_libdir_separator_CXX=:
! 11258: ;;
! 11259: ia64*)
! 11260: hardcode_libdir_flag_spec_CXX='-L$libdir'
! 11261: ;;
! 11262: *)
! 11263: hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
! 11264: hardcode_libdir_separator_CXX=:
! 11265: export_dynamic_flag_spec_CXX='${wl}-E'
! 11266: ;;
! 11267: esac
! 11268: fi
! 11269: case "$host_cpu" in
! 11270: hppa*64*)
! 11271: hardcode_direct_CXX=no
! 11272: hardcode_shlibpath_var_CXX=no
! 11273: ;;
! 11274: ia64*)
! 11275: hardcode_direct_CXX=no
! 11276: hardcode_shlibpath_var_CXX=no
! 11277: hardcode_minus_L_CXX=yes # Not in the search PATH,
! 11278: # but as the default
! 11279: # location of the library.
! 11280: ;;
! 11281: *)
! 11282: hardcode_direct_CXX=yes
! 11283: hardcode_minus_L_CXX=yes # Not in the search PATH,
! 11284: # but as the default
! 11285: # location of the library.
! 11286: ;;
! 11287: esac
! 11288:
! 11289: case $cc_basename in
! 11290: CC)
! 11291: # FIXME: insert proper C++ library support
! 11292: ld_shlibs_CXX=no
! 11293: ;;
! 11294: aCC)
! 11295: case "$host_cpu" in
! 11296: hppa*64*|ia64*)
! 11297: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
! 11298: ;;
! 11299: *)
! 11300: archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11301: ;;
! 11302: esac
! 11303: # Commands to make compiler produce verbose output that lists
! 11304: # what "hidden" libraries, object files and flags are used when
! 11305: # linking a shared library.
! 11306: #
! 11307: # There doesn't appear to be a way to prevent this compiler from
! 11308: # explicitly linking system object files so we need to strip them
! 11309: # from the output so that they don't get included in the library
! 11310: # dependencies.
! 11311: output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 11312: ;;
! 11313: *)
! 11314: if test "$GXX" = yes; then
! 11315: if test $with_gnu_ld = no; then
! 11316: case "$host_cpu" in
! 11317: ia64*|hppa*64*)
! 11318: archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
! 11319: ;;
! 11320: *)
! 11321: archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11322: ;;
! 11323: esac
! 11324: fi
! 11325: else
! 11326: # FIXME: insert proper C++ library support
! 11327: ld_shlibs_CXX=no
! 11328: fi
! 11329: ;;
! 11330: esac
! 11331: ;;
! 11332: irix5* | irix6*)
! 11333: case $cc_basename in
! 11334: CC)
! 11335: # SGI C++
! 11336: archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
! 11337:
! 11338: # Archives containing C++ object files must be created using
! 11339: # "CC -ar", where "CC" is the IRIX C++ compiler. This is
! 11340: # necessary to make sure instantiated templates are included
! 11341: # in the archive.
! 11342: old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
! 11343: ;;
! 11344: *)
! 11345: if test "$GXX" = yes; then
! 11346: if test "$with_gnu_ld" = no; then
! 11347: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
! 11348: else
! 11349: archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
! 11350: fi
! 11351: fi
! 11352: link_all_deplibs_CXX=yes
! 11353: ;;
! 11354: esac
! 11355: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11356: hardcode_libdir_separator_CXX=:
! 11357: ;;
! 11358: linux*)
! 11359: case $cc_basename in
! 11360: KCC)
! 11361: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 11362:
! 11363: # KCC will only create a shared library if the output file
! 11364: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 11365: # to its proper name (with version) after linking.
! 11366: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
! 11367: archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
! 11368: # Commands to make compiler produce verbose output that lists
! 11369: # what "hidden" libraries, object files and flags are used when
! 11370: # linking a shared library.
! 11371: #
! 11372: # There doesn't appear to be a way to prevent this compiler from
! 11373: # explicitly linking system object files so we need to strip them
! 11374: # from the output so that they don't get included in the library
! 11375: # dependencies.
! 11376: output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 11377:
! 11378: hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
! 11379: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 11380:
! 11381: # Archives containing C++ object files must be created using
! 11382: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
! 11383: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
! 11384: ;;
! 11385: icpc)
! 11386: # Intel C++
! 11387: with_gnu_ld=yes
! 11388: archive_cmds_need_lc_CXX=no
! 11389: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 11390: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 11391: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11392: export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
! 11393: whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
! 11394: ;;
! 11395: cxx)
! 11396: # Compaq C++
! 11397: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 11398: archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
! 11399:
! 11400: runpath_var=LD_RUN_PATH
! 11401: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
! 11402: hardcode_libdir_separator_CXX=:
! 11403:
! 11404: # Commands to make compiler produce verbose output that lists
! 11405: # what "hidden" libraries, object files and flags are used when
! 11406: # linking a shared library.
! 11407: #
! 11408: # There doesn't appear to be a way to prevent this compiler from
! 11409: # explicitly linking system object files so we need to strip them
! 11410: # from the output so that they don't get included in the library
! 11411: # dependencies.
! 11412: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 11413: ;;
! 11414: esac
! 11415: ;;
! 11416: lynxos*)
! 11417: # FIXME: insert proper C++ library support
! 11418: ld_shlibs_CXX=no
! 11419: ;;
! 11420: m88k*)
! 11421: # FIXME: insert proper C++ library support
! 11422: ld_shlibs_CXX=no
! 11423: ;;
! 11424: mvs*)
! 11425: case $cc_basename in
! 11426: cxx)
! 11427: # FIXME: insert proper C++ library support
! 11428: ld_shlibs_CXX=no
! 11429: ;;
! 11430: *)
! 11431: # FIXME: insert proper C++ library support
! 11432: ld_shlibs_CXX=no
! 11433: ;;
! 11434: esac
! 11435: ;;
! 11436: netbsd*)
! 11437: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 11438: archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
! 11439: wlarc=
! 11440: hardcode_libdir_flag_spec_CXX='-R$libdir'
! 11441: hardcode_direct_CXX=yes
! 11442: hardcode_shlibpath_var_CXX=no
! 11443: fi
! 11444: # Workaround some broken pre-1.5 toolchains
! 11445: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
! 11446: ;;
! 11447: osf3*)
! 11448: case $cc_basename in
! 11449: KCC)
! 11450: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 11451:
! 11452: # KCC will only create a shared library if the output file
! 11453: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 11454: # to its proper name (with version) after linking.
! 11455: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
! 11456:
! 11457: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11458: hardcode_libdir_separator_CXX=:
! 11459:
! 11460: # Archives containing C++ object files must be created using
! 11461: # "CC -Bstatic", where "CC" is the KAI C++ compiler.
! 11462: old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
! 11463:
! 11464: ;;
! 11465: RCC)
! 11466: # Rational C++ 2.4.1
! 11467: # FIXME: insert proper C++ library support
! 11468: ld_shlibs_CXX=no
! 11469: ;;
! 11470: cxx)
! 11471: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 11472: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
! 11473:
! 11474: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11475: hardcode_libdir_separator_CXX=:
! 11476:
! 11477: # Commands to make compiler produce verbose output that lists
! 11478: # what "hidden" libraries, object files and flags are used when
! 11479: # linking a shared library.
! 11480: #
! 11481: # There doesn't appear to be a way to prevent this compiler from
! 11482: # explicitly linking system object files so we need to strip them
! 11483: # from the output so that they don't get included in the library
! 11484: # dependencies.
! 11485: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 11486: ;;
! 11487: *)
! 11488: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 11489: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 11490: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
! 11491:
! 11492: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11493: hardcode_libdir_separator_CXX=:
! 11494:
! 11495: # Commands to make compiler produce verbose output that lists
! 11496: # what "hidden" libraries, object files and flags are used when
! 11497: # linking a shared library.
! 11498: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
! 11499:
! 11500: else
! 11501: # FIXME: insert proper C++ library support
! 11502: ld_shlibs_CXX=no
! 11503: fi
! 11504: ;;
! 11505: esac
! 11506: ;;
! 11507: osf4* | osf5*)
! 11508: case $cc_basename in
! 11509: KCC)
! 11510: # Kuck and Associates, Inc. (KAI) C++ Compiler
! 11511:
! 11512: # KCC will only create a shared library if the output file
! 11513: # ends with ".so" (or ".sl" for HP-UX), so rename the library
! 11514: # to its proper name (with version) after linking.
! 11515: archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
! 11516:
! 11517: hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
! 11518: hardcode_libdir_separator_CXX=:
! 11519:
! 11520: # Archives containing C++ object files must be created using
! 11521: # the KAI C++ compiler.
! 11522: old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
! 11523: ;;
! 11524: RCC)
! 11525: # Rational C++ 2.4.1
! 11526: # FIXME: insert proper C++ library support
! 11527: ld_shlibs_CXX=no
! 11528: ;;
! 11529: cxx)
! 11530: allow_undefined_flag_CXX=' -expect_unresolved \*'
! 11531: archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
! 11532: archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
! 11533: echo "-hidden">> $lib.exp~
! 11534: $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
! 11535: $rm $lib.exp'
! 11536:
! 11537: hardcode_libdir_flag_spec_CXX='-rpath $libdir'
! 11538: hardcode_libdir_separator_CXX=:
! 11539:
! 11540: # Commands to make compiler produce verbose output that lists
! 11541: # what "hidden" libraries, object files and flags are used when
! 11542: # linking a shared library.
! 11543: #
! 11544: # There doesn't appear to be a way to prevent this compiler from
! 11545: # explicitly linking system object files so we need to strip them
! 11546: # from the output so that they don't get included in the library
! 11547: # dependencies.
! 11548: output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 11549: ;;
! 11550: *)
! 11551: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 11552: allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
! 11553: archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
! 11554:
! 11555: hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
! 11556: hardcode_libdir_separator_CXX=:
! 11557:
! 11558: # Commands to make compiler produce verbose output that lists
! 11559: # what "hidden" libraries, object files and flags are used when
! 11560: # linking a shared library.
! 11561: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
! 11562:
! 11563: else
! 11564: # FIXME: insert proper C++ library support
! 11565: ld_shlibs_CXX=no
! 11566: fi
! 11567: ;;
! 11568: esac
! 11569: ;;
! 11570: psos*)
! 11571: # FIXME: insert proper C++ library support
! 11572: ld_shlibs_CXX=no
! 11573: ;;
! 11574: sco*)
! 11575: archive_cmds_need_lc_CXX=no
! 11576: case $cc_basename in
! 11577: CC)
! 11578: # FIXME: insert proper C++ library support
! 11579: ld_shlibs_CXX=no
! 11580: ;;
! 11581: *)
! 11582: # FIXME: insert proper C++ library support
! 11583: ld_shlibs_CXX=no
! 11584: ;;
! 11585: esac
! 11586: ;;
! 11587: sunos4*)
! 11588: case $cc_basename in
! 11589: CC)
! 11590: # Sun C++ 4.x
! 11591: # FIXME: insert proper C++ library support
! 11592: ld_shlibs_CXX=no
! 11593: ;;
! 11594: lcc)
! 11595: # Lucid
! 11596: # FIXME: insert proper C++ library support
! 11597: ld_shlibs_CXX=no
! 11598: ;;
! 11599: *)
! 11600: # FIXME: insert proper C++ library support
! 11601: ld_shlibs_CXX=no
! 11602: ;;
! 11603: esac
! 11604: ;;
! 11605: solaris*)
! 11606: case $cc_basename in
! 11607: CC)
! 11608: # Sun C++ 4.2, 5.x and Centerline C++
! 11609: no_undefined_flag_CXX=' -zdefs'
! 11610: archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
! 11611: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11612: $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
! 11613:
! 11614: hardcode_libdir_flag_spec_CXX='-R$libdir'
! 11615: hardcode_shlibpath_var_CXX=no
! 11616: case $host_os in
! 11617: solaris2.0-5 | solaris2.0-5.*) ;;
! 11618: *)
! 11619: # The C++ compiler is used as linker so we must use $wl
! 11620: # flag to pass the commands to the underlying system
! 11621: # linker.
! 11622: # Supported since Solaris 2.6 (maybe 2.5.1?)
! 11623: whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
! 11624: ;;
! 11625: esac
! 11626: link_all_deplibs_CXX=yes
! 11627:
! 11628: # Commands to make compiler produce verbose output that lists
! 11629: # what "hidden" libraries, object files and flags are used when
! 11630: # linking a shared library.
! 11631: #
! 11632: # There doesn't appear to be a way to prevent this compiler from
! 11633: # explicitly linking system object files so we need to strip them
! 11634: # from the output so that they don't get included in the library
! 11635: # dependencies.
! 11636: output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
! 11637:
! 11638: # Archives containing C++ object files must be created using
! 11639: # "CC -xar", where "CC" is the Sun C++ compiler. This is
! 11640: # necessary to make sure instantiated templates are included
! 11641: # in the archive.
! 11642: old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
! 11643: ;;
! 11644: gcx)
! 11645: # Green Hills C++ Compiler
! 11646: archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
! 11647:
! 11648: # The C++ compiler must be used to create the archive.
! 11649: old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
! 11650: ;;
! 11651: *)
! 11652: # GNU C++ compiler with Solaris linker
! 11653: if test "$GXX" = yes && test "$with_gnu_ld" = no; then
! 11654: no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
! 11655: if $CC --version | grep -v '^2\.7' > /dev/null; then
! 11656: archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
! 11657: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11658: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
! 11659:
! 11660: # Commands to make compiler produce verbose output that lists
! 11661: # what "hidden" libraries, object files and flags are used when
! 11662: # linking a shared library.
! 11663: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
! 11664: else
! 11665: # g++ 2.7 appears to require `-G' NOT `-shared' on this
! 11666: # platform.
! 11667: archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
! 11668: archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 11669: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
! 11670:
! 11671: # Commands to make compiler produce verbose output that lists
! 11672: # what "hidden" libraries, object files and flags are used when
! 11673: # linking a shared library.
! 11674: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
! 11675: fi
! 11676:
! 11677: hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
! 11678: fi
! 11679: ;;
! 11680: esac
! 11681: ;;
! 11682: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
! 11683: archive_cmds_need_lc_CXX=no
! 11684: ;;
! 11685: tandem*)
! 11686: case $cc_basename in
! 11687: NCC)
! 11688: # NonStop-UX NCC 3.20
! 11689: # FIXME: insert proper C++ library support
! 11690: ld_shlibs_CXX=no
! 11691: ;;
! 11692: *)
! 11693: # FIXME: insert proper C++ library support
! 11694: ld_shlibs_CXX=no
! 11695: ;;
! 11696: esac
! 11697: ;;
! 11698: vxworks*)
! 11699: # FIXME: insert proper C++ library support
! 11700: ld_shlibs_CXX=no
! 11701: ;;
! 11702: *)
! 11703: # FIXME: insert proper C++ library support
! 11704: ld_shlibs_CXX=no
! 11705: ;;
! 11706: esac
! 11707: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 11708: echo "${ECHO_T}$ld_shlibs_CXX" >&6
! 11709: test "$ld_shlibs_CXX" = no && can_build_shared=no
! 11710:
! 11711: GCC_CXX="$GXX"
! 11712: LD_CXX="$LD"
! 11713:
! 11714: ## CAVEAT EMPTOR:
! 11715: ## There is no encapsulation within the following macros, do not change
! 11716: ## the running order or otherwise move them around unless you know exactly
! 11717: ## what you are doing...
! 11718:
! 11719: cat > conftest.$ac_ext <<EOF
! 11720: class Foo
! 11721: {
! 11722: public:
! 11723: Foo (void) { a = 0; }
! 11724: private:
! 11725: int a;
! 11726: };
! 11727: EOF
! 11728:
! 11729: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 11730: (eval $ac_compile) 2>&5
! 11731: ac_status=$?
! 11732: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 11733: (exit $ac_status); }; then
! 11734: # Parse the compiler output and extract the necessary
! 11735: # objects, libraries and library flags.
! 11736:
! 11737: # Sentinel used to keep track of whether or not we are before
! 11738: # the conftest object file.
! 11739: pre_test_object_deps_done=no
! 11740:
! 11741: # The `*' in the case matches for architectures that use `case' in
! 11742: # $output_verbose_cmd can trigger glob expansion during the loop
! 11743: # eval without this substitution.
! 11744: output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
! 11745:
! 11746: for p in `eval $output_verbose_link_cmd`; do
! 11747: case $p in
! 11748:
! 11749: -L* | -R* | -l*)
! 11750: # Some compilers place space between "-{L,R}" and the path.
! 11751: # Remove the space.
! 11752: if test $p = "-L" \
! 11753: || test $p = "-R"; then
! 11754: prev=$p
! 11755: continue
! 11756: else
! 11757: prev=
! 11758: fi
! 11759:
! 11760: if test "$pre_test_object_deps_done" = no; then
! 11761: case $p in
! 11762: -L* | -R*)
! 11763: # Internal compiler library paths should come after those
! 11764: # provided the user. The postdeps already come after the
! 11765: # user supplied libs so there is no need to process them.
! 11766: if test -z "$compiler_lib_search_path_CXX"; then
! 11767: compiler_lib_search_path_CXX="${prev}${p}"
! 11768: else
! 11769: compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
! 11770: fi
! 11771: ;;
! 11772: # The "-l" case would never come before the object being
! 11773: # linked, so don't bother handling this case.
! 11774: esac
! 11775: else
! 11776: if test -z "$postdeps_CXX"; then
! 11777: postdeps_CXX="${prev}${p}"
! 11778: else
! 11779: postdeps_CXX="${postdeps_CXX} ${prev}${p}"
! 11780: fi
! 11781: fi
! 11782: ;;
! 11783:
! 11784: *.$objext)
! 11785: # This assumes that the test object file only shows up
! 11786: # once in the compiler output.
! 11787: if test "$p" = "conftest.$objext"; then
! 11788: pre_test_object_deps_done=yes
! 11789: continue
! 11790: fi
! 11791:
! 11792: if test "$pre_test_object_deps_done" = no; then
! 11793: if test -z "$predep_objects_CXX"; then
! 11794: predep_objects_CXX="$p"
! 11795: else
! 11796: predep_objects_CXX="$predep_objects_CXX $p"
! 11797: fi
! 11798: else
! 11799: if test -z "$postdep_objects_CXX"; then
! 11800: postdep_objects_CXX="$p"
! 11801: else
! 11802: postdep_objects_CXX="$postdep_objects_CXX $p"
! 11803: fi
! 11804: fi
! 11805: ;;
! 11806:
! 11807: *) ;; # Ignore the rest.
! 11808:
! 11809: esac
! 11810: done
! 11811:
! 11812: # Clean up.
! 11813: rm -f a.out a.exe
! 11814: else
! 11815: echo "libtool.m4: error: problem compiling CXX test program"
! 11816: fi
! 11817:
! 11818: $rm -f confest.$objext
! 11819:
! 11820: case " $postdeps_CXX " in
! 11821: *" -lc "*) archive_cmds_need_lc_CXX=no ;;
! 11822: esac
! 11823:
! 11824: lt_prog_compiler_wl_CXX=
! 11825: lt_prog_compiler_pic_CXX=
! 11826: lt_prog_compiler_static_CXX=
! 11827:
! 11828: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 11829: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 11830:
! 11831: # C++ specific cases for pic, static, wl, etc.
! 11832: if test "$GXX" = yes; then
! 11833: lt_prog_compiler_wl_CXX='-Wl,'
! 11834: lt_prog_compiler_static_CXX='-static'
! 11835:
! 11836: case $host_os in
! 11837: aix*)
! 11838: # All AIX code is PIC.
! 11839: if test "$host_cpu" = ia64; then
! 11840: # AIX 5 now supports IA64 processor
! 11841: lt_prog_compiler_static_CXX='-Bstatic'
! 11842: fi
! 11843: ;;
! 11844: amigaos*)
! 11845: # FIXME: we need at least 68020 code to build shared libraries, but
! 11846: # adding the `-m68020' flag to GCC prevents building anything better,
! 11847: # like `-m68040'.
! 11848: lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
! 11849: ;;
! 11850: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 11851: # PIC is the default for these OSes.
! 11852: ;;
! 11853: mingw* | os2* | pw32*)
! 11854: # This hack is so that the source file can tell whether it is being
! 11855: # built for inclusion in a dll (and should export symbols for example).
! 11856: lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
! 11857: ;;
! 11858: darwin* | rhapsody*)
! 11859: # PIC is the default on this platform
! 11860: # Common symbols not allowed in MH_DYLIB files
! 11861: lt_prog_compiler_pic_CXX='-fno-common'
! 11862: ;;
! 11863: *djgpp*)
! 11864: # DJGPP does not support shared libraries at all
! 11865: lt_prog_compiler_pic_CXX=
! 11866: ;;
! 11867: sysv4*MP*)
! 11868: if test -d /usr/nec; then
! 11869: lt_prog_compiler_pic_CXX=-Kconform_pic
! 11870: fi
! 11871: ;;
! 11872: hpux*)
! 11873: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 11874: # not for PA HP-UX.
! 11875: case "$host_cpu" in
! 11876: hppa*64*|ia64*)
! 11877: ;;
! 11878: *)
! 11879: lt_prog_compiler_pic_CXX='-fPIC'
! 11880: ;;
! 11881: esac
! 11882: ;;
! 11883: *)
! 11884: lt_prog_compiler_pic_CXX='-fPIC'
! 11885: ;;
! 11886: esac
! 11887: else
! 11888: case $host_os in
! 11889: aix4* | aix5*)
! 11890: # All AIX code is PIC.
! 11891: if test "$host_cpu" = ia64; then
! 11892: # AIX 5 now supports IA64 processor
! 11893: lt_prog_compiler_static_CXX='-Bstatic'
! 11894: else
! 11895: lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
! 11896: fi
! 11897: ;;
! 11898: chorus*)
! 11899: case $cc_basename in
! 11900: cxch68)
! 11901: # Green Hills C++ Compiler
! 11902: # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
! 11903: ;;
! 11904: esac
! 11905: ;;
! 11906: dgux*)
! 11907: case $cc_basename in
! 11908: ec++)
! 11909: lt_prog_compiler_pic_CXX='-KPIC'
! 11910: ;;
! 11911: ghcx)
! 11912: # Green Hills C++ Compiler
! 11913: lt_prog_compiler_pic_CXX='-pic'
! 11914: ;;
! 11915: *)
! 11916: ;;
! 11917: esac
! 11918: ;;
! 11919: freebsd*)
! 11920: # FreeBSD uses GNU C++
! 11921: ;;
! 11922: hpux9* | hpux10* | hpux11*)
! 11923: case $cc_basename in
! 11924: CC)
! 11925: lt_prog_compiler_wl_CXX='-Wl,'
! 11926: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
! 11927: if test "$host_cpu" != ia64; then
! 11928: lt_prog_compiler_pic_CXX='+Z'
! 11929: fi
! 11930: ;;
! 11931: aCC)
! 11932: lt_prog_compiler_wl_CXX='-Wl,'
! 11933: lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
! 11934: case "$host_cpu" in
! 11935: hppa*64*|ia64*)
! 11936: # +Z the default
! 11937: ;;
! 11938: *)
! 11939: lt_prog_compiler_pic_CXX='+Z'
! 11940: ;;
! 11941: esac
! 11942: ;;
! 11943: *)
! 11944: ;;
! 11945: esac
! 11946: ;;
! 11947: irix5* | irix6* | nonstopux*)
! 11948: case $cc_basename in
! 11949: CC)
! 11950: lt_prog_compiler_wl_CXX='-Wl,'
! 11951: lt_prog_compiler_static_CXX='-non_shared'
! 11952: # CC pic flag -KPIC is the default.
! 11953: ;;
! 11954: *)
! 11955: ;;
! 11956: esac
! 11957: ;;
! 11958: linux*)
! 11959: case $cc_basename in
! 11960: KCC)
! 11961: # KAI C++ Compiler
! 11962: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 11963: lt_prog_compiler_pic_CXX='-fPIC'
! 11964: ;;
! 11965: icpc)
! 11966: # Intel C++
! 11967: lt_prog_compiler_wl_CXX='-Wl,'
! 11968: lt_prog_compiler_pic_CXX='-KPIC'
! 11969: lt_prog_compiler_static_CXX='-static'
! 11970: ;;
! 11971: cxx)
! 11972: # Compaq C++
! 11973: # Make sure the PIC flag is empty. It appears that all Alpha
! 11974: # Linux and Compaq Tru64 Unix objects are PIC.
! 11975: lt_prog_compiler_pic_CXX=
! 11976: lt_prog_compiler_static_CXX='-non_shared'
! 11977: ;;
! 11978: *)
! 11979: ;;
! 11980: esac
! 11981: ;;
! 11982: lynxos*)
! 11983: ;;
! 11984: m88k*)
! 11985: ;;
! 11986: mvs*)
! 11987: case $cc_basename in
! 11988: cxx)
! 11989: lt_prog_compiler_pic_CXX='-W c,exportall'
! 11990: ;;
! 11991: *)
! 11992: ;;
! 11993: esac
! 11994: ;;
! 11995: netbsd*)
! 11996: ;;
! 11997: osf3* | osf4* | osf5*)
! 11998: case $cc_basename in
! 11999: KCC)
! 12000: lt_prog_compiler_wl_CXX='--backend -Wl,'
! 12001: ;;
! 12002: RCC)
! 12003: # Rational C++ 2.4.1
! 12004: lt_prog_compiler_pic_CXX='-pic'
! 12005: ;;
! 12006: cxx)
! 12007: # Digital/Compaq C++
! 12008: lt_prog_compiler_wl_CXX='-Wl,'
! 12009: # Make sure the PIC flag is empty. It appears that all Alpha
! 12010: # Linux and Compaq Tru64 Unix objects are PIC.
! 12011: lt_prog_compiler_pic_CXX=
! 12012: lt_prog_compiler_static_CXX='-non_shared'
! 12013: ;;
! 12014: *)
! 12015: ;;
! 12016: esac
! 12017: ;;
! 12018: psos*)
! 12019: ;;
! 12020: sco*)
! 12021: case $cc_basename in
! 12022: CC)
! 12023: lt_prog_compiler_pic_CXX='-fPIC'
! 12024: ;;
! 12025: *)
! 12026: ;;
! 12027: esac
! 12028: ;;
! 12029: solaris*)
! 12030: case $cc_basename in
! 12031: CC)
! 12032: # Sun C++ 4.2, 5.x and Centerline C++
! 12033: lt_prog_compiler_pic_CXX='-KPIC'
! 12034: lt_prog_compiler_static_CXX='-Bstatic'
! 12035: lt_prog_compiler_wl_CXX='-Qoption ld '
! 12036: ;;
! 12037: gcx)
! 12038: # Green Hills C++ Compiler
! 12039: lt_prog_compiler_pic_CXX='-PIC'
! 12040: ;;
! 12041: *)
! 12042: ;;
! 12043: esac
! 12044: ;;
! 12045: sunos4*)
! 12046: case $cc_basename in
! 12047: CC)
! 12048: # Sun C++ 4.x
! 12049: lt_prog_compiler_pic_CXX='-pic'
! 12050: lt_prog_compiler_static_CXX='-Bstatic'
! 12051: ;;
! 12052: lcc)
! 12053: # Lucid
! 12054: lt_prog_compiler_pic_CXX='-pic'
! 12055: ;;
! 12056: *)
! 12057: ;;
! 12058: esac
! 12059: ;;
! 12060: tandem*)
! 12061: case $cc_basename in
! 12062: NCC)
! 12063: # NonStop-UX NCC 3.20
! 12064: lt_prog_compiler_pic_CXX='-KPIC'
! 12065: ;;
! 12066: *)
! 12067: ;;
! 12068: esac
! 12069: ;;
! 12070: unixware*)
! 12071: ;;
! 12072: vxworks*)
! 12073: ;;
! 12074: *)
! 12075: lt_prog_compiler_can_build_shared_CXX=no
! 12076: ;;
! 12077: esac
! 12078: fi
! 12079:
! 12080: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
! 12081: echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
! 12082:
! 12083: #
! 12084: # Check to make sure the PIC flag actually works.
! 12085: #
! 12086: if test -n "$lt_prog_compiler_pic_CXX"; then
! 12087: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
! 12088: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
! 12089: if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
! 12090: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12091: else
! 12092: lt_prog_compiler_pic_works_CXX=no
! 12093: ac_outfile=conftest.$ac_objext
! 12094: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 12095: lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
! 12096: # Insert the option either (1) after the last *FLAGS variable, or
! 12097: # (2) before a word containing "conftest.", or (3) at the end.
! 12098: # Note that $ac_compile itself does not contain backslashes and begins
! 12099: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 12100: # The option is referenced via a variable to avoid confusing sed.
! 12101: lt_compile=`echo "$ac_compile" | $SED \
! 12102: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 12103: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 12104: -e 's:$: $lt_compiler_flag:'`
! 12105: (eval echo "\"\$as_me:12105: $lt_compile\"" >&5)
! 12106: (eval "$lt_compile" 2>conftest.err)
! 12107: ac_status=$?
! 12108: cat conftest.err >&5
! 12109: echo "$as_me:12109: \$? = $ac_status" >&5
! 12110: if (exit $ac_status) && test -s "$ac_outfile"; then
! 12111: # The compiler can only warn and ignore the option if not recognized
! 12112: # So say no if there are warnings
! 12113: if test ! -s conftest.err; then
! 12114: lt_prog_compiler_pic_works_CXX=yes
! 12115: fi
! 12116: fi
! 12117: $rm conftest*
! 12118:
! 12119: fi
! 12120: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
! 12121: echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
! 12122:
! 12123: if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
! 12124: case $lt_prog_compiler_pic_CXX in
! 12125: "" | " "*) ;;
! 12126: *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
! 12127: esac
! 12128: else
! 12129: lt_prog_compiler_pic_CXX=
! 12130: lt_prog_compiler_can_build_shared_CXX=no
! 12131: fi
! 12132:
! 12133: fi
! 12134: case "$host_os" in
! 12135: # For platforms which do not support PIC, -DPIC is meaningless:
! 12136: *djgpp*)
! 12137: lt_prog_compiler_pic_CXX=
! 12138: ;;
! 12139: *)
! 12140: lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
! 12141: ;;
! 12142: esac
! 12143:
! 12144: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 12145: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 12146: if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
! 12147: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12148: else
! 12149: lt_cv_prog_compiler_c_o_CXX=no
! 12150: $rm -r conftest 2>/dev/null
! 12151: mkdir conftest
! 12152: cd conftest
! 12153: mkdir out
! 12154: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 12155:
! 12156: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 12157: # that will create temporary files in the current directory regardless of
! 12158: # the output directory. Thus, making CWD read-only will cause this test
! 12159: # to fail, enabling locking or at least warning the user not to do parallel
! 12160: # builds.
! 12161: chmod -w .
! 12162:
! 12163: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 12164: # Insert the option either (1) after the last *FLAGS variable, or
! 12165: # (2) before a word containing "conftest.", or (3) at the end.
! 12166: # Note that $ac_compile itself does not contain backslashes and begins
! 12167: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 12168: lt_compile=`echo "$ac_compile" | $SED \
! 12169: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 12170: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 12171: -e 's:$: $lt_compiler_flag:'`
! 12172: (eval echo "\"\$as_me:12172: $lt_compile\"" >&5)
! 12173: (eval "$lt_compile" 2>out/conftest.err)
! 12174: ac_status=$?
! 12175: cat out/conftest.err >&5
! 12176: echo "$as_me:12176: \$? = $ac_status" >&5
! 12177: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 12178: then
! 12179: # The compiler can only warn and ignore the option if not recognized
! 12180: # So say no if there are warnings
! 12181: if test ! -s out/conftest.err; then
! 12182: lt_cv_prog_compiler_c_o_CXX=yes
! 12183: fi
! 12184: fi
! 12185: chmod u+w .
! 12186: $rm conftest* out/*
! 12187: rmdir out
! 12188: cd ..
! 12189: rmdir conftest
! 12190: $rm conftest*
! 12191:
! 12192: fi
! 12193: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
! 12194: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
! 12195:
! 12196:
! 12197: hard_links="nottested"
! 12198: if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
! 12199: # do not overwrite the value of need_locks provided by the user
! 12200: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 12201: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 12202: hard_links=yes
! 12203: $rm conftest*
! 12204: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 12205: touch conftest.a
! 12206: ln conftest.a conftest.b 2>&5 || hard_links=no
! 12207: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 12208: echo "$as_me:$LINENO: result: $hard_links" >&5
! 12209: echo "${ECHO_T}$hard_links" >&6
! 12210: if test "$hard_links" = no; then
! 12211: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 12212: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 12213: need_locks=warn
! 12214: fi
! 12215: else
! 12216: need_locks=no
! 12217: fi
! 12218:
! 12219: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 12220: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 12221:
! 12222: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 12223: case $host_os in
! 12224: aix4* | aix5*)
! 12225: # If we're using GNU nm, then we don't want the "-C" option.
! 12226: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 12227: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 12228: export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 12229: else
! 12230: export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 12231: fi
! 12232: ;;
! 12233: pw32*)
! 12234: export_symbols_cmds_CXX="$ltdll_cmds"
! 12235: ;;
! 12236: cygwin* | mingw*)
! 12237: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
! 12238: ;;
! 12239: *)
! 12240: export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 12241: ;;
! 12242: esac
! 12243:
! 12244: echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
! 12245: echo "${ECHO_T}$ld_shlibs_CXX" >&6
! 12246: test "$ld_shlibs_CXX" = no && can_build_shared=no
! 12247:
! 12248: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 12249: if test "$GCC" = yes; then
! 12250: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 12251: fi
! 12252:
! 12253: #
! 12254: # Do we need to explicitly link libc?
! 12255: #
! 12256: case "x$archive_cmds_need_lc_CXX" in
! 12257: x|xyes)
! 12258: # Assume -lc should be added
! 12259: archive_cmds_need_lc_CXX=yes
! 12260:
! 12261: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 12262: case $archive_cmds_CXX in
! 12263: *'~'*)
! 12264: # FIXME: we may have to deal with multi-command sequences.
! 12265: ;;
! 12266: '$CC '*)
! 12267: # Test whether the compiler implicitly links with -lc since on some
! 12268: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 12269: # to ld, don't add -lc before -lgcc.
! 12270: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 12271: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 12272: $rm conftest*
! 12273: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 12274:
! 12275: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 12276: (eval $ac_compile) 2>&5
! 12277: ac_status=$?
! 12278: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12279: (exit $ac_status); } 2>conftest.err; then
! 12280: soname=conftest
! 12281: lib=conftest
! 12282: libobjs=conftest.$ac_objext
! 12283: deplibs=
! 12284: wl=$lt_prog_compiler_wl_CXX
! 12285: compiler_flags=-v
! 12286: linker_flags=-v
! 12287: verstring=
! 12288: output_objdir=.
! 12289: libname=conftest
! 12290: lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
! 12291: allow_undefined_flag_CXX=
! 12292: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 12293: (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 12294: ac_status=$?
! 12295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12296: (exit $ac_status); }
! 12297: then
! 12298: archive_cmds_need_lc_CXX=no
! 12299: else
! 12300: archive_cmds_need_lc_CXX=yes
! 12301: fi
! 12302: allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
! 12303: else
! 12304: cat conftest.err 1>&5
! 12305: fi
! 12306: $rm conftest*
! 12307: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
! 12308: echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
! 12309: ;;
! 12310: esac
! 12311: fi
! 12312: ;;
! 12313: esac
! 12314:
! 12315: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 12316: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 12317: hardcode_action_CXX=
! 12318: if test -n "$hardcode_libdir_flag_spec_CXX" || \
! 12319: test -n "$runpath_var CXX" || \
! 12320: test "X$hardcode_automatic_CXX"="Xyes" ; then
! 12321:
! 12322: # We can hardcode non-existant directories.
! 12323: if test "$hardcode_direct_CXX" != no &&
! 12324: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 12325: # have to relink, otherwise we might link with an installed library
! 12326: # when we should be linking with a yet-to-be-installed one
! 12327: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
! 12328: test "$hardcode_minus_L_CXX" != no; then
! 12329: # Linking always hardcodes the temporary library directory.
! 12330: hardcode_action_CXX=relink
! 12331: else
! 12332: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 12333: hardcode_action_CXX=immediate
! 12334: fi
! 12335: else
! 12336: # We cannot hardcode anything, or else we can only hardcode existing
! 12337: # directories.
! 12338: hardcode_action_CXX=unsupported
! 12339: fi
! 12340: echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
! 12341: echo "${ECHO_T}$hardcode_action_CXX" >&6
! 12342:
! 12343: if test "$hardcode_action_CXX" = relink; then
! 12344: # Fast installation is not supported
! 12345: enable_fast_install=no
! 12346: elif test "$shlibpath_overrides_runpath" = yes ||
! 12347: test "$enable_shared" = no; then
! 12348: # Fast installation is not necessary
! 12349: enable_fast_install=needless
! 12350: fi
! 12351:
! 12352: striplib=
! 12353: old_striplib=
! 12354: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 12355: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 12356: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 12357: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 12358: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 12359: echo "$as_me:$LINENO: result: yes" >&5
! 12360: echo "${ECHO_T}yes" >&6
! 12361: else
! 12362: # FIXME - insert some real tests, host_os isn't really good enough
! 12363: case $host_os in
! 12364: darwin*)
! 12365: if test -n "$STRIP" ; then
! 12366: striplib="$STRIP -x"
! 12367: echo "$as_me:$LINENO: result: yes" >&5
! 12368: echo "${ECHO_T}yes" >&6
! 12369: else
! 12370: echo "$as_me:$LINENO: result: no" >&5
! 12371: echo "${ECHO_T}no" >&6
! 12372: fi
! 12373: ;;
! 12374: *)
! 12375: echo "$as_me:$LINENO: result: no" >&5
! 12376: echo "${ECHO_T}no" >&6
! 12377: ;;
! 12378: esac
! 12379: fi
! 12380:
! 12381: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 12382: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 12383: library_names_spec=
! 12384: libname_spec='lib$name'
! 12385: soname_spec=
! 12386: shrext=".so"
! 12387: postinstall_cmds=
! 12388: postuninstall_cmds=
! 12389: finish_cmds=
! 12390: finish_eval=
! 12391: shlibpath_var=
! 12392: shlibpath_overrides_runpath=unknown
! 12393: version_type=none
! 12394: dynamic_linker="$host_os ld.so"
! 12395: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 12396: if test "$GCC" = yes; then
! 12397: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 12398: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 12399: # if the path contains ";" then we assume it to be the separator
! 12400: # otherwise default to the standard path separator (i.e. ":") - it is
! 12401: # assumed that no part of a normal pathname contains ";" but that should
! 12402: # okay in the real world where ";" in dirpaths is itself problematic.
! 12403: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 12404: else
! 12405: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 12406: fi
! 12407: else
! 12408: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 12409: fi
! 12410: need_lib_prefix=no
! 12411: hardcode_into_libs=no
! 12412:
! 12413: # when you set need_version to no, make sure it does not cause -set_version
! 12414: # flags to be left without arguments
! 12415: need_version=no
! 12416:
! 12417: case $host_os in
! 12418: aix3*)
! 12419: version_type=linux
! 12420: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 12421: shlibpath_var=LIBPATH
! 12422:
! 12423: # AIX 3 has no versioning support, so we append a major version to the name.
! 12424: soname_spec='${libname}${release}${shared_ext}$major'
! 12425: ;;
! 12426:
! 12427: aix4* | aix5*)
! 12428: version_type=linux
! 12429: hardcode_into_libs=yes
! 12430: if test "$host_cpu" = ia64; then
! 12431: # AIX 5 supports IA64
! 12432: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 12433: shlibpath_var=LD_LIBRARY_PATH
! 12434: else
! 12435: # With GCC up to 2.95.x, collect2 would create an import file
! 12436: # for dependence libraries. The import file would start with
! 12437: # the line `#! .'. This would cause the generated library to
! 12438: # depend on `.', always an invalid library. This was fixed in
! 12439: # development snapshots of GCC prior to 3.0.
! 12440: case $host_os in
! 12441: aix4 | aix4.[01] | aix4.[01].*)
! 12442: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 12443: echo ' yes '
! 12444: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 12445: :
! 12446: else
! 12447: can_build_shared=no
! 12448: fi
! 12449: ;;
! 12450: esac
! 12451: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 12452: # soname into executable. Probably we can add versioning support to
! 12453: # collect2, so additional links can be useful in future.
! 12454: if test "$aix_use_runtimelinking" = yes; then
! 12455: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 12456: # instead of lib<name>.a to let people know that these are not
! 12457: # typical AIX shared libraries.
! 12458: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12459: else
! 12460: # We preserve .a as extension for shared libraries through AIX4.2
! 12461: # and later when we are not doing run time linking.
! 12462: library_names_spec='${libname}${release}.a $libname.a'
! 12463: soname_spec='${libname}${release}${shared_ext}$major'
! 12464: fi
! 12465: shlibpath_var=LIBPATH
! 12466: fi
! 12467: ;;
! 12468:
! 12469: amigaos*)
! 12470: library_names_spec='$libname.ixlibrary $libname.a'
! 12471: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 12472: 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'
! 12473: ;;
! 12474:
! 12475: beos*)
! 12476: library_names_spec='${libname}${shared_ext}'
! 12477: dynamic_linker="$host_os ld.so"
! 12478: shlibpath_var=LIBRARY_PATH
! 12479: ;;
! 12480:
! 12481: bsdi4*)
! 12482: version_type=linux
! 12483: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12484: soname_spec='${libname}${release}${shared_ext}$major'
! 12485: #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 12486: shlibpath_var=LD_LIBRARY_PATH
! 12487: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 12488: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 12489: # the default ld.so.conf also contains /usr/contrib/lib and
! 12490: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 12491: # libtool to hard-code these into programs
! 12492: ;;
! 12493:
! 12494: cygwin* | mingw* | pw32*)
! 12495: version_type=windows
! 12496: shrext=".dll"
! 12497:
! 12498: case $GCC,$host_os in
! 12499: yes,cygwin* | yes,mingw* | yes,pw32*)
! 12500: library_names_spec='$libname.dll.a'
! 12501: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 12502: postinstall_cmds='base_file=`basename \${file}`~
! 12503: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 12504: dldir=$destdir/`dirname \$dlpath`~
! 12505: test -d \$dldir || mkdir -p \$dldir~
! 12506: $install_prog $dir/$dlname \$dldir/$dlname'
! 12507: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 12508: dlpath=$dir/\$dldll~
! 12509: $rm \$dlpath'
! 12510: shlibpath_overrides_runpath=yes
! 12511:
! 12512: case $host_os in
! 12513: cygwin*)
! 12514: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 12515: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 12516: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
! 12517: ;;
! 12518: mingw*)
! 12519: # MinGW DLLs use traditional 'lib' prefix
! 12520: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 12521: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 12522: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 12523: # It is most probably a Windows format PATH printed by
! 12524: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 12525: # path with ; separators, and with drive letters. We can handle the
! 12526: # drive letters (cygwin fileutils understands them), so leave them,
! 12527: # especially as we might pass files found there to a mingw objdump,
! 12528: # which wouldn't understand a cygwinified path. Ahh.
! 12529: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 12530: else
! 12531: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 12532: fi
! 12533: ;;
! 12534: pw32*)
! 12535: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 12536: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
! 12537: ;;
! 12538: esac
! 12539: ;;
! 12540:
! 12541: *)
! 12542: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 12543: ;;
! 12544: esac
! 12545: dynamic_linker='Win32 ld.exe'
! 12546: # FIXME: first we should search . and the directory the executable is in
! 12547: shlibpath_var=PATH
! 12548: ;;
! 12549:
! 12550: darwin* | rhapsody*)
! 12551: dynamic_linker="$host_os dyld"
! 12552: version_type=darwin
! 12553: # FIXME: Relying on posixy $() will cause problems for
! 12554: # cross-compilation, but unfortunately the echo tests do not
! 12555: # yet detect zsh echo's removal of \ escapes.
! 12556: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 12557: soname_spec='${libname}${release}${major}$shared_ext'
! 12558: shlibpath_overrides_runpath=yes
! 12559: shlibpath_var=DYLD_LIBRARY_PATH
! 12560: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
! 12561: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 12562: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 12563: 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"`
! 12564: fi
! 12565: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 12566: ;;
! 12567:
! 12568: dgux*)
! 12569: version_type=linux
! 12570: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 12571: soname_spec='${libname}${release}${shared_ext}$major'
! 12572: shlibpath_var=LD_LIBRARY_PATH
! 12573: ;;
! 12574:
! 12575: freebsd1*)
! 12576: dynamic_linker=no
! 12577: ;;
! 12578:
! 12579: freebsd*)
! 12580: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 12581: version_type=freebsd-$objformat
! 12582: case $version_type in
! 12583: freebsd-elf*)
! 12584: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 12585: ;;
! 12586: freebsd-*)
! 12587: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 12588: ;;
! 12589: esac
! 12590: shlibpath_var=LD_LIBRARY_PATH
! 12591: case $host_os in
! 12592: freebsd2*)
! 12593: shlibpath_overrides_runpath=yes
! 12594: ;;
! 12595: freebsd3.01* | freebsdelf3.01*)
! 12596: shlibpath_overrides_runpath=yes
! 12597: hardcode_into_libs=yes
! 12598: ;;
! 12599: *) # from 3.2 on
! 12600: shlibpath_overrides_runpath=no
! 12601: hardcode_into_libs=yes
! 12602: ;;
! 12603: esac
! 12604: ;;
! 12605:
! 12606: gnu*)
! 12607: version_type=linux
! 12608: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 12609: soname_spec='${libname}${release}${shared_ext}$major'
! 12610: shlibpath_var=LD_LIBRARY_PATH
! 12611: hardcode_into_libs=yes
! 12612: ;;
! 12613:
! 12614: hpux9* | hpux10* | hpux11*)
! 12615: # Give a soname corresponding to the major version so that dld.sl refuses to
! 12616: # link against other versions.
! 12617: version_type=sunos
! 12618: case "$host_cpu" in
! 12619: ia64*)
! 12620: shrext='.so'
! 12621: hardcode_into_libs=yes
! 12622: dynamic_linker="$host_os dld.so"
! 12623: shlibpath_var=LD_LIBRARY_PATH
! 12624: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 12625: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12626: soname_spec='${libname}${release}${shared_ext}$major'
! 12627: if test "X$HPUX_IA64_MODE" = X32; then
! 12628: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 12629: else
! 12630: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 12631: fi
! 12632: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 12633: ;;
! 12634: hppa*64*)
! 12635: shrext='.sl'
! 12636: hardcode_into_libs=yes
! 12637: dynamic_linker="$host_os dld.sl"
! 12638: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 12639: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 12640: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12641: soname_spec='${libname}${release}${shared_ext}$major'
! 12642: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 12643: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 12644: ;;
! 12645: *)
! 12646: shrext='.sl'
! 12647: dynamic_linker="$host_os dld.sl"
! 12648: shlibpath_var=SHLIB_PATH
! 12649: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 12650: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12651: soname_spec='${libname}${release}${shared_ext}$major'
! 12652: ;;
! 12653: esac
! 12654: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 12655: postinstall_cmds='chmod 555 $lib'
! 12656: ;;
! 12657:
! 12658: irix5* | irix6* | nonstopux*)
! 12659: case $host_os in
! 12660: nonstopux*) version_type=nonstopux ;;
! 12661: *)
! 12662: if test "$lt_cv_prog_gnu_ld" = yes; then
! 12663: version_type=linux
! 12664: else
! 12665: version_type=irix
! 12666: fi ;;
! 12667: esac
! 12668: soname_spec='${libname}${release}${shared_ext}$major'
! 12669: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 12670: case $host_os in
! 12671: irix5* | nonstopux*)
! 12672: libsuff= shlibsuff=
! 12673: ;;
! 12674: *)
! 12675: case $LD in # libtool.m4 will add one of these switches to LD
! 12676: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 12677: libsuff= shlibsuff= libmagic=32-bit;;
! 12678: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 12679: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 12680: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 12681: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 12682: *) libsuff= shlibsuff= libmagic=never-match;;
! 12683: esac
! 12684: ;;
! 12685: esac
! 12686: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 12687: shlibpath_overrides_runpath=no
! 12688: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 12689: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 12690: hardcode_into_libs=yes
! 12691: ;;
! 12692:
! 12693: # No shared lib support for Linux oldld, aout, or coff.
! 12694: linux*oldld* | linux*aout* | linux*coff*)
! 12695: dynamic_linker=no
! 12696: ;;
! 12697:
! 12698: # This must be Linux ELF.
! 12699: linux*)
! 12700: version_type=linux
! 12701: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12702: soname_spec='${libname}${release}${shared_ext}$major'
! 12703: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 12704: shlibpath_var=LD_LIBRARY_PATH
! 12705: shlibpath_overrides_runpath=no
! 12706: # This implies no fast_install, which is unacceptable.
! 12707: # Some rework will be needed to allow for fast_install
! 12708: # before this can be enabled.
! 12709: hardcode_into_libs=yes
! 12710:
! 12711: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 12712: # powerpc, because MkLinux only supported shared libraries with the
! 12713: # GNU dynamic linker. Since this was broken with cross compilers,
! 12714: # most powerpc-linux boxes support dynamic linking these days and
! 12715: # people can always --disable-shared, the test was removed, and we
! 12716: # assume the GNU/Linux dynamic linker is in use.
! 12717: dynamic_linker='GNU/Linux ld.so'
! 12718: ;;
! 12719:
! 12720: netbsd*)
! 12721: version_type=sunos
! 12722: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 12723: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 12724: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 12725: dynamic_linker='NetBSD (a.out) ld.so'
! 12726: else
! 12727: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
! 12728: soname_spec='${libname}${release}${shared_ext}$major'
! 12729: dynamic_linker='NetBSD ld.elf_so'
! 12730: fi
! 12731: shlibpath_var=LD_LIBRARY_PATH
! 12732: shlibpath_overrides_runpath=yes
! 12733: hardcode_into_libs=yes
! 12734: ;;
! 12735:
! 12736: newsos6)
! 12737: version_type=linux
! 12738: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12739: shlibpath_var=LD_LIBRARY_PATH
! 12740: shlibpath_overrides_runpath=yes
! 12741: ;;
! 12742:
! 12743: nto-qnx)
! 12744: version_type=linux
! 12745: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12746: soname_spec='${libname}${release}${shared_ext}$major'
! 12747: shlibpath_var=LD_LIBRARY_PATH
! 12748: shlibpath_overrides_runpath=yes
! 12749: ;;
! 12750:
! 12751: openbsd*)
! 12752: version_type=sunos
! 12753: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 12754: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 12755: shlibpath_var=LD_LIBRARY_PATH
! 12756: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 12757: dynamic_linker='OpenBSD (ELF) ld.so'
! 12758: case $host_os in
! 12759: openbsd2.[89] | openbsd2.[89].*)
! 12760: shlibpath_overrides_runpath=no
! 12761: ;;
! 12762: *)
! 12763: shlibpath_overrides_runpath=yes
! 12764: ;;
! 12765: esac
! 12766: else
! 12767: dynamic_linker='OpenBSD (a.out) ld.so'
! 12768: shlibpath_overrides_runpath=yes
! 12769: fi
! 12770: ;;
! 12771:
! 12772: os2*)
! 12773: libname_spec='$name'
! 12774: shrext=".dll"
! 12775: library_names_spec='$libname${shared_ext} $libname.a'
! 12776: dynamic_linker='OS/2 ld.exe'
! 12777: shlibpath_var=LIBPATH
! 12778: ;;
! 12779:
! 12780: osf3* | osf4* | osf5*)
! 12781: version_type=osf
! 12782: soname_spec='${libname}${release}${shared_ext}$major'
! 12783: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12784: shlibpath_var=LD_LIBRARY_PATH
! 12785: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 12786: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 12787: ;;
! 12788:
! 12789: sco3.2v5*)
! 12790: version_type=osf
! 12791: soname_spec='${libname}${release}${shared_ext}$major'
! 12792: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12793: shlibpath_var=LD_LIBRARY_PATH
! 12794: ;;
! 12795:
! 12796: solaris*)
! 12797: version_type=linux
! 12798: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12799: soname_spec='${libname}${release}${shared_ext}$major'
! 12800: shlibpath_var=LD_LIBRARY_PATH
! 12801: shlibpath_overrides_runpath=yes
! 12802: hardcode_into_libs=yes
! 12803: # ldd complains unless libraries are executable
! 12804: postinstall_cmds='chmod +x $lib'
! 12805: ;;
! 12806:
! 12807: sunos4*)
! 12808: version_type=sunos
! 12809: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 12810: #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 12811: shlibpath_var=LD_LIBRARY_PATH
! 12812: shlibpath_overrides_runpath=yes
! 12813: ;;
! 12814:
! 12815: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 12816: version_type=linux
! 12817: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12818: soname_spec='${libname}${release}${shared_ext}$major'
! 12819: shlibpath_var=LD_LIBRARY_PATH
! 12820: case $host_vendor in
! 12821: sni)
! 12822: shlibpath_overrides_runpath=no
! 12823: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 12824: runpath_var=LD_RUN_PATH
! 12825: ;;
! 12826: motorola)
! 12827: shlibpath_overrides_runpath=no
! 12828: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 12829: ;;
! 12830: esac
! 12831: ;;
! 12832:
! 12833: sysv4*MP*)
! 12834: if test -d /usr/nec ;then
! 12835: version_type=linux
! 12836: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 12837: soname_spec='$libname${shared_ext}.$major'
! 12838: shlibpath_var=LD_LIBRARY_PATH
! 12839: fi
! 12840: ;;
! 12841:
! 12842: uts4*)
! 12843: version_type=linux
! 12844: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 12845: soname_spec='${libname}${release}${shared_ext}$major'
! 12846: shlibpath_var=LD_LIBRARY_PATH
! 12847: ;;
! 12848:
! 12849: *)
! 12850: dynamic_linker=no
! 12851: ;;
! 12852: esac
! 12853: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 12854: echo "${ECHO_T}$dynamic_linker" >&6
! 12855: test "$dynamic_linker" = no && can_build_shared=no
! 12856:
! 12857: if test "x$enable_dlopen" != xyes; then
! 12858: enable_dlopen=unknown
! 12859: enable_dlopen_self=unknown
! 12860: enable_dlopen_self_static=unknown
! 12861: else
! 12862: lt_cv_dlopen=no
! 12863: lt_cv_dlopen_libs=
! 12864:
! 12865: case $host_os in
! 12866: beos*)
! 12867: lt_cv_dlopen="load_add_on"
! 12868: lt_cv_dlopen_libs=
! 12869: lt_cv_dlopen_self=yes
! 12870: ;;
! 12871:
! 12872: mingw* | pw32*)
! 12873: lt_cv_dlopen="LoadLibrary"
! 12874: lt_cv_dlopen_libs=
! 12875: ;;
! 12876:
! 12877: cygwin*)
! 12878: lt_cv_dlopen="dlopen"
! 12879: lt_cv_dlopen_libs=
! 12880: ;;
! 12881:
! 12882: darwin*)
! 12883: # if libdl is installed we need to link against it
! 12884: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 12885: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 12886: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 12887: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12888: else
! 12889: ac_check_lib_save_LIBS=$LIBS
! 12890: LIBS="-ldl $LIBS"
! 12891: cat >conftest.$ac_ext <<_ACEOF
! 12892: #line $LINENO "configure"
! 12893: /* confdefs.h. */
! 12894: _ACEOF
! 12895: cat confdefs.h >>conftest.$ac_ext
! 12896: cat >>conftest.$ac_ext <<_ACEOF
! 12897: /* end confdefs.h. */
! 12898:
! 12899: /* Override any gcc2 internal prototype to avoid an error. */
! 12900: #ifdef __cplusplus
! 12901: extern "C"
! 12902: #endif
! 12903: /* We use char because int might match the return type of a gcc2
! 12904: builtin and then its argument prototype would still apply. */
! 12905: char dlopen ();
! 12906: int
! 12907: main ()
! 12908: {
! 12909: dlopen ();
! 12910: ;
! 12911: return 0;
! 12912: }
! 12913: _ACEOF
! 12914: rm -f conftest.$ac_objext conftest$ac_exeext
! 12915: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 12916: (eval $ac_link) 2>&5
! 12917: ac_status=$?
! 12918: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12919: (exit $ac_status); } &&
! 12920: { ac_try='test -s conftest$ac_exeext'
! 12921: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 12922: (eval $ac_try) 2>&5
! 12923: ac_status=$?
! 12924: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 12925: (exit $ac_status); }; }; then
! 12926: ac_cv_lib_dl_dlopen=yes
! 12927: else
! 12928: echo "$as_me: failed program was:" >&5
! 12929: sed 's/^/| /' conftest.$ac_ext >&5
! 12930:
! 12931: ac_cv_lib_dl_dlopen=no
! 12932: fi
! 12933: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 12934: LIBS=$ac_check_lib_save_LIBS
! 12935: fi
! 12936: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 12937: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 12938: if test $ac_cv_lib_dl_dlopen = yes; then
! 12939: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 12940: else
! 12941:
! 12942: lt_cv_dlopen="dyld"
! 12943: lt_cv_dlopen_libs=
! 12944: lt_cv_dlopen_self=yes
! 12945:
! 12946: fi
! 12947:
! 12948: ;;
! 12949:
! 12950: *)
! 12951: echo "$as_me:$LINENO: checking for shl_load" >&5
! 12952: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 12953: if test "${ac_cv_func_shl_load+set}" = set; then
! 12954: echo $ECHO_N "(cached) $ECHO_C" >&6
! 12955: else
! 12956: cat >conftest.$ac_ext <<_ACEOF
! 12957: #line $LINENO "configure"
! 12958: /* confdefs.h. */
! 12959: _ACEOF
! 12960: cat confdefs.h >>conftest.$ac_ext
! 12961: cat >>conftest.$ac_ext <<_ACEOF
! 12962: /* end confdefs.h. */
! 12963: /* System header to define __stub macros and hopefully few prototypes,
! 12964: which can conflict with char shl_load (); below.
! 12965: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 12966: <limits.h> exists even on freestanding compilers. */
! 12967: #ifdef __STDC__
! 12968: # include <limits.h>
! 12969: #else
! 12970: # include <assert.h>
! 12971: #endif
! 12972: /* Override any gcc2 internal prototype to avoid an error. */
! 12973: #ifdef __cplusplus
! 12974: extern "C"
! 12975: {
! 12976: #endif
! 12977: /* We use char because int might match the return type of a gcc2
! 12978: builtin and then its argument prototype would still apply. */
! 12979: char shl_load ();
! 12980: /* The GNU C library defines this for functions which it implements
! 12981: to always fail with ENOSYS. Some functions are actually named
! 12982: something starting with __ and the normal name is an alias. */
! 12983: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 12984: choke me
! 12985: #else
! 12986: char (*f) () = shl_load;
! 12987: #endif
! 12988: #ifdef __cplusplus
! 12989: }
! 12990: #endif
! 12991:
! 12992: int
! 12993: main ()
! 12994: {
! 12995: return f != shl_load;
! 12996: ;
! 12997: return 0;
! 12998: }
! 12999: _ACEOF
! 13000: rm -f conftest.$ac_objext conftest$ac_exeext
! 13001: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13002: (eval $ac_link) 2>&5
! 13003: ac_status=$?
! 13004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13005: (exit $ac_status); } &&
! 13006: { ac_try='test -s conftest$ac_exeext'
! 13007: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13008: (eval $ac_try) 2>&5
! 13009: ac_status=$?
! 13010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13011: (exit $ac_status); }; }; then
! 13012: ac_cv_func_shl_load=yes
! 13013: else
! 13014: echo "$as_me: failed program was:" >&5
! 13015: sed 's/^/| /' conftest.$ac_ext >&5
! 13016:
! 13017: ac_cv_func_shl_load=no
! 13018: fi
! 13019: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13020: fi
! 13021: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 13022: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 13023: if test $ac_cv_func_shl_load = yes; then
! 13024: lt_cv_dlopen="shl_load"
! 13025: else
! 13026: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 13027: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 13028: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 13029: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13030: else
! 13031: ac_check_lib_save_LIBS=$LIBS
! 13032: LIBS="-ldld $LIBS"
! 13033: cat >conftest.$ac_ext <<_ACEOF
! 13034: #line $LINENO "configure"
! 13035: /* confdefs.h. */
! 13036: _ACEOF
! 13037: cat confdefs.h >>conftest.$ac_ext
! 13038: cat >>conftest.$ac_ext <<_ACEOF
! 13039: /* end confdefs.h. */
! 13040:
! 13041: /* Override any gcc2 internal prototype to avoid an error. */
! 13042: #ifdef __cplusplus
! 13043: extern "C"
! 13044: #endif
! 13045: /* We use char because int might match the return type of a gcc2
! 13046: builtin and then its argument prototype would still apply. */
! 13047: char shl_load ();
! 13048: int
! 13049: main ()
! 13050: {
! 13051: shl_load ();
! 13052: ;
! 13053: return 0;
! 13054: }
! 13055: _ACEOF
! 13056: rm -f conftest.$ac_objext conftest$ac_exeext
! 13057: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13058: (eval $ac_link) 2>&5
! 13059: ac_status=$?
! 13060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13061: (exit $ac_status); } &&
! 13062: { ac_try='test -s conftest$ac_exeext'
! 13063: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13064: (eval $ac_try) 2>&5
! 13065: ac_status=$?
! 13066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13067: (exit $ac_status); }; }; then
! 13068: ac_cv_lib_dld_shl_load=yes
! 13069: else
! 13070: echo "$as_me: failed program was:" >&5
! 13071: sed 's/^/| /' conftest.$ac_ext >&5
! 13072:
! 13073: ac_cv_lib_dld_shl_load=no
! 13074: fi
! 13075: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13076: LIBS=$ac_check_lib_save_LIBS
! 13077: fi
! 13078: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 13079: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 13080: if test $ac_cv_lib_dld_shl_load = yes; then
! 13081: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 13082: else
! 13083: echo "$as_me:$LINENO: checking for dlopen" >&5
! 13084: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 13085: if test "${ac_cv_func_dlopen+set}" = set; then
! 13086: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13087: else
! 13088: cat >conftest.$ac_ext <<_ACEOF
! 13089: #line $LINENO "configure"
! 13090: /* confdefs.h. */
! 13091: _ACEOF
! 13092: cat confdefs.h >>conftest.$ac_ext
! 13093: cat >>conftest.$ac_ext <<_ACEOF
! 13094: /* end confdefs.h. */
! 13095: /* System header to define __stub macros and hopefully few prototypes,
! 13096: which can conflict with char dlopen (); below.
! 13097: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 13098: <limits.h> exists even on freestanding compilers. */
! 13099: #ifdef __STDC__
! 13100: # include <limits.h>
! 13101: #else
! 13102: # include <assert.h>
! 13103: #endif
! 13104: /* Override any gcc2 internal prototype to avoid an error. */
! 13105: #ifdef __cplusplus
! 13106: extern "C"
! 13107: {
! 13108: #endif
! 13109: /* We use char because int might match the return type of a gcc2
! 13110: builtin and then its argument prototype would still apply. */
! 13111: char dlopen ();
! 13112: /* The GNU C library defines this for functions which it implements
! 13113: to always fail with ENOSYS. Some functions are actually named
! 13114: something starting with __ and the normal name is an alias. */
! 13115: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 13116: choke me
! 13117: #else
! 13118: char (*f) () = dlopen;
! 13119: #endif
! 13120: #ifdef __cplusplus
! 13121: }
! 13122: #endif
! 13123:
! 13124: int
! 13125: main ()
! 13126: {
! 13127: return f != dlopen;
! 13128: ;
! 13129: return 0;
! 13130: }
! 13131: _ACEOF
! 13132: rm -f conftest.$ac_objext conftest$ac_exeext
! 13133: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13134: (eval $ac_link) 2>&5
! 13135: ac_status=$?
! 13136: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13137: (exit $ac_status); } &&
! 13138: { ac_try='test -s conftest$ac_exeext'
! 13139: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13140: (eval $ac_try) 2>&5
! 13141: ac_status=$?
! 13142: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13143: (exit $ac_status); }; }; then
! 13144: ac_cv_func_dlopen=yes
! 13145: else
! 13146: echo "$as_me: failed program was:" >&5
! 13147: sed 's/^/| /' conftest.$ac_ext >&5
! 13148:
! 13149: ac_cv_func_dlopen=no
! 13150: fi
! 13151: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13152: fi
! 13153: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 13154: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 13155: if test $ac_cv_func_dlopen = yes; then
! 13156: lt_cv_dlopen="dlopen"
! 13157: else
! 13158: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 13159: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 13160: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 13161: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13162: else
! 13163: ac_check_lib_save_LIBS=$LIBS
! 13164: LIBS="-ldl $LIBS"
! 13165: cat >conftest.$ac_ext <<_ACEOF
! 13166: #line $LINENO "configure"
! 13167: /* confdefs.h. */
! 13168: _ACEOF
! 13169: cat confdefs.h >>conftest.$ac_ext
! 13170: cat >>conftest.$ac_ext <<_ACEOF
! 13171: /* end confdefs.h. */
! 13172:
! 13173: /* Override any gcc2 internal prototype to avoid an error. */
! 13174: #ifdef __cplusplus
! 13175: extern "C"
! 13176: #endif
! 13177: /* We use char because int might match the return type of a gcc2
! 13178: builtin and then its argument prototype would still apply. */
! 13179: char dlopen ();
! 13180: int
! 13181: main ()
! 13182: {
! 13183: dlopen ();
! 13184: ;
! 13185: return 0;
! 13186: }
! 13187: _ACEOF
! 13188: rm -f conftest.$ac_objext conftest$ac_exeext
! 13189: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13190: (eval $ac_link) 2>&5
! 13191: ac_status=$?
! 13192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13193: (exit $ac_status); } &&
! 13194: { ac_try='test -s conftest$ac_exeext'
! 13195: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13196: (eval $ac_try) 2>&5
! 13197: ac_status=$?
! 13198: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13199: (exit $ac_status); }; }; then
! 13200: ac_cv_lib_dl_dlopen=yes
! 13201: else
! 13202: echo "$as_me: failed program was:" >&5
! 13203: sed 's/^/| /' conftest.$ac_ext >&5
! 13204:
! 13205: ac_cv_lib_dl_dlopen=no
! 13206: fi
! 13207: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13208: LIBS=$ac_check_lib_save_LIBS
! 13209: fi
! 13210: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 13211: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 13212: if test $ac_cv_lib_dl_dlopen = yes; then
! 13213: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 13214: else
! 13215: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 13216: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 13217: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 13218: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13219: else
! 13220: ac_check_lib_save_LIBS=$LIBS
! 13221: LIBS="-lsvld $LIBS"
! 13222: cat >conftest.$ac_ext <<_ACEOF
! 13223: #line $LINENO "configure"
! 13224: /* confdefs.h. */
! 13225: _ACEOF
! 13226: cat confdefs.h >>conftest.$ac_ext
! 13227: cat >>conftest.$ac_ext <<_ACEOF
! 13228: /* end confdefs.h. */
! 13229:
! 13230: /* Override any gcc2 internal prototype to avoid an error. */
! 13231: #ifdef __cplusplus
! 13232: extern "C"
! 13233: #endif
! 13234: /* We use char because int might match the return type of a gcc2
! 13235: builtin and then its argument prototype would still apply. */
! 13236: char dlopen ();
! 13237: int
! 13238: main ()
! 13239: {
! 13240: dlopen ();
! 13241: ;
! 13242: return 0;
! 13243: }
! 13244: _ACEOF
! 13245: rm -f conftest.$ac_objext conftest$ac_exeext
! 13246: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13247: (eval $ac_link) 2>&5
! 13248: ac_status=$?
! 13249: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13250: (exit $ac_status); } &&
! 13251: { ac_try='test -s conftest$ac_exeext'
! 13252: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13253: (eval $ac_try) 2>&5
! 13254: ac_status=$?
! 13255: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13256: (exit $ac_status); }; }; then
! 13257: ac_cv_lib_svld_dlopen=yes
! 13258: else
! 13259: echo "$as_me: failed program was:" >&5
! 13260: sed 's/^/| /' conftest.$ac_ext >&5
! 13261:
! 13262: ac_cv_lib_svld_dlopen=no
! 13263: fi
! 13264: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13265: LIBS=$ac_check_lib_save_LIBS
! 13266: fi
! 13267: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 13268: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 13269: if test $ac_cv_lib_svld_dlopen = yes; then
! 13270: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 13271: else
! 13272: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 13273: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 13274: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 13275: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13276: else
! 13277: ac_check_lib_save_LIBS=$LIBS
! 13278: LIBS="-ldld $LIBS"
! 13279: cat >conftest.$ac_ext <<_ACEOF
! 13280: #line $LINENO "configure"
! 13281: /* confdefs.h. */
! 13282: _ACEOF
! 13283: cat confdefs.h >>conftest.$ac_ext
! 13284: cat >>conftest.$ac_ext <<_ACEOF
! 13285: /* end confdefs.h. */
! 13286:
! 13287: /* Override any gcc2 internal prototype to avoid an error. */
! 13288: #ifdef __cplusplus
! 13289: extern "C"
! 13290: #endif
! 13291: /* We use char because int might match the return type of a gcc2
! 13292: builtin and then its argument prototype would still apply. */
! 13293: char dld_link ();
! 13294: int
! 13295: main ()
! 13296: {
! 13297: dld_link ();
! 13298: ;
! 13299: return 0;
! 13300: }
! 13301: _ACEOF
! 13302: rm -f conftest.$ac_objext conftest$ac_exeext
! 13303: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13304: (eval $ac_link) 2>&5
! 13305: ac_status=$?
! 13306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13307: (exit $ac_status); } &&
! 13308: { ac_try='test -s conftest$ac_exeext'
! 13309: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 13310: (eval $ac_try) 2>&5
! 13311: ac_status=$?
! 13312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13313: (exit $ac_status); }; }; then
! 13314: ac_cv_lib_dld_dld_link=yes
! 13315: else
! 13316: echo "$as_me: failed program was:" >&5
! 13317: sed 's/^/| /' conftest.$ac_ext >&5
! 13318:
! 13319: ac_cv_lib_dld_dld_link=no
! 13320: fi
! 13321: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 13322: LIBS=$ac_check_lib_save_LIBS
! 13323: fi
! 13324: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 13325: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 13326: if test $ac_cv_lib_dld_dld_link = yes; then
! 13327: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 13328: fi
! 13329:
! 13330:
! 13331: fi
! 13332:
! 13333:
! 13334: fi
! 13335:
! 13336:
! 13337: fi
! 13338:
! 13339:
! 13340: fi
! 13341:
! 13342:
! 13343: fi
! 13344:
! 13345: ;;
! 13346: esac
! 13347:
! 13348: if test "x$lt_cv_dlopen" != xno; then
! 13349: enable_dlopen=yes
! 13350: else
! 13351: enable_dlopen=no
! 13352: fi
! 13353:
! 13354: case $lt_cv_dlopen in
! 13355: dlopen)
! 13356: save_CPPFLAGS="$CPPFLAGS"
! 13357: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 13358:
! 13359: save_LDFLAGS="$LDFLAGS"
! 13360: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 13361:
! 13362: save_LIBS="$LIBS"
! 13363: LIBS="$lt_cv_dlopen_libs $LIBS"
! 13364:
! 13365: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 13366: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 13367: if test "${lt_cv_dlopen_self+set}" = set; then
! 13368: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13369: else
! 13370: if test "$cross_compiling" = yes; then :
! 13371: lt_cv_dlopen_self=cross
! 13372: else
! 13373: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 13374: lt_status=$lt_dlunknown
! 13375: cat > conftest.$ac_ext <<EOF
! 13376: #line 13376 "configure"
! 13377: #include "confdefs.h"
! 13378:
! 13379: #if HAVE_DLFCN_H
! 13380: #include <dlfcn.h>
! 13381: #endif
! 13382:
! 13383: #include <stdio.h>
! 13384:
! 13385: #ifdef RTLD_GLOBAL
! 13386: # define LT_DLGLOBAL RTLD_GLOBAL
! 13387: #else
! 13388: # ifdef DL_GLOBAL
! 13389: # define LT_DLGLOBAL DL_GLOBAL
! 13390: # else
! 13391: # define LT_DLGLOBAL 0
! 13392: # endif
! 13393: #endif
! 13394:
! 13395: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 13396: find out it does not work in some platform. */
! 13397: #ifndef LT_DLLAZY_OR_NOW
! 13398: # ifdef RTLD_LAZY
! 13399: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 13400: # else
! 13401: # ifdef DL_LAZY
! 13402: # define LT_DLLAZY_OR_NOW DL_LAZY
! 13403: # else
! 13404: # ifdef RTLD_NOW
! 13405: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 13406: # else
! 13407: # ifdef DL_NOW
! 13408: # define LT_DLLAZY_OR_NOW DL_NOW
! 13409: # else
! 13410: # define LT_DLLAZY_OR_NOW 0
! 13411: # endif
! 13412: # endif
! 13413: # endif
! 13414: # endif
! 13415: #endif
! 13416:
! 13417: #ifdef __cplusplus
! 13418: extern "C" void exit (int);
! 13419: #endif
! 13420:
! 13421: void fnord() { int i=42;}
! 13422: int main ()
! 13423: {
! 13424: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 13425: int status = $lt_dlunknown;
! 13426:
! 13427: if (self)
! 13428: {
! 13429: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 13430: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 13431: /* dlclose (self); */
! 13432: }
! 13433:
! 13434: exit (status);
! 13435: }
! 13436: EOF
! 13437: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13438: (eval $ac_link) 2>&5
! 13439: ac_status=$?
! 13440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13441: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 13442: (./conftest; exit; ) 2>/dev/null
! 13443: lt_status=$?
! 13444: case x$lt_status in
! 13445: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 13446: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 13447: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 13448: esac
! 13449: else :
! 13450: # compilation failed
! 13451: lt_cv_dlopen_self=no
! 13452: fi
! 13453: fi
! 13454: rm -fr conftest*
! 13455:
! 13456:
! 13457: fi
! 13458: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 13459: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 13460:
! 13461: if test "x$lt_cv_dlopen_self" = xyes; then
! 13462: LDFLAGS="$LDFLAGS $link_static_flag"
! 13463: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 13464: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 13465: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 13466: echo $ECHO_N "(cached) $ECHO_C" >&6
! 13467: else
! 13468: if test "$cross_compiling" = yes; then :
! 13469: lt_cv_dlopen_self_static=cross
! 13470: else
! 13471: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 13472: lt_status=$lt_dlunknown
! 13473: cat > conftest.$ac_ext <<EOF
! 13474: #line 13474 "configure"
! 13475: #include "confdefs.h"
! 13476:
! 13477: #if HAVE_DLFCN_H
! 13478: #include <dlfcn.h>
! 13479: #endif
! 13480:
! 13481: #include <stdio.h>
! 13482:
! 13483: #ifdef RTLD_GLOBAL
! 13484: # define LT_DLGLOBAL RTLD_GLOBAL
! 13485: #else
! 13486: # ifdef DL_GLOBAL
! 13487: # define LT_DLGLOBAL DL_GLOBAL
! 13488: # else
! 13489: # define LT_DLGLOBAL 0
! 13490: # endif
! 13491: #endif
! 13492:
! 13493: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 13494: find out it does not work in some platform. */
! 13495: #ifndef LT_DLLAZY_OR_NOW
! 13496: # ifdef RTLD_LAZY
! 13497: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 13498: # else
! 13499: # ifdef DL_LAZY
! 13500: # define LT_DLLAZY_OR_NOW DL_LAZY
! 13501: # else
! 13502: # ifdef RTLD_NOW
! 13503: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 13504: # else
! 13505: # ifdef DL_NOW
! 13506: # define LT_DLLAZY_OR_NOW DL_NOW
! 13507: # else
! 13508: # define LT_DLLAZY_OR_NOW 0
! 13509: # endif
! 13510: # endif
! 13511: # endif
! 13512: # endif
! 13513: #endif
! 13514:
! 13515: #ifdef __cplusplus
! 13516: extern "C" void exit (int);
! 13517: #endif
! 13518:
! 13519: void fnord() { int i=42;}
! 13520: int main ()
! 13521: {
! 13522: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 13523: int status = $lt_dlunknown;
! 13524:
! 13525: if (self)
! 13526: {
! 13527: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 13528: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 13529: /* dlclose (self); */
! 13530: }
! 13531:
! 13532: exit (status);
! 13533: }
! 13534: EOF
! 13535: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 13536: (eval $ac_link) 2>&5
! 13537: ac_status=$?
! 13538: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 13539: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 13540: (./conftest; exit; ) 2>/dev/null
! 13541: lt_status=$?
! 13542: case x$lt_status in
! 13543: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 13544: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 13545: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 13546: esac
! 13547: else :
! 13548: # compilation failed
! 13549: lt_cv_dlopen_self_static=no
! 13550: fi
! 13551: fi
! 13552: rm -fr conftest*
! 13553:
! 13554:
! 13555: fi
! 13556: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 13557: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 13558: fi
! 13559:
! 13560: CPPFLAGS="$save_CPPFLAGS"
! 13561: LDFLAGS="$save_LDFLAGS"
! 13562: LIBS="$save_LIBS"
! 13563: ;;
! 13564: esac
! 13565:
! 13566: case $lt_cv_dlopen_self in
! 13567: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 13568: *) enable_dlopen_self=unknown ;;
! 13569: esac
! 13570:
! 13571: case $lt_cv_dlopen_self_static in
! 13572: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 13573: *) enable_dlopen_self_static=unknown ;;
! 13574: esac
! 13575: fi
! 13576:
! 13577:
! 13578: # The else clause should only fire when bootstrapping the
! 13579: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 13580: # with your package, and you will get complaints that there are
! 13581: # no rules to generate ltmain.sh.
! 13582: if test -f "$ltmain"; then
! 13583: # See if we are running on zsh, and set the options which allow our commands through
! 13584: # without removal of \ escapes.
! 13585: if test -n "${ZSH_VERSION+set}" ; then
! 13586: setopt NO_GLOB_SUBST
! 13587: fi
! 13588: # Now quote all the things that may contain metacharacters while being
! 13589: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 13590: # variables and quote the copies for generation of the libtool script.
! 13591: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
! 13592: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 13593: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 13594: deplibs_check_method reload_flag reload_cmds need_locks \
! 13595: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 13596: lt_cv_sys_global_symbol_to_c_name_address \
! 13597: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 13598: old_postinstall_cmds old_postuninstall_cmds \
! 13599: compiler_CXX \
! 13600: CC_CXX \
! 13601: LD_CXX \
! 13602: lt_prog_compiler_wl_CXX \
! 13603: lt_prog_compiler_pic_CXX \
! 13604: lt_prog_compiler_static_CXX \
! 13605: lt_prog_compiler_no_builtin_flag_CXX \
! 13606: export_dynamic_flag_spec_CXX \
! 13607: thread_safe_flag_spec_CXX \
! 13608: whole_archive_flag_spec_CXX \
! 13609: enable_shared_with_static_runtimes_CXX \
! 13610: old_archive_cmds_CXX \
! 13611: old_archive_from_new_cmds_CXX \
! 13612: predep_objects_CXX \
! 13613: postdep_objects_CXX \
! 13614: predeps_CXX \
! 13615: postdeps_CXX \
! 13616: compiler_lib_search_path_CXX \
! 13617: archive_cmds_CXX \
! 13618: archive_expsym_cmds_CXX \
! 13619: postinstall_cmds_CXX \
! 13620: postuninstall_cmds_CXX \
! 13621: old_archive_from_expsyms_cmds_CXX \
! 13622: allow_undefined_flag_CXX \
! 13623: no_undefined_flag_CXX \
! 13624: export_symbols_cmds_CXX \
! 13625: hardcode_libdir_flag_spec_CXX \
! 13626: hardcode_libdir_flag_spec_ld_CXX \
! 13627: hardcode_libdir_separator_CXX \
! 13628: hardcode_automatic_CXX \
! 13629: module_cmds_CXX \
! 13630: module_expsym_cmds_CXX \
! 13631: lt_cv_prog_compiler_c_o_CXX \
! 13632: exclude_expsyms_CXX \
! 13633: include_expsyms_CXX; do
! 13634:
! 13635: case $var in
! 13636: old_archive_cmds_CXX | \
! 13637: old_archive_from_new_cmds_CXX | \
! 13638: archive_cmds_CXX | \
! 13639: archive_expsym_cmds_CXX | \
! 13640: module_cmds_CXX | \
! 13641: module_expsym_cmds_CXX | \
! 13642: old_archive_from_expsyms_cmds_CXX | \
! 13643: export_symbols_cmds_CXX | \
! 13644: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 13645: postinstall_cmds | postuninstall_cmds | \
! 13646: old_postinstall_cmds | old_postuninstall_cmds | \
! 13647: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 13648: # Double-quote double-evaled strings.
! 13649: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 13650: ;;
! 13651: *)
! 13652: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 13653: ;;
! 13654: esac
! 13655: done
! 13656:
! 13657: case $lt_echo in
! 13658: *'\$0 --fallback-echo"')
! 13659: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 13660: ;;
! 13661: esac
! 13662:
! 13663: cfgfile="$ofile"
! 13664:
! 13665: cat <<__EOF__ >> "$cfgfile"
! 13666: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 13667:
! 13668: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 13669:
! 13670: # Shell to use when invoking shell scripts.
! 13671: SHELL=$lt_SHELL
! 13672:
! 13673: # Whether or not to build shared libraries.
! 13674: build_libtool_libs=$enable_shared
! 13675:
! 13676: # Whether or not to build static libraries.
! 13677: build_old_libs=$enable_static
! 13678:
! 13679: # Whether or not to add -lc for building shared libraries.
! 13680: build_libtool_need_lc=$archive_cmds_need_lc_CXX
! 13681:
! 13682: # Whether or not to disallow shared libs when runtime libs are static
! 13683: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
! 13684:
! 13685: # Whether or not to optimize for fast installation.
! 13686: fast_install=$enable_fast_install
! 13687:
! 13688: # The host system.
! 13689: host_alias=$host_alias
! 13690: host=$host
! 13691:
! 13692: # An echo program that does not interpret backslashes.
! 13693: echo=$lt_echo
! 13694:
! 13695: # The archiver.
! 13696: AR=$lt_AR
! 13697: AR_FLAGS=$lt_AR_FLAGS
! 13698:
! 13699: # A C compiler.
! 13700: LTCC=$lt_LTCC
! 13701:
! 13702: # A language-specific compiler.
! 13703: CC=$lt_compiler_CXX
! 13704:
! 13705: # Is the compiler the GNU C compiler?
! 13706: with_gcc=$GCC_CXX
! 13707:
! 13708: # An ERE matcher.
! 13709: EGREP=$lt_EGREP
! 13710:
! 13711: # The linker used to build libraries.
! 13712: LD=$lt_LD_CXX
! 13713:
! 13714: # Whether we need hard or soft links.
! 13715: LN_S=$lt_LN_S
! 13716:
! 13717: # A BSD-compatible nm program.
! 13718: NM=$lt_NM
! 13719:
! 13720: # A symbol stripping program
! 13721: STRIP=$STRIP
! 13722:
! 13723: # Used to examine libraries when file_magic_cmd begins "file"
! 13724: MAGIC_CMD=$MAGIC_CMD
! 13725:
! 13726: # Used on cygwin: DLL creation program.
! 13727: DLLTOOL="$DLLTOOL"
! 13728:
! 13729: # Used on cygwin: object dumper.
! 13730: OBJDUMP="$OBJDUMP"
! 13731:
! 13732: # Used on cygwin: assembler.
! 13733: AS="$AS"
! 13734:
! 13735: # The name of the directory that contains temporary libtool files.
! 13736: objdir=$objdir
! 13737:
! 13738: # How to create reloadable object files.
! 13739: reload_flag=$lt_reload_flag
! 13740: reload_cmds=$lt_reload_cmds
! 13741:
! 13742: # How to pass a linker flag through the compiler.
! 13743: wl=$lt_lt_prog_compiler_wl_CXX
! 13744:
! 13745: # Object file suffix (normally "o").
! 13746: objext="$ac_objext"
! 13747:
! 13748: # Old archive suffix (normally "a").
! 13749: libext="$libext"
! 13750:
! 13751: # Shared library suffix (normally ".so").
! 13752: shrext='$shrext'
! 13753:
! 13754: # Executable file suffix (normally "").
! 13755: exeext="$exeext"
! 13756:
! 13757: # Additional compiler flags for building library objects.
! 13758: pic_flag=$lt_lt_prog_compiler_pic_CXX
! 13759: pic_mode=$pic_mode
! 13760:
! 13761: # What is the maximum length of a command?
! 13762: max_cmd_len=$lt_cv_sys_max_cmd_len
! 13763:
! 13764: # Does compiler simultaneously support -c and -o options?
! 13765: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
! 13766:
! 13767: # Must we lock files when doing compilation ?
! 13768: need_locks=$lt_need_locks
! 13769:
! 13770: # Do we need the lib prefix for modules?
! 13771: need_lib_prefix=$need_lib_prefix
! 13772:
! 13773: # Do we need a version for libraries?
! 13774: need_version=$need_version
! 13775:
! 13776: # Whether dlopen is supported.
! 13777: dlopen_support=$enable_dlopen
! 13778:
! 13779: # Whether dlopen of programs is supported.
! 13780: dlopen_self=$enable_dlopen_self
! 13781:
! 13782: # Whether dlopen of statically linked programs is supported.
! 13783: dlopen_self_static=$enable_dlopen_self_static
! 13784:
! 13785: # Compiler flag to prevent dynamic linking.
! 13786: link_static_flag=$lt_lt_prog_compiler_static_CXX
! 13787:
! 13788: # Compiler flag to turn off builtin functions.
! 13789: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
! 13790:
! 13791: # Compiler flag to allow reflexive dlopens.
! 13792: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
! 13793:
! 13794: # Compiler flag to generate shared objects directly from archives.
! 13795: whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
! 13796:
! 13797: # Compiler flag to generate thread-safe objects.
! 13798: thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
! 13799:
! 13800: # Library versioning type.
! 13801: version_type=$version_type
! 13802:
! 13803: # Format of library name prefix.
! 13804: libname_spec=$lt_libname_spec
! 13805:
! 13806: # List of archive names. First name is the real one, the rest are links.
! 13807: # The last name is the one that the linker finds with -lNAME.
! 13808: library_names_spec=$lt_library_names_spec
! 13809:
! 13810: # The coded name of the library, if different from the real name.
! 13811: soname_spec=$lt_soname_spec
! 13812:
! 13813: # Commands used to build and install an old-style archive.
! 13814: RANLIB=$lt_RANLIB
! 13815: old_archive_cmds=$lt_old_archive_cmds_CXX
! 13816: old_postinstall_cmds=$lt_old_postinstall_cmds
! 13817: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 13818:
! 13819: # Create an old-style archive from a shared archive.
! 13820: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
! 13821:
! 13822: # Create a temporary old-style archive to link instead of a shared archive.
! 13823: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
! 13824:
! 13825: # Commands used to build and install a shared archive.
! 13826: archive_cmds=$lt_archive_cmds_CXX
! 13827: archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
! 13828: postinstall_cmds=$lt_postinstall_cmds
! 13829: postuninstall_cmds=$lt_postuninstall_cmds
! 13830:
! 13831: # Commands used to build a loadable module (assumed same as above if empty)
! 13832: module_cmds=$lt_module_cmds_CXX
! 13833: module_expsym_cmds=$lt_module_expsym_cmds_CXX
! 13834:
! 13835: # Commands to strip libraries.
! 13836: old_striplib=$lt_old_striplib
! 13837: striplib=$lt_striplib
! 13838:
! 13839: # Dependencies to place before the objects being linked to create a
! 13840: # shared library.
! 13841: predep_objects=$lt_predep_objects_CXX
! 13842:
! 13843: # Dependencies to place after the objects being linked to create a
! 13844: # shared library.
! 13845: postdep_objects=$lt_postdep_objects_CXX
! 13846:
! 13847: # Dependencies to place before the objects being linked to create a
! 13848: # shared library.
! 13849: predeps=$lt_predeps_CXX
! 13850:
! 13851: # Dependencies to place after the objects being linked to create a
! 13852: # shared library.
! 13853: postdeps=$lt_postdeps_CXX
! 13854:
! 13855: # The library search path used internally by the compiler when linking
! 13856: # a shared library.
! 13857: compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
! 13858:
! 13859: # Method to check whether dependent libraries are shared objects.
! 13860: deplibs_check_method=$lt_deplibs_check_method
! 13861:
! 13862: # Command to use when deplibs_check_method == file_magic.
! 13863: file_magic_cmd=$lt_file_magic_cmd
! 13864:
! 13865: # Flag that allows shared libraries with undefined symbols to be built.
! 13866: allow_undefined_flag=$lt_allow_undefined_flag_CXX
! 13867:
! 13868: # Flag that forces no undefined symbols.
! 13869: no_undefined_flag=$lt_no_undefined_flag_CXX
! 13870:
! 13871: # Commands used to finish a libtool library installation in a directory.
! 13872: finish_cmds=$lt_finish_cmds
! 13873:
! 13874: # Same as above, but a single script fragment to be evaled but not shown.
! 13875: finish_eval=$lt_finish_eval
! 13876:
! 13877: # Take the output of nm and produce a listing of raw symbols and C names.
! 13878: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 13879:
! 13880: # Transform the output of nm in a proper C declaration
! 13881: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 13882:
! 13883: # Transform the output of nm in a C name address pair
! 13884: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 13885:
! 13886: # This is the shared library runtime path variable.
! 13887: runpath_var=$runpath_var
! 13888:
! 13889: # This is the shared library path variable.
! 13890: shlibpath_var=$shlibpath_var
! 13891:
! 13892: # Is shlibpath searched before the hard-coded library search path?
! 13893: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 13894:
! 13895: # How to hardcode a shared library path into an executable.
! 13896: hardcode_action=$hardcode_action_CXX
! 13897:
! 13898: # Whether we should hardcode library paths into libraries.
! 13899: hardcode_into_libs=$hardcode_into_libs
! 13900:
! 13901: # Flag to hardcode \$libdir into a binary during linking.
! 13902: # This must work even if \$libdir does not exist.
! 13903: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
! 13904:
! 13905: # If ld is used when linking, flag to hardcode \$libdir into
! 13906: # a binary during linking. This must work even if \$libdir does
! 13907: # not exist.
! 13908: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
! 13909:
! 13910: # Whether we need a single -rpath flag with a separated argument.
! 13911: hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
! 13912:
! 13913: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 13914: # resulting binary.
! 13915: hardcode_direct=$hardcode_direct_CXX
! 13916:
! 13917: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 13918: # resulting binary.
! 13919: hardcode_minus_L=$hardcode_minus_L_CXX
! 13920:
! 13921: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 13922: # the resulting binary.
! 13923: hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
! 13924:
! 13925: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 13926: # and all subsequent libraries and executables linked against it.
! 13927: hardcode_automatic=$hardcode_automatic_CXX
! 13928:
! 13929: # Variables whose values should be saved in libtool wrapper scripts and
! 13930: # restored at relink time.
! 13931: variables_saved_for_relink="$variables_saved_for_relink"
! 13932:
! 13933: # Whether libtool must link a program against all its dependency libraries.
! 13934: link_all_deplibs=$link_all_deplibs_CXX
! 13935:
! 13936: # Compile-time system search path for libraries
! 13937: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 13938:
! 13939: # Run-time system search path for libraries
! 13940: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 13941:
! 13942: # Fix the shell variable \$srcfile for the compiler.
! 13943: fix_srcfile_path="$fix_srcfile_path_CXX"
! 13944:
! 13945: # Set to yes if exported symbols are required.
! 13946: always_export_symbols=$always_export_symbols_CXX
! 13947:
! 13948: # The commands to list exported symbols.
! 13949: export_symbols_cmds=$lt_export_symbols_cmds_CXX
! 13950:
! 13951: # The commands to extract the exported symbol list from a shared archive.
! 13952: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 13953:
! 13954: # Symbols that should not be listed in the preloaded symbols.
! 13955: exclude_expsyms=$lt_exclude_expsyms_CXX
! 13956:
! 13957: # Symbols that must always be exported.
! 13958: include_expsyms=$lt_include_expsyms_CXX
! 13959:
! 13960: # ### END LIBTOOL TAG CONFIG: $tagname
! 13961:
! 13962: __EOF__
! 13963:
! 13964:
! 13965: else
! 13966: # If there is no Makefile yet, we rely on a make rule to execute
! 13967: # `config.status --recheck' to rerun these tests and create the
! 13968: # libtool script then.
! 13969: test -f Makefile && make "$ltmain"
! 13970: fi
! 13971:
! 13972:
! 13973: ac_ext=c
! 13974: ac_cpp='$CPP $CPPFLAGS'
! 13975: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 13976: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 13977: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 13978:
! 13979: CC=$lt_save_CC
! 13980: LDCXX=$LD
! 13981: LD=$lt_save_LD
! 13982: GCC=$lt_save_GCC
! 13983: with_gnu_ldcxx=$with_gnu_ld
! 13984: with_gnu_ld=$lt_save_with_gnu_ld
! 13985: lt_cv_path_LDCXX=$lt_cv_path_LD
! 13986: lt_cv_path_LD=$lt_save_path_LD
! 13987: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
! 13988: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
! 13989:
! 13990: else
! 13991: tagname=""
! 13992: fi
! 13993: ;;
! 13994:
! 13995: F77)
! 13996: if test -n "$F77" && test "X$F77" != "Xno"; then
! 13997:
! 13998: ac_ext=f
! 13999: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
! 14000: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 14001: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
! 14002:
! 14003:
! 14004: archive_cmds_need_lc_F77=no
! 14005: allow_undefined_flag_F77=
! 14006: always_export_symbols_F77=no
! 14007: archive_expsym_cmds_F77=
! 14008: export_dynamic_flag_spec_F77=
! 14009: hardcode_direct_F77=no
! 14010: hardcode_libdir_flag_spec_F77=
! 14011: hardcode_libdir_flag_spec_ld_F77=
! 14012: hardcode_libdir_separator_F77=
! 14013: hardcode_minus_L_F77=no
! 14014: hardcode_automatic_F77=no
! 14015: module_cmds_F77=
! 14016: module_expsym_cmds_F77=
! 14017: link_all_deplibs_F77=unknown
! 14018: old_archive_cmds_F77=$old_archive_cmds
! 14019: no_undefined_flag_F77=
! 14020: whole_archive_flag_spec_F77=
! 14021: enable_shared_with_static_runtimes_F77=no
! 14022:
! 14023: # Source file extension for f77 test sources.
! 14024: ac_ext=f
! 14025:
! 14026: # Object file extension for compiled f77 test sources.
! 14027: objext=o
! 14028: objext_F77=$objext
! 14029:
! 14030: # Code to be used in simple compile tests
! 14031: lt_simple_compile_test_code=" subroutine t\n return\n end\n"
! 14032:
! 14033: # Code to be used in simple link tests
! 14034: lt_simple_link_test_code=" program t\n end\n"
! 14035:
! 14036: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 14037:
! 14038: # If no C compiler was specified, use CC.
! 14039: LTCC=${LTCC-"$CC"}
! 14040:
! 14041: # Allow CC to be a program name with arguments.
! 14042: compiler=$CC
! 14043:
! 14044:
! 14045: # Allow CC to be a program name with arguments.
! 14046: lt_save_CC="$CC"
! 14047: CC=${F77-"f77"}
! 14048: compiler=$CC
! 14049: compiler_F77=$CC
! 14050: cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
! 14051:
! 14052: echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
! 14053: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
! 14054: echo "$as_me:$LINENO: result: $can_build_shared" >&5
! 14055: echo "${ECHO_T}$can_build_shared" >&6
! 14056:
! 14057: echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
! 14058: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
! 14059: test "$can_build_shared" = "no" && enable_shared=no
! 14060:
! 14061: # On AIX, shared libraries and static libraries use the same namespace, and
! 14062: # are all built from PIC.
! 14063: case "$host_os" in
! 14064: aix3*)
! 14065: test "$enable_shared" = yes && enable_static=no
! 14066: if test -n "$RANLIB"; then
! 14067: archive_cmds="$archive_cmds~\$RANLIB \$lib"
! 14068: postinstall_cmds='$RANLIB $lib'
! 14069: fi
! 14070: ;;
! 14071: aix4*)
! 14072: test "$enable_shared" = yes && enable_static=no
! 14073: ;;
! 14074: esac
! 14075: echo "$as_me:$LINENO: result: $enable_shared" >&5
! 14076: echo "${ECHO_T}$enable_shared" >&6
! 14077:
! 14078: echo "$as_me:$LINENO: checking whether to build static libraries" >&5
! 14079: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
! 14080: # Make sure either enable_shared or enable_static is yes.
! 14081: test "$enable_shared" = yes || enable_static=yes
! 14082: echo "$as_me:$LINENO: result: $enable_static" >&5
! 14083: echo "${ECHO_T}$enable_static" >&6
! 14084:
! 14085: test "$ld_shlibs_F77" = no && can_build_shared=no
! 14086:
! 14087: GCC_F77="$G77"
! 14088: LD_F77="$LD"
! 14089:
! 14090: lt_prog_compiler_wl_F77=
! 14091: lt_prog_compiler_pic_F77=
! 14092: lt_prog_compiler_static_F77=
! 14093:
! 14094: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 14095: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 14096:
! 14097: if test "$GCC" = yes; then
! 14098: lt_prog_compiler_wl_F77='-Wl,'
! 14099: lt_prog_compiler_static_F77='-static'
! 14100:
! 14101: case $host_os in
! 14102: aix*)
! 14103: # All AIX code is PIC.
! 14104: if test "$host_cpu" = ia64; then
! 14105: # AIX 5 now supports IA64 processor
! 14106: lt_prog_compiler_static_F77='-Bstatic'
! 14107: fi
! 14108: ;;
! 14109:
! 14110: amigaos*)
! 14111: # FIXME: we need at least 68020 code to build shared libraries, but
! 14112: # adding the `-m68020' flag to GCC prevents building anything better,
! 14113: # like `-m68040'.
! 14114: lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
! 14115: ;;
! 14116:
! 14117: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 14118: # PIC is the default for these OSes.
! 14119: ;;
! 14120:
! 14121: mingw* | pw32* | os2*)
! 14122: # This hack is so that the source file can tell whether it is being
! 14123: # built for inclusion in a dll (and should export symbols for example).
! 14124: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
! 14125: ;;
! 14126:
! 14127: darwin* | rhapsody*)
! 14128: # PIC is the default on this platform
! 14129: # Common symbols not allowed in MH_DYLIB files
! 14130: lt_prog_compiler_pic_F77='-fno-common'
! 14131: ;;
! 14132:
! 14133: msdosdjgpp*)
! 14134: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 14135: # on systems that don't support them.
! 14136: lt_prog_compiler_can_build_shared_F77=no
! 14137: enable_shared=no
! 14138: ;;
! 14139:
! 14140: sysv4*MP*)
! 14141: if test -d /usr/nec; then
! 14142: lt_prog_compiler_pic_F77=-Kconform_pic
! 14143: fi
! 14144: ;;
! 14145:
! 14146: hpux*)
! 14147: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 14148: # not for PA HP-UX.
! 14149: case "$host_cpu" in
! 14150: hppa*64*|ia64*)
! 14151: # +Z the default
! 14152: ;;
! 14153: *)
! 14154: lt_prog_compiler_pic_F77='-fPIC'
! 14155: ;;
! 14156: esac
! 14157: ;;
! 14158:
! 14159: *)
! 14160: lt_prog_compiler_pic_F77='-fPIC'
! 14161: ;;
! 14162: esac
! 14163: else
! 14164: # PORTME Check for flag to pass linker flags through the system compiler.
! 14165: case $host_os in
! 14166: aix*)
! 14167: lt_prog_compiler_wl_F77='-Wl,'
! 14168: if test "$host_cpu" = ia64; then
! 14169: # AIX 5 now supports IA64 processor
! 14170: lt_prog_compiler_static_F77='-Bstatic'
! 14171: else
! 14172: lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
! 14173: fi
! 14174: ;;
! 14175:
! 14176: mingw* | pw32* | os2*)
! 14177: # This hack is so that the source file can tell whether it is being
! 14178: # built for inclusion in a dll (and should export symbols for example).
! 14179: lt_prog_compiler_pic_F77='-DDLL_EXPORT'
! 14180: ;;
! 14181:
! 14182: hpux9* | hpux10* | hpux11*)
! 14183: lt_prog_compiler_wl_F77='-Wl,'
! 14184: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 14185: # not for PA HP-UX.
! 14186: case "$host_cpu" in
! 14187: hppa*64*|ia64*)
! 14188: # +Z the default
! 14189: ;;
! 14190: *)
! 14191: lt_prog_compiler_pic_F77='+Z'
! 14192: ;;
! 14193: esac
! 14194: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 14195: lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
! 14196: ;;
! 14197:
! 14198: irix5* | irix6* | nonstopux*)
! 14199: lt_prog_compiler_wl_F77='-Wl,'
! 14200: # PIC (with -KPIC) is the default.
! 14201: lt_prog_compiler_static_F77='-non_shared'
! 14202: ;;
! 14203:
! 14204: newsos6)
! 14205: lt_prog_compiler_pic_F77='-KPIC'
! 14206: lt_prog_compiler_static_F77='-Bstatic'
! 14207: ;;
! 14208:
! 14209: linux*)
! 14210: case $CC in
! 14211: icc|ecc)
! 14212: lt_prog_compiler_wl_F77='-Wl,'
! 14213: lt_prog_compiler_pic_F77='-KPIC'
! 14214: lt_prog_compiler_static_F77='-static'
! 14215: ;;
! 14216: ccc)
! 14217: lt_prog_compiler_wl_F77='-Wl,'
! 14218: # All Alpha code is PIC.
! 14219: lt_prog_compiler_static_F77='-non_shared'
! 14220: ;;
! 14221: esac
! 14222: ;;
! 14223:
! 14224: osf3* | osf4* | osf5*)
! 14225: lt_prog_compiler_wl_F77='-Wl,'
! 14226: # All OSF/1 code is PIC.
! 14227: lt_prog_compiler_static_F77='-non_shared'
! 14228: ;;
! 14229:
! 14230: sco3.2v5*)
! 14231: lt_prog_compiler_pic_F77='-Kpic'
! 14232: lt_prog_compiler_static_F77='-dn'
! 14233: ;;
! 14234:
! 14235: solaris*)
! 14236: lt_prog_compiler_wl_F77='-Wl,'
! 14237: lt_prog_compiler_pic_F77='-KPIC'
! 14238: lt_prog_compiler_static_F77='-Bstatic'
! 14239: ;;
! 14240:
! 14241: sunos4*)
! 14242: lt_prog_compiler_wl_F77='-Qoption ld '
! 14243: lt_prog_compiler_pic_F77='-PIC'
! 14244: lt_prog_compiler_static_F77='-Bstatic'
! 14245: ;;
! 14246:
! 14247: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 14248: lt_prog_compiler_wl_F77='-Wl,'
! 14249: lt_prog_compiler_pic_F77='-KPIC'
! 14250: lt_prog_compiler_static_F77='-Bstatic'
! 14251: ;;
! 14252:
! 14253: sysv4*MP*)
! 14254: if test -d /usr/nec ;then
! 14255: lt_prog_compiler_pic_F77='-Kconform_pic'
! 14256: lt_prog_compiler_static_F77='-Bstatic'
! 14257: fi
! 14258: ;;
! 14259:
! 14260: uts4*)
! 14261: lt_prog_compiler_pic_F77='-pic'
! 14262: lt_prog_compiler_static_F77='-Bstatic'
! 14263: ;;
! 14264:
! 14265: *)
! 14266: lt_prog_compiler_can_build_shared_F77=no
! 14267: ;;
! 14268: esac
! 14269: fi
! 14270:
! 14271: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
! 14272: echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
! 14273:
! 14274: #
! 14275: # Check to make sure the PIC flag actually works.
! 14276: #
! 14277: if test -n "$lt_prog_compiler_pic_F77"; then
! 14278: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
! 14279: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
! 14280: if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
! 14281: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14282: else
! 14283: lt_prog_compiler_pic_works_F77=no
! 14284: ac_outfile=conftest.$ac_objext
! 14285: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 14286: lt_compiler_flag="$lt_prog_compiler_pic_F77"
! 14287: # Insert the option either (1) after the last *FLAGS variable, or
! 14288: # (2) before a word containing "conftest.", or (3) at the end.
! 14289: # Note that $ac_compile itself does not contain backslashes and begins
! 14290: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 14291: # The option is referenced via a variable to avoid confusing sed.
! 14292: lt_compile=`echo "$ac_compile" | $SED \
! 14293: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 14294: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 14295: -e 's:$: $lt_compiler_flag:'`
! 14296: (eval echo "\"\$as_me:14296: $lt_compile\"" >&5)
! 14297: (eval "$lt_compile" 2>conftest.err)
! 14298: ac_status=$?
! 14299: cat conftest.err >&5
! 14300: echo "$as_me:14300: \$? = $ac_status" >&5
! 14301: if (exit $ac_status) && test -s "$ac_outfile"; then
! 14302: # The compiler can only warn and ignore the option if not recognized
! 14303: # So say no if there are warnings
! 14304: if test ! -s conftest.err; then
! 14305: lt_prog_compiler_pic_works_F77=yes
! 14306: fi
! 14307: fi
! 14308: $rm conftest*
! 14309:
! 14310: fi
! 14311: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
! 14312: echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
! 14313:
! 14314: if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
! 14315: case $lt_prog_compiler_pic_F77 in
! 14316: "" | " "*) ;;
! 14317: *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
! 14318: esac
! 14319: else
! 14320: lt_prog_compiler_pic_F77=
! 14321: lt_prog_compiler_can_build_shared_F77=no
! 14322: fi
! 14323:
! 14324: fi
! 14325: case "$host_os" in
! 14326: # For platforms which do not support PIC, -DPIC is meaningless:
! 14327: *djgpp*)
! 14328: lt_prog_compiler_pic_F77=
! 14329: ;;
! 14330: *)
! 14331: lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
! 14332: ;;
! 14333: esac
! 14334:
! 14335: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 14336: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 14337: if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
! 14338: echo $ECHO_N "(cached) $ECHO_C" >&6
! 14339: else
! 14340: lt_cv_prog_compiler_c_o_F77=no
! 14341: $rm -r conftest 2>/dev/null
! 14342: mkdir conftest
! 14343: cd conftest
! 14344: mkdir out
! 14345: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 14346:
! 14347: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 14348: # that will create temporary files in the current directory regardless of
! 14349: # the output directory. Thus, making CWD read-only will cause this test
! 14350: # to fail, enabling locking or at least warning the user not to do parallel
! 14351: # builds.
! 14352: chmod -w .
! 14353:
! 14354: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 14355: # Insert the option either (1) after the last *FLAGS variable, or
! 14356: # (2) before a word containing "conftest.", or (3) at the end.
! 14357: # Note that $ac_compile itself does not contain backslashes and begins
! 14358: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 14359: lt_compile=`echo "$ac_compile" | $SED \
! 14360: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 14361: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 14362: -e 's:$: $lt_compiler_flag:'`
! 14363: (eval echo "\"\$as_me:14363: $lt_compile\"" >&5)
! 14364: (eval "$lt_compile" 2>out/conftest.err)
! 14365: ac_status=$?
! 14366: cat out/conftest.err >&5
! 14367: echo "$as_me:14367: \$? = $ac_status" >&5
! 14368: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 14369: then
! 14370: # The compiler can only warn and ignore the option if not recognized
! 14371: # So say no if there are warnings
! 14372: if test ! -s out/conftest.err; then
! 14373: lt_cv_prog_compiler_c_o_F77=yes
! 14374: fi
! 14375: fi
! 14376: chmod u+w .
! 14377: $rm conftest* out/*
! 14378: rmdir out
! 14379: cd ..
! 14380: rmdir conftest
! 14381: $rm conftest*
! 14382:
! 14383: fi
! 14384: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
! 14385: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
! 14386:
! 14387:
! 14388: hard_links="nottested"
! 14389: if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
! 14390: # do not overwrite the value of need_locks provided by the user
! 14391: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 14392: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 14393: hard_links=yes
! 14394: $rm conftest*
! 14395: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 14396: touch conftest.a
! 14397: ln conftest.a conftest.b 2>&5 || hard_links=no
! 14398: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 14399: echo "$as_me:$LINENO: result: $hard_links" >&5
! 14400: echo "${ECHO_T}$hard_links" >&6
! 14401: if test "$hard_links" = no; then
! 14402: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 14403: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 14404: need_locks=warn
! 14405: fi
! 14406: else
! 14407: need_locks=no
! 14408: fi
! 14409:
! 14410: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 14411: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 14412:
! 14413: runpath_var=
! 14414: allow_undefined_flag_F77=
! 14415: enable_shared_with_static_runtimes_F77=no
! 14416: archive_cmds_F77=
! 14417: archive_expsym_cmds_F77=
! 14418: old_archive_From_new_cmds_F77=
! 14419: old_archive_from_expsyms_cmds_F77=
! 14420: export_dynamic_flag_spec_F77=
! 14421: whole_archive_flag_spec_F77=
! 14422: thread_safe_flag_spec_F77=
! 14423: hardcode_libdir_flag_spec_F77=
! 14424: hardcode_libdir_flag_spec_ld_F77=
! 14425: hardcode_libdir_separator_F77=
! 14426: hardcode_direct_F77=no
! 14427: hardcode_minus_L_F77=no
! 14428: hardcode_shlibpath_var_F77=unsupported
! 14429: link_all_deplibs_F77=unknown
! 14430: hardcode_automatic_F77=no
! 14431: module_cmds_F77=
! 14432: module_expsym_cmds_F77=
! 14433: always_export_symbols_F77=no
! 14434: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 14435: # include_expsyms should be a list of space-separated symbols to be *always*
! 14436: # included in the symbol list
! 14437: include_expsyms_F77=
! 14438: # exclude_expsyms can be an extended regexp of symbols to exclude
! 14439: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 14440: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 14441: # as well as any symbol that contains `d'.
! 14442: exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
! 14443: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 14444: # platforms (ab)use it in PIC code, but their linkers get confused if
! 14445: # the symbol is explicitly referenced. Since portable code cannot
! 14446: # rely on this symbol name, it's probably fine to never include it in
! 14447: # preloaded symbol tables.
! 14448: extract_expsyms_cmds=
! 14449:
! 14450: case $host_os in
! 14451: cygwin* | mingw* | pw32*)
! 14452: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 14453: # When not using gcc, we currently assume that we are using
! 14454: # Microsoft Visual C++.
! 14455: if test "$GCC" != yes; then
! 14456: with_gnu_ld=no
! 14457: fi
! 14458: ;;
! 14459: openbsd*)
! 14460: with_gnu_ld=no
! 14461: ;;
! 14462: esac
! 14463:
! 14464: ld_shlibs_F77=yes
! 14465: if test "$with_gnu_ld" = yes; then
! 14466: # If archive_cmds runs LD, not CC, wlarc should be empty
! 14467: wlarc='${wl}'
! 14468:
! 14469: # See if GNU ld supports shared libraries.
! 14470: case $host_os in
! 14471: aix3* | aix4* | aix5*)
! 14472: # On AIX/PPC, the GNU linker is very broken
! 14473: if test "$host_cpu" != ia64; then
! 14474: ld_shlibs_F77=no
! 14475: cat <<EOF 1>&2
! 14476:
! 14477: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 14478: *** to be unable to reliably create shared libraries on AIX.
! 14479: *** Therefore, libtool is disabling shared libraries support. If you
! 14480: *** really care for shared libraries, you may want to modify your PATH
! 14481: *** so that a non-GNU linker is found, and then restart.
! 14482:
! 14483: EOF
! 14484: fi
! 14485: ;;
! 14486:
! 14487: amigaos*)
! 14488: archive_cmds_F77='$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)'
! 14489: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14490: hardcode_minus_L_F77=yes
! 14491:
! 14492: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 14493: # that the semantics of dynamic libraries on AmigaOS, at least up
! 14494: # to version 4, is to share data among multiple programs linked
! 14495: # with the same dynamic library. Since this doesn't match the
! 14496: # behavior of shared libraries on other platforms, we can't use
! 14497: # them.
! 14498: ld_shlibs_F77=no
! 14499: ;;
! 14500:
! 14501: beos*)
! 14502: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14503: allow_undefined_flag_F77=unsupported
! 14504: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 14505: # support --undefined. This deserves some investigation. FIXME
! 14506: archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14507: else
! 14508: ld_shlibs_F77=no
! 14509: fi
! 14510: ;;
! 14511:
! 14512: cygwin* | mingw* | pw32*)
! 14513: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
! 14514: # as there is no search path for DLLs.
! 14515: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14516: allow_undefined_flag_F77=unsupported
! 14517: always_export_symbols_F77=no
! 14518: enable_shared_with_static_runtimes_F77=yes
! 14519: export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
! 14520:
! 14521: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 14522: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 14523: # If the export-symbols file already is a .def file (1st line
! 14524: # is EXPORTS), use it as is; otherwise, prepend...
! 14525: archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 14526: cp $export_symbols $output_objdir/$soname.def;
! 14527: else
! 14528: echo EXPORTS > $output_objdir/$soname.def;
! 14529: cat $export_symbols >> $output_objdir/$soname.def;
! 14530: fi~
! 14531: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 14532: else
! 14533: ld_shlibs=no
! 14534: fi
! 14535: ;;
! 14536:
! 14537: netbsd*)
! 14538: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 14539: archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 14540: wlarc=
! 14541: else
! 14542: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14543: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 14544: fi
! 14545: ;;
! 14546:
! 14547: solaris* | sysv5*)
! 14548: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
! 14549: ld_shlibs_F77=no
! 14550: cat <<EOF 1>&2
! 14551:
! 14552: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 14553: *** create shared libraries on Solaris systems. Therefore, libtool
! 14554: *** is disabling shared libraries support. We urge you to upgrade GNU
! 14555: *** binutils to release 2.9.1 or newer. Another option is to modify
! 14556: *** your PATH or compiler configuration so that the native linker is
! 14557: *** used, and then restart.
! 14558:
! 14559: EOF
! 14560: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14561: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14562: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 14563: else
! 14564: ld_shlibs_F77=no
! 14565: fi
! 14566: ;;
! 14567:
! 14568: sunos4*)
! 14569: archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 14570: wlarc=
! 14571: hardcode_direct_F77=yes
! 14572: hardcode_shlibpath_var_F77=no
! 14573: ;;
! 14574:
! 14575: *)
! 14576: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 14577: archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 14578: archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 14579: else
! 14580: ld_shlibs_F77=no
! 14581: fi
! 14582: ;;
! 14583: esac
! 14584:
! 14585: if test "$ld_shlibs_F77" = yes; then
! 14586: runpath_var=LD_RUN_PATH
! 14587: hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
! 14588: export_dynamic_flag_spec_F77='${wl}--export-dynamic'
! 14589: # ancient GNU ld didn't support --whole-archive et. al.
! 14590: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 14591: whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 14592: else
! 14593: whole_archive_flag_spec_F77=
! 14594: fi
! 14595: fi
! 14596: else
! 14597: # PORTME fill in a description of your system's linker (not GNU ld)
! 14598: case $host_os in
! 14599: aix3*)
! 14600: allow_undefined_flag_F77=unsupported
! 14601: always_export_symbols_F77=yes
! 14602: archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
! 14603: # Note: this linker hardcodes the directories in LIBPATH if there
! 14604: # are no directories specified by -L.
! 14605: hardcode_minus_L_F77=yes
! 14606: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 14607: # Neither direct hardcoding nor static linking is supported with a
! 14608: # broken collect2.
! 14609: hardcode_direct_F77=unsupported
! 14610: fi
! 14611: ;;
! 14612:
! 14613: aix4* | aix5*)
! 14614: if test "$host_cpu" = ia64; then
! 14615: # On IA64, the linker does run time linking by default, so we don't
! 14616: # have to do anything special.
! 14617: aix_use_runtimelinking=no
! 14618: exp_sym_flag='-Bexport'
! 14619: no_entry_flag=""
! 14620: else
! 14621: # If we're using GNU nm, then we don't want the "-C" option.
! 14622: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 14623: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 14624: export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 14625: else
! 14626: export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 14627: fi
! 14628: aix_use_runtimelinking=no
! 14629:
! 14630: # Test if we are trying to use run time linking or normal
! 14631: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 14632: # need to do runtime linking.
! 14633: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 14634: for ld_flag in $LDFLAGS; do
! 14635: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 14636: aix_use_runtimelinking=yes
! 14637: break
! 14638: fi
! 14639: done
! 14640: esac
! 14641:
! 14642: exp_sym_flag='-bexport'
! 14643: no_entry_flag='-bnoentry'
! 14644: fi
! 14645:
! 14646: # When large executables or shared objects are built, AIX ld can
! 14647: # have problems creating the table of contents. If linking a library
! 14648: # or program results in "error TOC overflow" add -mminimal-toc to
! 14649: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 14650: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 14651:
! 14652: archive_cmds_F77=''
! 14653: hardcode_direct_F77=yes
! 14654: hardcode_libdir_separator_F77=':'
! 14655: link_all_deplibs_F77=yes
! 14656:
! 14657: if test "$GCC" = yes; then
! 14658: case $host_os in aix4.012|aix4.012.*)
! 14659: # We only want to do this on AIX 4.2 and lower, the check
! 14660: # below for broken collect2 doesn't work under 4.3+
! 14661: collect2name=`${CC} -print-prog-name=collect2`
! 14662: if test -f "$collect2name" && \
! 14663: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 14664: then
! 14665: # We have reworked collect2
! 14666: hardcode_direct_F77=yes
! 14667: else
! 14668: # We have old collect2
! 14669: hardcode_direct_F77=unsupported
! 14670: # It fails to find uninstalled libraries when the uninstalled
! 14671: # path is not listed in the libpath. Setting hardcode_minus_L
! 14672: # to unsupported forces relinking
! 14673: hardcode_minus_L_F77=yes
! 14674: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14675: hardcode_libdir_separator_F77=
! 14676: fi
! 14677: esac
! 14678: shared_flag='-shared'
! 14679: else
! 14680: # not using gcc
! 14681: if test "$host_cpu" = ia64; then
! 14682: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 14683: # chokes on -Wl,-G. The following line is correct:
! 14684: shared_flag='-G'
! 14685: else
! 14686: if test "$aix_use_runtimelinking" = yes; then
! 14687: shared_flag='${wl}-G'
! 14688: else
! 14689: shared_flag='${wl}-bM:SRE'
! 14690: fi
! 14691: fi
! 14692: fi
! 14693:
! 14694: # It seems that -bexpall does not export symbols beginning with
! 14695: # underscore (_), so it is better to generate a list of symbols to export.
! 14696: always_export_symbols_F77=yes
! 14697: if test "$aix_use_runtimelinking" = yes; then
! 14698: # Warning - without using the other runtime loading flags (-brtl),
! 14699: # -berok will link without error, but may produce a broken library.
! 14700: allow_undefined_flag_F77='-berok'
! 14701: # Determine the default libpath from the value encoded in an empty executable.
! 14702: cat >conftest.$ac_ext <<_ACEOF
! 14703: program main
! 14704:
! 14705: end
! 14706: _ACEOF
! 14707: rm -f conftest.$ac_objext conftest$ac_exeext
! 14708: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 14709: (eval $ac_link) 2>&5
! 14710: ac_status=$?
! 14711: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14712: (exit $ac_status); } &&
! 14713: { ac_try='test -s conftest$ac_exeext'
! 14714: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14715: (eval $ac_try) 2>&5
! 14716: ac_status=$?
! 14717: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14718: (exit $ac_status); }; }; then
! 14719:
! 14720: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 14721: }'`
! 14722: # Check for a 64-bit object if we didn't find anything.
! 14723: 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; }
! 14724: }'`; fi
! 14725: else
! 14726: echo "$as_me: failed program was:" >&5
! 14727: sed 's/^/| /' conftest.$ac_ext >&5
! 14728:
! 14729: fi
! 14730: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 14731: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 14732:
! 14733: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
! 14734: archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 14735: else
! 14736: if test "$host_cpu" = ia64; then
! 14737: hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
! 14738: allow_undefined_flag_F77="-z nodefs"
! 14739: archive_expsym_cmds_F77="\$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"
! 14740: else
! 14741: # Determine the default libpath from the value encoded in an empty executable.
! 14742: cat >conftest.$ac_ext <<_ACEOF
! 14743: program main
! 14744:
! 14745: end
! 14746: _ACEOF
! 14747: rm -f conftest.$ac_objext conftest$ac_exeext
! 14748: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 14749: (eval $ac_link) 2>&5
! 14750: ac_status=$?
! 14751: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14752: (exit $ac_status); } &&
! 14753: { ac_try='test -s conftest$ac_exeext'
! 14754: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 14755: (eval $ac_try) 2>&5
! 14756: ac_status=$?
! 14757: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 14758: (exit $ac_status); }; }; then
! 14759:
! 14760: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 14761: }'`
! 14762: # Check for a 64-bit object if we didn't find anything.
! 14763: 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; }
! 14764: }'`; fi
! 14765: else
! 14766: echo "$as_me: failed program was:" >&5
! 14767: sed 's/^/| /' conftest.$ac_ext >&5
! 14768:
! 14769: fi
! 14770: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 14771: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 14772:
! 14773: hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
! 14774: # Warning - without using the other run time loading flags,
! 14775: # -berok will link without error, but may produce a broken library.
! 14776: no_undefined_flag_F77=' ${wl}-bernotok'
! 14777: allow_undefined_flag_F77=' ${wl}-berok'
! 14778: # -bexpall does not export symbols beginning with underscore (_)
! 14779: always_export_symbols_F77=yes
! 14780: # Exported symbols can be pulled into shared objects from archives
! 14781: whole_archive_flag_spec_F77=' '
! 14782: archive_cmds_need_lc_F77=yes
! 14783: # This is similar to how AIX traditionally builds it's shared libraries.
! 14784: archive_expsym_cmds_F77="\$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'
! 14785: fi
! 14786: fi
! 14787: ;;
! 14788:
! 14789: amigaos*)
! 14790: archive_cmds_F77='$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)'
! 14791: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14792: hardcode_minus_L_F77=yes
! 14793: # see comment about different semantics on the GNU ld section
! 14794: ld_shlibs_F77=no
! 14795: ;;
! 14796:
! 14797: bsdi4*)
! 14798: export_dynamic_flag_spec_F77=-rdynamic
! 14799: ;;
! 14800:
! 14801: cygwin* | mingw* | pw32*)
! 14802: # When not using gcc, we currently assume that we are using
! 14803: # Microsoft Visual C++.
! 14804: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 14805: # no search path for DLLs.
! 14806: hardcode_libdir_flag_spec_F77=' '
! 14807: allow_undefined_flag_F77=unsupported
! 14808: # Tell ltmain to make .lib files, not .a files.
! 14809: libext=lib
! 14810: # Tell ltmain to make .dll files, not .so files.
! 14811: shrext=".dll"
! 14812: # FIXME: Setting linknames here is a bad hack.
! 14813: archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 14814: # The linker will automatically build a .lib file if we build a DLL.
! 14815: old_archive_From_new_cmds_F77='true'
! 14816: # FIXME: Should let the user specify the lib program.
! 14817: old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 14818: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 14819: enable_shared_with_static_runtimes_F77=yes
! 14820: ;;
! 14821:
! 14822: darwin* | rhapsody*)
! 14823: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 14824: archive_cmds_need_lc_F77=no
! 14825: case "$host_os" in
! 14826: rhapsody* | darwin1.[012])
! 14827: allow_undefined_flag_F77='-undefined suppress'
! 14828: ;;
! 14829: *) # Darwin 1.3 on
! 14830: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
! 14831: ;;
! 14832: esac
! 14833: # FIXME: Relying on posixy $() will cause problems for
! 14834: # cross-compilation, but unfortunately the echo tests do not
! 14835: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 14836: # `"' quotes if we put them in here... so don't!
! 14837: lt_int_apple_cc_single_mod=no
! 14838: output_verbose_link_cmd='echo'
! 14839: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
! 14840: lt_int_apple_cc_single_mod=yes
! 14841: fi
! 14842: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 14843: archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 14844: else
! 14845: archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 14846: fi
! 14847: module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
! 14848: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
! 14849: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 14850: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 14851: else
! 14852: archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 14853: fi
! 14854: module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 14855: hardcode_direct_F77=no
! 14856: hardcode_automatic_F77=yes
! 14857: hardcode_shlibpath_var_F77=unsupported
! 14858: whole_archive_flag_spec_F77='-all_load $convenience'
! 14859: link_all_deplibs_F77=yes
! 14860: fi
! 14861: ;;
! 14862:
! 14863: dgux*)
! 14864: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14865: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14866: hardcode_shlibpath_var_F77=no
! 14867: ;;
! 14868:
! 14869: freebsd1*)
! 14870: ld_shlibs_F77=no
! 14871: ;;
! 14872:
! 14873: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 14874: # support. Future versions do this automatically, but an explicit c++rt0.o
! 14875: # does not break anything, and helps significantly (at the cost of a little
! 14876: # extra space).
! 14877: freebsd2.2*)
! 14878: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 14879: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14880: hardcode_direct_F77=yes
! 14881: hardcode_shlibpath_var_F77=no
! 14882: ;;
! 14883:
! 14884: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 14885: freebsd2*)
! 14886: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 14887: hardcode_direct_F77=yes
! 14888: hardcode_minus_L_F77=yes
! 14889: hardcode_shlibpath_var_F77=no
! 14890: ;;
! 14891:
! 14892: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 14893: freebsd*)
! 14894: archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 14895: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14896: hardcode_direct_F77=yes
! 14897: hardcode_shlibpath_var_F77=no
! 14898: ;;
! 14899:
! 14900: hpux9*)
! 14901: if test "$GCC" = yes; then
! 14902: archive_cmds_F77='$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'
! 14903: else
! 14904: archive_cmds_F77='$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'
! 14905: fi
! 14906: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 14907: hardcode_libdir_separator_F77=:
! 14908: hardcode_direct_F77=yes
! 14909:
! 14910: # hardcode_minus_L: Not really in the search PATH,
! 14911: # but as the default location of the library.
! 14912: hardcode_minus_L_F77=yes
! 14913: export_dynamic_flag_spec_F77='${wl}-E'
! 14914: ;;
! 14915:
! 14916: hpux10* | hpux11*)
! 14917: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 14918: case "$host_cpu" in
! 14919: hppa*64*|ia64*)
! 14920: archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 14921: ;;
! 14922: *)
! 14923: archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 14924: ;;
! 14925: esac
! 14926: else
! 14927: case "$host_cpu" in
! 14928: hppa*64*|ia64*)
! 14929: archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14930: ;;
! 14931: *)
! 14932: archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 14933: ;;
! 14934: esac
! 14935: fi
! 14936: if test "$with_gnu_ld" = no; then
! 14937: case "$host_cpu" in
! 14938: hppa*64*)
! 14939: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 14940: hardcode_libdir_flag_spec_ld_F77='+b $libdir'
! 14941: hardcode_libdir_separator_F77=:
! 14942: hardcode_direct_F77=no
! 14943: hardcode_shlibpath_var_F77=no
! 14944: ;;
! 14945: ia64*)
! 14946: hardcode_libdir_flag_spec_F77='-L$libdir'
! 14947: hardcode_direct_F77=no
! 14948: hardcode_shlibpath_var_F77=no
! 14949:
! 14950: # hardcode_minus_L: Not really in the search PATH,
! 14951: # but as the default location of the library.
! 14952: hardcode_minus_L_F77=yes
! 14953: ;;
! 14954: *)
! 14955: hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
! 14956: hardcode_libdir_separator_F77=:
! 14957: hardcode_direct_F77=yes
! 14958: export_dynamic_flag_spec_F77='${wl}-E'
! 14959:
! 14960: # hardcode_minus_L: Not really in the search PATH,
! 14961: # but as the default location of the library.
! 14962: hardcode_minus_L_F77=yes
! 14963: ;;
! 14964: esac
! 14965: fi
! 14966: ;;
! 14967:
! 14968: irix5* | irix6* | nonstopux*)
! 14969: if test "$GCC" = yes; then
! 14970: archive_cmds_F77='$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'
! 14971: else
! 14972: archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 14973: hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
! 14974: fi
! 14975: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 14976: hardcode_libdir_separator_F77=:
! 14977: link_all_deplibs_F77=yes
! 14978: ;;
! 14979:
! 14980: netbsd*)
! 14981: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 14982: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 14983: else
! 14984: archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 14985: fi
! 14986: hardcode_libdir_flag_spec_F77='-R$libdir'
! 14987: hardcode_direct_F77=yes
! 14988: hardcode_shlibpath_var_F77=no
! 14989: ;;
! 14990:
! 14991: newsos6)
! 14992: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 14993: hardcode_direct_F77=yes
! 14994: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 14995: hardcode_libdir_separator_F77=:
! 14996: hardcode_shlibpath_var_F77=no
! 14997: ;;
! 14998:
! 14999: openbsd*)
! 15000: case "$host_cpu" in
! 15001: m88k|hppa|vax)
! 15002: ld_shlibs_F77=no
! 15003: ;;
! 15004: *)
! 15005: hardcode_direct_F77=yes
! 15006: hardcode_shlibpath_var_F77=no
! 15007: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 15008: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 15009: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 15010: export_dynamic_flag_spec_F77='${wl}-E'
! 15011: else
! 15012: case $host_os in
! 15013: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 15014: archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 15015: hardcode_libdir_flag_spec_F77='-R$libdir'
! 15016: ;;
! 15017: *)
! 15018: archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 15019: hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
! 15020: ;;
! 15021: esac
! 15022: fi
! 15023: ;;
! 15024: esac
! 15025: ;;
! 15026:
! 15027: os2*)
! 15028: hardcode_libdir_flag_spec_F77='-L$libdir'
! 15029: hardcode_minus_L_F77=yes
! 15030: allow_undefined_flag_F77=unsupported
! 15031: archive_cmds_F77='$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'
! 15032: old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 15033: ;;
! 15034:
! 15035: osf3*)
! 15036: if test "$GCC" = yes; then
! 15037: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
! 15038: archive_cmds_F77='$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'
! 15039: else
! 15040: allow_undefined_flag_F77=' -expect_unresolved \*'
! 15041: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 15042: fi
! 15043: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 15044: hardcode_libdir_separator_F77=:
! 15045: ;;
! 15046:
! 15047: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 15048: if test "$GCC" = yes; then
! 15049: allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
! 15050: archive_cmds_F77='$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'
! 15051: hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
! 15052: else
! 15053: allow_undefined_flag_F77=' -expect_unresolved \*'
! 15054: archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 15055: archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 15056: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
! 15057:
! 15058: # Both c and cxx compiler support -rpath directly
! 15059: hardcode_libdir_flag_spec_F77='-rpath $libdir'
! 15060: fi
! 15061: hardcode_libdir_separator_F77=:
! 15062: ;;
! 15063:
! 15064: sco3.2v5*)
! 15065: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15066: hardcode_shlibpath_var_F77=no
! 15067: export_dynamic_flag_spec_F77='${wl}-Bexport'
! 15068: runpath_var=LD_RUN_PATH
! 15069: hardcode_runpath_var=yes
! 15070: ;;
! 15071:
! 15072: solaris*)
! 15073: no_undefined_flag_F77=' -z text'
! 15074: if test "$GCC" = yes; then
! 15075: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15076: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 15077: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 15078: else
! 15079: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15080: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 15081: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 15082: fi
! 15083: hardcode_libdir_flag_spec_F77='-R$libdir'
! 15084: hardcode_shlibpath_var_F77=no
! 15085: case $host_os in
! 15086: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 15087: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
! 15088: whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
! 15089: esac
! 15090: link_all_deplibs_F77=yes
! 15091: ;;
! 15092:
! 15093: sunos4*)
! 15094: if test "x$host_vendor" = xsequent; then
! 15095: # Use $CC to link under sequent, because it throws in some extra .o
! 15096: # files that make .init and .fini sections work.
! 15097: archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 15098: else
! 15099: archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 15100: fi
! 15101: hardcode_libdir_flag_spec_F77='-L$libdir'
! 15102: hardcode_direct_F77=yes
! 15103: hardcode_minus_L_F77=yes
! 15104: hardcode_shlibpath_var_F77=no
! 15105: ;;
! 15106:
! 15107: sysv4)
! 15108: case $host_vendor in
! 15109: sni)
! 15110: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15111: hardcode_direct_F77=yes # is this really true???
! 15112: ;;
! 15113: siemens)
! 15114: ## LD is ld it makes a PLAMLIB
! 15115: ## CC just makes a GrossModule.
! 15116: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 15117: reload_cmds_F77='$CC -r -o $output$reload_objs'
! 15118: hardcode_direct_F77=no
! 15119: ;;
! 15120: motorola)
! 15121: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15122: hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
! 15123: ;;
! 15124: esac
! 15125: runpath_var='LD_RUN_PATH'
! 15126: hardcode_shlibpath_var_F77=no
! 15127: ;;
! 15128:
! 15129: sysv4.3*)
! 15130: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15131: hardcode_shlibpath_var_F77=no
! 15132: export_dynamic_flag_spec_F77='-Bexport'
! 15133: ;;
! 15134:
! 15135: sysv4*MP*)
! 15136: if test -d /usr/nec; then
! 15137: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15138: hardcode_shlibpath_var_F77=no
! 15139: runpath_var=LD_RUN_PATH
! 15140: hardcode_runpath_var=yes
! 15141: ld_shlibs_F77=yes
! 15142: fi
! 15143: ;;
! 15144:
! 15145: sysv4.2uw2*)
! 15146: archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 15147: hardcode_direct_F77=yes
! 15148: hardcode_minus_L_F77=no
! 15149: hardcode_shlibpath_var_F77=no
! 15150: hardcode_runpath_var=yes
! 15151: runpath_var=LD_RUN_PATH
! 15152: ;;
! 15153:
! 15154: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
! 15155: no_undefined_flag_F77='${wl}-z ${wl}text'
! 15156: if test "$GCC" = yes; then
! 15157: archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15158: else
! 15159: archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 15160: fi
! 15161: runpath_var='LD_RUN_PATH'
! 15162: hardcode_shlibpath_var_F77=no
! 15163: ;;
! 15164:
! 15165: sysv5*)
! 15166: no_undefined_flag_F77=' -z text'
! 15167: # $CC -shared without GNU ld will not create a library from C++
! 15168: # object files and a static libstdc++, better avoid it by now
! 15169: archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15170: archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 15171: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 15172: hardcode_libdir_flag_spec_F77=
! 15173: hardcode_shlibpath_var_F77=no
! 15174: runpath_var='LD_RUN_PATH'
! 15175: ;;
! 15176:
! 15177: uts4*)
! 15178: archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 15179: hardcode_libdir_flag_spec_F77='-L$libdir'
! 15180: hardcode_shlibpath_var_F77=no
! 15181: ;;
! 15182:
! 15183: *)
! 15184: ld_shlibs_F77=no
! 15185: ;;
! 15186: esac
! 15187: fi
! 15188:
! 15189: echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
! 15190: echo "${ECHO_T}$ld_shlibs_F77" >&6
! 15191: test "$ld_shlibs_F77" = no && can_build_shared=no
! 15192:
! 15193: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 15194: if test "$GCC" = yes; then
! 15195: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 15196: fi
! 15197:
! 15198: #
! 15199: # Do we need to explicitly link libc?
! 15200: #
! 15201: case "x$archive_cmds_need_lc_F77" in
! 15202: x|xyes)
! 15203: # Assume -lc should be added
! 15204: archive_cmds_need_lc_F77=yes
! 15205:
! 15206: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 15207: case $archive_cmds_F77 in
! 15208: *'~'*)
! 15209: # FIXME: we may have to deal with multi-command sequences.
! 15210: ;;
! 15211: '$CC '*)
! 15212: # Test whether the compiler implicitly links with -lc since on some
! 15213: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 15214: # to ld, don't add -lc before -lgcc.
! 15215: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 15216: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 15217: $rm conftest*
! 15218: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 15219:
! 15220: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 15221: (eval $ac_compile) 2>&5
! 15222: ac_status=$?
! 15223: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15224: (exit $ac_status); } 2>conftest.err; then
! 15225: soname=conftest
! 15226: lib=conftest
! 15227: libobjs=conftest.$ac_objext
! 15228: deplibs=
! 15229: wl=$lt_prog_compiler_wl_F77
! 15230: compiler_flags=-v
! 15231: linker_flags=-v
! 15232: verstring=
! 15233: output_objdir=.
! 15234: libname=conftest
! 15235: lt_save_allow_undefined_flag=$allow_undefined_flag_F77
! 15236: allow_undefined_flag_F77=
! 15237: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 15238: (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 15239: ac_status=$?
! 15240: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15241: (exit $ac_status); }
! 15242: then
! 15243: archive_cmds_need_lc_F77=no
! 15244: else
! 15245: archive_cmds_need_lc_F77=yes
! 15246: fi
! 15247: allow_undefined_flag_F77=$lt_save_allow_undefined_flag
! 15248: else
! 15249: cat conftest.err 1>&5
! 15250: fi
! 15251: $rm conftest*
! 15252: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
! 15253: echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
! 15254: ;;
! 15255: esac
! 15256: fi
! 15257: ;;
! 15258: esac
! 15259:
! 15260: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 15261: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 15262: hardcode_action_F77=
! 15263: if test -n "$hardcode_libdir_flag_spec_F77" || \
! 15264: test -n "$runpath_var F77" || \
! 15265: test "X$hardcode_automatic_F77"="Xyes" ; then
! 15266:
! 15267: # We can hardcode non-existant directories.
! 15268: if test "$hardcode_direct_F77" != no &&
! 15269: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 15270: # have to relink, otherwise we might link with an installed library
! 15271: # when we should be linking with a yet-to-be-installed one
! 15272: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
! 15273: test "$hardcode_minus_L_F77" != no; then
! 15274: # Linking always hardcodes the temporary library directory.
! 15275: hardcode_action_F77=relink
! 15276: else
! 15277: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 15278: hardcode_action_F77=immediate
! 15279: fi
! 15280: else
! 15281: # We cannot hardcode anything, or else we can only hardcode existing
! 15282: # directories.
! 15283: hardcode_action_F77=unsupported
! 15284: fi
! 15285: echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
! 15286: echo "${ECHO_T}$hardcode_action_F77" >&6
! 15287:
! 15288: if test "$hardcode_action_F77" = relink; then
! 15289: # Fast installation is not supported
! 15290: enable_fast_install=no
! 15291: elif test "$shlibpath_overrides_runpath" = yes ||
! 15292: test "$enable_shared" = no; then
! 15293: # Fast installation is not necessary
! 15294: enable_fast_install=needless
! 15295: fi
! 15296:
! 15297: striplib=
! 15298: old_striplib=
! 15299: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 15300: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 15301: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 15302: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 15303: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 15304: echo "$as_me:$LINENO: result: yes" >&5
! 15305: echo "${ECHO_T}yes" >&6
! 15306: else
! 15307: # FIXME - insert some real tests, host_os isn't really good enough
! 15308: case $host_os in
! 15309: darwin*)
! 15310: if test -n "$STRIP" ; then
! 15311: striplib="$STRIP -x"
! 15312: echo "$as_me:$LINENO: result: yes" >&5
! 15313: echo "${ECHO_T}yes" >&6
! 15314: else
! 15315: echo "$as_me:$LINENO: result: no" >&5
! 15316: echo "${ECHO_T}no" >&6
! 15317: fi
! 15318: ;;
! 15319: *)
! 15320: echo "$as_me:$LINENO: result: no" >&5
! 15321: echo "${ECHO_T}no" >&6
! 15322: ;;
! 15323: esac
! 15324: fi
! 15325:
! 15326: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 15327: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 15328: library_names_spec=
! 15329: libname_spec='lib$name'
! 15330: soname_spec=
! 15331: shrext=".so"
! 15332: postinstall_cmds=
! 15333: postuninstall_cmds=
! 15334: finish_cmds=
! 15335: finish_eval=
! 15336: shlibpath_var=
! 15337: shlibpath_overrides_runpath=unknown
! 15338: version_type=none
! 15339: dynamic_linker="$host_os ld.so"
! 15340: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 15341: if test "$GCC" = yes; then
! 15342: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 15343: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 15344: # if the path contains ";" then we assume it to be the separator
! 15345: # otherwise default to the standard path separator (i.e. ":") - it is
! 15346: # assumed that no part of a normal pathname contains ";" but that should
! 15347: # okay in the real world where ";" in dirpaths is itself problematic.
! 15348: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 15349: else
! 15350: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 15351: fi
! 15352: else
! 15353: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 15354: fi
! 15355: need_lib_prefix=no
! 15356: hardcode_into_libs=no
! 15357:
! 15358: # when you set need_version to no, make sure it does not cause -set_version
! 15359: # flags to be left without arguments
! 15360: need_version=no
! 15361:
! 15362: case $host_os in
! 15363: aix3*)
! 15364: version_type=linux
! 15365: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 15366: shlibpath_var=LIBPATH
! 15367:
! 15368: # AIX 3 has no versioning support, so we append a major version to the name.
! 15369: soname_spec='${libname}${release}${shared_ext}$major'
! 15370: ;;
! 15371:
! 15372: aix4* | aix5*)
! 15373: version_type=linux
! 15374: hardcode_into_libs=yes
! 15375: if test "$host_cpu" = ia64; then
! 15376: # AIX 5 supports IA64
! 15377: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 15378: shlibpath_var=LD_LIBRARY_PATH
! 15379: else
! 15380: # With GCC up to 2.95.x, collect2 would create an import file
! 15381: # for dependence libraries. The import file would start with
! 15382: # the line `#! .'. This would cause the generated library to
! 15383: # depend on `.', always an invalid library. This was fixed in
! 15384: # development snapshots of GCC prior to 3.0.
! 15385: case $host_os in
! 15386: aix4 | aix4.[01] | aix4.[01].*)
! 15387: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 15388: echo ' yes '
! 15389: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 15390: :
! 15391: else
! 15392: can_build_shared=no
! 15393: fi
! 15394: ;;
! 15395: esac
! 15396: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 15397: # soname into executable. Probably we can add versioning support to
! 15398: # collect2, so additional links can be useful in future.
! 15399: if test "$aix_use_runtimelinking" = yes; then
! 15400: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 15401: # instead of lib<name>.a to let people know that these are not
! 15402: # typical AIX shared libraries.
! 15403: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15404: else
! 15405: # We preserve .a as extension for shared libraries through AIX4.2
! 15406: # and later when we are not doing run time linking.
! 15407: library_names_spec='${libname}${release}.a $libname.a'
! 15408: soname_spec='${libname}${release}${shared_ext}$major'
! 15409: fi
! 15410: shlibpath_var=LIBPATH
! 15411: fi
! 15412: ;;
! 15413:
! 15414: amigaos*)
! 15415: library_names_spec='$libname.ixlibrary $libname.a'
! 15416: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 15417: 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'
! 15418: ;;
! 15419:
! 15420: beos*)
! 15421: library_names_spec='${libname}${shared_ext}'
! 15422: dynamic_linker="$host_os ld.so"
! 15423: shlibpath_var=LIBRARY_PATH
! 15424: ;;
! 15425:
! 15426: bsdi4*)
! 15427: version_type=linux
! 15428: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15429: soname_spec='${libname}${release}${shared_ext}$major'
! 15430: #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 15431: shlibpath_var=LD_LIBRARY_PATH
! 15432: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 15433: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 15434: # the default ld.so.conf also contains /usr/contrib/lib and
! 15435: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 15436: # libtool to hard-code these into programs
! 15437: ;;
! 15438:
! 15439: cygwin* | mingw* | pw32*)
! 15440: version_type=windows
! 15441: shrext=".dll"
! 15442:
! 15443: case $GCC,$host_os in
! 15444: yes,cygwin* | yes,mingw* | yes,pw32*)
! 15445: library_names_spec='$libname.dll.a'
! 15446: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 15447: postinstall_cmds='base_file=`basename \${file}`~
! 15448: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 15449: dldir=$destdir/`dirname \$dlpath`~
! 15450: test -d \$dldir || mkdir -p \$dldir~
! 15451: $install_prog $dir/$dlname \$dldir/$dlname'
! 15452: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 15453: dlpath=$dir/\$dldll~
! 15454: $rm \$dlpath'
! 15455: shlibpath_overrides_runpath=yes
! 15456:
! 15457: case $host_os in
! 15458: cygwin*)
! 15459: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 15460: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 15461: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
! 15462: ;;
! 15463: mingw*)
! 15464: # MinGW DLLs use traditional 'lib' prefix
! 15465: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 15466: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 15467: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 15468: # It is most probably a Windows format PATH printed by
! 15469: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 15470: # path with ; separators, and with drive letters. We can handle the
! 15471: # drive letters (cygwin fileutils understands them), so leave them,
! 15472: # especially as we might pass files found there to a mingw objdump,
! 15473: # which wouldn't understand a cygwinified path. Ahh.
! 15474: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 15475: else
! 15476: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 15477: fi
! 15478: ;;
! 15479: pw32*)
! 15480: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 15481: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
! 15482: ;;
! 15483: esac
! 15484: ;;
! 15485:
! 15486: *)
! 15487: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 15488: ;;
! 15489: esac
! 15490: dynamic_linker='Win32 ld.exe'
! 15491: # FIXME: first we should search . and the directory the executable is in
! 15492: shlibpath_var=PATH
! 15493: ;;
! 15494:
! 15495: darwin* | rhapsody*)
! 15496: dynamic_linker="$host_os dyld"
! 15497: version_type=darwin
! 15498: # FIXME: Relying on posixy $() will cause problems for
! 15499: # cross-compilation, but unfortunately the echo tests do not
! 15500: # yet detect zsh echo's removal of \ escapes.
! 15501: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 15502: soname_spec='${libname}${release}${major}$shared_ext'
! 15503: shlibpath_overrides_runpath=yes
! 15504: shlibpath_var=DYLD_LIBRARY_PATH
! 15505: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
! 15506: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 15507: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 15508: 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"`
! 15509: fi
! 15510: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 15511: ;;
! 15512:
! 15513: dgux*)
! 15514: version_type=linux
! 15515: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 15516: soname_spec='${libname}${release}${shared_ext}$major'
! 15517: shlibpath_var=LD_LIBRARY_PATH
! 15518: ;;
! 15519:
! 15520: freebsd1*)
! 15521: dynamic_linker=no
! 15522: ;;
! 15523:
! 15524: freebsd*)
! 15525: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 15526: version_type=freebsd-$objformat
! 15527: case $version_type in
! 15528: freebsd-elf*)
! 15529: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 15530: ;;
! 15531: freebsd-*)
! 15532: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 15533: ;;
! 15534: esac
! 15535: shlibpath_var=LD_LIBRARY_PATH
! 15536: case $host_os in
! 15537: freebsd2*)
! 15538: shlibpath_overrides_runpath=yes
! 15539: ;;
! 15540: freebsd3.01* | freebsdelf3.01*)
! 15541: shlibpath_overrides_runpath=yes
! 15542: hardcode_into_libs=yes
! 15543: ;;
! 15544: *) # from 3.2 on
! 15545: shlibpath_overrides_runpath=no
! 15546: hardcode_into_libs=yes
! 15547: ;;
! 15548: esac
! 15549: ;;
! 15550:
! 15551: gnu*)
! 15552: version_type=linux
! 15553: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 15554: soname_spec='${libname}${release}${shared_ext}$major'
! 15555: shlibpath_var=LD_LIBRARY_PATH
! 15556: hardcode_into_libs=yes
! 15557: ;;
! 15558:
! 15559: hpux9* | hpux10* | hpux11*)
! 15560: # Give a soname corresponding to the major version so that dld.sl refuses to
! 15561: # link against other versions.
! 15562: version_type=sunos
! 15563: case "$host_cpu" in
! 15564: ia64*)
! 15565: shrext='.so'
! 15566: hardcode_into_libs=yes
! 15567: dynamic_linker="$host_os dld.so"
! 15568: shlibpath_var=LD_LIBRARY_PATH
! 15569: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 15570: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15571: soname_spec='${libname}${release}${shared_ext}$major'
! 15572: if test "X$HPUX_IA64_MODE" = X32; then
! 15573: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 15574: else
! 15575: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 15576: fi
! 15577: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 15578: ;;
! 15579: hppa*64*)
! 15580: shrext='.sl'
! 15581: hardcode_into_libs=yes
! 15582: dynamic_linker="$host_os dld.sl"
! 15583: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 15584: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 15585: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15586: soname_spec='${libname}${release}${shared_ext}$major'
! 15587: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 15588: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 15589: ;;
! 15590: *)
! 15591: shrext='.sl'
! 15592: dynamic_linker="$host_os dld.sl"
! 15593: shlibpath_var=SHLIB_PATH
! 15594: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 15595: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15596: soname_spec='${libname}${release}${shared_ext}$major'
! 15597: ;;
! 15598: esac
! 15599: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 15600: postinstall_cmds='chmod 555 $lib'
! 15601: ;;
! 15602:
! 15603: irix5* | irix6* | nonstopux*)
! 15604: case $host_os in
! 15605: nonstopux*) version_type=nonstopux ;;
! 15606: *)
! 15607: if test "$lt_cv_prog_gnu_ld" = yes; then
! 15608: version_type=linux
! 15609: else
! 15610: version_type=irix
! 15611: fi ;;
! 15612: esac
! 15613: soname_spec='${libname}${release}${shared_ext}$major'
! 15614: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 15615: case $host_os in
! 15616: irix5* | nonstopux*)
! 15617: libsuff= shlibsuff=
! 15618: ;;
! 15619: *)
! 15620: case $LD in # libtool.m4 will add one of these switches to LD
! 15621: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 15622: libsuff= shlibsuff= libmagic=32-bit;;
! 15623: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 15624: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 15625: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 15626: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 15627: *) libsuff= shlibsuff= libmagic=never-match;;
! 15628: esac
! 15629: ;;
! 15630: esac
! 15631: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 15632: shlibpath_overrides_runpath=no
! 15633: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 15634: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 15635: hardcode_into_libs=yes
! 15636: ;;
! 15637:
! 15638: # No shared lib support for Linux oldld, aout, or coff.
! 15639: linux*oldld* | linux*aout* | linux*coff*)
! 15640: dynamic_linker=no
! 15641: ;;
! 15642:
! 15643: # This must be Linux ELF.
! 15644: linux*)
! 15645: version_type=linux
! 15646: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15647: soname_spec='${libname}${release}${shared_ext}$major'
! 15648: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 15649: shlibpath_var=LD_LIBRARY_PATH
! 15650: shlibpath_overrides_runpath=no
! 15651: # This implies no fast_install, which is unacceptable.
! 15652: # Some rework will be needed to allow for fast_install
! 15653: # before this can be enabled.
! 15654: hardcode_into_libs=yes
! 15655:
! 15656: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 15657: # powerpc, because MkLinux only supported shared libraries with the
! 15658: # GNU dynamic linker. Since this was broken with cross compilers,
! 15659: # most powerpc-linux boxes support dynamic linking these days and
! 15660: # people can always --disable-shared, the test was removed, and we
! 15661: # assume the GNU/Linux dynamic linker is in use.
! 15662: dynamic_linker='GNU/Linux ld.so'
! 15663: ;;
! 15664:
! 15665: netbsd*)
! 15666: version_type=sunos
! 15667: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 15668: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 15669: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 15670: dynamic_linker='NetBSD (a.out) ld.so'
! 15671: else
! 15672: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
! 15673: soname_spec='${libname}${release}${shared_ext}$major'
! 15674: dynamic_linker='NetBSD ld.elf_so'
! 15675: fi
! 15676: shlibpath_var=LD_LIBRARY_PATH
! 15677: shlibpath_overrides_runpath=yes
! 15678: hardcode_into_libs=yes
! 15679: ;;
! 15680:
! 15681: newsos6)
! 15682: version_type=linux
! 15683: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15684: shlibpath_var=LD_LIBRARY_PATH
! 15685: shlibpath_overrides_runpath=yes
! 15686: ;;
! 15687:
! 15688: nto-qnx)
! 15689: version_type=linux
! 15690: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15691: soname_spec='${libname}${release}${shared_ext}$major'
! 15692: shlibpath_var=LD_LIBRARY_PATH
! 15693: shlibpath_overrides_runpath=yes
! 15694: ;;
! 15695:
! 15696: openbsd*)
! 15697: version_type=sunos
! 15698: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 15699: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 15700: shlibpath_var=LD_LIBRARY_PATH
! 15701: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 15702: dynamic_linker='OpenBSD (ELF) ld.so'
! 15703: case $host_os in
! 15704: openbsd2.[89] | openbsd2.[89].*)
! 15705: shlibpath_overrides_runpath=no
! 15706: ;;
! 15707: *)
! 15708: shlibpath_overrides_runpath=yes
! 15709: ;;
! 15710: esac
! 15711: else
! 15712: dynamic_linker='OpenBSD (a.out) ld.so'
! 15713: shlibpath_overrides_runpath=yes
! 15714: fi
! 15715: ;;
! 15716:
! 15717: os2*)
! 15718: libname_spec='$name'
! 15719: shrext=".dll"
! 15720: library_names_spec='$libname${shared_ext} $libname.a'
! 15721: dynamic_linker='OS/2 ld.exe'
! 15722: shlibpath_var=LIBPATH
! 15723: ;;
! 15724:
! 15725: osf3* | osf4* | osf5*)
! 15726: version_type=osf
! 15727: soname_spec='${libname}${release}${shared_ext}$major'
! 15728: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15729: shlibpath_var=LD_LIBRARY_PATH
! 15730: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 15731: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 15732: ;;
! 15733:
! 15734: sco3.2v5*)
! 15735: version_type=osf
! 15736: soname_spec='${libname}${release}${shared_ext}$major'
! 15737: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15738: shlibpath_var=LD_LIBRARY_PATH
! 15739: ;;
! 15740:
! 15741: solaris*)
! 15742: version_type=linux
! 15743: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15744: soname_spec='${libname}${release}${shared_ext}$major'
! 15745: shlibpath_var=LD_LIBRARY_PATH
! 15746: shlibpath_overrides_runpath=yes
! 15747: hardcode_into_libs=yes
! 15748: # ldd complains unless libraries are executable
! 15749: postinstall_cmds='chmod +x $lib'
! 15750: ;;
! 15751:
! 15752: sunos4*)
! 15753: version_type=sunos
! 15754: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 15755: #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 15756: shlibpath_var=LD_LIBRARY_PATH
! 15757: shlibpath_overrides_runpath=yes
! 15758: ;;
! 15759:
! 15760: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 15761: version_type=linux
! 15762: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15763: soname_spec='${libname}${release}${shared_ext}$major'
! 15764: shlibpath_var=LD_LIBRARY_PATH
! 15765: case $host_vendor in
! 15766: sni)
! 15767: shlibpath_overrides_runpath=no
! 15768: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 15769: runpath_var=LD_RUN_PATH
! 15770: ;;
! 15771: motorola)
! 15772: shlibpath_overrides_runpath=no
! 15773: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 15774: ;;
! 15775: esac
! 15776: ;;
! 15777:
! 15778: sysv4*MP*)
! 15779: if test -d /usr/nec ;then
! 15780: version_type=linux
! 15781: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 15782: soname_spec='$libname${shared_ext}.$major'
! 15783: shlibpath_var=LD_LIBRARY_PATH
! 15784: fi
! 15785: ;;
! 15786:
! 15787: uts4*)
! 15788: version_type=linux
! 15789: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 15790: soname_spec='${libname}${release}${shared_ext}$major'
! 15791: shlibpath_var=LD_LIBRARY_PATH
! 15792: ;;
! 15793:
! 15794: *)
! 15795: dynamic_linker=no
! 15796: ;;
! 15797: esac
! 15798: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 15799: echo "${ECHO_T}$dynamic_linker" >&6
! 15800: test "$dynamic_linker" = no && can_build_shared=no
! 15801:
! 15802:
! 15803: # The else clause should only fire when bootstrapping the
! 15804: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 15805: # with your package, and you will get complaints that there are
! 15806: # no rules to generate ltmain.sh.
! 15807: if test -f "$ltmain"; then
! 15808: # See if we are running on zsh, and set the options which allow our commands through
! 15809: # without removal of \ escapes.
! 15810: if test -n "${ZSH_VERSION+set}" ; then
! 15811: setopt NO_GLOB_SUBST
! 15812: fi
! 15813: # Now quote all the things that may contain metacharacters while being
! 15814: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 15815: # variables and quote the copies for generation of the libtool script.
! 15816: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
! 15817: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 15818: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 15819: deplibs_check_method reload_flag reload_cmds need_locks \
! 15820: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 15821: lt_cv_sys_global_symbol_to_c_name_address \
! 15822: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 15823: old_postinstall_cmds old_postuninstall_cmds \
! 15824: compiler_F77 \
! 15825: CC_F77 \
! 15826: LD_F77 \
! 15827: lt_prog_compiler_wl_F77 \
! 15828: lt_prog_compiler_pic_F77 \
! 15829: lt_prog_compiler_static_F77 \
! 15830: lt_prog_compiler_no_builtin_flag_F77 \
! 15831: export_dynamic_flag_spec_F77 \
! 15832: thread_safe_flag_spec_F77 \
! 15833: whole_archive_flag_spec_F77 \
! 15834: enable_shared_with_static_runtimes_F77 \
! 15835: old_archive_cmds_F77 \
! 15836: old_archive_from_new_cmds_F77 \
! 15837: predep_objects_F77 \
! 15838: postdep_objects_F77 \
! 15839: predeps_F77 \
! 15840: postdeps_F77 \
! 15841: compiler_lib_search_path_F77 \
! 15842: archive_cmds_F77 \
! 15843: archive_expsym_cmds_F77 \
! 15844: postinstall_cmds_F77 \
! 15845: postuninstall_cmds_F77 \
! 15846: old_archive_from_expsyms_cmds_F77 \
! 15847: allow_undefined_flag_F77 \
! 15848: no_undefined_flag_F77 \
! 15849: export_symbols_cmds_F77 \
! 15850: hardcode_libdir_flag_spec_F77 \
! 15851: hardcode_libdir_flag_spec_ld_F77 \
! 15852: hardcode_libdir_separator_F77 \
! 15853: hardcode_automatic_F77 \
! 15854: module_cmds_F77 \
! 15855: module_expsym_cmds_F77 \
! 15856: lt_cv_prog_compiler_c_o_F77 \
! 15857: exclude_expsyms_F77 \
! 15858: include_expsyms_F77; do
! 15859:
! 15860: case $var in
! 15861: old_archive_cmds_F77 | \
! 15862: old_archive_from_new_cmds_F77 | \
! 15863: archive_cmds_F77 | \
! 15864: archive_expsym_cmds_F77 | \
! 15865: module_cmds_F77 | \
! 15866: module_expsym_cmds_F77 | \
! 15867: old_archive_from_expsyms_cmds_F77 | \
! 15868: export_symbols_cmds_F77 | \
! 15869: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 15870: postinstall_cmds | postuninstall_cmds | \
! 15871: old_postinstall_cmds | old_postuninstall_cmds | \
! 15872: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 15873: # Double-quote double-evaled strings.
! 15874: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 15875: ;;
! 15876: *)
! 15877: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 15878: ;;
! 15879: esac
! 15880: done
! 15881:
! 15882: case $lt_echo in
! 15883: *'\$0 --fallback-echo"')
! 15884: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 15885: ;;
! 15886: esac
! 15887:
! 15888: cfgfile="$ofile"
! 15889:
! 15890: cat <<__EOF__ >> "$cfgfile"
! 15891: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 15892:
! 15893: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 15894:
! 15895: # Shell to use when invoking shell scripts.
! 15896: SHELL=$lt_SHELL
! 15897:
! 15898: # Whether or not to build shared libraries.
! 15899: build_libtool_libs=$enable_shared
! 15900:
! 15901: # Whether or not to build static libraries.
! 15902: build_old_libs=$enable_static
! 15903:
! 15904: # Whether or not to add -lc for building shared libraries.
! 15905: build_libtool_need_lc=$archive_cmds_need_lc_F77
! 15906:
! 15907: # Whether or not to disallow shared libs when runtime libs are static
! 15908: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
! 15909:
! 15910: # Whether or not to optimize for fast installation.
! 15911: fast_install=$enable_fast_install
! 15912:
! 15913: # The host system.
! 15914: host_alias=$host_alias
! 15915: host=$host
! 15916:
! 15917: # An echo program that does not interpret backslashes.
! 15918: echo=$lt_echo
! 15919:
! 15920: # The archiver.
! 15921: AR=$lt_AR
! 15922: AR_FLAGS=$lt_AR_FLAGS
! 15923:
! 15924: # A C compiler.
! 15925: LTCC=$lt_LTCC
! 15926:
! 15927: # A language-specific compiler.
! 15928: CC=$lt_compiler_F77
! 15929:
! 15930: # Is the compiler the GNU C compiler?
! 15931: with_gcc=$GCC_F77
! 15932:
! 15933: # An ERE matcher.
! 15934: EGREP=$lt_EGREP
! 15935:
! 15936: # The linker used to build libraries.
! 15937: LD=$lt_LD_F77
! 15938:
! 15939: # Whether we need hard or soft links.
! 15940: LN_S=$lt_LN_S
! 15941:
! 15942: # A BSD-compatible nm program.
! 15943: NM=$lt_NM
! 15944:
! 15945: # A symbol stripping program
! 15946: STRIP=$STRIP
! 15947:
! 15948: # Used to examine libraries when file_magic_cmd begins "file"
! 15949: MAGIC_CMD=$MAGIC_CMD
! 15950:
! 15951: # Used on cygwin: DLL creation program.
! 15952: DLLTOOL="$DLLTOOL"
! 15953:
! 15954: # Used on cygwin: object dumper.
! 15955: OBJDUMP="$OBJDUMP"
! 15956:
! 15957: # Used on cygwin: assembler.
! 15958: AS="$AS"
! 15959:
! 15960: # The name of the directory that contains temporary libtool files.
! 15961: objdir=$objdir
! 15962:
! 15963: # How to create reloadable object files.
! 15964: reload_flag=$lt_reload_flag
! 15965: reload_cmds=$lt_reload_cmds
! 15966:
! 15967: # How to pass a linker flag through the compiler.
! 15968: wl=$lt_lt_prog_compiler_wl_F77
! 15969:
! 15970: # Object file suffix (normally "o").
! 15971: objext="$ac_objext"
! 15972:
! 15973: # Old archive suffix (normally "a").
! 15974: libext="$libext"
! 15975:
! 15976: # Shared library suffix (normally ".so").
! 15977: shrext='$shrext'
! 15978:
! 15979: # Executable file suffix (normally "").
! 15980: exeext="$exeext"
! 15981:
! 15982: # Additional compiler flags for building library objects.
! 15983: pic_flag=$lt_lt_prog_compiler_pic_F77
! 15984: pic_mode=$pic_mode
! 15985:
! 15986: # What is the maximum length of a command?
! 15987: max_cmd_len=$lt_cv_sys_max_cmd_len
! 15988:
! 15989: # Does compiler simultaneously support -c and -o options?
! 15990: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
! 15991:
! 15992: # Must we lock files when doing compilation ?
! 15993: need_locks=$lt_need_locks
! 15994:
! 15995: # Do we need the lib prefix for modules?
! 15996: need_lib_prefix=$need_lib_prefix
! 15997:
! 15998: # Do we need a version for libraries?
! 15999: need_version=$need_version
! 16000:
! 16001: # Whether dlopen is supported.
! 16002: dlopen_support=$enable_dlopen
! 16003:
! 16004: # Whether dlopen of programs is supported.
! 16005: dlopen_self=$enable_dlopen_self
! 16006:
! 16007: # Whether dlopen of statically linked programs is supported.
! 16008: dlopen_self_static=$enable_dlopen_self_static
! 16009:
! 16010: # Compiler flag to prevent dynamic linking.
! 16011: link_static_flag=$lt_lt_prog_compiler_static_F77
! 16012:
! 16013: # Compiler flag to turn off builtin functions.
! 16014: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
! 16015:
! 16016: # Compiler flag to allow reflexive dlopens.
! 16017: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
! 16018:
! 16019: # Compiler flag to generate shared objects directly from archives.
! 16020: whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
! 16021:
! 16022: # Compiler flag to generate thread-safe objects.
! 16023: thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
! 16024:
! 16025: # Library versioning type.
! 16026: version_type=$version_type
! 16027:
! 16028: # Format of library name prefix.
! 16029: libname_spec=$lt_libname_spec
! 16030:
! 16031: # List of archive names. First name is the real one, the rest are links.
! 16032: # The last name is the one that the linker finds with -lNAME.
! 16033: library_names_spec=$lt_library_names_spec
! 16034:
! 16035: # The coded name of the library, if different from the real name.
! 16036: soname_spec=$lt_soname_spec
! 16037:
! 16038: # Commands used to build and install an old-style archive.
! 16039: RANLIB=$lt_RANLIB
! 16040: old_archive_cmds=$lt_old_archive_cmds_F77
! 16041: old_postinstall_cmds=$lt_old_postinstall_cmds
! 16042: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 16043:
! 16044: # Create an old-style archive from a shared archive.
! 16045: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
! 16046:
! 16047: # Create a temporary old-style archive to link instead of a shared archive.
! 16048: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
! 16049:
! 16050: # Commands used to build and install a shared archive.
! 16051: archive_cmds=$lt_archive_cmds_F77
! 16052: archive_expsym_cmds=$lt_archive_expsym_cmds_F77
! 16053: postinstall_cmds=$lt_postinstall_cmds
! 16054: postuninstall_cmds=$lt_postuninstall_cmds
! 16055:
! 16056: # Commands used to build a loadable module (assumed same as above if empty)
! 16057: module_cmds=$lt_module_cmds_F77
! 16058: module_expsym_cmds=$lt_module_expsym_cmds_F77
! 16059:
! 16060: # Commands to strip libraries.
! 16061: old_striplib=$lt_old_striplib
! 16062: striplib=$lt_striplib
! 16063:
! 16064: # Dependencies to place before the objects being linked to create a
! 16065: # shared library.
! 16066: predep_objects=$lt_predep_objects_F77
! 16067:
! 16068: # Dependencies to place after the objects being linked to create a
! 16069: # shared library.
! 16070: postdep_objects=$lt_postdep_objects_F77
! 16071:
! 16072: # Dependencies to place before the objects being linked to create a
! 16073: # shared library.
! 16074: predeps=$lt_predeps_F77
! 16075:
! 16076: # Dependencies to place after the objects being linked to create a
! 16077: # shared library.
! 16078: postdeps=$lt_postdeps_F77
! 16079:
! 16080: # The library search path used internally by the compiler when linking
! 16081: # a shared library.
! 16082: compiler_lib_search_path=$lt_compiler_lib_search_path_F77
! 16083:
! 16084: # Method to check whether dependent libraries are shared objects.
! 16085: deplibs_check_method=$lt_deplibs_check_method
! 16086:
! 16087: # Command to use when deplibs_check_method == file_magic.
! 16088: file_magic_cmd=$lt_file_magic_cmd
! 16089:
! 16090: # Flag that allows shared libraries with undefined symbols to be built.
! 16091: allow_undefined_flag=$lt_allow_undefined_flag_F77
! 16092:
! 16093: # Flag that forces no undefined symbols.
! 16094: no_undefined_flag=$lt_no_undefined_flag_F77
! 16095:
! 16096: # Commands used to finish a libtool library installation in a directory.
! 16097: finish_cmds=$lt_finish_cmds
! 16098:
! 16099: # Same as above, but a single script fragment to be evaled but not shown.
! 16100: finish_eval=$lt_finish_eval
! 16101:
! 16102: # Take the output of nm and produce a listing of raw symbols and C names.
! 16103: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 16104:
! 16105: # Transform the output of nm in a proper C declaration
! 16106: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 16107:
! 16108: # Transform the output of nm in a C name address pair
! 16109: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 16110:
! 16111: # This is the shared library runtime path variable.
! 16112: runpath_var=$runpath_var
! 16113:
! 16114: # This is the shared library path variable.
! 16115: shlibpath_var=$shlibpath_var
! 16116:
! 16117: # Is shlibpath searched before the hard-coded library search path?
! 16118: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 16119:
! 16120: # How to hardcode a shared library path into an executable.
! 16121: hardcode_action=$hardcode_action_F77
! 16122:
! 16123: # Whether we should hardcode library paths into libraries.
! 16124: hardcode_into_libs=$hardcode_into_libs
! 16125:
! 16126: # Flag to hardcode \$libdir into a binary during linking.
! 16127: # This must work even if \$libdir does not exist.
! 16128: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
! 16129:
! 16130: # If ld is used when linking, flag to hardcode \$libdir into
! 16131: # a binary during linking. This must work even if \$libdir does
! 16132: # not exist.
! 16133: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
! 16134:
! 16135: # Whether we need a single -rpath flag with a separated argument.
! 16136: hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
! 16137:
! 16138: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 16139: # resulting binary.
! 16140: hardcode_direct=$hardcode_direct_F77
! 16141:
! 16142: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 16143: # resulting binary.
! 16144: hardcode_minus_L=$hardcode_minus_L_F77
! 16145:
! 16146: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 16147: # the resulting binary.
! 16148: hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
! 16149:
! 16150: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 16151: # and all subsequent libraries and executables linked against it.
! 16152: hardcode_automatic=$hardcode_automatic_F77
! 16153:
! 16154: # Variables whose values should be saved in libtool wrapper scripts and
! 16155: # restored at relink time.
! 16156: variables_saved_for_relink="$variables_saved_for_relink"
! 16157:
! 16158: # Whether libtool must link a program against all its dependency libraries.
! 16159: link_all_deplibs=$link_all_deplibs_F77
! 16160:
! 16161: # Compile-time system search path for libraries
! 16162: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 16163:
! 16164: # Run-time system search path for libraries
! 16165: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 16166:
! 16167: # Fix the shell variable \$srcfile for the compiler.
! 16168: fix_srcfile_path="$fix_srcfile_path_F77"
! 16169:
! 16170: # Set to yes if exported symbols are required.
! 16171: always_export_symbols=$always_export_symbols_F77
! 16172:
! 16173: # The commands to list exported symbols.
! 16174: export_symbols_cmds=$lt_export_symbols_cmds_F77
! 16175:
! 16176: # The commands to extract the exported symbol list from a shared archive.
! 16177: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 16178:
! 16179: # Symbols that should not be listed in the preloaded symbols.
! 16180: exclude_expsyms=$lt_exclude_expsyms_F77
! 16181:
! 16182: # Symbols that must always be exported.
! 16183: include_expsyms=$lt_include_expsyms_F77
! 16184:
! 16185: # ### END LIBTOOL TAG CONFIG: $tagname
! 16186:
! 16187: __EOF__
! 16188:
! 16189:
! 16190: else
! 16191: # If there is no Makefile yet, we rely on a make rule to execute
! 16192: # `config.status --recheck' to rerun these tests and create the
! 16193: # libtool script then.
! 16194: test -f Makefile && make "$ltmain"
! 16195: fi
! 16196:
! 16197:
! 16198: ac_ext=c
! 16199: ac_cpp='$CPP $CPPFLAGS'
! 16200: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 16201: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 16202: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 16203:
! 16204: CC="$lt_save_CC"
! 16205:
! 16206: else
! 16207: tagname=""
! 16208: fi
! 16209: ;;
! 16210:
! 16211: GCJ)
! 16212: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
! 16213:
! 16214:
! 16215:
! 16216: # Source file extension for Java test sources.
! 16217: ac_ext=java
! 16218:
! 16219: # Object file extension for compiled Java test sources.
! 16220: objext=o
! 16221: objext_GCJ=$objext
! 16222:
! 16223: # Code to be used in simple compile tests
! 16224: lt_simple_compile_test_code="class foo {}\n"
! 16225:
! 16226: # Code to be used in simple link tests
! 16227: lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
! 16228:
! 16229: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 16230:
! 16231: # If no C compiler was specified, use CC.
! 16232: LTCC=${LTCC-"$CC"}
! 16233:
! 16234: # Allow CC to be a program name with arguments.
! 16235: compiler=$CC
! 16236:
! 16237:
! 16238: # Allow CC to be a program name with arguments.
! 16239: lt_save_CC="$CC"
! 16240: CC=${GCJ-"gcj"}
! 16241: compiler=$CC
! 16242: compiler_GCJ=$CC
! 16243:
! 16244: # GCJ did not exist at the time GCC didn't implicitly link libc in.
! 16245: archive_cmds_need_lc_GCJ=no
! 16246:
! 16247: ## CAVEAT EMPTOR:
! 16248: ## There is no encapsulation within the following macros, do not change
! 16249: ## the running order or otherwise move them around unless you know exactly
! 16250: ## what you are doing...
! 16251:
! 16252: lt_prog_compiler_no_builtin_flag_GCJ=
! 16253:
! 16254: if test "$GCC" = yes; then
! 16255: lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
! 16256:
! 16257: echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
! 16258: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
! 16259: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
! 16260: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16261: else
! 16262: lt_cv_prog_compiler_rtti_exceptions=no
! 16263: ac_outfile=conftest.$ac_objext
! 16264: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 16265: lt_compiler_flag="-fno-rtti -fno-exceptions"
! 16266: # Insert the option either (1) after the last *FLAGS variable, or
! 16267: # (2) before a word containing "conftest.", or (3) at the end.
! 16268: # Note that $ac_compile itself does not contain backslashes and begins
! 16269: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 16270: # The option is referenced via a variable to avoid confusing sed.
! 16271: lt_compile=`echo "$ac_compile" | $SED \
! 16272: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 16273: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 16274: -e 's:$: $lt_compiler_flag:'`
! 16275: (eval echo "\"\$as_me:16275: $lt_compile\"" >&5)
! 16276: (eval "$lt_compile" 2>conftest.err)
! 16277: ac_status=$?
! 16278: cat conftest.err >&5
! 16279: echo "$as_me:16279: \$? = $ac_status" >&5
! 16280: if (exit $ac_status) && test -s "$ac_outfile"; then
! 16281: # The compiler can only warn and ignore the option if not recognized
! 16282: # So say no if there are warnings
! 16283: if test ! -s conftest.err; then
! 16284: lt_cv_prog_compiler_rtti_exceptions=yes
! 16285: fi
! 16286: fi
! 16287: $rm conftest*
! 16288:
! 16289: fi
! 16290: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
! 16291: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
! 16292:
! 16293: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
! 16294: lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
! 16295: else
! 16296: :
! 16297: fi
! 16298:
! 16299: fi
! 16300:
! 16301: lt_prog_compiler_wl_GCJ=
! 16302: lt_prog_compiler_pic_GCJ=
! 16303: lt_prog_compiler_static_GCJ=
! 16304:
! 16305: echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
! 16306: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
! 16307:
! 16308: if test "$GCC" = yes; then
! 16309: lt_prog_compiler_wl_GCJ='-Wl,'
! 16310: lt_prog_compiler_static_GCJ='-static'
! 16311:
! 16312: case $host_os in
! 16313: aix*)
! 16314: # All AIX code is PIC.
! 16315: if test "$host_cpu" = ia64; then
! 16316: # AIX 5 now supports IA64 processor
! 16317: lt_prog_compiler_static_GCJ='-Bstatic'
! 16318: fi
! 16319: ;;
! 16320:
! 16321: amigaos*)
! 16322: # FIXME: we need at least 68020 code to build shared libraries, but
! 16323: # adding the `-m68020' flag to GCC prevents building anything better,
! 16324: # like `-m68040'.
! 16325: lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
! 16326: ;;
! 16327:
! 16328: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
! 16329: # PIC is the default for these OSes.
! 16330: ;;
! 16331:
! 16332: mingw* | pw32* | os2*)
! 16333: # This hack is so that the source file can tell whether it is being
! 16334: # built for inclusion in a dll (and should export symbols for example).
! 16335: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
! 16336: ;;
! 16337:
! 16338: darwin* | rhapsody*)
! 16339: # PIC is the default on this platform
! 16340: # Common symbols not allowed in MH_DYLIB files
! 16341: lt_prog_compiler_pic_GCJ='-fno-common'
! 16342: ;;
! 16343:
! 16344: msdosdjgpp*)
! 16345: # Just because we use GCC doesn't mean we suddenly get shared libraries
! 16346: # on systems that don't support them.
! 16347: lt_prog_compiler_can_build_shared_GCJ=no
! 16348: enable_shared=no
! 16349: ;;
! 16350:
! 16351: sysv4*MP*)
! 16352: if test -d /usr/nec; then
! 16353: lt_prog_compiler_pic_GCJ=-Kconform_pic
! 16354: fi
! 16355: ;;
! 16356:
! 16357: hpux*)
! 16358: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 16359: # not for PA HP-UX.
! 16360: case "$host_cpu" in
! 16361: hppa*64*|ia64*)
! 16362: # +Z the default
! 16363: ;;
! 16364: *)
! 16365: lt_prog_compiler_pic_GCJ='-fPIC'
! 16366: ;;
! 16367: esac
! 16368: ;;
! 16369:
! 16370: *)
! 16371: lt_prog_compiler_pic_GCJ='-fPIC'
! 16372: ;;
! 16373: esac
! 16374: else
! 16375: # PORTME Check for flag to pass linker flags through the system compiler.
! 16376: case $host_os in
! 16377: aix*)
! 16378: lt_prog_compiler_wl_GCJ='-Wl,'
! 16379: if test "$host_cpu" = ia64; then
! 16380: # AIX 5 now supports IA64 processor
! 16381: lt_prog_compiler_static_GCJ='-Bstatic'
! 16382: else
! 16383: lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
! 16384: fi
! 16385: ;;
! 16386:
! 16387: mingw* | pw32* | os2*)
! 16388: # This hack is so that the source file can tell whether it is being
! 16389: # built for inclusion in a dll (and should export symbols for example).
! 16390: lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
! 16391: ;;
! 16392:
! 16393: hpux9* | hpux10* | hpux11*)
! 16394: lt_prog_compiler_wl_GCJ='-Wl,'
! 16395: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
! 16396: # not for PA HP-UX.
! 16397: case "$host_cpu" in
! 16398: hppa*64*|ia64*)
! 16399: # +Z the default
! 16400: ;;
! 16401: *)
! 16402: lt_prog_compiler_pic_GCJ='+Z'
! 16403: ;;
! 16404: esac
! 16405: # Is there a better lt_prog_compiler_static that works with the bundled CC?
! 16406: lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
! 16407: ;;
! 16408:
! 16409: irix5* | irix6* | nonstopux*)
! 16410: lt_prog_compiler_wl_GCJ='-Wl,'
! 16411: # PIC (with -KPIC) is the default.
! 16412: lt_prog_compiler_static_GCJ='-non_shared'
! 16413: ;;
! 16414:
! 16415: newsos6)
! 16416: lt_prog_compiler_pic_GCJ='-KPIC'
! 16417: lt_prog_compiler_static_GCJ='-Bstatic'
! 16418: ;;
! 16419:
! 16420: linux*)
! 16421: case $CC in
! 16422: icc|ecc)
! 16423: lt_prog_compiler_wl_GCJ='-Wl,'
! 16424: lt_prog_compiler_pic_GCJ='-KPIC'
! 16425: lt_prog_compiler_static_GCJ='-static'
! 16426: ;;
! 16427: ccc)
! 16428: lt_prog_compiler_wl_GCJ='-Wl,'
! 16429: # All Alpha code is PIC.
! 16430: lt_prog_compiler_static_GCJ='-non_shared'
! 16431: ;;
! 16432: esac
! 16433: ;;
! 16434:
! 16435: osf3* | osf4* | osf5*)
! 16436: lt_prog_compiler_wl_GCJ='-Wl,'
! 16437: # All OSF/1 code is PIC.
! 16438: lt_prog_compiler_static_GCJ='-non_shared'
! 16439: ;;
! 16440:
! 16441: sco3.2v5*)
! 16442: lt_prog_compiler_pic_GCJ='-Kpic'
! 16443: lt_prog_compiler_static_GCJ='-dn'
! 16444: ;;
! 16445:
! 16446: solaris*)
! 16447: lt_prog_compiler_wl_GCJ='-Wl,'
! 16448: lt_prog_compiler_pic_GCJ='-KPIC'
! 16449: lt_prog_compiler_static_GCJ='-Bstatic'
! 16450: ;;
! 16451:
! 16452: sunos4*)
! 16453: lt_prog_compiler_wl_GCJ='-Qoption ld '
! 16454: lt_prog_compiler_pic_GCJ='-PIC'
! 16455: lt_prog_compiler_static_GCJ='-Bstatic'
! 16456: ;;
! 16457:
! 16458: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 16459: lt_prog_compiler_wl_GCJ='-Wl,'
! 16460: lt_prog_compiler_pic_GCJ='-KPIC'
! 16461: lt_prog_compiler_static_GCJ='-Bstatic'
! 16462: ;;
! 16463:
! 16464: sysv4*MP*)
! 16465: if test -d /usr/nec ;then
! 16466: lt_prog_compiler_pic_GCJ='-Kconform_pic'
! 16467: lt_prog_compiler_static_GCJ='-Bstatic'
! 16468: fi
! 16469: ;;
! 16470:
! 16471: uts4*)
! 16472: lt_prog_compiler_pic_GCJ='-pic'
! 16473: lt_prog_compiler_static_GCJ='-Bstatic'
! 16474: ;;
! 16475:
! 16476: *)
! 16477: lt_prog_compiler_can_build_shared_GCJ=no
! 16478: ;;
! 16479: esac
! 16480: fi
! 16481:
! 16482: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
! 16483: echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
! 16484:
! 16485: #
! 16486: # Check to make sure the PIC flag actually works.
! 16487: #
! 16488: if test -n "$lt_prog_compiler_pic_GCJ"; then
! 16489: echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
! 16490: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
! 16491: if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
! 16492: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16493: else
! 16494: lt_prog_compiler_pic_works_GCJ=no
! 16495: ac_outfile=conftest.$ac_objext
! 16496: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 16497: lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
! 16498: # Insert the option either (1) after the last *FLAGS variable, or
! 16499: # (2) before a word containing "conftest.", or (3) at the end.
! 16500: # Note that $ac_compile itself does not contain backslashes and begins
! 16501: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 16502: # The option is referenced via a variable to avoid confusing sed.
! 16503: lt_compile=`echo "$ac_compile" | $SED \
! 16504: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 16505: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 16506: -e 's:$: $lt_compiler_flag:'`
! 16507: (eval echo "\"\$as_me:16507: $lt_compile\"" >&5)
! 16508: (eval "$lt_compile" 2>conftest.err)
! 16509: ac_status=$?
! 16510: cat conftest.err >&5
! 16511: echo "$as_me:16511: \$? = $ac_status" >&5
! 16512: if (exit $ac_status) && test -s "$ac_outfile"; then
! 16513: # The compiler can only warn and ignore the option if not recognized
! 16514: # So say no if there are warnings
! 16515: if test ! -s conftest.err; then
! 16516: lt_prog_compiler_pic_works_GCJ=yes
! 16517: fi
! 16518: fi
! 16519: $rm conftest*
! 16520:
! 16521: fi
! 16522: echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
! 16523: echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
! 16524:
! 16525: if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
! 16526: case $lt_prog_compiler_pic_GCJ in
! 16527: "" | " "*) ;;
! 16528: *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
! 16529: esac
! 16530: else
! 16531: lt_prog_compiler_pic_GCJ=
! 16532: lt_prog_compiler_can_build_shared_GCJ=no
! 16533: fi
! 16534:
! 16535: fi
! 16536: case "$host_os" in
! 16537: # For platforms which do not support PIC, -DPIC is meaningless:
! 16538: *djgpp*)
! 16539: lt_prog_compiler_pic_GCJ=
! 16540: ;;
! 16541: *)
! 16542: lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
! 16543: ;;
! 16544: esac
! 16545:
! 16546: echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
! 16547: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
! 16548: if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
! 16549: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16550: else
! 16551: lt_cv_prog_compiler_c_o_GCJ=no
! 16552: $rm -r conftest 2>/dev/null
! 16553: mkdir conftest
! 16554: cd conftest
! 16555: mkdir out
! 16556: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 16557:
! 16558: # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
! 16559: # that will create temporary files in the current directory regardless of
! 16560: # the output directory. Thus, making CWD read-only will cause this test
! 16561: # to fail, enabling locking or at least warning the user not to do parallel
! 16562: # builds.
! 16563: chmod -w .
! 16564:
! 16565: lt_compiler_flag="-o out/conftest2.$ac_objext"
! 16566: # Insert the option either (1) after the last *FLAGS variable, or
! 16567: # (2) before a word containing "conftest.", or (3) at the end.
! 16568: # Note that $ac_compile itself does not contain backslashes and begins
! 16569: # with a dollar sign (not a hyphen), so the echo should work correctly.
! 16570: lt_compile=`echo "$ac_compile" | $SED \
! 16571: -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
! 16572: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
! 16573: -e 's:$: $lt_compiler_flag:'`
! 16574: (eval echo "\"\$as_me:16574: $lt_compile\"" >&5)
! 16575: (eval "$lt_compile" 2>out/conftest.err)
! 16576: ac_status=$?
! 16577: cat out/conftest.err >&5
! 16578: echo "$as_me:16578: \$? = $ac_status" >&5
! 16579: if (exit $ac_status) && test -s out/conftest2.$ac_objext
! 16580: then
! 16581: # The compiler can only warn and ignore the option if not recognized
! 16582: # So say no if there are warnings
! 16583: if test ! -s out/conftest.err; then
! 16584: lt_cv_prog_compiler_c_o_GCJ=yes
! 16585: fi
! 16586: fi
! 16587: chmod u+w .
! 16588: $rm conftest* out/*
! 16589: rmdir out
! 16590: cd ..
! 16591: rmdir conftest
! 16592: $rm conftest*
! 16593:
! 16594: fi
! 16595: echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
! 16596: echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
! 16597:
! 16598:
! 16599: hard_links="nottested"
! 16600: if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
! 16601: # do not overwrite the value of need_locks provided by the user
! 16602: echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
! 16603: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
! 16604: hard_links=yes
! 16605: $rm conftest*
! 16606: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 16607: touch conftest.a
! 16608: ln conftest.a conftest.b 2>&5 || hard_links=no
! 16609: ln conftest.a conftest.b 2>/dev/null && hard_links=no
! 16610: echo "$as_me:$LINENO: result: $hard_links" >&5
! 16611: echo "${ECHO_T}$hard_links" >&6
! 16612: if test "$hard_links" = no; then
! 16613: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
! 16614: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
! 16615: need_locks=warn
! 16616: fi
! 16617: else
! 16618: need_locks=no
! 16619: fi
! 16620:
! 16621: echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
! 16622: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
! 16623:
! 16624: runpath_var=
! 16625: allow_undefined_flag_GCJ=
! 16626: enable_shared_with_static_runtimes_GCJ=no
! 16627: archive_cmds_GCJ=
! 16628: archive_expsym_cmds_GCJ=
! 16629: old_archive_From_new_cmds_GCJ=
! 16630: old_archive_from_expsyms_cmds_GCJ=
! 16631: export_dynamic_flag_spec_GCJ=
! 16632: whole_archive_flag_spec_GCJ=
! 16633: thread_safe_flag_spec_GCJ=
! 16634: hardcode_libdir_flag_spec_GCJ=
! 16635: hardcode_libdir_flag_spec_ld_GCJ=
! 16636: hardcode_libdir_separator_GCJ=
! 16637: hardcode_direct_GCJ=no
! 16638: hardcode_minus_L_GCJ=no
! 16639: hardcode_shlibpath_var_GCJ=unsupported
! 16640: link_all_deplibs_GCJ=unknown
! 16641: hardcode_automatic_GCJ=no
! 16642: module_cmds_GCJ=
! 16643: module_expsym_cmds_GCJ=
! 16644: always_export_symbols_GCJ=no
! 16645: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
! 16646: # include_expsyms should be a list of space-separated symbols to be *always*
! 16647: # included in the symbol list
! 16648: include_expsyms_GCJ=
! 16649: # exclude_expsyms can be an extended regexp of symbols to exclude
! 16650: # it will be wrapped by ` (' and `)$', so one must not match beginning or
! 16651: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
! 16652: # as well as any symbol that contains `d'.
! 16653: exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
! 16654: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
! 16655: # platforms (ab)use it in PIC code, but their linkers get confused if
! 16656: # the symbol is explicitly referenced. Since portable code cannot
! 16657: # rely on this symbol name, it's probably fine to never include it in
! 16658: # preloaded symbol tables.
! 16659: extract_expsyms_cmds=
! 16660:
! 16661: case $host_os in
! 16662: cygwin* | mingw* | pw32*)
! 16663: # FIXME: the MSVC++ port hasn't been tested in a loooong time
! 16664: # When not using gcc, we currently assume that we are using
! 16665: # Microsoft Visual C++.
! 16666: if test "$GCC" != yes; then
! 16667: with_gnu_ld=no
! 16668: fi
! 16669: ;;
! 16670: openbsd*)
! 16671: with_gnu_ld=no
! 16672: ;;
! 16673: esac
! 16674:
! 16675: ld_shlibs_GCJ=yes
! 16676: if test "$with_gnu_ld" = yes; then
! 16677: # If archive_cmds runs LD, not CC, wlarc should be empty
! 16678: wlarc='${wl}'
! 16679:
! 16680: # See if GNU ld supports shared libraries.
! 16681: case $host_os in
! 16682: aix3* | aix4* | aix5*)
! 16683: # On AIX/PPC, the GNU linker is very broken
! 16684: if test "$host_cpu" != ia64; then
! 16685: ld_shlibs_GCJ=no
! 16686: cat <<EOF 1>&2
! 16687:
! 16688: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
! 16689: *** to be unable to reliably create shared libraries on AIX.
! 16690: *** Therefore, libtool is disabling shared libraries support. If you
! 16691: *** really care for shared libraries, you may want to modify your PATH
! 16692: *** so that a non-GNU linker is found, and then restart.
! 16693:
! 16694: EOF
! 16695: fi
! 16696: ;;
! 16697:
! 16698: amigaos*)
! 16699: archive_cmds_GCJ='$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)'
! 16700: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 16701: hardcode_minus_L_GCJ=yes
! 16702:
! 16703: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
! 16704: # that the semantics of dynamic libraries on AmigaOS, at least up
! 16705: # to version 4, is to share data among multiple programs linked
! 16706: # with the same dynamic library. Since this doesn't match the
! 16707: # behavior of shared libraries on other platforms, we can't use
! 16708: # them.
! 16709: ld_shlibs_GCJ=no
! 16710: ;;
! 16711:
! 16712: beos*)
! 16713: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16714: allow_undefined_flag_GCJ=unsupported
! 16715: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
! 16716: # support --undefined. This deserves some investigation. FIXME
! 16717: archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16718: else
! 16719: ld_shlibs_GCJ=no
! 16720: fi
! 16721: ;;
! 16722:
! 16723: cygwin* | mingw* | pw32*)
! 16724: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
! 16725: # as there is no search path for DLLs.
! 16726: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 16727: allow_undefined_flag_GCJ=unsupported
! 16728: always_export_symbols_GCJ=no
! 16729: enable_shared_with_static_runtimes_GCJ=yes
! 16730: export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
! 16731:
! 16732: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
! 16733: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 16734: # If the export-symbols file already is a .def file (1st line
! 16735: # is EXPORTS), use it as is; otherwise, prepend...
! 16736: archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
! 16737: cp $export_symbols $output_objdir/$soname.def;
! 16738: else
! 16739: echo EXPORTS > $output_objdir/$soname.def;
! 16740: cat $export_symbols >> $output_objdir/$soname.def;
! 16741: fi~
! 16742: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
! 16743: else
! 16744: ld_shlibs=no
! 16745: fi
! 16746: ;;
! 16747:
! 16748: netbsd*)
! 16749: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 16750: archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
! 16751: wlarc=
! 16752: else
! 16753: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16754: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 16755: fi
! 16756: ;;
! 16757:
! 16758: solaris* | sysv5*)
! 16759: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
! 16760: ld_shlibs_GCJ=no
! 16761: cat <<EOF 1>&2
! 16762:
! 16763: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
! 16764: *** create shared libraries on Solaris systems. Therefore, libtool
! 16765: *** is disabling shared libraries support. We urge you to upgrade GNU
! 16766: *** binutils to release 2.9.1 or newer. Another option is to modify
! 16767: *** your PATH or compiler configuration so that the native linker is
! 16768: *** used, and then restart.
! 16769:
! 16770: EOF
! 16771: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16772: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16773: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 16774: else
! 16775: ld_shlibs_GCJ=no
! 16776: fi
! 16777: ;;
! 16778:
! 16779: sunos4*)
! 16780: archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 16781: wlarc=
! 16782: hardcode_direct_GCJ=yes
! 16783: hardcode_shlibpath_var_GCJ=no
! 16784: ;;
! 16785:
! 16786: *)
! 16787: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
! 16788: archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
! 16789: archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
! 16790: else
! 16791: ld_shlibs_GCJ=no
! 16792: fi
! 16793: ;;
! 16794: esac
! 16795:
! 16796: if test "$ld_shlibs_GCJ" = yes; then
! 16797: runpath_var=LD_RUN_PATH
! 16798: hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
! 16799: export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
! 16800: # ancient GNU ld didn't support --whole-archive et. al.
! 16801: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
! 16802: whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
! 16803: else
! 16804: whole_archive_flag_spec_GCJ=
! 16805: fi
! 16806: fi
! 16807: else
! 16808: # PORTME fill in a description of your system's linker (not GNU ld)
! 16809: case $host_os in
! 16810: aix3*)
! 16811: allow_undefined_flag_GCJ=unsupported
! 16812: always_export_symbols_GCJ=yes
! 16813: archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
! 16814: # Note: this linker hardcodes the directories in LIBPATH if there
! 16815: # are no directories specified by -L.
! 16816: hardcode_minus_L_GCJ=yes
! 16817: if test "$GCC" = yes && test -z "$link_static_flag"; then
! 16818: # Neither direct hardcoding nor static linking is supported with a
! 16819: # broken collect2.
! 16820: hardcode_direct_GCJ=unsupported
! 16821: fi
! 16822: ;;
! 16823:
! 16824: aix4* | aix5*)
! 16825: if test "$host_cpu" = ia64; then
! 16826: # On IA64, the linker does run time linking by default, so we don't
! 16827: # have to do anything special.
! 16828: aix_use_runtimelinking=no
! 16829: exp_sym_flag='-Bexport'
! 16830: no_entry_flag=""
! 16831: else
! 16832: # If we're using GNU nm, then we don't want the "-C" option.
! 16833: # -C means demangle to AIX nm, but means don't demangle with GNU nm
! 16834: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
! 16835: export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 16836: else
! 16837: export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
! 16838: fi
! 16839: aix_use_runtimelinking=no
! 16840:
! 16841: # Test if we are trying to use run time linking or normal
! 16842: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
! 16843: # need to do runtime linking.
! 16844: case $host_os in aix4.[23]|aix4.[23].*|aix5*)
! 16845: for ld_flag in $LDFLAGS; do
! 16846: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
! 16847: aix_use_runtimelinking=yes
! 16848: break
! 16849: fi
! 16850: done
! 16851: esac
! 16852:
! 16853: exp_sym_flag='-bexport'
! 16854: no_entry_flag='-bnoentry'
! 16855: fi
! 16856:
! 16857: # When large executables or shared objects are built, AIX ld can
! 16858: # have problems creating the table of contents. If linking a library
! 16859: # or program results in "error TOC overflow" add -mminimal-toc to
! 16860: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
! 16861: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
! 16862:
! 16863: archive_cmds_GCJ=''
! 16864: hardcode_direct_GCJ=yes
! 16865: hardcode_libdir_separator_GCJ=':'
! 16866: link_all_deplibs_GCJ=yes
! 16867:
! 16868: if test "$GCC" = yes; then
! 16869: case $host_os in aix4.012|aix4.012.*)
! 16870: # We only want to do this on AIX 4.2 and lower, the check
! 16871: # below for broken collect2 doesn't work under 4.3+
! 16872: collect2name=`${CC} -print-prog-name=collect2`
! 16873: if test -f "$collect2name" && \
! 16874: strings "$collect2name" | grep resolve_lib_name >/dev/null
! 16875: then
! 16876: # We have reworked collect2
! 16877: hardcode_direct_GCJ=yes
! 16878: else
! 16879: # We have old collect2
! 16880: hardcode_direct_GCJ=unsupported
! 16881: # It fails to find uninstalled libraries when the uninstalled
! 16882: # path is not listed in the libpath. Setting hardcode_minus_L
! 16883: # to unsupported forces relinking
! 16884: hardcode_minus_L_GCJ=yes
! 16885: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 16886: hardcode_libdir_separator_GCJ=
! 16887: fi
! 16888: esac
! 16889: shared_flag='-shared'
! 16890: else
! 16891: # not using gcc
! 16892: if test "$host_cpu" = ia64; then
! 16893: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
! 16894: # chokes on -Wl,-G. The following line is correct:
! 16895: shared_flag='-G'
! 16896: else
! 16897: if test "$aix_use_runtimelinking" = yes; then
! 16898: shared_flag='${wl}-G'
! 16899: else
! 16900: shared_flag='${wl}-bM:SRE'
! 16901: fi
! 16902: fi
! 16903: fi
! 16904:
! 16905: # It seems that -bexpall does not export symbols beginning with
! 16906: # underscore (_), so it is better to generate a list of symbols to export.
! 16907: always_export_symbols_GCJ=yes
! 16908: if test "$aix_use_runtimelinking" = yes; then
! 16909: # Warning - without using the other runtime loading flags (-brtl),
! 16910: # -berok will link without error, but may produce a broken library.
! 16911: allow_undefined_flag_GCJ='-berok'
! 16912: # Determine the default libpath from the value encoded in an empty executable.
! 16913: cat >conftest.$ac_ext <<_ACEOF
! 16914: #line $LINENO "configure"
! 16915: /* confdefs.h. */
! 16916: _ACEOF
! 16917: cat confdefs.h >>conftest.$ac_ext
! 16918: cat >>conftest.$ac_ext <<_ACEOF
! 16919: /* end confdefs.h. */
! 16920:
! 16921: int
! 16922: main ()
! 16923: {
! 16924:
! 16925: ;
! 16926: return 0;
! 16927: }
! 16928: _ACEOF
! 16929: rm -f conftest.$ac_objext conftest$ac_exeext
! 16930: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16931: (eval $ac_link) 2>&5
! 16932: ac_status=$?
! 16933: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16934: (exit $ac_status); } &&
! 16935: { ac_try='test -s conftest$ac_exeext'
! 16936: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16937: (eval $ac_try) 2>&5
! 16938: ac_status=$?
! 16939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16940: (exit $ac_status); }; }; then
! 16941:
! 16942: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 16943: }'`
! 16944: # Check for a 64-bit object if we didn't find anything.
! 16945: 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; }
! 16946: }'`; fi
! 16947: else
! 16948: echo "$as_me: failed program was:" >&5
! 16949: sed 's/^/| /' conftest.$ac_ext >&5
! 16950:
! 16951: fi
! 16952: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 16953: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 16954:
! 16955: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
! 16956: archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
! 16957: else
! 16958: if test "$host_cpu" = ia64; then
! 16959: hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
! 16960: allow_undefined_flag_GCJ="-z nodefs"
! 16961: archive_expsym_cmds_GCJ="\$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"
! 16962: else
! 16963: # Determine the default libpath from the value encoded in an empty executable.
! 16964: cat >conftest.$ac_ext <<_ACEOF
! 16965: #line $LINENO "configure"
! 16966: /* confdefs.h. */
! 16967: _ACEOF
! 16968: cat confdefs.h >>conftest.$ac_ext
! 16969: cat >>conftest.$ac_ext <<_ACEOF
! 16970: /* end confdefs.h. */
! 16971:
! 16972: int
! 16973: main ()
! 16974: {
! 16975:
! 16976: ;
! 16977: return 0;
! 16978: }
! 16979: _ACEOF
! 16980: rm -f conftest.$ac_objext conftest$ac_exeext
! 16981: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 16982: (eval $ac_link) 2>&5
! 16983: ac_status=$?
! 16984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16985: (exit $ac_status); } &&
! 16986: { ac_try='test -s conftest$ac_exeext'
! 16987: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 16988: (eval $ac_try) 2>&5
! 16989: ac_status=$?
! 16990: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16991: (exit $ac_status); }; }; then
! 16992:
! 16993: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
! 16994: }'`
! 16995: # Check for a 64-bit object if we didn't find anything.
! 16996: 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; }
! 16997: }'`; fi
! 16998: else
! 16999: echo "$as_me: failed program was:" >&5
! 17000: sed 's/^/| /' conftest.$ac_ext >&5
! 17001:
! 17002: fi
! 17003: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 17004: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
! 17005:
! 17006: hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
! 17007: # Warning - without using the other run time loading flags,
! 17008: # -berok will link without error, but may produce a broken library.
! 17009: no_undefined_flag_GCJ=' ${wl}-bernotok'
! 17010: allow_undefined_flag_GCJ=' ${wl}-berok'
! 17011: # -bexpall does not export symbols beginning with underscore (_)
! 17012: always_export_symbols_GCJ=yes
! 17013: # Exported symbols can be pulled into shared objects from archives
! 17014: whole_archive_flag_spec_GCJ=' '
! 17015: archive_cmds_need_lc_GCJ=yes
! 17016: # This is similar to how AIX traditionally builds it's shared libraries.
! 17017: archive_expsym_cmds_GCJ="\$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'
! 17018: fi
! 17019: fi
! 17020: ;;
! 17021:
! 17022: amigaos*)
! 17023: archive_cmds_GCJ='$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)'
! 17024: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17025: hardcode_minus_L_GCJ=yes
! 17026: # see comment about different semantics on the GNU ld section
! 17027: ld_shlibs_GCJ=no
! 17028: ;;
! 17029:
! 17030: bsdi4*)
! 17031: export_dynamic_flag_spec_GCJ=-rdynamic
! 17032: ;;
! 17033:
! 17034: cygwin* | mingw* | pw32*)
! 17035: # When not using gcc, we currently assume that we are using
! 17036: # Microsoft Visual C++.
! 17037: # hardcode_libdir_flag_spec is actually meaningless, as there is
! 17038: # no search path for DLLs.
! 17039: hardcode_libdir_flag_spec_GCJ=' '
! 17040: allow_undefined_flag_GCJ=unsupported
! 17041: # Tell ltmain to make .lib files, not .a files.
! 17042: libext=lib
! 17043: # Tell ltmain to make .dll files, not .so files.
! 17044: shrext=".dll"
! 17045: # FIXME: Setting linknames here is a bad hack.
! 17046: archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
! 17047: # The linker will automatically build a .lib file if we build a DLL.
! 17048: old_archive_From_new_cmds_GCJ='true'
! 17049: # FIXME: Should let the user specify the lib program.
! 17050: old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
! 17051: fix_srcfile_path='`cygpath -w "$srcfile"`'
! 17052: enable_shared_with_static_runtimes_GCJ=yes
! 17053: ;;
! 17054:
! 17055: darwin* | rhapsody*)
! 17056: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 17057: archive_cmds_need_lc_GCJ=no
! 17058: case "$host_os" in
! 17059: rhapsody* | darwin1.[012])
! 17060: allow_undefined_flag_GCJ='-undefined suppress'
! 17061: ;;
! 17062: *) # Darwin 1.3 on
! 17063: test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
! 17064: ;;
! 17065: esac
! 17066: # FIXME: Relying on posixy $() will cause problems for
! 17067: # cross-compilation, but unfortunately the echo tests do not
! 17068: # yet detect zsh echo's removal of \ escapes. Also zsh mangles
! 17069: # `"' quotes if we put them in here... so don't!
! 17070: lt_int_apple_cc_single_mod=no
! 17071: output_verbose_link_cmd='echo'
! 17072: if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
! 17073: lt_int_apple_cc_single_mod=yes
! 17074: fi
! 17075: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 17076: archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 17077: else
! 17078: archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
! 17079: fi
! 17080: module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
! 17081: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
! 17082: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
! 17083: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 17084: else
! 17085: archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 17086: fi
! 17087: module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
! 17088: hardcode_direct_GCJ=no
! 17089: hardcode_automatic_GCJ=yes
! 17090: hardcode_shlibpath_var_GCJ=unsupported
! 17091: whole_archive_flag_spec_GCJ='-all_load $convenience'
! 17092: link_all_deplibs_GCJ=yes
! 17093: fi
! 17094: ;;
! 17095:
! 17096: dgux*)
! 17097: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17098: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17099: hardcode_shlibpath_var_GCJ=no
! 17100: ;;
! 17101:
! 17102: freebsd1*)
! 17103: ld_shlibs_GCJ=no
! 17104: ;;
! 17105:
! 17106: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
! 17107: # support. Future versions do this automatically, but an explicit c++rt0.o
! 17108: # does not break anything, and helps significantly (at the cost of a little
! 17109: # extra space).
! 17110: freebsd2.2*)
! 17111: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
! 17112: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17113: hardcode_direct_GCJ=yes
! 17114: hardcode_shlibpath_var_GCJ=no
! 17115: ;;
! 17116:
! 17117: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
! 17118: freebsd2*)
! 17119: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 17120: hardcode_direct_GCJ=yes
! 17121: hardcode_minus_L_GCJ=yes
! 17122: hardcode_shlibpath_var_GCJ=no
! 17123: ;;
! 17124:
! 17125: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
! 17126: freebsd*)
! 17127: archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
! 17128: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17129: hardcode_direct_GCJ=yes
! 17130: hardcode_shlibpath_var_GCJ=no
! 17131: ;;
! 17132:
! 17133: hpux9*)
! 17134: if test "$GCC" = yes; then
! 17135: archive_cmds_GCJ='$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'
! 17136: else
! 17137: archive_cmds_GCJ='$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'
! 17138: fi
! 17139: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 17140: hardcode_libdir_separator_GCJ=:
! 17141: hardcode_direct_GCJ=yes
! 17142:
! 17143: # hardcode_minus_L: Not really in the search PATH,
! 17144: # but as the default location of the library.
! 17145: hardcode_minus_L_GCJ=yes
! 17146: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17147: ;;
! 17148:
! 17149: hpux10* | hpux11*)
! 17150: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
! 17151: case "$host_cpu" in
! 17152: hppa*64*|ia64*)
! 17153: archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17154: ;;
! 17155: *)
! 17156: archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
! 17157: ;;
! 17158: esac
! 17159: else
! 17160: case "$host_cpu" in
! 17161: hppa*64*|ia64*)
! 17162: archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17163: ;;
! 17164: *)
! 17165: archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
! 17166: ;;
! 17167: esac
! 17168: fi
! 17169: if test "$with_gnu_ld" = no; then
! 17170: case "$host_cpu" in
! 17171: hppa*64*)
! 17172: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 17173: hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
! 17174: hardcode_libdir_separator_GCJ=:
! 17175: hardcode_direct_GCJ=no
! 17176: hardcode_shlibpath_var_GCJ=no
! 17177: ;;
! 17178: ia64*)
! 17179: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17180: hardcode_direct_GCJ=no
! 17181: hardcode_shlibpath_var_GCJ=no
! 17182:
! 17183: # hardcode_minus_L: Not really in the search PATH,
! 17184: # but as the default location of the library.
! 17185: hardcode_minus_L_GCJ=yes
! 17186: ;;
! 17187: *)
! 17188: hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
! 17189: hardcode_libdir_separator_GCJ=:
! 17190: hardcode_direct_GCJ=yes
! 17191: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17192:
! 17193: # hardcode_minus_L: Not really in the search PATH,
! 17194: # but as the default location of the library.
! 17195: hardcode_minus_L_GCJ=yes
! 17196: ;;
! 17197: esac
! 17198: fi
! 17199: ;;
! 17200:
! 17201: irix5* | irix6* | nonstopux*)
! 17202: if test "$GCC" = yes; then
! 17203: archive_cmds_GCJ='$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'
! 17204: else
! 17205: archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 17206: hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
! 17207: fi
! 17208: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17209: hardcode_libdir_separator_GCJ=:
! 17210: link_all_deplibs_GCJ=yes
! 17211: ;;
! 17212:
! 17213: netbsd*)
! 17214: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 17215: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
! 17216: else
! 17217: archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
! 17218: fi
! 17219: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17220: hardcode_direct_GCJ=yes
! 17221: hardcode_shlibpath_var_GCJ=no
! 17222: ;;
! 17223:
! 17224: newsos6)
! 17225: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17226: hardcode_direct_GCJ=yes
! 17227: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17228: hardcode_libdir_separator_GCJ=:
! 17229: hardcode_shlibpath_var_GCJ=no
! 17230: ;;
! 17231:
! 17232: openbsd*)
! 17233: case "$host_cpu" in
! 17234: m88k|hppa|vax)
! 17235: ld_shlibs_GCJ=no
! 17236: ;;
! 17237: *)
! 17238: hardcode_direct_GCJ=yes
! 17239: hardcode_shlibpath_var_GCJ=no
! 17240: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 17241: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 17242: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 17243: export_dynamic_flag_spec_GCJ='${wl}-E'
! 17244: else
! 17245: case $host_os in
! 17246: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
! 17247: archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
! 17248: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17249: ;;
! 17250: *)
! 17251: archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
! 17252: hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
! 17253: ;;
! 17254: esac
! 17255: fi
! 17256: ;;
! 17257: esac
! 17258: ;;
! 17259:
! 17260: os2*)
! 17261: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17262: hardcode_minus_L_GCJ=yes
! 17263: allow_undefined_flag_GCJ=unsupported
! 17264: archive_cmds_GCJ='$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'
! 17265: old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
! 17266: ;;
! 17267:
! 17268: osf3*)
! 17269: if test "$GCC" = yes; then
! 17270: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
! 17271: archive_cmds_GCJ='$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'
! 17272: else
! 17273: allow_undefined_flag_GCJ=' -expect_unresolved \*'
! 17274: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 17275: fi
! 17276: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17277: hardcode_libdir_separator_GCJ=:
! 17278: ;;
! 17279:
! 17280: osf4* | osf5*) # as osf3* with the addition of -msym flag
! 17281: if test "$GCC" = yes; then
! 17282: allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
! 17283: archive_cmds_GCJ='$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'
! 17284: hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
! 17285: else
! 17286: allow_undefined_flag_GCJ=' -expect_unresolved \*'
! 17287: archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
! 17288: archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
! 17289: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
! 17290:
! 17291: # Both c and cxx compiler support -rpath directly
! 17292: hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
! 17293: fi
! 17294: hardcode_libdir_separator_GCJ=:
! 17295: ;;
! 17296:
! 17297: sco3.2v5*)
! 17298: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17299: hardcode_shlibpath_var_GCJ=no
! 17300: export_dynamic_flag_spec_GCJ='${wl}-Bexport'
! 17301: runpath_var=LD_RUN_PATH
! 17302: hardcode_runpath_var=yes
! 17303: ;;
! 17304:
! 17305: solaris*)
! 17306: no_undefined_flag_GCJ=' -z text'
! 17307: if test "$GCC" = yes; then
! 17308: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17309: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 17310: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
! 17311: else
! 17312: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17313: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 17314: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 17315: fi
! 17316: hardcode_libdir_flag_spec_GCJ='-R$libdir'
! 17317: hardcode_shlibpath_var_GCJ=no
! 17318: case $host_os in
! 17319: solaris2.[0-5] | solaris2.[0-5].*) ;;
! 17320: *) # Supported since Solaris 2.6 (maybe 2.5.1?)
! 17321: whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
! 17322: esac
! 17323: link_all_deplibs_GCJ=yes
! 17324: ;;
! 17325:
! 17326: sunos4*)
! 17327: if test "x$host_vendor" = xsequent; then
! 17328: # Use $CC to link under sequent, because it throws in some extra .o
! 17329: # files that make .init and .fini sections work.
! 17330: archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
! 17331: else
! 17332: archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
! 17333: fi
! 17334: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17335: hardcode_direct_GCJ=yes
! 17336: hardcode_minus_L_GCJ=yes
! 17337: hardcode_shlibpath_var_GCJ=no
! 17338: ;;
! 17339:
! 17340: sysv4)
! 17341: case $host_vendor in
! 17342: sni)
! 17343: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17344: hardcode_direct_GCJ=yes # is this really true???
! 17345: ;;
! 17346: siemens)
! 17347: ## LD is ld it makes a PLAMLIB
! 17348: ## CC just makes a GrossModule.
! 17349: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 17350: reload_cmds_GCJ='$CC -r -o $output$reload_objs'
! 17351: hardcode_direct_GCJ=no
! 17352: ;;
! 17353: motorola)
! 17354: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17355: hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
! 17356: ;;
! 17357: esac
! 17358: runpath_var='LD_RUN_PATH'
! 17359: hardcode_shlibpath_var_GCJ=no
! 17360: ;;
! 17361:
! 17362: sysv4.3*)
! 17363: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17364: hardcode_shlibpath_var_GCJ=no
! 17365: export_dynamic_flag_spec_GCJ='-Bexport'
! 17366: ;;
! 17367:
! 17368: sysv4*MP*)
! 17369: if test -d /usr/nec; then
! 17370: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17371: hardcode_shlibpath_var_GCJ=no
! 17372: runpath_var=LD_RUN_PATH
! 17373: hardcode_runpath_var=yes
! 17374: ld_shlibs_GCJ=yes
! 17375: fi
! 17376: ;;
! 17377:
! 17378: sysv4.2uw2*)
! 17379: archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
! 17380: hardcode_direct_GCJ=yes
! 17381: hardcode_minus_L_GCJ=no
! 17382: hardcode_shlibpath_var_GCJ=no
! 17383: hardcode_runpath_var=yes
! 17384: runpath_var=LD_RUN_PATH
! 17385: ;;
! 17386:
! 17387: sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
! 17388: no_undefined_flag_GCJ='${wl}-z ${wl}text'
! 17389: if test "$GCC" = yes; then
! 17390: archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17391: else
! 17392: archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
! 17393: fi
! 17394: runpath_var='LD_RUN_PATH'
! 17395: hardcode_shlibpath_var_GCJ=no
! 17396: ;;
! 17397:
! 17398: sysv5*)
! 17399: no_undefined_flag_GCJ=' -z text'
! 17400: # $CC -shared without GNU ld will not create a library from C++
! 17401: # object files and a static libstdc++, better avoid it by now
! 17402: archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17403: archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
! 17404: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
! 17405: hardcode_libdir_flag_spec_GCJ=
! 17406: hardcode_shlibpath_var_GCJ=no
! 17407: runpath_var='LD_RUN_PATH'
! 17408: ;;
! 17409:
! 17410: uts4*)
! 17411: archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
! 17412: hardcode_libdir_flag_spec_GCJ='-L$libdir'
! 17413: hardcode_shlibpath_var_GCJ=no
! 17414: ;;
! 17415:
! 17416: *)
! 17417: ld_shlibs_GCJ=no
! 17418: ;;
! 17419: esac
! 17420: fi
! 17421:
! 17422: echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
! 17423: echo "${ECHO_T}$ld_shlibs_GCJ" >&6
! 17424: test "$ld_shlibs_GCJ" = no && can_build_shared=no
! 17425:
! 17426: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
! 17427: if test "$GCC" = yes; then
! 17428: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
! 17429: fi
! 17430:
! 17431: #
! 17432: # Do we need to explicitly link libc?
! 17433: #
! 17434: case "x$archive_cmds_need_lc_GCJ" in
! 17435: x|xyes)
! 17436: # Assume -lc should be added
! 17437: archive_cmds_need_lc_GCJ=yes
! 17438:
! 17439: if test "$enable_shared" = yes && test "$GCC" = yes; then
! 17440: case $archive_cmds_GCJ in
! 17441: *'~'*)
! 17442: # FIXME: we may have to deal with multi-command sequences.
! 17443: ;;
! 17444: '$CC '*)
! 17445: # Test whether the compiler implicitly links with -lc since on some
! 17446: # systems, -lgcc has to come before -lc. If gcc already passes -lc
! 17447: # to ld, don't add -lc before -lgcc.
! 17448: echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
! 17449: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
! 17450: $rm conftest*
! 17451: printf "$lt_simple_compile_test_code" > conftest.$ac_ext
! 17452:
! 17453: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 17454: (eval $ac_compile) 2>&5
! 17455: ac_status=$?
! 17456: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17457: (exit $ac_status); } 2>conftest.err; then
! 17458: soname=conftest
! 17459: lib=conftest
! 17460: libobjs=conftest.$ac_objext
! 17461: deplibs=
! 17462: wl=$lt_prog_compiler_wl_GCJ
! 17463: compiler_flags=-v
! 17464: linker_flags=-v
! 17465: verstring=
! 17466: output_objdir=.
! 17467: libname=conftest
! 17468: lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
! 17469: allow_undefined_flag_GCJ=
! 17470: if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
! 17471: (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
! 17472: ac_status=$?
! 17473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 17474: (exit $ac_status); }
! 17475: then
! 17476: archive_cmds_need_lc_GCJ=no
! 17477: else
! 17478: archive_cmds_need_lc_GCJ=yes
! 17479: fi
! 17480: allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
! 17481: else
! 17482: cat conftest.err 1>&5
! 17483: fi
! 17484: $rm conftest*
! 17485: echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
! 17486: echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
! 17487: ;;
! 17488: esac
! 17489: fi
! 17490: ;;
! 17491: esac
! 17492:
! 17493: echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
! 17494: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
! 17495: hardcode_action_GCJ=
! 17496: if test -n "$hardcode_libdir_flag_spec_GCJ" || \
! 17497: test -n "$runpath_var GCJ" || \
! 17498: test "X$hardcode_automatic_GCJ"="Xyes" ; then
! 17499:
! 17500: # We can hardcode non-existant directories.
! 17501: if test "$hardcode_direct_GCJ" != no &&
! 17502: # If the only mechanism to avoid hardcoding is shlibpath_var, we
! 17503: # have to relink, otherwise we might link with an installed library
! 17504: # when we should be linking with a yet-to-be-installed one
! 17505: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
! 17506: test "$hardcode_minus_L_GCJ" != no; then
! 17507: # Linking always hardcodes the temporary library directory.
! 17508: hardcode_action_GCJ=relink
! 17509: else
! 17510: # We can link without hardcoding, and we can hardcode nonexisting dirs.
! 17511: hardcode_action_GCJ=immediate
! 17512: fi
! 17513: else
! 17514: # We cannot hardcode anything, or else we can only hardcode existing
! 17515: # directories.
! 17516: hardcode_action_GCJ=unsupported
! 17517: fi
! 17518: echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
! 17519: echo "${ECHO_T}$hardcode_action_GCJ" >&6
! 17520:
! 17521: if test "$hardcode_action_GCJ" = relink; then
! 17522: # Fast installation is not supported
! 17523: enable_fast_install=no
! 17524: elif test "$shlibpath_overrides_runpath" = yes ||
! 17525: test "$enable_shared" = no; then
! 17526: # Fast installation is not necessary
! 17527: enable_fast_install=needless
! 17528: fi
! 17529:
! 17530: striplib=
! 17531: old_striplib=
! 17532: echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
! 17533: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
! 17534: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
! 17535: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
! 17536: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
! 17537: echo "$as_me:$LINENO: result: yes" >&5
! 17538: echo "${ECHO_T}yes" >&6
! 17539: else
! 17540: # FIXME - insert some real tests, host_os isn't really good enough
! 17541: case $host_os in
! 17542: darwin*)
! 17543: if test -n "$STRIP" ; then
! 17544: striplib="$STRIP -x"
! 17545: echo "$as_me:$LINENO: result: yes" >&5
! 17546: echo "${ECHO_T}yes" >&6
! 17547: else
! 17548: echo "$as_me:$LINENO: result: no" >&5
! 17549: echo "${ECHO_T}no" >&6
! 17550: fi
! 17551: ;;
! 17552: *)
! 17553: echo "$as_me:$LINENO: result: no" >&5
! 17554: echo "${ECHO_T}no" >&6
! 17555: ;;
! 17556: esac
! 17557: fi
! 17558:
! 17559: echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
! 17560: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
! 17561: library_names_spec=
! 17562: libname_spec='lib$name'
! 17563: soname_spec=
! 17564: shrext=".so"
! 17565: postinstall_cmds=
! 17566: postuninstall_cmds=
! 17567: finish_cmds=
! 17568: finish_eval=
! 17569: shlibpath_var=
! 17570: shlibpath_overrides_runpath=unknown
! 17571: version_type=none
! 17572: dynamic_linker="$host_os ld.so"
! 17573: sys_lib_dlsearch_path_spec="/lib /usr/lib"
! 17574: if test "$GCC" = yes; then
! 17575: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 17576: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
! 17577: # if the path contains ";" then we assume it to be the separator
! 17578: # otherwise default to the standard path separator (i.e. ":") - it is
! 17579: # assumed that no part of a normal pathname contains ";" but that should
! 17580: # okay in the real world where ";" in dirpaths is itself problematic.
! 17581: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 17582: else
! 17583: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 17584: fi
! 17585: else
! 17586: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
! 17587: fi
! 17588: need_lib_prefix=no
! 17589: hardcode_into_libs=no
! 17590:
! 17591: # when you set need_version to no, make sure it does not cause -set_version
! 17592: # flags to be left without arguments
! 17593: need_version=no
! 17594:
! 17595: case $host_os in
! 17596: aix3*)
! 17597: version_type=linux
! 17598: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
! 17599: shlibpath_var=LIBPATH
! 17600:
! 17601: # AIX 3 has no versioning support, so we append a major version to the name.
! 17602: soname_spec='${libname}${release}${shared_ext}$major'
! 17603: ;;
! 17604:
! 17605: aix4* | aix5*)
! 17606: version_type=linux
! 17607: hardcode_into_libs=yes
! 17608: if test "$host_cpu" = ia64; then
! 17609: # AIX 5 supports IA64
! 17610: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
! 17611: shlibpath_var=LD_LIBRARY_PATH
! 17612: else
! 17613: # With GCC up to 2.95.x, collect2 would create an import file
! 17614: # for dependence libraries. The import file would start with
! 17615: # the line `#! .'. This would cause the generated library to
! 17616: # depend on `.', always an invalid library. This was fixed in
! 17617: # development snapshots of GCC prior to 3.0.
! 17618: case $host_os in
! 17619: aix4 | aix4.[01] | aix4.[01].*)
! 17620: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
! 17621: echo ' yes '
! 17622: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
! 17623: :
! 17624: else
! 17625: can_build_shared=no
! 17626: fi
! 17627: ;;
! 17628: esac
! 17629: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
! 17630: # soname into executable. Probably we can add versioning support to
! 17631: # collect2, so additional links can be useful in future.
! 17632: if test "$aix_use_runtimelinking" = yes; then
! 17633: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
! 17634: # instead of lib<name>.a to let people know that these are not
! 17635: # typical AIX shared libraries.
! 17636: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17637: else
! 17638: # We preserve .a as extension for shared libraries through AIX4.2
! 17639: # and later when we are not doing run time linking.
! 17640: library_names_spec='${libname}${release}.a $libname.a'
! 17641: soname_spec='${libname}${release}${shared_ext}$major'
! 17642: fi
! 17643: shlibpath_var=LIBPATH
! 17644: fi
! 17645: ;;
! 17646:
! 17647: amigaos*)
! 17648: library_names_spec='$libname.ixlibrary $libname.a'
! 17649: # Create ${libname}_ixlibrary.a entries in /sys/libs.
! 17650: 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'
! 17651: ;;
! 17652:
! 17653: beos*)
! 17654: library_names_spec='${libname}${shared_ext}'
! 17655: dynamic_linker="$host_os ld.so"
! 17656: shlibpath_var=LIBRARY_PATH
! 17657: ;;
! 17658:
! 17659: bsdi4*)
! 17660: version_type=linux
! 17661: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17662: soname_spec='${libname}${release}${shared_ext}$major'
! 17663: #finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
! 17664: shlibpath_var=LD_LIBRARY_PATH
! 17665: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
! 17666: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
! 17667: # the default ld.so.conf also contains /usr/contrib/lib and
! 17668: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
! 17669: # libtool to hard-code these into programs
! 17670: ;;
! 17671:
! 17672: cygwin* | mingw* | pw32*)
! 17673: version_type=windows
! 17674: shrext=".dll"
! 17675:
! 17676: case $GCC,$host_os in
! 17677: yes,cygwin* | yes,mingw* | yes,pw32*)
! 17678: library_names_spec='$libname.dll.a'
! 17679: # DLL is installed to $(libdir)/../bin by postinstall_cmds
! 17680: postinstall_cmds='base_file=`basename \${file}`~
! 17681: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
! 17682: dldir=$destdir/`dirname \$dlpath`~
! 17683: test -d \$dldir || mkdir -p \$dldir~
! 17684: $install_prog $dir/$dlname \$dldir/$dlname'
! 17685: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
! 17686: dlpath=$dir/\$dldll~
! 17687: $rm \$dlpath'
! 17688: shlibpath_overrides_runpath=yes
! 17689:
! 17690: case $host_os in
! 17691: cygwin*)
! 17692: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
! 17693: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 17694: sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
! 17695: ;;
! 17696: mingw*)
! 17697: # MinGW DLLs use traditional 'lib' prefix
! 17698: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
! 17699: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
! 17700: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
! 17701: # It is most probably a Windows format PATH printed by
! 17702: # mingw gcc, but we are running on Cygwin. Gcc prints its search
! 17703: # path with ; separators, and with drive letters. We can handle the
! 17704: # drive letters (cygwin fileutils understands them), so leave them,
! 17705: # especially as we might pass files found there to a mingw objdump,
! 17706: # which wouldn't understand a cygwinified path. Ahh.
! 17707: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
! 17708: else
! 17709: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
! 17710: fi
! 17711: ;;
! 17712: pw32*)
! 17713: # pw32 DLLs use 'pw' prefix rather than 'lib'
! 17714: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
! 17715: ;;
! 17716: esac
! 17717: ;;
! 17718:
! 17719: *)
! 17720: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
! 17721: ;;
! 17722: esac
! 17723: dynamic_linker='Win32 ld.exe'
! 17724: # FIXME: first we should search . and the directory the executable is in
! 17725: shlibpath_var=PATH
! 17726: ;;
! 17727:
! 17728: darwin* | rhapsody*)
! 17729: dynamic_linker="$host_os dyld"
! 17730: version_type=darwin
! 17731: # FIXME: Relying on posixy $() will cause problems for
! 17732: # cross-compilation, but unfortunately the echo tests do not
! 17733: # yet detect zsh echo's removal of \ escapes.
! 17734: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
! 17735: soname_spec='${libname}${release}${major}$shared_ext'
! 17736: shlibpath_overrides_runpath=yes
! 17737: shlibpath_var=DYLD_LIBRARY_PATH
! 17738: shrext='$(test .$module = .yes && echo .so || echo .dylib)'
! 17739: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
! 17740: if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
! 17741: 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"`
! 17742: fi
! 17743: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
! 17744: ;;
! 17745:
! 17746: dgux*)
! 17747: version_type=linux
! 17748: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
! 17749: soname_spec='${libname}${release}${shared_ext}$major'
! 17750: shlibpath_var=LD_LIBRARY_PATH
! 17751: ;;
! 17752:
! 17753: freebsd1*)
! 17754: dynamic_linker=no
! 17755: ;;
! 17756:
! 17757: freebsd*)
! 17758: objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
! 17759: version_type=freebsd-$objformat
! 17760: case $version_type in
! 17761: freebsd-elf*)
! 17762: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
! 17763: ;;
! 17764: freebsd-*)
! 17765: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
! 17766: ;;
! 17767: esac
! 17768: shlibpath_var=LD_LIBRARY_PATH
! 17769: case $host_os in
! 17770: freebsd2*)
! 17771: shlibpath_overrides_runpath=yes
! 17772: ;;
! 17773: freebsd3.01* | freebsdelf3.01*)
! 17774: shlibpath_overrides_runpath=yes
! 17775: hardcode_into_libs=yes
! 17776: ;;
! 17777: *) # from 3.2 on
! 17778: shlibpath_overrides_runpath=no
! 17779: hardcode_into_libs=yes
! 17780: ;;
! 17781: esac
! 17782: ;;
! 17783:
! 17784: gnu*)
! 17785: version_type=linux
! 17786: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
! 17787: soname_spec='${libname}${release}${shared_ext}$major'
! 17788: shlibpath_var=LD_LIBRARY_PATH
! 17789: hardcode_into_libs=yes
! 17790: ;;
! 17791:
! 17792: hpux9* | hpux10* | hpux11*)
! 17793: # Give a soname corresponding to the major version so that dld.sl refuses to
! 17794: # link against other versions.
! 17795: version_type=sunos
! 17796: case "$host_cpu" in
! 17797: ia64*)
! 17798: shrext='.so'
! 17799: hardcode_into_libs=yes
! 17800: dynamic_linker="$host_os dld.so"
! 17801: shlibpath_var=LD_LIBRARY_PATH
! 17802: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 17803: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17804: soname_spec='${libname}${release}${shared_ext}$major'
! 17805: if test "X$HPUX_IA64_MODE" = X32; then
! 17806: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
! 17807: else
! 17808: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
! 17809: fi
! 17810: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 17811: ;;
! 17812: hppa*64*)
! 17813: shrext='.sl'
! 17814: hardcode_into_libs=yes
! 17815: dynamic_linker="$host_os dld.sl"
! 17816: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
! 17817: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
! 17818: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17819: soname_spec='${libname}${release}${shared_ext}$major'
! 17820: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
! 17821: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
! 17822: ;;
! 17823: *)
! 17824: shrext='.sl'
! 17825: dynamic_linker="$host_os dld.sl"
! 17826: shlibpath_var=SHLIB_PATH
! 17827: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
! 17828: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17829: soname_spec='${libname}${release}${shared_ext}$major'
! 17830: ;;
! 17831: esac
! 17832: # HP-UX runs *really* slowly unless shared libraries are mode 555.
! 17833: postinstall_cmds='chmod 555 $lib'
! 17834: ;;
! 17835:
! 17836: irix5* | irix6* | nonstopux*)
! 17837: case $host_os in
! 17838: nonstopux*) version_type=nonstopux ;;
! 17839: *)
! 17840: if test "$lt_cv_prog_gnu_ld" = yes; then
! 17841: version_type=linux
! 17842: else
! 17843: version_type=irix
! 17844: fi ;;
! 17845: esac
! 17846: soname_spec='${libname}${release}${shared_ext}$major'
! 17847: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
! 17848: case $host_os in
! 17849: irix5* | nonstopux*)
! 17850: libsuff= shlibsuff=
! 17851: ;;
! 17852: *)
! 17853: case $LD in # libtool.m4 will add one of these switches to LD
! 17854: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
! 17855: libsuff= shlibsuff= libmagic=32-bit;;
! 17856: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
! 17857: libsuff=32 shlibsuff=N32 libmagic=N32;;
! 17858: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
! 17859: libsuff=64 shlibsuff=64 libmagic=64-bit;;
! 17860: *) libsuff= shlibsuff= libmagic=never-match;;
! 17861: esac
! 17862: ;;
! 17863: esac
! 17864: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
! 17865: shlibpath_overrides_runpath=no
! 17866: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
! 17867: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
! 17868: hardcode_into_libs=yes
! 17869: ;;
! 17870:
! 17871: # No shared lib support for Linux oldld, aout, or coff.
! 17872: linux*oldld* | linux*aout* | linux*coff*)
! 17873: dynamic_linker=no
! 17874: ;;
! 17875:
! 17876: # This must be Linux ELF.
! 17877: linux*)
! 17878: version_type=linux
! 17879: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17880: soname_spec='${libname}${release}${shared_ext}$major'
! 17881: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
! 17882: shlibpath_var=LD_LIBRARY_PATH
! 17883: shlibpath_overrides_runpath=no
! 17884: # This implies no fast_install, which is unacceptable.
! 17885: # Some rework will be needed to allow for fast_install
! 17886: # before this can be enabled.
! 17887: hardcode_into_libs=yes
! 17888:
! 17889: # We used to test for /lib/ld.so.1 and disable shared libraries on
! 17890: # powerpc, because MkLinux only supported shared libraries with the
! 17891: # GNU dynamic linker. Since this was broken with cross compilers,
! 17892: # most powerpc-linux boxes support dynamic linking these days and
! 17893: # people can always --disable-shared, the test was removed, and we
! 17894: # assume the GNU/Linux dynamic linker is in use.
! 17895: dynamic_linker='GNU/Linux ld.so'
! 17896: ;;
! 17897:
! 17898: netbsd*)
! 17899: version_type=sunos
! 17900: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
! 17901: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 17902: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 17903: dynamic_linker='NetBSD (a.out) ld.so'
! 17904: else
! 17905: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
! 17906: soname_spec='${libname}${release}${shared_ext}$major'
! 17907: dynamic_linker='NetBSD ld.elf_so'
! 17908: fi
! 17909: shlibpath_var=LD_LIBRARY_PATH
! 17910: shlibpath_overrides_runpath=yes
! 17911: hardcode_into_libs=yes
! 17912: ;;
! 17913:
! 17914: newsos6)
! 17915: version_type=linux
! 17916: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17917: shlibpath_var=LD_LIBRARY_PATH
! 17918: shlibpath_overrides_runpath=yes
! 17919: ;;
! 17920:
! 17921: nto-qnx)
! 17922: version_type=linux
! 17923: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17924: soname_spec='${libname}${release}${shared_ext}$major'
! 17925: shlibpath_var=LD_LIBRARY_PATH
! 17926: shlibpath_overrides_runpath=yes
! 17927: ;;
! 17928:
! 17929: openbsd*)
! 17930: version_type=sunos
! 17931: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 17932: #finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
! 17933: shlibpath_var=LD_LIBRARY_PATH
! 17934: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
! 17935: dynamic_linker='OpenBSD (ELF) ld.so'
! 17936: case $host_os in
! 17937: openbsd2.[89] | openbsd2.[89].*)
! 17938: shlibpath_overrides_runpath=no
! 17939: ;;
! 17940: *)
! 17941: shlibpath_overrides_runpath=yes
! 17942: ;;
! 17943: esac
! 17944: else
! 17945: dynamic_linker='OpenBSD (a.out) ld.so'
! 17946: shlibpath_overrides_runpath=yes
! 17947: fi
! 17948: ;;
! 17949:
! 17950: os2*)
! 17951: libname_spec='$name'
! 17952: shrext=".dll"
! 17953: library_names_spec='$libname${shared_ext} $libname.a'
! 17954: dynamic_linker='OS/2 ld.exe'
! 17955: shlibpath_var=LIBPATH
! 17956: ;;
! 17957:
! 17958: osf3* | osf4* | osf5*)
! 17959: version_type=osf
! 17960: soname_spec='${libname}${release}${shared_ext}$major'
! 17961: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17962: shlibpath_var=LD_LIBRARY_PATH
! 17963: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
! 17964: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
! 17965: ;;
! 17966:
! 17967: sco3.2v5*)
! 17968: version_type=osf
! 17969: soname_spec='${libname}${release}${shared_ext}$major'
! 17970: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17971: shlibpath_var=LD_LIBRARY_PATH
! 17972: ;;
! 17973:
! 17974: solaris*)
! 17975: version_type=linux
! 17976: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17977: soname_spec='${libname}${release}${shared_ext}$major'
! 17978: shlibpath_var=LD_LIBRARY_PATH
! 17979: shlibpath_overrides_runpath=yes
! 17980: hardcode_into_libs=yes
! 17981: # ldd complains unless libraries are executable
! 17982: postinstall_cmds='chmod +x $lib'
! 17983: ;;
! 17984:
! 17985: sunos4*)
! 17986: version_type=sunos
! 17987: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
! 17988: #finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
! 17989: shlibpath_var=LD_LIBRARY_PATH
! 17990: shlibpath_overrides_runpath=yes
! 17991: ;;
! 17992:
! 17993: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
! 17994: version_type=linux
! 17995: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 17996: soname_spec='${libname}${release}${shared_ext}$major'
! 17997: shlibpath_var=LD_LIBRARY_PATH
! 17998: case $host_vendor in
! 17999: sni)
! 18000: shlibpath_overrides_runpath=no
! 18001: export_dynamic_flag_spec='${wl}-Blargedynsym'
! 18002: runpath_var=LD_RUN_PATH
! 18003: ;;
! 18004: motorola)
! 18005: shlibpath_overrides_runpath=no
! 18006: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
! 18007: ;;
! 18008: esac
! 18009: ;;
! 18010:
! 18011: sysv4*MP*)
! 18012: if test -d /usr/nec ;then
! 18013: version_type=linux
! 18014: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
! 18015: soname_spec='$libname${shared_ext}.$major'
! 18016: shlibpath_var=LD_LIBRARY_PATH
! 18017: fi
! 18018: ;;
! 18019:
! 18020: uts4*)
! 18021: version_type=linux
! 18022: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
! 18023: soname_spec='${libname}${release}${shared_ext}$major'
! 18024: shlibpath_var=LD_LIBRARY_PATH
! 18025: ;;
! 18026:
! 18027: *)
! 18028: dynamic_linker=no
! 18029: ;;
! 18030: esac
! 18031: echo "$as_me:$LINENO: result: $dynamic_linker" >&5
! 18032: echo "${ECHO_T}$dynamic_linker" >&6
! 18033: test "$dynamic_linker" = no && can_build_shared=no
! 18034:
! 18035: if test "x$enable_dlopen" != xyes; then
! 18036: enable_dlopen=unknown
! 18037: enable_dlopen_self=unknown
! 18038: enable_dlopen_self_static=unknown
! 18039: else
! 18040: lt_cv_dlopen=no
! 18041: lt_cv_dlopen_libs=
! 18042:
! 18043: case $host_os in
! 18044: beos*)
! 18045: lt_cv_dlopen="load_add_on"
! 18046: lt_cv_dlopen_libs=
! 18047: lt_cv_dlopen_self=yes
! 18048: ;;
! 18049:
! 18050: mingw* | pw32*)
! 18051: lt_cv_dlopen="LoadLibrary"
! 18052: lt_cv_dlopen_libs=
! 18053: ;;
! 18054:
! 18055: cygwin*)
! 18056: lt_cv_dlopen="dlopen"
! 18057: lt_cv_dlopen_libs=
! 18058: ;;
! 18059:
! 18060: darwin*)
! 18061: # if libdl is installed we need to link against it
! 18062: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 18063: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 18064: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 18065: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18066: else
! 18067: ac_check_lib_save_LIBS=$LIBS
! 18068: LIBS="-ldl $LIBS"
! 18069: cat >conftest.$ac_ext <<_ACEOF
! 18070: #line $LINENO "configure"
! 18071: /* confdefs.h. */
! 18072: _ACEOF
! 18073: cat confdefs.h >>conftest.$ac_ext
! 18074: cat >>conftest.$ac_ext <<_ACEOF
! 18075: /* end confdefs.h. */
! 18076:
! 18077: /* Override any gcc2 internal prototype to avoid an error. */
! 18078: #ifdef __cplusplus
! 18079: extern "C"
! 18080: #endif
! 18081: /* We use char because int might match the return type of a gcc2
! 18082: builtin and then its argument prototype would still apply. */
! 18083: char dlopen ();
! 18084: int
! 18085: main ()
! 18086: {
! 18087: dlopen ();
! 18088: ;
! 18089: return 0;
! 18090: }
! 18091: _ACEOF
! 18092: rm -f conftest.$ac_objext conftest$ac_exeext
! 18093: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18094: (eval $ac_link) 2>&5
! 18095: ac_status=$?
! 18096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18097: (exit $ac_status); } &&
! 18098: { ac_try='test -s conftest$ac_exeext'
! 18099: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18100: (eval $ac_try) 2>&5
! 18101: ac_status=$?
! 18102: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18103: (exit $ac_status); }; }; then
! 18104: ac_cv_lib_dl_dlopen=yes
! 18105: else
! 18106: echo "$as_me: failed program was:" >&5
! 18107: sed 's/^/| /' conftest.$ac_ext >&5
! 18108:
! 18109: ac_cv_lib_dl_dlopen=no
! 18110: fi
! 18111: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18112: LIBS=$ac_check_lib_save_LIBS
! 18113: fi
! 18114: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 18115: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 18116: if test $ac_cv_lib_dl_dlopen = yes; then
! 18117: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 18118: else
! 18119:
! 18120: lt_cv_dlopen="dyld"
! 18121: lt_cv_dlopen_libs=
! 18122: lt_cv_dlopen_self=yes
! 18123:
! 18124: fi
! 18125:
! 18126: ;;
! 18127:
! 18128: *)
! 18129: echo "$as_me:$LINENO: checking for shl_load" >&5
! 18130: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 18131: if test "${ac_cv_func_shl_load+set}" = set; then
! 18132: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18133: else
! 18134: cat >conftest.$ac_ext <<_ACEOF
! 18135: #line $LINENO "configure"
! 18136: /* confdefs.h. */
! 18137: _ACEOF
! 18138: cat confdefs.h >>conftest.$ac_ext
! 18139: cat >>conftest.$ac_ext <<_ACEOF
! 18140: /* end confdefs.h. */
! 18141: /* System header to define __stub macros and hopefully few prototypes,
! 18142: which can conflict with char shl_load (); below.
! 18143: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18144: <limits.h> exists even on freestanding compilers. */
! 18145: #ifdef __STDC__
! 18146: # include <limits.h>
! 18147: #else
! 18148: # include <assert.h>
! 18149: #endif
! 18150: /* Override any gcc2 internal prototype to avoid an error. */
! 18151: #ifdef __cplusplus
! 18152: extern "C"
! 18153: {
! 18154: #endif
! 18155: /* We use char because int might match the return type of a gcc2
! 18156: builtin and then its argument prototype would still apply. */
! 18157: char shl_load ();
! 18158: /* The GNU C library defines this for functions which it implements
! 18159: to always fail with ENOSYS. Some functions are actually named
! 18160: something starting with __ and the normal name is an alias. */
! 18161: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 18162: choke me
! 18163: #else
! 18164: char (*f) () = shl_load;
! 18165: #endif
! 18166: #ifdef __cplusplus
! 18167: }
! 18168: #endif
! 18169:
! 18170: int
! 18171: main ()
! 18172: {
! 18173: return f != shl_load;
! 18174: ;
! 18175: return 0;
! 18176: }
! 18177: _ACEOF
! 18178: rm -f conftest.$ac_objext conftest$ac_exeext
! 18179: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18180: (eval $ac_link) 2>&5
! 18181: ac_status=$?
! 18182: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18183: (exit $ac_status); } &&
! 18184: { ac_try='test -s conftest$ac_exeext'
! 18185: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18186: (eval $ac_try) 2>&5
! 18187: ac_status=$?
! 18188: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18189: (exit $ac_status); }; }; then
! 18190: ac_cv_func_shl_load=yes
! 18191: else
! 18192: echo "$as_me: failed program was:" >&5
! 18193: sed 's/^/| /' conftest.$ac_ext >&5
! 18194:
! 18195: ac_cv_func_shl_load=no
! 18196: fi
! 18197: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18198: fi
! 18199: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 18200: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 18201: if test $ac_cv_func_shl_load = yes; then
! 18202: lt_cv_dlopen="shl_load"
! 18203: else
! 18204: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 18205: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 18206: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
! 18207: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18208: else
! 18209: ac_check_lib_save_LIBS=$LIBS
! 18210: LIBS="-ldld $LIBS"
! 18211: cat >conftest.$ac_ext <<_ACEOF
! 18212: #line $LINENO "configure"
! 18213: /* confdefs.h. */
! 18214: _ACEOF
! 18215: cat confdefs.h >>conftest.$ac_ext
! 18216: cat >>conftest.$ac_ext <<_ACEOF
! 18217: /* end confdefs.h. */
! 18218:
! 18219: /* Override any gcc2 internal prototype to avoid an error. */
! 18220: #ifdef __cplusplus
! 18221: extern "C"
! 18222: #endif
! 18223: /* We use char because int might match the return type of a gcc2
! 18224: builtin and then its argument prototype would still apply. */
! 18225: char shl_load ();
! 18226: int
! 18227: main ()
! 18228: {
! 18229: shl_load ();
! 18230: ;
! 18231: return 0;
! 18232: }
! 18233: _ACEOF
! 18234: rm -f conftest.$ac_objext conftest$ac_exeext
! 18235: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18236: (eval $ac_link) 2>&5
! 18237: ac_status=$?
! 18238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18239: (exit $ac_status); } &&
! 18240: { ac_try='test -s conftest$ac_exeext'
! 18241: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18242: (eval $ac_try) 2>&5
! 18243: ac_status=$?
! 18244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18245: (exit $ac_status); }; }; then
! 18246: ac_cv_lib_dld_shl_load=yes
! 18247: else
! 18248: echo "$as_me: failed program was:" >&5
! 18249: sed 's/^/| /' conftest.$ac_ext >&5
! 18250:
! 18251: ac_cv_lib_dld_shl_load=no
! 18252: fi
! 18253: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18254: LIBS=$ac_check_lib_save_LIBS
! 18255: fi
! 18256: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 18257: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 18258: if test $ac_cv_lib_dld_shl_load = yes; then
! 18259: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
! 18260: else
! 18261: echo "$as_me:$LINENO: checking for dlopen" >&5
! 18262: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
! 18263: if test "${ac_cv_func_dlopen+set}" = set; then
! 18264: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18265: else
! 18266: cat >conftest.$ac_ext <<_ACEOF
! 18267: #line $LINENO "configure"
! 18268: /* confdefs.h. */
! 18269: _ACEOF
! 18270: cat confdefs.h >>conftest.$ac_ext
! 18271: cat >>conftest.$ac_ext <<_ACEOF
! 18272: /* end confdefs.h. */
! 18273: /* System header to define __stub macros and hopefully few prototypes,
! 18274: which can conflict with char dlopen (); below.
! 18275: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 18276: <limits.h> exists even on freestanding compilers. */
! 18277: #ifdef __STDC__
! 18278: # include <limits.h>
! 18279: #else
! 18280: # include <assert.h>
! 18281: #endif
! 18282: /* Override any gcc2 internal prototype to avoid an error. */
! 18283: #ifdef __cplusplus
! 18284: extern "C"
! 18285: {
! 18286: #endif
! 18287: /* We use char because int might match the return type of a gcc2
! 18288: builtin and then its argument prototype would still apply. */
! 18289: char dlopen ();
! 18290: /* The GNU C library defines this for functions which it implements
! 18291: to always fail with ENOSYS. Some functions are actually named
! 18292: something starting with __ and the normal name is an alias. */
! 18293: #if defined (__stub_dlopen) || defined (__stub___dlopen)
! 18294: choke me
! 18295: #else
! 18296: char (*f) () = dlopen;
! 18297: #endif
! 18298: #ifdef __cplusplus
! 18299: }
! 18300: #endif
! 18301:
! 18302: int
! 18303: main ()
! 18304: {
! 18305: return f != dlopen;
! 18306: ;
! 18307: return 0;
! 18308: }
! 18309: _ACEOF
! 18310: rm -f conftest.$ac_objext conftest$ac_exeext
! 18311: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18312: (eval $ac_link) 2>&5
! 18313: ac_status=$?
! 18314: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18315: (exit $ac_status); } &&
! 18316: { ac_try='test -s conftest$ac_exeext'
! 18317: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18318: (eval $ac_try) 2>&5
! 18319: ac_status=$?
! 18320: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18321: (exit $ac_status); }; }; then
! 18322: ac_cv_func_dlopen=yes
! 18323: else
! 18324: echo "$as_me: failed program was:" >&5
! 18325: sed 's/^/| /' conftest.$ac_ext >&5
! 18326:
! 18327: ac_cv_func_dlopen=no
! 18328: fi
! 18329: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18330: fi
! 18331: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
! 18332: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
! 18333: if test $ac_cv_func_dlopen = yes; then
! 18334: lt_cv_dlopen="dlopen"
! 18335: else
! 18336: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 18337: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 18338: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
! 18339: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18340: else
! 18341: ac_check_lib_save_LIBS=$LIBS
! 18342: LIBS="-ldl $LIBS"
! 18343: cat >conftest.$ac_ext <<_ACEOF
! 18344: #line $LINENO "configure"
! 18345: /* confdefs.h. */
! 18346: _ACEOF
! 18347: cat confdefs.h >>conftest.$ac_ext
! 18348: cat >>conftest.$ac_ext <<_ACEOF
! 18349: /* end confdefs.h. */
! 18350:
! 18351: /* Override any gcc2 internal prototype to avoid an error. */
! 18352: #ifdef __cplusplus
! 18353: extern "C"
! 18354: #endif
! 18355: /* We use char because int might match the return type of a gcc2
! 18356: builtin and then its argument prototype would still apply. */
! 18357: char dlopen ();
! 18358: int
! 18359: main ()
! 18360: {
! 18361: dlopen ();
! 18362: ;
! 18363: return 0;
! 18364: }
! 18365: _ACEOF
! 18366: rm -f conftest.$ac_objext conftest$ac_exeext
! 18367: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18368: (eval $ac_link) 2>&5
! 18369: ac_status=$?
! 18370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18371: (exit $ac_status); } &&
! 18372: { ac_try='test -s conftest$ac_exeext'
! 18373: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18374: (eval $ac_try) 2>&5
! 18375: ac_status=$?
! 18376: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18377: (exit $ac_status); }; }; then
! 18378: ac_cv_lib_dl_dlopen=yes
! 18379: else
! 18380: echo "$as_me: failed program was:" >&5
! 18381: sed 's/^/| /' conftest.$ac_ext >&5
! 18382:
! 18383: ac_cv_lib_dl_dlopen=no
! 18384: fi
! 18385: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18386: LIBS=$ac_check_lib_save_LIBS
! 18387: fi
! 18388: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 18389: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 18390: if test $ac_cv_lib_dl_dlopen = yes; then
! 18391: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
! 18392: else
! 18393: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 18394: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 18395: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
! 18396: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18397: else
! 18398: ac_check_lib_save_LIBS=$LIBS
! 18399: LIBS="-lsvld $LIBS"
! 18400: cat >conftest.$ac_ext <<_ACEOF
! 18401: #line $LINENO "configure"
! 18402: /* confdefs.h. */
! 18403: _ACEOF
! 18404: cat confdefs.h >>conftest.$ac_ext
! 18405: cat >>conftest.$ac_ext <<_ACEOF
! 18406: /* end confdefs.h. */
! 18407:
! 18408: /* Override any gcc2 internal prototype to avoid an error. */
! 18409: #ifdef __cplusplus
! 18410: extern "C"
! 18411: #endif
! 18412: /* We use char because int might match the return type of a gcc2
! 18413: builtin and then its argument prototype would still apply. */
! 18414: char dlopen ();
! 18415: int
! 18416: main ()
! 18417: {
! 18418: dlopen ();
! 18419: ;
! 18420: return 0;
! 18421: }
! 18422: _ACEOF
! 18423: rm -f conftest.$ac_objext conftest$ac_exeext
! 18424: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18425: (eval $ac_link) 2>&5
! 18426: ac_status=$?
! 18427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18428: (exit $ac_status); } &&
! 18429: { ac_try='test -s conftest$ac_exeext'
! 18430: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18431: (eval $ac_try) 2>&5
! 18432: ac_status=$?
! 18433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18434: (exit $ac_status); }; }; then
! 18435: ac_cv_lib_svld_dlopen=yes
! 18436: else
! 18437: echo "$as_me: failed program was:" >&5
! 18438: sed 's/^/| /' conftest.$ac_ext >&5
! 18439:
! 18440: ac_cv_lib_svld_dlopen=no
! 18441: fi
! 18442: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18443: LIBS=$ac_check_lib_save_LIBS
! 18444: fi
! 18445: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 18446: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 18447: if test $ac_cv_lib_svld_dlopen = yes; then
! 18448: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
! 18449: else
! 18450: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
! 18451: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
! 18452: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
! 18453: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18454: else
! 18455: ac_check_lib_save_LIBS=$LIBS
! 18456: LIBS="-ldld $LIBS"
! 18457: cat >conftest.$ac_ext <<_ACEOF
! 18458: #line $LINENO "configure"
! 18459: /* confdefs.h. */
! 18460: _ACEOF
! 18461: cat confdefs.h >>conftest.$ac_ext
! 18462: cat >>conftest.$ac_ext <<_ACEOF
! 18463: /* end confdefs.h. */
! 18464:
! 18465: /* Override any gcc2 internal prototype to avoid an error. */
! 18466: #ifdef __cplusplus
! 18467: extern "C"
! 18468: #endif
! 18469: /* We use char because int might match the return type of a gcc2
! 18470: builtin and then its argument prototype would still apply. */
! 18471: char dld_link ();
! 18472: int
! 18473: main ()
! 18474: {
! 18475: dld_link ();
! 18476: ;
! 18477: return 0;
! 18478: }
! 18479: _ACEOF
! 18480: rm -f conftest.$ac_objext conftest$ac_exeext
! 18481: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18482: (eval $ac_link) 2>&5
! 18483: ac_status=$?
! 18484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18485: (exit $ac_status); } &&
! 18486: { ac_try='test -s conftest$ac_exeext'
! 18487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 18488: (eval $ac_try) 2>&5
! 18489: ac_status=$?
! 18490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18491: (exit $ac_status); }; }; then
! 18492: ac_cv_lib_dld_dld_link=yes
! 18493: else
! 18494: echo "$as_me: failed program was:" >&5
! 18495: sed 's/^/| /' conftest.$ac_ext >&5
! 18496:
! 18497: ac_cv_lib_dld_dld_link=no
! 18498: fi
! 18499: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 18500: LIBS=$ac_check_lib_save_LIBS
! 18501: fi
! 18502: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
! 18503: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
! 18504: if test $ac_cv_lib_dld_dld_link = yes; then
! 18505: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
! 18506: fi
! 18507:
! 18508:
! 18509: fi
! 18510:
! 18511:
! 18512: fi
! 18513:
! 18514:
! 18515: fi
! 18516:
! 18517:
! 18518: fi
! 18519:
! 18520:
! 18521: fi
! 18522:
! 18523: ;;
! 18524: esac
! 18525:
! 18526: if test "x$lt_cv_dlopen" != xno; then
! 18527: enable_dlopen=yes
! 18528: else
! 18529: enable_dlopen=no
! 18530: fi
! 18531:
! 18532: case $lt_cv_dlopen in
! 18533: dlopen)
! 18534: save_CPPFLAGS="$CPPFLAGS"
! 18535: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
! 18536:
! 18537: save_LDFLAGS="$LDFLAGS"
! 18538: eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
! 18539:
! 18540: save_LIBS="$LIBS"
! 18541: LIBS="$lt_cv_dlopen_libs $LIBS"
! 18542:
! 18543: echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
! 18544: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
! 18545: if test "${lt_cv_dlopen_self+set}" = set; then
! 18546: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18547: else
! 18548: if test "$cross_compiling" = yes; then :
! 18549: lt_cv_dlopen_self=cross
! 18550: else
! 18551: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 18552: lt_status=$lt_dlunknown
! 18553: cat > conftest.$ac_ext <<EOF
! 18554: #line 18554 "configure"
! 18555: #include "confdefs.h"
! 18556:
! 18557: #if HAVE_DLFCN_H
! 18558: #include <dlfcn.h>
! 18559: #endif
! 18560:
! 18561: #include <stdio.h>
! 18562:
! 18563: #ifdef RTLD_GLOBAL
! 18564: # define LT_DLGLOBAL RTLD_GLOBAL
! 18565: #else
! 18566: # ifdef DL_GLOBAL
! 18567: # define LT_DLGLOBAL DL_GLOBAL
! 18568: # else
! 18569: # define LT_DLGLOBAL 0
! 18570: # endif
! 18571: #endif
! 18572:
! 18573: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 18574: find out it does not work in some platform. */
! 18575: #ifndef LT_DLLAZY_OR_NOW
! 18576: # ifdef RTLD_LAZY
! 18577: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 18578: # else
! 18579: # ifdef DL_LAZY
! 18580: # define LT_DLLAZY_OR_NOW DL_LAZY
! 18581: # else
! 18582: # ifdef RTLD_NOW
! 18583: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 18584: # else
! 18585: # ifdef DL_NOW
! 18586: # define LT_DLLAZY_OR_NOW DL_NOW
! 18587: # else
! 18588: # define LT_DLLAZY_OR_NOW 0
! 18589: # endif
! 18590: # endif
! 18591: # endif
! 18592: # endif
! 18593: #endif
! 18594:
! 18595: #ifdef __cplusplus
! 18596: extern "C" void exit (int);
! 18597: #endif
! 18598:
! 18599: void fnord() { int i=42;}
! 18600: int main ()
! 18601: {
! 18602: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 18603: int status = $lt_dlunknown;
! 18604:
! 18605: if (self)
! 18606: {
! 18607: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 18608: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 18609: /* dlclose (self); */
! 18610: }
! 18611:
! 18612: exit (status);
! 18613: }
! 18614: EOF
! 18615: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18616: (eval $ac_link) 2>&5
! 18617: ac_status=$?
! 18618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18619: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 18620: (./conftest; exit; ) 2>/dev/null
! 18621: lt_status=$?
! 18622: case x$lt_status in
! 18623: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
! 18624: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
! 18625: x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
! 18626: esac
! 18627: else :
! 18628: # compilation failed
! 18629: lt_cv_dlopen_self=no
! 18630: fi
! 18631: fi
! 18632: rm -fr conftest*
! 18633:
! 18634:
! 18635: fi
! 18636: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
! 18637: echo "${ECHO_T}$lt_cv_dlopen_self" >&6
! 18638:
! 18639: if test "x$lt_cv_dlopen_self" = xyes; then
! 18640: LDFLAGS="$LDFLAGS $link_static_flag"
! 18641: echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
! 18642: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
! 18643: if test "${lt_cv_dlopen_self_static+set}" = set; then
! 18644: echo $ECHO_N "(cached) $ECHO_C" >&6
! 18645: else
! 18646: if test "$cross_compiling" = yes; then :
! 18647: lt_cv_dlopen_self_static=cross
! 18648: else
! 18649: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
! 18650: lt_status=$lt_dlunknown
! 18651: cat > conftest.$ac_ext <<EOF
! 18652: #line 18652 "configure"
! 18653: #include "confdefs.h"
! 18654:
! 18655: #if HAVE_DLFCN_H
! 18656: #include <dlfcn.h>
! 18657: #endif
! 18658:
! 18659: #include <stdio.h>
! 18660:
! 18661: #ifdef RTLD_GLOBAL
! 18662: # define LT_DLGLOBAL RTLD_GLOBAL
! 18663: #else
! 18664: # ifdef DL_GLOBAL
! 18665: # define LT_DLGLOBAL DL_GLOBAL
! 18666: # else
! 18667: # define LT_DLGLOBAL 0
! 18668: # endif
! 18669: #endif
! 18670:
! 18671: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
! 18672: find out it does not work in some platform. */
! 18673: #ifndef LT_DLLAZY_OR_NOW
! 18674: # ifdef RTLD_LAZY
! 18675: # define LT_DLLAZY_OR_NOW RTLD_LAZY
! 18676: # else
! 18677: # ifdef DL_LAZY
! 18678: # define LT_DLLAZY_OR_NOW DL_LAZY
! 18679: # else
! 18680: # ifdef RTLD_NOW
! 18681: # define LT_DLLAZY_OR_NOW RTLD_NOW
! 18682: # else
! 18683: # ifdef DL_NOW
! 18684: # define LT_DLLAZY_OR_NOW DL_NOW
! 18685: # else
! 18686: # define LT_DLLAZY_OR_NOW 0
! 18687: # endif
! 18688: # endif
! 18689: # endif
! 18690: # endif
! 18691: #endif
! 18692:
! 18693: #ifdef __cplusplus
! 18694: extern "C" void exit (int);
! 18695: #endif
! 18696:
! 18697: void fnord() { int i=42;}
! 18698: int main ()
! 18699: {
! 18700: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
! 18701: int status = $lt_dlunknown;
! 18702:
! 18703: if (self)
! 18704: {
! 18705: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
! 18706: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
! 18707: /* dlclose (self); */
! 18708: }
! 18709:
! 18710: exit (status);
! 18711: }
! 18712: EOF
! 18713: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 18714: (eval $ac_link) 2>&5
! 18715: ac_status=$?
! 18716: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 18717: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
! 18718: (./conftest; exit; ) 2>/dev/null
! 18719: lt_status=$?
! 18720: case x$lt_status in
! 18721: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
! 18722: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
! 18723: x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
! 18724: esac
! 18725: else :
! 18726: # compilation failed
! 18727: lt_cv_dlopen_self_static=no
! 18728: fi
! 18729: fi
! 18730: rm -fr conftest*
! 18731:
! 18732:
! 18733: fi
! 18734: echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
! 18735: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
! 18736: fi
! 18737:
! 18738: CPPFLAGS="$save_CPPFLAGS"
! 18739: LDFLAGS="$save_LDFLAGS"
! 18740: LIBS="$save_LIBS"
! 18741: ;;
! 18742: esac
! 18743:
! 18744: case $lt_cv_dlopen_self in
! 18745: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
! 18746: *) enable_dlopen_self=unknown ;;
! 18747: esac
! 18748:
! 18749: case $lt_cv_dlopen_self_static in
! 18750: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
! 18751: *) enable_dlopen_self_static=unknown ;;
! 18752: esac
! 18753: fi
! 18754:
! 18755:
! 18756: # The else clause should only fire when bootstrapping the
! 18757: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 18758: # with your package, and you will get complaints that there are
! 18759: # no rules to generate ltmain.sh.
! 18760: if test -f "$ltmain"; then
! 18761: # See if we are running on zsh, and set the options which allow our commands through
! 18762: # without removal of \ escapes.
! 18763: if test -n "${ZSH_VERSION+set}" ; then
! 18764: setopt NO_GLOB_SUBST
! 18765: fi
! 18766: # Now quote all the things that may contain metacharacters while being
! 18767: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 18768: # variables and quote the copies for generation of the libtool script.
! 18769: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
! 18770: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 18771: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 18772: deplibs_check_method reload_flag reload_cmds need_locks \
! 18773: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 18774: lt_cv_sys_global_symbol_to_c_name_address \
! 18775: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 18776: old_postinstall_cmds old_postuninstall_cmds \
! 18777: compiler_GCJ \
! 18778: CC_GCJ \
! 18779: LD_GCJ \
! 18780: lt_prog_compiler_wl_GCJ \
! 18781: lt_prog_compiler_pic_GCJ \
! 18782: lt_prog_compiler_static_GCJ \
! 18783: lt_prog_compiler_no_builtin_flag_GCJ \
! 18784: export_dynamic_flag_spec_GCJ \
! 18785: thread_safe_flag_spec_GCJ \
! 18786: whole_archive_flag_spec_GCJ \
! 18787: enable_shared_with_static_runtimes_GCJ \
! 18788: old_archive_cmds_GCJ \
! 18789: old_archive_from_new_cmds_GCJ \
! 18790: predep_objects_GCJ \
! 18791: postdep_objects_GCJ \
! 18792: predeps_GCJ \
! 18793: postdeps_GCJ \
! 18794: compiler_lib_search_path_GCJ \
! 18795: archive_cmds_GCJ \
! 18796: archive_expsym_cmds_GCJ \
! 18797: postinstall_cmds_GCJ \
! 18798: postuninstall_cmds_GCJ \
! 18799: old_archive_from_expsyms_cmds_GCJ \
! 18800: allow_undefined_flag_GCJ \
! 18801: no_undefined_flag_GCJ \
! 18802: export_symbols_cmds_GCJ \
! 18803: hardcode_libdir_flag_spec_GCJ \
! 18804: hardcode_libdir_flag_spec_ld_GCJ \
! 18805: hardcode_libdir_separator_GCJ \
! 18806: hardcode_automatic_GCJ \
! 18807: module_cmds_GCJ \
! 18808: module_expsym_cmds_GCJ \
! 18809: lt_cv_prog_compiler_c_o_GCJ \
! 18810: exclude_expsyms_GCJ \
! 18811: include_expsyms_GCJ; do
! 18812:
! 18813: case $var in
! 18814: old_archive_cmds_GCJ | \
! 18815: old_archive_from_new_cmds_GCJ | \
! 18816: archive_cmds_GCJ | \
! 18817: archive_expsym_cmds_GCJ | \
! 18818: module_cmds_GCJ | \
! 18819: module_expsym_cmds_GCJ | \
! 18820: old_archive_from_expsyms_cmds_GCJ | \
! 18821: export_symbols_cmds_GCJ | \
! 18822: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 18823: postinstall_cmds | postuninstall_cmds | \
! 18824: old_postinstall_cmds | old_postuninstall_cmds | \
! 18825: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 18826: # Double-quote double-evaled strings.
! 18827: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 18828: ;;
! 18829: *)
! 18830: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 18831: ;;
! 18832: esac
! 18833: done
! 18834:
! 18835: case $lt_echo in
! 18836: *'\$0 --fallback-echo"')
! 18837: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 18838: ;;
! 18839: esac
! 18840:
! 18841: cfgfile="$ofile"
! 18842:
! 18843: cat <<__EOF__ >> "$cfgfile"
! 18844: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 18845:
! 18846: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 18847:
! 18848: # Shell to use when invoking shell scripts.
! 18849: SHELL=$lt_SHELL
! 18850:
! 18851: # Whether or not to build shared libraries.
! 18852: build_libtool_libs=$enable_shared
! 18853:
! 18854: # Whether or not to build static libraries.
! 18855: build_old_libs=$enable_static
! 18856:
! 18857: # Whether or not to add -lc for building shared libraries.
! 18858: build_libtool_need_lc=$archive_cmds_need_lc_GCJ
! 18859:
! 18860: # Whether or not to disallow shared libs when runtime libs are static
! 18861: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
! 18862:
! 18863: # Whether or not to optimize for fast installation.
! 18864: fast_install=$enable_fast_install
! 18865:
! 18866: # The host system.
! 18867: host_alias=$host_alias
! 18868: host=$host
! 18869:
! 18870: # An echo program that does not interpret backslashes.
! 18871: echo=$lt_echo
! 18872:
! 18873: # The archiver.
! 18874: AR=$lt_AR
! 18875: AR_FLAGS=$lt_AR_FLAGS
! 18876:
! 18877: # A C compiler.
! 18878: LTCC=$lt_LTCC
! 18879:
! 18880: # A language-specific compiler.
! 18881: CC=$lt_compiler_GCJ
! 18882:
! 18883: # Is the compiler the GNU C compiler?
! 18884: with_gcc=$GCC_GCJ
! 18885:
! 18886: # An ERE matcher.
! 18887: EGREP=$lt_EGREP
! 18888:
! 18889: # The linker used to build libraries.
! 18890: LD=$lt_LD_GCJ
! 18891:
! 18892: # Whether we need hard or soft links.
! 18893: LN_S=$lt_LN_S
! 18894:
! 18895: # A BSD-compatible nm program.
! 18896: NM=$lt_NM
! 18897:
! 18898: # A symbol stripping program
! 18899: STRIP=$STRIP
! 18900:
! 18901: # Used to examine libraries when file_magic_cmd begins "file"
! 18902: MAGIC_CMD=$MAGIC_CMD
! 18903:
! 18904: # Used on cygwin: DLL creation program.
! 18905: DLLTOOL="$DLLTOOL"
! 18906:
! 18907: # Used on cygwin: object dumper.
! 18908: OBJDUMP="$OBJDUMP"
! 18909:
! 18910: # Used on cygwin: assembler.
! 18911: AS="$AS"
! 18912:
! 18913: # The name of the directory that contains temporary libtool files.
! 18914: objdir=$objdir
! 18915:
! 18916: # How to create reloadable object files.
! 18917: reload_flag=$lt_reload_flag
! 18918: reload_cmds=$lt_reload_cmds
! 18919:
! 18920: # How to pass a linker flag through the compiler.
! 18921: wl=$lt_lt_prog_compiler_wl_GCJ
! 18922:
! 18923: # Object file suffix (normally "o").
! 18924: objext="$ac_objext"
! 18925:
! 18926: # Old archive suffix (normally "a").
! 18927: libext="$libext"
! 18928:
! 18929: # Shared library suffix (normally ".so").
! 18930: shrext='$shrext'
! 18931:
! 18932: # Executable file suffix (normally "").
! 18933: exeext="$exeext"
! 18934:
! 18935: # Additional compiler flags for building library objects.
! 18936: pic_flag=$lt_lt_prog_compiler_pic_GCJ
! 18937: pic_mode=$pic_mode
! 18938:
! 18939: # What is the maximum length of a command?
! 18940: max_cmd_len=$lt_cv_sys_max_cmd_len
! 18941:
! 18942: # Does compiler simultaneously support -c and -o options?
! 18943: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
! 18944:
! 18945: # Must we lock files when doing compilation ?
! 18946: need_locks=$lt_need_locks
! 18947:
! 18948: # Do we need the lib prefix for modules?
! 18949: need_lib_prefix=$need_lib_prefix
! 18950:
! 18951: # Do we need a version for libraries?
! 18952: need_version=$need_version
! 18953:
! 18954: # Whether dlopen is supported.
! 18955: dlopen_support=$enable_dlopen
! 18956:
! 18957: # Whether dlopen of programs is supported.
! 18958: dlopen_self=$enable_dlopen_self
! 18959:
! 18960: # Whether dlopen of statically linked programs is supported.
! 18961: dlopen_self_static=$enable_dlopen_self_static
! 18962:
! 18963: # Compiler flag to prevent dynamic linking.
! 18964: link_static_flag=$lt_lt_prog_compiler_static_GCJ
! 18965:
! 18966: # Compiler flag to turn off builtin functions.
! 18967: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
! 18968:
! 18969: # Compiler flag to allow reflexive dlopens.
! 18970: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
! 18971:
! 18972: # Compiler flag to generate shared objects directly from archives.
! 18973: whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
! 18974:
! 18975: # Compiler flag to generate thread-safe objects.
! 18976: thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
! 18977:
! 18978: # Library versioning type.
! 18979: version_type=$version_type
! 18980:
! 18981: # Format of library name prefix.
! 18982: libname_spec=$lt_libname_spec
! 18983:
! 18984: # List of archive names. First name is the real one, the rest are links.
! 18985: # The last name is the one that the linker finds with -lNAME.
! 18986: library_names_spec=$lt_library_names_spec
! 18987:
! 18988: # The coded name of the library, if different from the real name.
! 18989: soname_spec=$lt_soname_spec
! 18990:
! 18991: # Commands used to build and install an old-style archive.
! 18992: RANLIB=$lt_RANLIB
! 18993: old_archive_cmds=$lt_old_archive_cmds_GCJ
! 18994: old_postinstall_cmds=$lt_old_postinstall_cmds
! 18995: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 18996:
! 18997: # Create an old-style archive from a shared archive.
! 18998: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
! 18999:
! 19000: # Create a temporary old-style archive to link instead of a shared archive.
! 19001: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
! 19002:
! 19003: # Commands used to build and install a shared archive.
! 19004: archive_cmds=$lt_archive_cmds_GCJ
! 19005: archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
! 19006: postinstall_cmds=$lt_postinstall_cmds
! 19007: postuninstall_cmds=$lt_postuninstall_cmds
! 19008:
! 19009: # Commands used to build a loadable module (assumed same as above if empty)
! 19010: module_cmds=$lt_module_cmds_GCJ
! 19011: module_expsym_cmds=$lt_module_expsym_cmds_GCJ
! 19012:
! 19013: # Commands to strip libraries.
! 19014: old_striplib=$lt_old_striplib
! 19015: striplib=$lt_striplib
! 19016:
! 19017: # Dependencies to place before the objects being linked to create a
! 19018: # shared library.
! 19019: predep_objects=$lt_predep_objects_GCJ
! 19020:
! 19021: # Dependencies to place after the objects being linked to create a
! 19022: # shared library.
! 19023: postdep_objects=$lt_postdep_objects_GCJ
! 19024:
! 19025: # Dependencies to place before the objects being linked to create a
! 19026: # shared library.
! 19027: predeps=$lt_predeps_GCJ
! 19028:
! 19029: # Dependencies to place after the objects being linked to create a
! 19030: # shared library.
! 19031: postdeps=$lt_postdeps_GCJ
! 19032:
! 19033: # The library search path used internally by the compiler when linking
! 19034: # a shared library.
! 19035: compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
! 19036:
! 19037: # Method to check whether dependent libraries are shared objects.
! 19038: deplibs_check_method=$lt_deplibs_check_method
! 19039:
! 19040: # Command to use when deplibs_check_method == file_magic.
! 19041: file_magic_cmd=$lt_file_magic_cmd
! 19042:
! 19043: # Flag that allows shared libraries with undefined symbols to be built.
! 19044: allow_undefined_flag=$lt_allow_undefined_flag_GCJ
! 19045:
! 19046: # Flag that forces no undefined symbols.
! 19047: no_undefined_flag=$lt_no_undefined_flag_GCJ
! 19048:
! 19049: # Commands used to finish a libtool library installation in a directory.
! 19050: finish_cmds=$lt_finish_cmds
! 19051:
! 19052: # Same as above, but a single script fragment to be evaled but not shown.
! 19053: finish_eval=$lt_finish_eval
! 19054:
! 19055: # Take the output of nm and produce a listing of raw symbols and C names.
! 19056: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 19057:
! 19058: # Transform the output of nm in a proper C declaration
! 19059: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 19060:
! 19061: # Transform the output of nm in a C name address pair
! 19062: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 19063:
! 19064: # This is the shared library runtime path variable.
! 19065: runpath_var=$runpath_var
! 19066:
! 19067: # This is the shared library path variable.
! 19068: shlibpath_var=$shlibpath_var
! 19069:
! 19070: # Is shlibpath searched before the hard-coded library search path?
! 19071: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 19072:
! 19073: # How to hardcode a shared library path into an executable.
! 19074: hardcode_action=$hardcode_action_GCJ
! 19075:
! 19076: # Whether we should hardcode library paths into libraries.
! 19077: hardcode_into_libs=$hardcode_into_libs
! 19078:
! 19079: # Flag to hardcode \$libdir into a binary during linking.
! 19080: # This must work even if \$libdir does not exist.
! 19081: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
! 19082:
! 19083: # If ld is used when linking, flag to hardcode \$libdir into
! 19084: # a binary during linking. This must work even if \$libdir does
! 19085: # not exist.
! 19086: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
! 19087:
! 19088: # Whether we need a single -rpath flag with a separated argument.
! 19089: hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
! 19090:
! 19091: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 19092: # resulting binary.
! 19093: hardcode_direct=$hardcode_direct_GCJ
! 19094:
! 19095: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 19096: # resulting binary.
! 19097: hardcode_minus_L=$hardcode_minus_L_GCJ
! 19098:
! 19099: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 19100: # the resulting binary.
! 19101: hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
! 19102:
! 19103: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 19104: # and all subsequent libraries and executables linked against it.
! 19105: hardcode_automatic=$hardcode_automatic_GCJ
! 19106:
! 19107: # Variables whose values should be saved in libtool wrapper scripts and
! 19108: # restored at relink time.
! 19109: variables_saved_for_relink="$variables_saved_for_relink"
! 19110:
! 19111: # Whether libtool must link a program against all its dependency libraries.
! 19112: link_all_deplibs=$link_all_deplibs_GCJ
! 19113:
! 19114: # Compile-time system search path for libraries
! 19115: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 19116:
! 19117: # Run-time system search path for libraries
! 19118: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 19119:
! 19120: # Fix the shell variable \$srcfile for the compiler.
! 19121: fix_srcfile_path="$fix_srcfile_path_GCJ"
! 19122:
! 19123: # Set to yes if exported symbols are required.
! 19124: always_export_symbols=$always_export_symbols_GCJ
! 19125:
! 19126: # The commands to list exported symbols.
! 19127: export_symbols_cmds=$lt_export_symbols_cmds_GCJ
! 19128:
! 19129: # The commands to extract the exported symbol list from a shared archive.
! 19130: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 19131:
! 19132: # Symbols that should not be listed in the preloaded symbols.
! 19133: exclude_expsyms=$lt_exclude_expsyms_GCJ
! 19134:
! 19135: # Symbols that must always be exported.
! 19136: include_expsyms=$lt_include_expsyms_GCJ
! 19137:
! 19138: # ### END LIBTOOL TAG CONFIG: $tagname
! 19139:
! 19140: __EOF__
! 19141:
! 19142:
! 19143: else
! 19144: # If there is no Makefile yet, we rely on a make rule to execute
! 19145: # `config.status --recheck' to rerun these tests and create the
! 19146: # libtool script then.
! 19147: test -f Makefile && make "$ltmain"
! 19148: fi
! 19149:
! 19150:
! 19151: ac_ext=c
! 19152: ac_cpp='$CPP $CPPFLAGS'
! 19153: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 19154: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 19155: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 19156:
! 19157: CC="$lt_save_CC"
! 19158:
! 19159: else
! 19160: tagname=""
! 19161: fi
! 19162: ;;
! 19163:
! 19164: RC)
! 19165:
! 19166:
! 19167:
! 19168: # Source file extension for RC test sources.
! 19169: ac_ext=rc
! 19170:
! 19171: # Object file extension for compiled RC test sources.
! 19172: objext=o
! 19173: objext_RC=$objext
! 19174:
! 19175: # Code to be used in simple compile tests
! 19176: lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
! 19177:
! 19178: # Code to be used in simple link tests
! 19179: lt_simple_link_test_code="$lt_simple_compile_test_code"
! 19180:
! 19181: # ltmain only uses $CC for tagged configurations so make sure $CC is set.
! 19182:
! 19183: # If no C compiler was specified, use CC.
! 19184: LTCC=${LTCC-"$CC"}
! 19185:
! 19186: # Allow CC to be a program name with arguments.
! 19187: compiler=$CC
! 19188:
! 19189:
! 19190: # Allow CC to be a program name with arguments.
! 19191: lt_save_CC="$CC"
! 19192: CC=${RC-"windres"}
! 19193: compiler=$CC
! 19194: compiler_RC=$CC
! 19195: lt_cv_prog_compiler_c_o_RC=yes
! 19196:
! 19197: # The else clause should only fire when bootstrapping the
! 19198: # libtool distribution, otherwise you forgot to ship ltmain.sh
! 19199: # with your package, and you will get complaints that there are
! 19200: # no rules to generate ltmain.sh.
! 19201: if test -f "$ltmain"; then
! 19202: # See if we are running on zsh, and set the options which allow our commands through
! 19203: # without removal of \ escapes.
! 19204: if test -n "${ZSH_VERSION+set}" ; then
! 19205: setopt NO_GLOB_SUBST
! 19206: fi
! 19207: # Now quote all the things that may contain metacharacters while being
! 19208: # careful not to overquote the AC_SUBSTed values. We take copies of the
! 19209: # variables and quote the copies for generation of the libtool script.
! 19210: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
! 19211: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
! 19212: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
! 19213: deplibs_check_method reload_flag reload_cmds need_locks \
! 19214: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
! 19215: lt_cv_sys_global_symbol_to_c_name_address \
! 19216: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
! 19217: old_postinstall_cmds old_postuninstall_cmds \
! 19218: compiler_RC \
! 19219: CC_RC \
! 19220: LD_RC \
! 19221: lt_prog_compiler_wl_RC \
! 19222: lt_prog_compiler_pic_RC \
! 19223: lt_prog_compiler_static_RC \
! 19224: lt_prog_compiler_no_builtin_flag_RC \
! 19225: export_dynamic_flag_spec_RC \
! 19226: thread_safe_flag_spec_RC \
! 19227: whole_archive_flag_spec_RC \
! 19228: enable_shared_with_static_runtimes_RC \
! 19229: old_archive_cmds_RC \
! 19230: old_archive_from_new_cmds_RC \
! 19231: predep_objects_RC \
! 19232: postdep_objects_RC \
! 19233: predeps_RC \
! 19234: postdeps_RC \
! 19235: compiler_lib_search_path_RC \
! 19236: archive_cmds_RC \
! 19237: archive_expsym_cmds_RC \
! 19238: postinstall_cmds_RC \
! 19239: postuninstall_cmds_RC \
! 19240: old_archive_from_expsyms_cmds_RC \
! 19241: allow_undefined_flag_RC \
! 19242: no_undefined_flag_RC \
! 19243: export_symbols_cmds_RC \
! 19244: hardcode_libdir_flag_spec_RC \
! 19245: hardcode_libdir_flag_spec_ld_RC \
! 19246: hardcode_libdir_separator_RC \
! 19247: hardcode_automatic_RC \
! 19248: module_cmds_RC \
! 19249: module_expsym_cmds_RC \
! 19250: lt_cv_prog_compiler_c_o_RC \
! 19251: exclude_expsyms_RC \
! 19252: include_expsyms_RC; do
! 19253:
! 19254: case $var in
! 19255: old_archive_cmds_RC | \
! 19256: old_archive_from_new_cmds_RC | \
! 19257: archive_cmds_RC | \
! 19258: archive_expsym_cmds_RC | \
! 19259: module_cmds_RC | \
! 19260: module_expsym_cmds_RC | \
! 19261: old_archive_from_expsyms_cmds_RC | \
! 19262: export_symbols_cmds_RC | \
! 19263: extract_expsyms_cmds | reload_cmds | finish_cmds | \
! 19264: postinstall_cmds | postuninstall_cmds | \
! 19265: old_postinstall_cmds | old_postuninstall_cmds | \
! 19266: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
! 19267: # Double-quote double-evaled strings.
! 19268: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
! 19269: ;;
! 19270: *)
! 19271: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
! 19272: ;;
! 19273: esac
! 19274: done
! 19275:
! 19276: case $lt_echo in
! 19277: *'\$0 --fallback-echo"')
! 19278: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
! 19279: ;;
! 19280: esac
! 19281:
! 19282: cfgfile="$ofile"
! 19283:
! 19284: cat <<__EOF__ >> "$cfgfile"
! 19285: # ### BEGIN LIBTOOL TAG CONFIG: $tagname
! 19286:
! 19287: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
! 19288:
! 19289: # Shell to use when invoking shell scripts.
! 19290: SHELL=$lt_SHELL
! 19291:
! 19292: # Whether or not to build shared libraries.
! 19293: build_libtool_libs=$enable_shared
! 19294:
! 19295: # Whether or not to build static libraries.
! 19296: build_old_libs=$enable_static
! 19297:
! 19298: # Whether or not to add -lc for building shared libraries.
! 19299: build_libtool_need_lc=$archive_cmds_need_lc_RC
! 19300:
! 19301: # Whether or not to disallow shared libs when runtime libs are static
! 19302: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
! 19303:
! 19304: # Whether or not to optimize for fast installation.
! 19305: fast_install=$enable_fast_install
! 19306:
! 19307: # The host system.
! 19308: host_alias=$host_alias
! 19309: host=$host
! 19310:
! 19311: # An echo program that does not interpret backslashes.
! 19312: echo=$lt_echo
! 19313:
! 19314: # The archiver.
! 19315: AR=$lt_AR
! 19316: AR_FLAGS=$lt_AR_FLAGS
! 19317:
! 19318: # A C compiler.
! 19319: LTCC=$lt_LTCC
! 19320:
! 19321: # A language-specific compiler.
! 19322: CC=$lt_compiler_RC
! 19323:
! 19324: # Is the compiler the GNU C compiler?
! 19325: with_gcc=$GCC_RC
! 19326:
! 19327: # An ERE matcher.
! 19328: EGREP=$lt_EGREP
! 19329:
! 19330: # The linker used to build libraries.
! 19331: LD=$lt_LD_RC
! 19332:
! 19333: # Whether we need hard or soft links.
! 19334: LN_S=$lt_LN_S
! 19335:
! 19336: # A BSD-compatible nm program.
! 19337: NM=$lt_NM
! 19338:
! 19339: # A symbol stripping program
! 19340: STRIP=$STRIP
! 19341:
! 19342: # Used to examine libraries when file_magic_cmd begins "file"
! 19343: MAGIC_CMD=$MAGIC_CMD
! 19344:
! 19345: # Used on cygwin: DLL creation program.
! 19346: DLLTOOL="$DLLTOOL"
! 19347:
! 19348: # Used on cygwin: object dumper.
! 19349: OBJDUMP="$OBJDUMP"
! 19350:
! 19351: # Used on cygwin: assembler.
! 19352: AS="$AS"
! 19353:
! 19354: # The name of the directory that contains temporary libtool files.
! 19355: objdir=$objdir
! 19356:
! 19357: # How to create reloadable object files.
! 19358: reload_flag=$lt_reload_flag
! 19359: reload_cmds=$lt_reload_cmds
! 19360:
! 19361: # How to pass a linker flag through the compiler.
! 19362: wl=$lt_lt_prog_compiler_wl_RC
! 19363:
! 19364: # Object file suffix (normally "o").
! 19365: objext="$ac_objext"
! 19366:
! 19367: # Old archive suffix (normally "a").
! 19368: libext="$libext"
! 19369:
! 19370: # Shared library suffix (normally ".so").
! 19371: shrext='$shrext'
! 19372:
! 19373: # Executable file suffix (normally "").
! 19374: exeext="$exeext"
! 19375:
! 19376: # Additional compiler flags for building library objects.
! 19377: pic_flag=$lt_lt_prog_compiler_pic_RC
! 19378: pic_mode=$pic_mode
! 19379:
! 19380: # What is the maximum length of a command?
! 19381: max_cmd_len=$lt_cv_sys_max_cmd_len
! 19382:
! 19383: # Does compiler simultaneously support -c and -o options?
! 19384: compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
! 19385:
! 19386: # Must we lock files when doing compilation ?
! 19387: need_locks=$lt_need_locks
! 19388:
! 19389: # Do we need the lib prefix for modules?
! 19390: need_lib_prefix=$need_lib_prefix
! 19391:
! 19392: # Do we need a version for libraries?
! 19393: need_version=$need_version
! 19394:
! 19395: # Whether dlopen is supported.
! 19396: dlopen_support=$enable_dlopen
! 19397:
! 19398: # Whether dlopen of programs is supported.
! 19399: dlopen_self=$enable_dlopen_self
! 19400:
! 19401: # Whether dlopen of statically linked programs is supported.
! 19402: dlopen_self_static=$enable_dlopen_self_static
! 19403:
! 19404: # Compiler flag to prevent dynamic linking.
! 19405: link_static_flag=$lt_lt_prog_compiler_static_RC
! 19406:
! 19407: # Compiler flag to turn off builtin functions.
! 19408: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
! 19409:
! 19410: # Compiler flag to allow reflexive dlopens.
! 19411: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
! 19412:
! 19413: # Compiler flag to generate shared objects directly from archives.
! 19414: whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
! 19415:
! 19416: # Compiler flag to generate thread-safe objects.
! 19417: thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
! 19418:
! 19419: # Library versioning type.
! 19420: version_type=$version_type
! 19421:
! 19422: # Format of library name prefix.
! 19423: libname_spec=$lt_libname_spec
! 19424:
! 19425: # List of archive names. First name is the real one, the rest are links.
! 19426: # The last name is the one that the linker finds with -lNAME.
! 19427: library_names_spec=$lt_library_names_spec
! 19428:
! 19429: # The coded name of the library, if different from the real name.
! 19430: soname_spec=$lt_soname_spec
! 19431:
! 19432: # Commands used to build and install an old-style archive.
! 19433: RANLIB=$lt_RANLIB
! 19434: old_archive_cmds=$lt_old_archive_cmds_RC
! 19435: old_postinstall_cmds=$lt_old_postinstall_cmds
! 19436: old_postuninstall_cmds=$lt_old_postuninstall_cmds
! 19437:
! 19438: # Create an old-style archive from a shared archive.
! 19439: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
! 19440:
! 19441: # Create a temporary old-style archive to link instead of a shared archive.
! 19442: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
! 19443:
! 19444: # Commands used to build and install a shared archive.
! 19445: archive_cmds=$lt_archive_cmds_RC
! 19446: archive_expsym_cmds=$lt_archive_expsym_cmds_RC
! 19447: postinstall_cmds=$lt_postinstall_cmds
! 19448: postuninstall_cmds=$lt_postuninstall_cmds
! 19449:
! 19450: # Commands used to build a loadable module (assumed same as above if empty)
! 19451: module_cmds=$lt_module_cmds_RC
! 19452: module_expsym_cmds=$lt_module_expsym_cmds_RC
! 19453:
! 19454: # Commands to strip libraries.
! 19455: old_striplib=$lt_old_striplib
! 19456: striplib=$lt_striplib
! 19457:
! 19458: # Dependencies to place before the objects being linked to create a
! 19459: # shared library.
! 19460: predep_objects=$lt_predep_objects_RC
! 19461:
! 19462: # Dependencies to place after the objects being linked to create a
! 19463: # shared library.
! 19464: postdep_objects=$lt_postdep_objects_RC
! 19465:
! 19466: # Dependencies to place before the objects being linked to create a
! 19467: # shared library.
! 19468: predeps=$lt_predeps_RC
! 19469:
! 19470: # Dependencies to place after the objects being linked to create a
! 19471: # shared library.
! 19472: postdeps=$lt_postdeps_RC
! 19473:
! 19474: # The library search path used internally by the compiler when linking
! 19475: # a shared library.
! 19476: compiler_lib_search_path=$lt_compiler_lib_search_path_RC
! 19477:
! 19478: # Method to check whether dependent libraries are shared objects.
! 19479: deplibs_check_method=$lt_deplibs_check_method
! 19480:
! 19481: # Command to use when deplibs_check_method == file_magic.
! 19482: file_magic_cmd=$lt_file_magic_cmd
! 19483:
! 19484: # Flag that allows shared libraries with undefined symbols to be built.
! 19485: allow_undefined_flag=$lt_allow_undefined_flag_RC
! 19486:
! 19487: # Flag that forces no undefined symbols.
! 19488: no_undefined_flag=$lt_no_undefined_flag_RC
! 19489:
! 19490: # Commands used to finish a libtool library installation in a directory.
! 19491: finish_cmds=$lt_finish_cmds
! 19492:
! 19493: # Same as above, but a single script fragment to be evaled but not shown.
! 19494: finish_eval=$lt_finish_eval
! 19495:
! 19496: # Take the output of nm and produce a listing of raw symbols and C names.
! 19497: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
! 19498:
! 19499: # Transform the output of nm in a proper C declaration
! 19500: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
! 19501:
! 19502: # Transform the output of nm in a C name address pair
! 19503: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
! 19504:
! 19505: # This is the shared library runtime path variable.
! 19506: runpath_var=$runpath_var
! 19507:
! 19508: # This is the shared library path variable.
! 19509: shlibpath_var=$shlibpath_var
! 19510:
! 19511: # Is shlibpath searched before the hard-coded library search path?
! 19512: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
! 19513:
! 19514: # How to hardcode a shared library path into an executable.
! 19515: hardcode_action=$hardcode_action_RC
! 19516:
! 19517: # Whether we should hardcode library paths into libraries.
! 19518: hardcode_into_libs=$hardcode_into_libs
! 19519:
! 19520: # Flag to hardcode \$libdir into a binary during linking.
! 19521: # This must work even if \$libdir does not exist.
! 19522: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
! 19523:
! 19524: # If ld is used when linking, flag to hardcode \$libdir into
! 19525: # a binary during linking. This must work even if \$libdir does
! 19526: # not exist.
! 19527: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
! 19528:
! 19529: # Whether we need a single -rpath flag with a separated argument.
! 19530: hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
! 19531:
! 19532: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
! 19533: # resulting binary.
! 19534: hardcode_direct=$hardcode_direct_RC
! 19535:
! 19536: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
! 19537: # resulting binary.
! 19538: hardcode_minus_L=$hardcode_minus_L_RC
! 19539:
! 19540: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
! 19541: # the resulting binary.
! 19542: hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
! 19543:
! 19544: # Set to yes if building a shared library automatically hardcodes DIR into the library
! 19545: # and all subsequent libraries and executables linked against it.
! 19546: hardcode_automatic=$hardcode_automatic_RC
! 19547:
! 19548: # Variables whose values should be saved in libtool wrapper scripts and
! 19549: # restored at relink time.
! 19550: variables_saved_for_relink="$variables_saved_for_relink"
! 19551:
! 19552: # Whether libtool must link a program against all its dependency libraries.
! 19553: link_all_deplibs=$link_all_deplibs_RC
! 19554:
! 19555: # Compile-time system search path for libraries
! 19556: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
! 19557:
! 19558: # Run-time system search path for libraries
! 19559: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
! 19560:
! 19561: # Fix the shell variable \$srcfile for the compiler.
! 19562: fix_srcfile_path="$fix_srcfile_path_RC"
! 19563:
! 19564: # Set to yes if exported symbols are required.
! 19565: always_export_symbols=$always_export_symbols_RC
! 19566:
! 19567: # The commands to list exported symbols.
! 19568: export_symbols_cmds=$lt_export_symbols_cmds_RC
! 19569:
! 19570: # The commands to extract the exported symbol list from a shared archive.
! 19571: extract_expsyms_cmds=$lt_extract_expsyms_cmds
! 19572:
! 19573: # Symbols that should not be listed in the preloaded symbols.
! 19574: exclude_expsyms=$lt_exclude_expsyms_RC
! 19575:
! 19576: # Symbols that must always be exported.
! 19577: include_expsyms=$lt_include_expsyms_RC
! 19578:
! 19579: # ### END LIBTOOL TAG CONFIG: $tagname
! 19580:
! 19581: __EOF__
! 19582:
! 19583:
! 19584: else
! 19585: # If there is no Makefile yet, we rely on a make rule to execute
! 19586: # `config.status --recheck' to rerun these tests and create the
! 19587: # libtool script then.
! 19588: test -f Makefile && make "$ltmain"
! 19589: fi
! 19590:
! 19591:
! 19592: ac_ext=c
! 19593: ac_cpp='$CPP $CPPFLAGS'
! 19594: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
! 19595: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
! 19596: ac_compiler_gnu=$ac_cv_c_compiler_gnu
! 19597:
! 19598: CC="$lt_save_CC"
! 19599:
! 19600: ;;
! 19601:
! 19602: *)
! 19603: { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
! 19604: echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
! 19605: { (exit 1); exit 1; }; }
! 19606: ;;
! 19607: esac
! 19608:
! 19609: # Append the new tag name to the list of available tags.
! 19610: if test -n "$tagname" ; then
! 19611: available_tags="$available_tags $tagname"
! 19612: fi
! 19613: fi
! 19614: done
! 19615: IFS="$lt_save_ifs"
! 19616:
! 19617: # Now substitute the updated list of available tags.
! 19618: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
! 19619: mv "${ofile}T" "$ofile"
! 19620: chmod +x "$ofile"
! 19621: else
! 19622: rm -f "${ofile}T"
! 19623: { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
! 19624: echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
! 19625: { (exit 1); exit 1; }; }
! 19626: fi
! 19627: fi
! 19628:
! 19629:
! 19630:
! 19631: # This can be used to rebuild libtool when needed
! 19632: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
! 19633:
! 19634: # Always use our own libtool.
! 19635: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
! 19636:
! 19637: # Prevent multiple expansion
! 19638:
! 19639:
! 19640:
! 19641: if test "$enable_shared" = "no"; then
! 19642: with_noexec=no
! 19643: else
! 19644: eval _shrext="$shrext"
! 19645: fi
! 19646: echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
! 19647: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6
! 19648:
! 19649: # Check whether --with-noexec or --without-noexec was given.
! 19650: if test "${with_noexec+set}" = set; then
! 19651: withval="$with_noexec"
! 19652: case $with_noexec in
! 19653: yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
! 19654: ;;
! 19655: no) ;;
! 19656: *) ;;
! 19657: esac
! 19658: else
! 19659: with_noexec="$libexecdir/sudo_noexec$_shrext"
! 19660: fi;
! 19661: echo "$as_me:$LINENO: result: $with_noexec" >&5
! 19662: echo "${ECHO_T}$with_noexec" >&6
! 19663: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
! 19664:
! 19665: if test "$with_devel" = "yes" -a -n "$GCC"; then
! 19666: CFLAGS="${CFLAGS} -Wall"
! 19667: fi
! 19668:
! 19669: # Extract the first word of "uname", so it can be a program name with args.
! 19670: set dummy uname; ac_word=$2
1.16 millert 19671: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 19672: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.23 ! millert 19673: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
1.9 millert 19674: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19675: else
1.23 ! millert 19676: if test -n "$UNAMEPROG"; then
! 19677: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
1.1 millert 19678: else
1.16 millert 19679: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680: for as_dir in $PATH
19681: do
19682: IFS=$as_save_IFS
19683: test -z "$as_dir" && as_dir=.
19684: for ac_exec_ext in '' $ac_executable_extensions; do
19685: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 ! millert 19686: ac_cv_prog_UNAMEPROG="uname"
1.16 millert 19687: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19688: break 2
19689: fi
19690: done
1.9 millert 19691: done
19692:
1.1 millert 19693: fi
19694: fi
1.23 ! millert 19695: UNAMEPROG=$ac_cv_prog_UNAMEPROG
! 19696: if test -n "$UNAMEPROG"; then
! 19697: echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
! 19698: echo "${ECHO_T}$UNAMEPROG" >&6
1.1 millert 19699: else
1.16 millert 19700: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 19701: echo "${ECHO_T}no" >&6
1.1 millert 19702: fi
19703:
1.23 ! millert 19704: # Extract the first word of "tr", so it can be a program name with args.
! 19705: set dummy tr; ac_word=$2
1.16 millert 19706: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 19707: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.23 ! millert 19708: if test "${ac_cv_prog_TRPROG+set}" = set; then
1.9 millert 19709: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19710: else
1.23 ! millert 19711: if test -n "$TRPROG"; then
! 19712: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
1.1 millert 19713: else
1.16 millert 19714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19715: for as_dir in $PATH
19716: do
19717: IFS=$as_save_IFS
19718: test -z "$as_dir" && as_dir=.
19719: for ac_exec_ext in '' $ac_executable_extensions; do
19720: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.23 ! millert 19721: ac_cv_prog_TRPROG="tr"
1.16 millert 19722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19723: break 2
19724: fi
19725: done
1.9 millert 19726: done
19727:
1.1 millert 19728: fi
19729: fi
1.23 ! millert 19730: TRPROG=$ac_cv_prog_TRPROG
! 19731: if test -n "$TRPROG"; then
! 19732: echo "$as_me:$LINENO: result: $TRPROG" >&5
! 19733: echo "${ECHO_T}$TRPROG" >&6
1.1 millert 19734: else
1.16 millert 19735: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 19736: echo "${ECHO_T}no" >&6
1.1 millert 19737: fi
19738:
19739: # Extract the first word of "nroff", so it can be a program name with args.
19740: set dummy nroff; ac_word=$2
1.16 millert 19741: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 19742: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19743: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
19744: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19745: else
19746: if test -n "$NROFFPROG"; then
19747: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
19748: else
1.16 millert 19749: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19750: for as_dir in $PATH
19751: do
19752: IFS=$as_save_IFS
19753: test -z "$as_dir" && as_dir=.
19754: for ac_exec_ext in '' $ac_executable_extensions; do
19755: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19756: ac_cv_prog_NROFFPROG="nroff"
19757: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19758: break 2
19759: fi
19760: done
1.9 millert 19761: done
19762:
1.1 millert 19763: fi
1.23 ! millert 19764: fi
! 19765: NROFFPROG=$ac_cv_prog_NROFFPROG
! 19766: if test -n "$NROFFPROG"; then
! 19767: echo "$as_me:$LINENO: result: $NROFFPROG" >&5
! 19768: echo "${ECHO_T}$NROFFPROG" >&6
1.9 millert 19769: else
1.23 ! millert 19770: echo "$as_me:$LINENO: result: no" >&5
! 19771: echo "${ECHO_T}no" >&6
! 19772: fi
1.9 millert 19773:
1.23 ! millert 19774: if test -z "$NROFFPROG"; then
! 19775: MANTYPE="cat"
! 19776: mansrcdir='$(srcdir)'
1.9 millert 19777: fi
1.16 millert 19778:
1.1 millert 19779: if test -n "$sudo_cv_prev_host"; then
19780: if test "$sudo_cv_prev_host" != "$host"; then
1.17 millert 19781: { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
19782: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
19783: { (exit 1); exit 1; }; }
1.1 millert 19784: else
1.16 millert 19785: echo "$as_me:$LINENO: checking previous host type" >&5
1.9 millert 19786: echo $ECHO_N "checking previous host type... $ECHO_C" >&6
19787: if test "${sudo_cv_prev_host+set}" = set; then
19788: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19789: else
19790: sudo_cv_prev_host="$host"
19791: fi
19792:
1.17 millert 19793: echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
19794: echo "${ECHO_T}$sudo_cv_prev_host" >&6
1.1 millert 19795: fi
19796: else
19797: # this will produce no output since there is no cached value
1.9 millert 19798: if test "${sudo_cv_prev_host+set}" = set; then
19799: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19800: else
19801: sudo_cv_prev_host="$host"
19802: fi
19803:
19804: fi
19805:
19806: if test -n "$host_os"; then
19807: OS=`echo $host_os | sed 's/[0-9].*//'`
19808: OSREV=`echo $host_os | sed 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/'`
19809: else
19810: OS="unknown"
19811: OSREV=0
19812: fi
19813:
19814: case "$host" in
19815: *-*-sunos4*)
19816: # getcwd(3) opens a pipe to getpwd(1)!?!
19817: BROKEN_GETCWD=1
19818:
19819: # system headers lack prototypes but gcc helps...
19820: if test -n "$GCC"; then
19821: CPPFLAGS="${CPPFLAGS} -D__USE_FIXED_PROTOTYPES__"
19822: fi
19823:
19824: # check for password adjunct functions (shadow passwords)
19825: if test "$CHECKSHADOW" = "true"; then
19826:
1.16 millert 19827:
1.9 millert 19828: for ac_func in getpwanam issecure
1.1 millert 19829: do
1.9 millert 19830: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 19831: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 19832: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19833: if eval "test \"\${$as_ac_var+set}\" = set"; then
19834: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19835: else
1.9 millert 19836: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19837: #line $LINENO "configure"
19838: /* confdefs.h. */
19839: _ACEOF
19840: cat confdefs.h >>conftest.$ac_ext
19841: cat >>conftest.$ac_ext <<_ACEOF
19842: /* end confdefs.h. */
1.1 millert 19843: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 19844: which can conflict with char $ac_func (); below.
19845: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19846: <limits.h> exists even on freestanding compilers. */
19847: #ifdef __STDC__
19848: # include <limits.h>
19849: #else
19850: # include <assert.h>
19851: #endif
1.1 millert 19852: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 19853: #ifdef __cplusplus
19854: extern "C"
1.16 millert 19855: {
1.9 millert 19856: #endif
1.1 millert 19857: /* We use char because int might match the return type of a gcc2
1.9 millert 19858: builtin and then its argument prototype would still apply. */
19859: char $ac_func ();
1.1 millert 19860: /* The GNU C library defines this for functions which it implements
19861: to always fail with ENOSYS. Some functions are actually named
19862: something starting with __ and the normal name is an alias. */
19863: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19864: choke me
19865: #else
1.16 millert 19866: char (*f) () = $ac_func;
19867: #endif
19868: #ifdef __cplusplus
19869: }
1.1 millert 19870: #endif
19871:
1.16 millert 19872: int
19873: main ()
19874: {
19875: return f != $ac_func;
1.9 millert 19876: ;
19877: return 0;
19878: }
19879: _ACEOF
19880: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 19881: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 19882: (eval $ac_link) 2>&5
19883: ac_status=$?
1.16 millert 19884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19885: (exit $ac_status); } &&
19886: { ac_try='test -s conftest$ac_exeext'
1.16 millert 19887: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 19888: (eval $ac_try) 2>&5
19889: ac_status=$?
1.16 millert 19890: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 19891: (exit $ac_status); }; }; then
19892: eval "$as_ac_var=yes"
19893: else
19894: echo "$as_me: failed program was:" >&5
1.16 millert 19895: sed 's/^/| /' conftest.$ac_ext >&5
19896:
1.9 millert 19897: eval "$as_ac_var=no"
19898: fi
19899: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19900: fi
1.16 millert 19901: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 19902: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19903: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 19904: cat >>confdefs.h <<_ACEOF
1.9 millert 19905: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 19906: _ACEOF
1.1 millert 19907:
19908: else
1.9 millert 19909: break
1.1 millert 19910: fi
19911: done
19912:
19913: CHECKSHADOW="false"
19914: fi
19915: ;;
19916: *-*-solaris2*)
19917: # To get the crypt(3) prototype (so we pass -Wall)
19918: CPPFLAGS="${CPPFLAGS} -D__EXTENSIONS__"
19919: # AFS support needs -lucb
19920: if test "$with_AFS" = "yes"; then
19921: AFS_LIBS="-lc -lucb"
19922: fi
1.9 millert 19923: test -n "$mansectsu" || mansectsu=1m
19924: test -n "$mansectform" || mansectform=4
1.17 millert 19925: test -n "$with_rpath" || with_rpath=yes
1.1 millert 19926: ;;
19927: *-*-aix*)
19928: # To get all prototypes (so we pass -Wall)
19929: CPPFLAGS="${CPPFLAGS} -D_XOPEN_EXTENDED_SOURCE"
1.9 millert 19930: cat >>confdefs.h <<\EOF
1.1 millert 19931: #define _ALL_SOURCE 1
19932: EOF
19933:
19934: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
1.17 millert 19935: if test X"$with_blibpath" != X"no"; then
19936: echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
19937: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6
19938: O_LDFLAGS="$LDFLAGS"
19939: LDFLAGS="$LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
19940: cat >conftest.$ac_ext <<_ACEOF
19941: #line $LINENO "configure"
19942: /* confdefs.h. */
19943: _ACEOF
19944: cat confdefs.h >>conftest.$ac_ext
19945: cat >>conftest.$ac_ext <<_ACEOF
19946: /* end confdefs.h. */
19947:
19948: int
19949: main ()
19950: {
19951:
19952: ;
19953: return 0;
19954: }
19955: _ACEOF
19956: rm -f conftest.$ac_objext conftest$ac_exeext
19957: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19958: (eval $ac_link) 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'
19963: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964: (eval $ac_try) 2>&5
19965: ac_status=$?
19966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967: (exit $ac_status); }; }; then
19968:
19969: if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
19970: blibpath="$with_blibpath"
19971: elif test -n "$GCC"; then
19972: blibpath="/usr/lib:/lib:/usr/local/lib"
19973: else
19974: blibpath="/usr/lib:/lib"
19975: fi
19976: echo "$as_me:$LINENO: result: yes" >&5
19977: echo "${ECHO_T}yes" >&6
19978:
19979: else
19980: echo "$as_me: failed program was:" >&5
19981: sed 's/^/| /' conftest.$ac_ext >&5
19982:
19983: echo "$as_me:$LINENO: result: no" >&5
19984: echo "${ECHO_T}no" >&6
19985: fi
19986: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19987: fi
19988: LDFLAGS="$O_LDFLAGS"
1.1 millert 19989: ;;
19990: *-*-hiuxmpp*)
19991: if test "$CHECKSHADOW" = "true"; then
1.16 millert 19992: echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 19993: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
19994: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
19995: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19996: else
1.9 millert 19997: ac_check_lib_save_LIBS=$LIBS
1.1 millert 19998: LIBS="-lsec $LIBS"
1.9 millert 19999: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20000: #line $LINENO "configure"
20001: /* confdefs.h. */
20002: _ACEOF
20003: cat confdefs.h >>conftest.$ac_ext
20004: cat >>conftest.$ac_ext <<_ACEOF
20005: /* end confdefs.h. */
1.9 millert 20006:
20007: /* Override any gcc2 internal prototype to avoid an error. */
20008: #ifdef __cplusplus
20009: extern "C"
20010: #endif
1.1 millert 20011: /* We use char because int might match the return type of a gcc2
1.9 millert 20012: builtin and then its argument prototype would still apply. */
20013: char getprpwnam ();
20014: int
20015: main ()
20016: {
20017: getprpwnam ();
20018: ;
20019: return 0;
20020: }
20021: _ACEOF
20022: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20023: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20024: (eval $ac_link) 2>&5
20025: ac_status=$?
1.16 millert 20026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20027: (exit $ac_status); } &&
20028: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20029: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20030: (eval $ac_try) 2>&5
20031: ac_status=$?
1.16 millert 20032: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20033: (exit $ac_status); }; }; then
20034: ac_cv_lib_sec_getprpwnam=yes
20035: else
20036: echo "$as_me: failed program was:" >&5
1.16 millert 20037: sed 's/^/| /' conftest.$ac_ext >&5
20038:
1.9 millert 20039: ac_cv_lib_sec_getprpwnam=no
20040: fi
20041: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20042: LIBS=$ac_check_lib_save_LIBS
20043: fi
1.16 millert 20044: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 20045: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
20046: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 20047: cat >>confdefs.h <<\_ACEOF
1.1 millert 20048: #define HAVE_GETPRPWNAM 1
1.16 millert 20049: _ACEOF
1.1 millert 20050: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
20051: else
1.16 millert 20052: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9 millert 20053: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
20054: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
20055: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20056: else
1.9 millert 20057: ac_check_lib_save_LIBS=$LIBS
1.1 millert 20058: LIBS="-lsecurity $LIBS"
1.9 millert 20059: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20060: #line $LINENO "configure"
20061: /* confdefs.h. */
20062: _ACEOF
20063: cat confdefs.h >>conftest.$ac_ext
20064: cat >>conftest.$ac_ext <<_ACEOF
20065: /* end confdefs.h. */
1.9 millert 20066:
1.1 millert 20067: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20068: #ifdef __cplusplus
20069: extern "C"
20070: #endif
1.1 millert 20071: /* We use char because int might match the return type of a gcc2
1.9 millert 20072: builtin and then its argument prototype would still apply. */
20073: char getprpwnam ();
20074: int
20075: main ()
20076: {
20077: getprpwnam ();
20078: ;
20079: return 0;
20080: }
20081: _ACEOF
20082: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20083: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20084: (eval $ac_link) 2>&5
20085: ac_status=$?
1.16 millert 20086: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20087: (exit $ac_status); } &&
20088: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20089: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20090: (eval $ac_try) 2>&5
20091: ac_status=$?
1.16 millert 20092: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20093: (exit $ac_status); }; }; then
20094: ac_cv_lib_security_getprpwnam=yes
20095: else
20096: echo "$as_me: failed program was:" >&5
1.16 millert 20097: sed 's/^/| /' conftest.$ac_ext >&5
20098:
1.9 millert 20099: ac_cv_lib_security_getprpwnam=no
20100: fi
20101: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20102: LIBS=$ac_check_lib_save_LIBS
20103: fi
1.16 millert 20104: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 20105: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
20106: if test $ac_cv_lib_security_getprpwnam = yes; then
1.16 millert 20107: cat >>confdefs.h <<\_ACEOF
1.1 millert 20108: #define HAVE_GETPRPWNAM 1
1.16 millert 20109: _ACEOF
1.1 millert 20110: SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"; SECUREWARE=1
20111: fi
20112:
20113: fi
20114:
20115: CHECKSHADOW="false"
20116: fi
1.9 millert 20117: test -n "$mansectsu" || mansectsu=1m
20118: test -n "$mansectform" || mansectform=4
1.1 millert 20119: ;;
1.23 ! millert 20120: *-*-hpux*)
! 20121: # AFS support needs -lBSD
! 20122: if test "$with_AFS" = "yes"; then
! 20123: AFS_LIBS="-lc -lBSD"
! 20124: fi
! 20125: test -n "$mansectsu" || mansectsu=1m
! 20126: test -n "$mansectform" || mansectform=4
! 20127:
! 20128: case "$host" in
! 20129: *-*-hpux1-8.*)
! 20130: cat >>confdefs.h <<\_ACEOF
! 20131: #define BROKEN_SYSLOG 1
! 20132: _ACEOF
! 20133:
! 20134:
! 20135: # Not sure if setuid binaries are safe in < 9.x
! 20136: if test -n "$GCC"; then
! 20137: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
! 20138: else
! 20139: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
! 20140: fi
! 20141: ;;
! 20142: *-*-hpux9.*)
! 20143: cat >>confdefs.h <<\_ACEOF
! 20144: #define BROKEN_SYSLOG 1
! 20145: _ACEOF
! 20146:
! 20147:
! 20148: if test "$CHECKSHADOW" = "true"; then
! 20149:
! 20150: for ac_func in getspwuid
! 20151: do
! 20152: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 20153: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 20154: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 20155: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 20156: echo $ECHO_N "(cached) $ECHO_C" >&6
! 20157: else
! 20158: cat >conftest.$ac_ext <<_ACEOF
! 20159: #line $LINENO "configure"
! 20160: /* confdefs.h. */
! 20161: _ACEOF
! 20162: cat confdefs.h >>conftest.$ac_ext
! 20163: cat >>conftest.$ac_ext <<_ACEOF
! 20164: /* end confdefs.h. */
! 20165: /* System header to define __stub macros and hopefully few prototypes,
! 20166: which can conflict with char $ac_func (); below.
! 20167: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 20168: <limits.h> exists even on freestanding compilers. */
! 20169: #ifdef __STDC__
! 20170: # include <limits.h>
! 20171: #else
! 20172: # include <assert.h>
! 20173: #endif
! 20174: /* Override any gcc2 internal prototype to avoid an error. */
! 20175: #ifdef __cplusplus
! 20176: extern "C"
! 20177: {
! 20178: #endif
! 20179: /* We use char because int might match the return type of a gcc2
! 20180: builtin and then its argument prototype would still apply. */
! 20181: char $ac_func ();
! 20182: /* The GNU C library defines this for functions which it implements
! 20183: to always fail with ENOSYS. Some functions are actually named
! 20184: something starting with __ and the normal name is an alias. */
! 20185: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 20186: choke me
! 20187: #else
! 20188: char (*f) () = $ac_func;
! 20189: #endif
! 20190: #ifdef __cplusplus
! 20191: }
! 20192: #endif
! 20193:
! 20194: int
! 20195: main ()
! 20196: {
! 20197: return f != $ac_func;
! 20198: ;
! 20199: return 0;
! 20200: }
! 20201: _ACEOF
! 20202: rm -f conftest.$ac_objext conftest$ac_exeext
! 20203: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 20204: (eval $ac_link) 2>&5
! 20205: ac_status=$?
! 20206: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20207: (exit $ac_status); } &&
! 20208: { ac_try='test -s conftest$ac_exeext'
! 20209: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 20210: (eval $ac_try) 2>&5
! 20211: ac_status=$?
! 20212: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 20213: (exit $ac_status); }; }; then
! 20214: eval "$as_ac_var=yes"
! 20215: else
! 20216: echo "$as_me: failed program was:" >&5
! 20217: sed 's/^/| /' conftest.$ac_ext >&5
! 20218:
! 20219: eval "$as_ac_var=no"
! 20220: fi
! 20221: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 20222: fi
! 20223: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 20224: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 20225: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 20226: cat >>confdefs.h <<_ACEOF
! 20227: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 20228: _ACEOF
! 20229:
! 20230: fi
! 20231: done
! 20232:
! 20233: CHECKSHADOW="false"
! 20234: fi
! 20235:
! 20236: # DCE support (requires ANSI C compiler)
! 20237: if test "$with_DCE" = "yes"; then
! 20238: # order of libs in 9.X is important. -lc_r must be last
! 20239: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
! 20240: LIBS="${LIBS} -ldce -lM -lc_r"
! 20241: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
! 20242: fi
! 20243: ;;
! 20244: *-*-hpux10.*)
! 20245: if test "$CHECKSHADOW" = "true"; then
! 20246: echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 20247: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
20248: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
20249: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20250: else
1.9 millert 20251: ac_check_lib_save_LIBS=$LIBS
1.1 millert 20252: LIBS="-lsec $LIBS"
1.9 millert 20253: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20254: #line $LINENO "configure"
20255: /* confdefs.h. */
20256: _ACEOF
20257: cat confdefs.h >>conftest.$ac_ext
20258: cat >>conftest.$ac_ext <<_ACEOF
20259: /* end confdefs.h. */
1.9 millert 20260:
1.1 millert 20261: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20262: #ifdef __cplusplus
20263: extern "C"
20264: #endif
1.1 millert 20265: /* We use char because int might match the return type of a gcc2
1.9 millert 20266: builtin and then its argument prototype would still apply. */
20267: char getprpwnam ();
20268: int
20269: main ()
20270: {
20271: getprpwnam ();
20272: ;
20273: return 0;
20274: }
20275: _ACEOF
20276: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20277: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20278: (eval $ac_link) 2>&5
20279: ac_status=$?
1.16 millert 20280: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20281: (exit $ac_status); } &&
20282: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20283: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20284: (eval $ac_try) 2>&5
20285: ac_status=$?
1.16 millert 20286: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20287: (exit $ac_status); }; }; then
20288: ac_cv_lib_sec_getprpwnam=yes
20289: else
20290: echo "$as_me: failed program was:" >&5
1.16 millert 20291: sed 's/^/| /' conftest.$ac_ext >&5
20292:
1.9 millert 20293: ac_cv_lib_sec_getprpwnam=no
20294: fi
20295: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20296: LIBS=$ac_check_lib_save_LIBS
20297: fi
1.16 millert 20298: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 20299: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
20300: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 20301: cat >>confdefs.h <<\_ACEOF
1.1 millert 20302: #define HAVE_GETPRPWNAM 1
1.16 millert 20303: _ACEOF
20304: echo "$as_me:$LINENO: checking for iscomsec in -lsec" >&5
1.9 millert 20305: echo $ECHO_N "checking for iscomsec in -lsec... $ECHO_C" >&6
20306: if test "${ac_cv_lib_sec_iscomsec+set}" = set; then
20307: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20308: else
1.9 millert 20309: ac_check_lib_save_LIBS=$LIBS
1.1 millert 20310: LIBS="-lsec $LIBS"
1.9 millert 20311: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20312: #line $LINENO "configure"
20313: /* confdefs.h. */
20314: _ACEOF
20315: cat confdefs.h >>conftest.$ac_ext
20316: cat >>conftest.$ac_ext <<_ACEOF
20317: /* end confdefs.h. */
1.9 millert 20318:
1.1 millert 20319: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20320: #ifdef __cplusplus
20321: extern "C"
20322: #endif
1.1 millert 20323: /* We use char because int might match the return type of a gcc2
1.9 millert 20324: builtin and then its argument prototype would still apply. */
20325: char iscomsec ();
20326: int
20327: main ()
20328: {
20329: iscomsec ();
20330: ;
20331: return 0;
20332: }
20333: _ACEOF
20334: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20335: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20336: (eval $ac_link) 2>&5
20337: ac_status=$?
1.16 millert 20338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20339: (exit $ac_status); } &&
20340: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20341: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20342: (eval $ac_try) 2>&5
20343: ac_status=$?
1.16 millert 20344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20345: (exit $ac_status); }; }; then
20346: ac_cv_lib_sec_iscomsec=yes
20347: else
20348: echo "$as_me: failed program was:" >&5
1.16 millert 20349: sed 's/^/| /' conftest.$ac_ext >&5
20350:
1.9 millert 20351: ac_cv_lib_sec_iscomsec=no
20352: fi
20353: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20354: LIBS=$ac_check_lib_save_LIBS
20355: fi
1.16 millert 20356: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_iscomsec" >&5
1.9 millert 20357: echo "${ECHO_T}$ac_cv_lib_sec_iscomsec" >&6
20358: if test $ac_cv_lib_sec_iscomsec = yes; then
1.23 ! millert 20359: cat >>confdefs.h <<\_ACEOF
1.1 millert 20360: #define HAVE_ISCOMSEC 1
1.16 millert 20361: _ACEOF
1.1 millert 20362:
20363: fi
20364: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"; SECUREWARE=1
20365: fi
20366:
1.23 ! millert 20367: CHECKSHADOW="false"
! 20368: fi
! 20369: ;;
! 20370: *)
! 20371: if test "$CHECKSHADOW" = "true"; then
! 20372: echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
! 20373: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
! 20374: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
1.9 millert 20375: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20376: else
1.23 ! millert 20377: ac_check_lib_save_LIBS=$LIBS
! 20378: LIBS="-lsec $LIBS"
! 20379: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20380: #line $LINENO "configure"
20381: /* confdefs.h. */
20382: _ACEOF
20383: cat confdefs.h >>conftest.$ac_ext
20384: cat >>conftest.$ac_ext <<_ACEOF
20385: /* end confdefs.h. */
1.23 ! millert 20386:
1.1 millert 20387: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20388: #ifdef __cplusplus
20389: extern "C"
20390: #endif
1.1 millert 20391: /* We use char because int might match the return type of a gcc2
1.9 millert 20392: builtin and then its argument prototype would still apply. */
1.23 ! millert 20393: char getspnam ();
1.16 millert 20394: int
20395: main ()
20396: {
1.23 ! millert 20397: getspnam ();
1.9 millert 20398: ;
20399: return 0;
20400: }
20401: _ACEOF
20402: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20403: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20404: (eval $ac_link) 2>&5
20405: ac_status=$?
1.16 millert 20406: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20407: (exit $ac_status); } &&
20408: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20409: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20410: (eval $ac_try) 2>&5
20411: ac_status=$?
1.16 millert 20412: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20413: (exit $ac_status); }; }; then
1.23 ! millert 20414: ac_cv_lib_sec_getspnam=yes
1.9 millert 20415: else
20416: echo "$as_me: failed program was:" >&5
1.16 millert 20417: sed 's/^/| /' conftest.$ac_ext >&5
20418:
1.23 ! millert 20419: ac_cv_lib_sec_getspnam=no
1.9 millert 20420: fi
20421: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.23 ! millert 20422: LIBS=$ac_check_lib_save_LIBS
1.9 millert 20423: fi
1.23 ! millert 20424: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
! 20425: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
! 20426: if test $ac_cv_lib_sec_getspnam = yes; then
! 20427: cat >>confdefs.h <<\_ACEOF
! 20428: #define HAVE_GETSPNAM 1
1.16 millert 20429: _ACEOF
1.23 ! millert 20430: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
1.1 millert 20431: fi
20432:
1.23 ! millert 20433: CHECKSHADOW="false"
! 20434: fi
! 20435: ;;
! 20436: esac
1.1 millert 20437: ;;
20438: *-dec-osf*)
20439: # ignore envariables wrt dynamic lib path
20440: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
20441:
1.16 millert 20442: echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
1.9 millert 20443: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6
1.1 millert 20444: # Check whether --enable-sia or --disable-sia was given.
20445: if test "${enable_sia+set}" = set; then
20446: enableval="$enable_sia"
20447: case "$enableval" in
1.16 millert 20448: yes) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 20449: echo "${ECHO_T}no" >&6
1.1 millert 20450: ;;
1.16 millert 20451: no) echo "$as_me:$LINENO: result: yes" >&5
1.9 millert 20452: echo "${ECHO_T}yes" >&6
1.1 millert 20453: CHECKSIA=false
20454: ;;
1.16 millert 20455: *) echo "$as_me:$LINENO: result: no" >&5
1.9 millert 20456: echo "${ECHO_T}no" >&6
1.17 millert 20457: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
20458: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
1.1 millert 20459: ;;
20460: esac
1.9 millert 20461:
1.1 millert 20462: else
1.16 millert 20463: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 20464: echo "${ECHO_T}no" >&6
20465: fi;
1.1 millert 20466:
20467: # use SIA by default, if we have it, else SecureWare
20468: # unless overridden on the command line
20469: if test "$CHECKSIA" = "true"; then
1.16 millert 20470: echo "$as_me:$LINENO: checking for sia_ses_init" >&5
1.9 millert 20471: echo $ECHO_N "checking for sia_ses_init... $ECHO_C" >&6
20472: if test "${ac_cv_func_sia_ses_init+set}" = set; then
20473: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20474: else
1.9 millert 20475: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20476: #line $LINENO "configure"
20477: /* confdefs.h. */
20478: _ACEOF
20479: cat confdefs.h >>conftest.$ac_ext
20480: cat >>conftest.$ac_ext <<_ACEOF
20481: /* end confdefs.h. */
1.1 millert 20482: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 20483: which can conflict with char sia_ses_init (); below.
20484: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20485: <limits.h> exists even on freestanding compilers. */
20486: #ifdef __STDC__
20487: # include <limits.h>
20488: #else
20489: # include <assert.h>
20490: #endif
1.1 millert 20491: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20492: #ifdef __cplusplus
20493: extern "C"
1.16 millert 20494: {
1.9 millert 20495: #endif
1.1 millert 20496: /* We use char because int might match the return type of a gcc2
1.9 millert 20497: builtin and then its argument prototype would still apply. */
20498: char sia_ses_init ();
1.1 millert 20499: /* The GNU C library defines this for functions which it implements
20500: to always fail with ENOSYS. Some functions are actually named
20501: something starting with __ and the normal name is an alias. */
20502: #if defined (__stub_sia_ses_init) || defined (__stub___sia_ses_init)
20503: choke me
20504: #else
1.16 millert 20505: char (*f) () = sia_ses_init;
20506: #endif
20507: #ifdef __cplusplus
20508: }
1.1 millert 20509: #endif
20510:
1.16 millert 20511: int
20512: main ()
20513: {
20514: return f != sia_ses_init;
1.9 millert 20515: ;
20516: return 0;
20517: }
20518: _ACEOF
20519: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20520: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20521: (eval $ac_link) 2>&5
20522: ac_status=$?
1.16 millert 20523: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20524: (exit $ac_status); } &&
20525: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20526: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20527: (eval $ac_try) 2>&5
20528: ac_status=$?
1.16 millert 20529: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20530: (exit $ac_status); }; }; then
20531: ac_cv_func_sia_ses_init=yes
20532: else
20533: echo "$as_me: failed program was:" >&5
1.16 millert 20534: sed 's/^/| /' conftest.$ac_ext >&5
20535:
1.9 millert 20536: ac_cv_func_sia_ses_init=no
20537: fi
20538: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20539: fi
1.16 millert 20540: echo "$as_me:$LINENO: result: $ac_cv_func_sia_ses_init" >&5
1.9 millert 20541: echo "${ECHO_T}$ac_cv_func_sia_ses_init" >&6
20542: if test $ac_cv_func_sia_ses_init = yes; then
1.23 ! millert 20543: cat >>confdefs.h <<\_ACEOF
1.1 millert 20544: #define HAVE_SIA 1
1.16 millert 20545: _ACEOF
1.9 millert 20546:
1.1 millert 20547: if test -n "$with_skey" -o -n "$with_opie" -o -n "$with_otp_only" -o -n "$with_long_otp_prompt" -o -n "$with_SecurID" -o -n "$with_fwtk" -o -n "$with_kerb4" -o -n "$with_kerb5" -o -n "$with_pam" -o -n "$with_AFS" -o -n "$with_DCE"; then
1.16 millert 20548: { { echo "$as_me:$LINENO: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&5
1.9 millert 20549: echo "$as_me: error: \"you cannot mix SIA and other authentication schemes. You can turn off SIA support via the --disable-sia option\"" >&2;}
20550: { (exit 1); exit 1; }; }
1.1 millert 20551: fi; CHECKSHADOW=false
20552: fi
20553:
20554: fi
20555: if test "$CHECKSHADOW" = "true"; then
1.16 millert 20556: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9 millert 20557: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
20558: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
20559: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20560: else
1.9 millert 20561: ac_check_lib_save_LIBS=$LIBS
1.1 millert 20562: LIBS="-lsecurity $LIBS"
1.9 millert 20563: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20564: #line $LINENO "configure"
20565: /* confdefs.h. */
20566: _ACEOF
20567: cat confdefs.h >>conftest.$ac_ext
20568: cat >>conftest.$ac_ext <<_ACEOF
20569: /* end confdefs.h. */
1.9 millert 20570:
1.1 millert 20571: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20572: #ifdef __cplusplus
20573: extern "C"
20574: #endif
1.1 millert 20575: /* We use char because int might match the return type of a gcc2
1.9 millert 20576: builtin and then its argument prototype would still apply. */
20577: char getprpwnam ();
20578: int
20579: main ()
20580: {
20581: getprpwnam ();
20582: ;
20583: return 0;
20584: }
20585: _ACEOF
20586: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20587: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20588: (eval $ac_link) 2>&5
20589: ac_status=$?
1.16 millert 20590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20591: (exit $ac_status); } &&
20592: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20593: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20594: (eval $ac_try) 2>&5
20595: ac_status=$?
1.16 millert 20596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20597: (exit $ac_status); }; }; then
20598: ac_cv_lib_security_getprpwnam=yes
20599: else
20600: echo "$as_me: failed program was:" >&5
1.16 millert 20601: sed 's/^/| /' conftest.$ac_ext >&5
20602:
1.9 millert 20603: ac_cv_lib_security_getprpwnam=no
20604: fi
20605: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20606: LIBS=$ac_check_lib_save_LIBS
20607: fi
1.16 millert 20608: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 20609: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
20610: if test $ac_cv_lib_security_getprpwnam = yes; then
1.1 millert 20611: SECUREWARE=1
20612: fi
20613:
20614: CHECKSHADOW="false"
20615: fi
20616:
20617: if test -n "$SECUREWARE"; then
1.23 ! millert 20618: cat >>confdefs.h <<\_ACEOF
1.1 millert 20619: #define HAVE_GETPRPWNAM 1
1.16 millert 20620: _ACEOF
1.1 millert 20621:
20622: # -ldb includes bogus versions of snprintf/vsnprintf
1.9 millert 20623:
20624: for ac_func in snprintf
20625: do
20626: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 20627: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 20628: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20629: if eval "test \"\${$as_ac_var+set}\" = set"; then
20630: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20631: else
1.9 millert 20632: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20633: #line $LINENO "configure"
20634: /* confdefs.h. */
20635: _ACEOF
20636: cat confdefs.h >>conftest.$ac_ext
20637: cat >>conftest.$ac_ext <<_ACEOF
20638: /* end confdefs.h. */
1.1 millert 20639: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 20640: which can conflict with char $ac_func (); below.
20641: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20642: <limits.h> exists even on freestanding compilers. */
20643: #ifdef __STDC__
20644: # include <limits.h>
20645: #else
20646: # include <assert.h>
20647: #endif
1.1 millert 20648: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20649: #ifdef __cplusplus
20650: extern "C"
1.16 millert 20651: {
1.9 millert 20652: #endif
1.1 millert 20653: /* We use char because int might match the return type of a gcc2
1.9 millert 20654: builtin and then its argument prototype would still apply. */
20655: char $ac_func ();
1.1 millert 20656: /* The GNU C library defines this for functions which it implements
20657: to always fail with ENOSYS. Some functions are actually named
20658: something starting with __ and the normal name is an alias. */
1.9 millert 20659: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 20660: choke me
20661: #else
1.16 millert 20662: char (*f) () = $ac_func;
20663: #endif
20664: #ifdef __cplusplus
20665: }
1.1 millert 20666: #endif
20667:
1.16 millert 20668: int
20669: main ()
20670: {
20671: return f != $ac_func;
1.9 millert 20672: ;
20673: return 0;
20674: }
20675: _ACEOF
20676: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20677: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20678: (eval $ac_link) 2>&5
20679: ac_status=$?
1.16 millert 20680: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20681: (exit $ac_status); } &&
20682: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20683: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20684: (eval $ac_try) 2>&5
20685: ac_status=$?
1.16 millert 20686: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20687: (exit $ac_status); }; }; then
20688: eval "$as_ac_var=yes"
20689: else
20690: echo "$as_me: failed program was:" >&5
1.16 millert 20691: sed 's/^/| /' conftest.$ac_ext >&5
20692:
1.9 millert 20693: eval "$as_ac_var=no"
20694: fi
20695: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20696: fi
1.16 millert 20697: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 20698: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20699: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 20700: cat >>confdefs.h <<_ACEOF
1.9 millert 20701: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 20702: _ACEOF
1.1 millert 20703:
20704: else
1.9 millert 20705: NEED_SNPRINTF=1
1.1 millert 20706: fi
1.9 millert 20707: done
1.1 millert 20708:
1.16 millert 20709:
1.9 millert 20710: for ac_func in vsnprintf
20711: do
20712: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 20713: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 20714: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20715: if eval "test \"\${$as_ac_var+set}\" = set"; then
20716: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20717: else
1.9 millert 20718: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20719: #line $LINENO "configure"
20720: /* confdefs.h. */
20721: _ACEOF
20722: cat confdefs.h >>conftest.$ac_ext
20723: cat >>conftest.$ac_ext <<_ACEOF
20724: /* end confdefs.h. */
1.1 millert 20725: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 20726: which can conflict with char $ac_func (); below.
20727: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20728: <limits.h> exists even on freestanding compilers. */
20729: #ifdef __STDC__
20730: # include <limits.h>
20731: #else
20732: # include <assert.h>
20733: #endif
1.1 millert 20734: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20735: #ifdef __cplusplus
20736: extern "C"
1.16 millert 20737: {
1.9 millert 20738: #endif
1.1 millert 20739: /* We use char because int might match the return type of a gcc2
1.9 millert 20740: builtin and then its argument prototype would still apply. */
20741: char $ac_func ();
1.1 millert 20742: /* The GNU C library defines this for functions which it implements
20743: to always fail with ENOSYS. Some functions are actually named
20744: something starting with __ and the normal name is an alias. */
1.9 millert 20745: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 20746: choke me
20747: #else
1.16 millert 20748: char (*f) () = $ac_func;
20749: #endif
20750: #ifdef __cplusplus
20751: }
1.1 millert 20752: #endif
20753:
1.16 millert 20754: int
20755: main ()
20756: {
20757: return f != $ac_func;
1.9 millert 20758: ;
20759: return 0;
20760: }
20761: _ACEOF
20762: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20763: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20764: (eval $ac_link) 2>&5
20765: ac_status=$?
1.16 millert 20766: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20767: (exit $ac_status); } &&
20768: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20769: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20770: (eval $ac_try) 2>&5
20771: ac_status=$?
1.16 millert 20772: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20773: (exit $ac_status); }; }; then
20774: eval "$as_ac_var=yes"
20775: else
20776: echo "$as_me: failed program was:" >&5
1.16 millert 20777: sed 's/^/| /' conftest.$ac_ext >&5
20778:
1.9 millert 20779: eval "$as_ac_var=no"
20780: fi
20781: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20782: fi
1.16 millert 20783: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 20784: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20785: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 20786: cat >>confdefs.h <<_ACEOF
1.9 millert 20787: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 20788: _ACEOF
1.1 millert 20789:
20790: else
1.9 millert 20791: NEED_SNPRINTF=1
1.1 millert 20792: fi
1.9 millert 20793: done
1.1 millert 20794:
20795: # 4.x and higher need -ldb too...
1.16 millert 20796: echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
1.9 millert 20797: echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6
20798: if test "${ac_cv_lib_db_dbopen+set}" = set; then
20799: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20800: else
1.9 millert 20801: ac_check_lib_save_LIBS=$LIBS
1.1 millert 20802: LIBS="-ldb $LIBS"
1.9 millert 20803: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20804: #line $LINENO "configure"
20805: /* confdefs.h. */
20806: _ACEOF
20807: cat confdefs.h >>conftest.$ac_ext
20808: cat >>conftest.$ac_ext <<_ACEOF
20809: /* end confdefs.h. */
1.9 millert 20810:
1.1 millert 20811: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20812: #ifdef __cplusplus
20813: extern "C"
20814: #endif
1.1 millert 20815: /* We use char because int might match the return type of a gcc2
1.9 millert 20816: builtin and then its argument prototype would still apply. */
20817: char dbopen ();
20818: int
20819: main ()
20820: {
20821: dbopen ();
20822: ;
20823: return 0;
20824: }
20825: _ACEOF
20826: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20827: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20828: (eval $ac_link) 2>&5
20829: ac_status=$?
1.16 millert 20830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20831: (exit $ac_status); } &&
20832: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20833: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20834: (eval $ac_try) 2>&5
20835: ac_status=$?
1.16 millert 20836: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20837: (exit $ac_status); }; }; then
20838: ac_cv_lib_db_dbopen=yes
20839: else
20840: echo "$as_me: failed program was:" >&5
1.16 millert 20841: sed 's/^/| /' conftest.$ac_ext >&5
20842:
1.9 millert 20843: ac_cv_lib_db_dbopen=no
20844: fi
20845: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20846: LIBS=$ac_check_lib_save_LIBS
20847: fi
1.16 millert 20848: echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
1.9 millert 20849: echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6
20850: if test $ac_cv_lib_db_dbopen = yes; then
20851: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
1.1 millert 20852: else
20853: SUDO_LIBS="${SUDO_LIBS} -lsecurity -ldb -laud -lm"; LIBS="${LIBS} -lsecurity -ldb -laud -lm"
20854: fi
20855:
1.16 millert 20856:
1.9 millert 20857: for ac_func in dispcrypt
1.1 millert 20858: do
1.9 millert 20859: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 20860: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 20861: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20862: if eval "test \"\${$as_ac_var+set}\" = set"; then
20863: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20864: else
1.9 millert 20865: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20866: #line $LINENO "configure"
20867: /* confdefs.h. */
20868: _ACEOF
20869: cat confdefs.h >>conftest.$ac_ext
20870: cat >>conftest.$ac_ext <<_ACEOF
20871: /* end confdefs.h. */
1.1 millert 20872: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 20873: which can conflict with char $ac_func (); below.
20874: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20875: <limits.h> exists even on freestanding compilers. */
20876: #ifdef __STDC__
20877: # include <limits.h>
20878: #else
20879: # include <assert.h>
20880: #endif
1.1 millert 20881: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 20882: #ifdef __cplusplus
20883: extern "C"
1.16 millert 20884: {
1.9 millert 20885: #endif
1.1 millert 20886: /* We use char because int might match the return type of a gcc2
1.9 millert 20887: builtin and then its argument prototype would still apply. */
20888: char $ac_func ();
1.1 millert 20889: /* The GNU C library defines this for functions which it implements
20890: to always fail with ENOSYS. Some functions are actually named
20891: something starting with __ and the normal name is an alias. */
20892: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20893: choke me
20894: #else
1.16 millert 20895: char (*f) () = $ac_func;
20896: #endif
20897: #ifdef __cplusplus
20898: }
1.1 millert 20899: #endif
20900:
1.16 millert 20901: int
20902: main ()
20903: {
20904: return f != $ac_func;
1.9 millert 20905: ;
20906: return 0;
20907: }
20908: _ACEOF
20909: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 20910: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 20911: (eval $ac_link) 2>&5
20912: ac_status=$?
1.16 millert 20913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20914: (exit $ac_status); } &&
20915: { ac_try='test -s conftest$ac_exeext'
1.16 millert 20916: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20917: (eval $ac_try) 2>&5
20918: ac_status=$?
1.16 millert 20919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20920: (exit $ac_status); }; }; then
20921: eval "$as_ac_var=yes"
20922: else
20923: echo "$as_me: failed program was:" >&5
1.16 millert 20924: sed 's/^/| /' conftest.$ac_ext >&5
20925:
1.9 millert 20926: eval "$as_ac_var=no"
20927: fi
20928: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20929: fi
1.16 millert 20930: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 20931: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20932: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 20933: cat >>confdefs.h <<_ACEOF
1.9 millert 20934: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 20935: _ACEOF
1.1 millert 20936:
20937: fi
20938: done
20939:
1.16 millert 20940: echo "$as_me:$LINENO: checking for broken /usr/include/prot.h" >&5
1.9 millert 20941: echo $ECHO_N "checking for broken /usr/include/prot.h... $ECHO_C" >&6
20942: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20943: #line $LINENO "configure"
20944: /* confdefs.h. */
20945: _ACEOF
20946: cat confdefs.h >>conftest.$ac_ext
20947: cat >>conftest.$ac_ext <<_ACEOF
20948: /* end confdefs.h. */
1.1 millert 20949:
20950: #include <sys/types.h>
20951: #include <sys/security.h>
20952: #include <prot.h>
1.9 millert 20953:
20954: int
20955: main ()
20956: {
1.1 millert 20957: exit(0);
1.9 millert 20958: ;
20959: return 0;
20960: }
20961: _ACEOF
20962: rm -f conftest.$ac_objext
1.16 millert 20963: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 20964: (eval $ac_compile) 2>&5
20965: ac_status=$?
1.16 millert 20966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20967: (exit $ac_status); } &&
20968: { ac_try='test -s conftest.$ac_objext'
1.16 millert 20969: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 20970: (eval $ac_try) 2>&5
20971: ac_status=$?
1.16 millert 20972: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 20973: (exit $ac_status); }; }; then
1.16 millert 20974: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 20975: echo "${ECHO_T}no" >&6
20976: else
20977: echo "$as_me: failed program was:" >&5
1.16 millert 20978: sed 's/^/| /' conftest.$ac_ext >&5
20979:
20980: echo "$as_me:$LINENO: result: yes, fixing locally" >&5
1.9 millert 20981: echo "${ECHO_T}yes, fixing locally" >&6
1.1 millert 20982: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.9 millert 20983:
1.1 millert 20984: fi
1.9 millert 20985: rm -f conftest.$ac_objext conftest.$ac_ext
20986: elif test "$CHECKSIA" = "true"; then
1.1 millert 20987: with_passwd=no
20988: AUTH_OBJS="sia.o"
20989: fi
1.9 millert 20990: test -n "$mansectsu" || mansectsu=8
20991: test -n "$mansectform" || mansectform=4
1.1 millert 20992: ;;
20993: *-*-irix*)
20994: CPPFLAGS="${CPPFLAGS} -D_BSD_TYPES"
20995: if test -z "$NROFFPROG"; then
1.16 millert 20996: 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)'
1.1 millert 20997: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
20998: if test -d /usr/share/catman/local; then
20999: mandir="/usr/share/catman/local"
21000: else
21001: mandir="/usr/catman/local"
21002: fi
21003: fi
21004: else
21005: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
21006: if test -d "/usr/share/man/local"; then
21007: mandir="/usr/share/man/local"
21008: else
21009: mandir="/usr/man/local"
21010: fi
21011: fi
21012: fi
21013: # IRIX <= 4 needs -lsun
21014: if test "$OSREV" -le 4; then
1.16 millert 21015: echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
1.9 millert 21016: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
21017: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
21018: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21019: else
1.9 millert 21020: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21021: LIBS="-lsun $LIBS"
1.9 millert 21022: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21023: #line $LINENO "configure"
21024: /* confdefs.h. */
21025: _ACEOF
21026: cat confdefs.h >>conftest.$ac_ext
21027: cat >>conftest.$ac_ext <<_ACEOF
21028: /* end confdefs.h. */
1.9 millert 21029:
1.1 millert 21030: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21031: #ifdef __cplusplus
21032: extern "C"
21033: #endif
1.1 millert 21034: /* We use char because int might match the return type of a gcc2
1.9 millert 21035: builtin and then its argument prototype would still apply. */
21036: char getpwnam ();
21037: int
21038: main ()
21039: {
21040: getpwnam ();
21041: ;
21042: return 0;
21043: }
21044: _ACEOF
21045: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21046: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21047: (eval $ac_link) 2>&5
21048: ac_status=$?
1.16 millert 21049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21050: (exit $ac_status); } &&
21051: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21052: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21053: (eval $ac_try) 2>&5
21054: ac_status=$?
1.16 millert 21055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21056: (exit $ac_status); }; }; then
21057: ac_cv_lib_sun_getpwnam=yes
21058: else
21059: echo "$as_me: failed program was:" >&5
1.16 millert 21060: sed 's/^/| /' conftest.$ac_ext >&5
21061:
1.9 millert 21062: ac_cv_lib_sun_getpwnam=no
21063: fi
21064: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21065: LIBS=$ac_check_lib_save_LIBS
21066: fi
1.16 millert 21067: echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
1.9 millert 21068: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
21069: if test $ac_cv_lib_sun_getpwnam = yes; then
1.1 millert 21070: LIBS="${LIBS} -lsun"
21071: fi
21072:
21073: fi
1.9 millert 21074: test -n "$mansectsu" || mansectsu=1m
21075: test -n "$mansectform" || mansectform=4
1.1 millert 21076: ;;
21077: *-*-linux*)
21078: # Some Linux versions need to link with -lshadow
21079: if test "$CHECKSHADOW" = "true"; then
1.9 millert 21080:
21081: for ac_func in getspnam
21082: do
21083: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 21084: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 21085: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21086: if eval "test \"\${$as_ac_var+set}\" = set"; then
21087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21088: else
1.9 millert 21089: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21090: #line $LINENO "configure"
21091: /* confdefs.h. */
21092: _ACEOF
21093: cat confdefs.h >>conftest.$ac_ext
21094: cat >>conftest.$ac_ext <<_ACEOF
21095: /* end confdefs.h. */
1.1 millert 21096: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 21097: which can conflict with char $ac_func (); below.
21098: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21099: <limits.h> exists even on freestanding compilers. */
21100: #ifdef __STDC__
21101: # include <limits.h>
21102: #else
21103: # include <assert.h>
21104: #endif
1.1 millert 21105: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21106: #ifdef __cplusplus
21107: extern "C"
1.16 millert 21108: {
1.9 millert 21109: #endif
1.1 millert 21110: /* We use char because int might match the return type of a gcc2
1.9 millert 21111: builtin and then its argument prototype would still apply. */
21112: char $ac_func ();
1.1 millert 21113: /* The GNU C library defines this for functions which it implements
21114: to always fail with ENOSYS. Some functions are actually named
21115: something starting with __ and the normal name is an alias. */
1.9 millert 21116: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 21117: choke me
21118: #else
1.16 millert 21119: char (*f) () = $ac_func;
21120: #endif
21121: #ifdef __cplusplus
21122: }
1.1 millert 21123: #endif
21124:
1.16 millert 21125: int
21126: main ()
21127: {
21128: return f != $ac_func;
1.9 millert 21129: ;
21130: return 0;
21131: }
21132: _ACEOF
21133: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21134: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21135: (eval $ac_link) 2>&5
21136: ac_status=$?
1.16 millert 21137: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21138: (exit $ac_status); } &&
21139: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21140: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21141: (eval $ac_try) 2>&5
21142: ac_status=$?
1.16 millert 21143: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21144: (exit $ac_status); }; }; then
21145: eval "$as_ac_var=yes"
21146: else
21147: echo "$as_me: failed program was:" >&5
1.16 millert 21148: sed 's/^/| /' conftest.$ac_ext >&5
21149:
1.9 millert 21150: eval "$as_ac_var=no"
21151: fi
21152: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21153: fi
1.16 millert 21154: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 21155: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21156: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 21157: cat >>confdefs.h <<_ACEOF
1.9 millert 21158: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 21159: _ACEOF
1.1 millert 21160:
21161: else
1.16 millert 21162: echo "$as_me:$LINENO: checking for getspnam in -lshadow" >&5
1.9 millert 21163: echo $ECHO_N "checking for getspnam in -lshadow... $ECHO_C" >&6
21164: if test "${ac_cv_lib_shadow_getspnam+set}" = set; then
21165: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21166: else
1.9 millert 21167: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21168: LIBS="-lshadow $LIBS"
1.9 millert 21169: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21170: #line $LINENO "configure"
21171: /* confdefs.h. */
21172: _ACEOF
21173: cat confdefs.h >>conftest.$ac_ext
21174: cat >>conftest.$ac_ext <<_ACEOF
21175: /* end confdefs.h. */
1.9 millert 21176:
1.1 millert 21177: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21178: #ifdef __cplusplus
21179: extern "C"
21180: #endif
1.1 millert 21181: /* We use char because int might match the return type of a gcc2
1.9 millert 21182: builtin and then its argument prototype would still apply. */
21183: char getspnam ();
21184: int
21185: main ()
21186: {
21187: getspnam ();
21188: ;
21189: return 0;
21190: }
21191: _ACEOF
21192: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21193: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21194: (eval $ac_link) 2>&5
21195: ac_status=$?
1.16 millert 21196: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21197: (exit $ac_status); } &&
21198: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21199: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21200: (eval $ac_try) 2>&5
21201: ac_status=$?
1.16 millert 21202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21203: (exit $ac_status); }; }; then
21204: ac_cv_lib_shadow_getspnam=yes
21205: else
21206: echo "$as_me: failed program was:" >&5
1.16 millert 21207: sed 's/^/| /' conftest.$ac_ext >&5
21208:
1.9 millert 21209: ac_cv_lib_shadow_getspnam=no
21210: fi
21211: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21212: LIBS=$ac_check_lib_save_LIBS
21213: fi
1.16 millert 21214: echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspnam" >&5
1.9 millert 21215: echo "${ECHO_T}$ac_cv_lib_shadow_getspnam" >&6
21216: if test $ac_cv_lib_shadow_getspnam = yes; then
1.16 millert 21217: cat >>confdefs.h <<\_ACEOF
1.1 millert 21218: #define HAVE_GETSPNAM 1
1.16 millert 21219: _ACEOF
1.1 millert 21220: SUDO_LIBS="${SUDO_LIBS} -lshadow"; LIBS="${LIBS} -lshadow"
21221: fi
21222:
21223: fi
1.9 millert 21224: done
1.1 millert 21225:
21226: CHECKSHADOW="false"
21227: fi
21228: ;;
21229: *-convex-bsd*)
1.9 millert 21230: cat >>confdefs.h <<\EOF
1.1 millert 21231: #define _CONVEX_SOURCE 1
21232: EOF
21233:
21234: if test -z "$GCC"; then
21235: CFLAGS="${CFLAGS} -D__STDC__"
21236: fi
21237:
21238: if test "$CHECKSHADOW" = "true"; then
1.16 millert 21239: echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 21240: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
21241: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
21242: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21243: else
1.9 millert 21244: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21245: LIBS="-lsec $LIBS"
1.9 millert 21246: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21247: #line $LINENO "configure"
21248: /* confdefs.h. */
21249: _ACEOF
21250: cat confdefs.h >>conftest.$ac_ext
21251: cat >>conftest.$ac_ext <<_ACEOF
21252: /* end confdefs.h. */
1.9 millert 21253:
1.1 millert 21254: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21255: #ifdef __cplusplus
21256: extern "C"
21257: #endif
1.1 millert 21258: /* We use char because int might match the return type of a gcc2
1.9 millert 21259: builtin and then its argument prototype would still apply. */
21260: char getprpwnam ();
21261: int
21262: main ()
21263: {
21264: getprpwnam ();
21265: ;
21266: return 0;
21267: }
21268: _ACEOF
21269: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21270: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21271: (eval $ac_link) 2>&5
21272: ac_status=$?
1.16 millert 21273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21274: (exit $ac_status); } &&
21275: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21276: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21277: (eval $ac_try) 2>&5
21278: ac_status=$?
1.16 millert 21279: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21280: (exit $ac_status); }; }; then
21281: ac_cv_lib_sec_getprpwnam=yes
21282: else
21283: echo "$as_me: failed program was:" >&5
1.16 millert 21284: sed 's/^/| /' conftest.$ac_ext >&5
21285:
1.9 millert 21286: ac_cv_lib_sec_getprpwnam=no
21287: fi
21288: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21289: LIBS=$ac_check_lib_save_LIBS
21290: fi
1.16 millert 21291: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 21292: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
21293: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 21294: cat >>confdefs.h <<\_ACEOF
1.1 millert 21295: #define HAVE_GETPRPWNAM 1
1.16 millert 21296: _ACEOF
1.1 millert 21297: SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"; OSDEFS="${OSDEFS} -D_AUDIT -D_ACL -DSecureWare"; SECUREWARE=1
21298: fi
21299:
21300: CHECKSHADOW="false"
21301: fi
21302: ;;
21303: *-*-ultrix*)
21304: OS="ultrix"
21305: if test "$CHECKSHADOW" = "true"; then
1.16 millert 21306: echo "$as_me:$LINENO: checking for getauthuid in -lauth" >&5
1.9 millert 21307: echo $ECHO_N "checking for getauthuid in -lauth... $ECHO_C" >&6
21308: if test "${ac_cv_lib_auth_getauthuid+set}" = set; then
21309: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21310: else
1.9 millert 21311: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21312: LIBS="-lauth $LIBS"
1.9 millert 21313: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21314: #line $LINENO "configure"
21315: /* confdefs.h. */
21316: _ACEOF
21317: cat confdefs.h >>conftest.$ac_ext
21318: cat >>conftest.$ac_ext <<_ACEOF
21319: /* end confdefs.h. */
1.9 millert 21320:
1.1 millert 21321: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21322: #ifdef __cplusplus
21323: extern "C"
21324: #endif
1.1 millert 21325: /* We use char because int might match the return type of a gcc2
1.9 millert 21326: builtin and then its argument prototype would still apply. */
21327: char getauthuid ();
21328: int
21329: main ()
21330: {
21331: getauthuid ();
21332: ;
21333: return 0;
21334: }
21335: _ACEOF
21336: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21337: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21338: (eval $ac_link) 2>&5
21339: ac_status=$?
1.16 millert 21340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21341: (exit $ac_status); } &&
21342: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21343: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21344: (eval $ac_try) 2>&5
21345: ac_status=$?
1.16 millert 21346: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21347: (exit $ac_status); }; }; then
21348: ac_cv_lib_auth_getauthuid=yes
21349: else
21350: echo "$as_me: failed program was:" >&5
1.16 millert 21351: sed 's/^/| /' conftest.$ac_ext >&5
21352:
1.9 millert 21353: ac_cv_lib_auth_getauthuid=no
21354: fi
21355: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21356: LIBS=$ac_check_lib_save_LIBS
21357: fi
1.16 millert 21358: echo "$as_me:$LINENO: result: $ac_cv_lib_auth_getauthuid" >&5
1.9 millert 21359: echo "${ECHO_T}$ac_cv_lib_auth_getauthuid" >&6
21360: if test $ac_cv_lib_auth_getauthuid = yes; then
1.23 ! millert 21361: cat >>confdefs.h <<\_ACEOF
1.1 millert 21362: #define HAVE_GETAUTHUID 1
1.16 millert 21363: _ACEOF
1.1 millert 21364: SUDO_LIBS="${SUDO_LIBS} -lauth"; LIBS="${LIBS} -lauth"
21365: fi
21366:
21367: CHECKSHADOW="false"
21368: fi
21369: ;;
21370: *-*-riscos*)
21371: LIBS="${LIBS} -lsun -lbsd"
21372: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
21373: OSDEFS="${OSDEFS} -D_MIPS"
1.9 millert 21374: test -n "$mansectsu" || mansectsu=1m
21375: test -n "$mansectform" || mansectform=4
1.1 millert 21376: ;;
21377: *-*-isc*)
21378: OSDEFS="${OSDEFS} -D_ISC"
21379: LIB_CRYPT=1
21380: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
21381: LIBS="${LIBS} -lcrypt"
21382:
21383: if test "$CHECKSHADOW" = "true"; then
1.16 millert 21384: echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
1.9 millert 21385: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
21386: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
21387: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21388: else
1.9 millert 21389: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21390: LIBS="-lsec $LIBS"
1.9 millert 21391: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21392: #line $LINENO "configure"
21393: /* confdefs.h. */
21394: _ACEOF
21395: cat confdefs.h >>conftest.$ac_ext
21396: cat >>conftest.$ac_ext <<_ACEOF
21397: /* end confdefs.h. */
1.9 millert 21398:
1.1 millert 21399: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21400: #ifdef __cplusplus
21401: extern "C"
21402: #endif
1.1 millert 21403: /* We use char because int might match the return type of a gcc2
1.9 millert 21404: builtin and then its argument prototype would still apply. */
21405: char getspnam ();
21406: int
21407: main ()
21408: {
21409: getspnam ();
21410: ;
21411: return 0;
21412: }
21413: _ACEOF
21414: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21415: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21416: (eval $ac_link) 2>&5
21417: ac_status=$?
1.16 millert 21418: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21419: (exit $ac_status); } &&
21420: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21421: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21422: (eval $ac_try) 2>&5
21423: ac_status=$?
1.16 millert 21424: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21425: (exit $ac_status); }; }; then
21426: ac_cv_lib_sec_getspnam=yes
21427: else
21428: echo "$as_me: failed program was:" >&5
1.16 millert 21429: sed 's/^/| /' conftest.$ac_ext >&5
21430:
1.9 millert 21431: ac_cv_lib_sec_getspnam=no
21432: fi
21433: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21434: LIBS=$ac_check_lib_save_LIBS
21435: fi
1.16 millert 21436: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
1.9 millert 21437: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
21438: if test $ac_cv_lib_sec_getspnam = yes; then
1.16 millert 21439: cat >>confdefs.h <<\_ACEOF
1.1 millert 21440: #define HAVE_GETSPNAM 1
1.16 millert 21441: _ACEOF
1.1 millert 21442: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
21443: fi
21444:
21445: CHECKSHADOW="false"
21446: fi
1.9 millert 21447: test -n "$mansectsu" || mansectsu=1m
21448: test -n "$mansectform" || mansectform=4
1.1 millert 21449: ;;
1.9 millert 21450: *-*-sco*|*-sco-*)
1.1 millert 21451: if test "$CHECKSHADOW" = "true"; then
1.16 millert 21452: echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
1.9 millert 21453: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
21454: if test "${ac_cv_lib_prot_getprpwnam_lx+set}" = set; then
21455: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21456: else
1.9 millert 21457: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21458: LIBS="-lprot -lx $LIBS"
1.9 millert 21459: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21460: #line $LINENO "configure"
21461: /* confdefs.h. */
21462: _ACEOF
21463: cat confdefs.h >>conftest.$ac_ext
21464: cat >>conftest.$ac_ext <<_ACEOF
21465: /* end confdefs.h. */
1.9 millert 21466:
1.1 millert 21467: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21468: #ifdef __cplusplus
21469: extern "C"
21470: #endif
1.1 millert 21471: /* We use char because int might match the return type of a gcc2
1.9 millert 21472: builtin and then its argument prototype would still apply. */
21473: char getprpwnam ();
21474: int
21475: main ()
21476: {
21477: getprpwnam ();
21478: ;
21479: return 0;
21480: }
21481: _ACEOF
21482: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21483: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21484: (eval $ac_link) 2>&5
21485: ac_status=$?
1.16 millert 21486: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21487: (exit $ac_status); } &&
21488: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21489: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21490: (eval $ac_try) 2>&5
21491: ac_status=$?
1.16 millert 21492: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21493: (exit $ac_status); }; }; then
21494: ac_cv_lib_prot_getprpwnam_lx=yes
21495: else
21496: echo "$as_me: failed program was:" >&5
1.16 millert 21497: sed 's/^/| /' conftest.$ac_ext >&5
21498:
1.9 millert 21499: ac_cv_lib_prot_getprpwnam_lx=no
21500: fi
21501: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21502: LIBS=$ac_check_lib_save_LIBS
21503: fi
1.16 millert 21504: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam_lx" >&5
1.9 millert 21505: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam_lx" >&6
21506: if test $ac_cv_lib_prot_getprpwnam_lx = yes; then
1.16 millert 21507: cat >>confdefs.h <<\_ACEOF
1.1 millert 21508: #define HAVE_GETPRPWNAM 1
1.16 millert 21509: _ACEOF
1.1 millert 21510: SUDO_LIBS="${SUDO_LIBS} -lprot -lx"; LIBS="${LIBS} -lprot -lx"; SECUREWARE=1
21511: fi
21512:
1.16 millert 21513: echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
1.9 millert 21514: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
21515: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
21516: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21517: else
1.9 millert 21518: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21519: LIBS="-lgen $LIBS"
1.9 millert 21520: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21521: #line $LINENO "configure"
21522: /* confdefs.h. */
21523: _ACEOF
21524: cat confdefs.h >>conftest.$ac_ext
21525: cat >>conftest.$ac_ext <<_ACEOF
21526: /* end confdefs.h. */
1.9 millert 21527:
1.1 millert 21528: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21529: #ifdef __cplusplus
21530: extern "C"
21531: #endif
1.1 millert 21532: /* We use char because int might match the return type of a gcc2
1.9 millert 21533: builtin and then its argument prototype would still apply. */
21534: char getspnam ();
21535: int
21536: main ()
21537: {
21538: getspnam ();
21539: ;
21540: return 0;
21541: }
21542: _ACEOF
21543: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21544: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21545: (eval $ac_link) 2>&5
21546: ac_status=$?
1.16 millert 21547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21548: (exit $ac_status); } &&
21549: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21550: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21551: (eval $ac_try) 2>&5
21552: ac_status=$?
1.16 millert 21553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21554: (exit $ac_status); }; }; then
21555: ac_cv_lib_gen_getspnam=yes
21556: else
21557: echo "$as_me: failed program was:" >&5
1.16 millert 21558: sed 's/^/| /' conftest.$ac_ext >&5
21559:
1.9 millert 21560: ac_cv_lib_gen_getspnam=no
21561: fi
21562: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21563: LIBS=$ac_check_lib_save_LIBS
21564: fi
1.16 millert 21565: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
1.9 millert 21566: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
21567: if test $ac_cv_lib_gen_getspnam = yes; then
1.16 millert 21568: cat >>confdefs.h <<\_ACEOF
1.1 millert 21569: #define HAVE_GETSPNAM 1
1.16 millert 21570: _ACEOF
1.1 millert 21571: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
21572: fi
21573:
21574: CHECKSHADOW="false"
21575: fi
1.9 millert 21576: test -n "$mansectsu" || mansectsu=1m
21577: test -n "$mansectform" || mansectform=4
1.1 millert 21578: ;;
1.10 millert 21579: m88k-motorola-sysv*)
21580: # motorolla's cc (a variant of gcc) does -O but not -O2
21581: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
21582: test -n "$mansectsu" || mansectsu=1m
21583: test -n "$mansectform" || mansectform=4
21584: ;;
1.1 millert 21585: *-sequent-sysv*)
21586: if test "$CHECKSHADOW" = "true"; then
1.16 millert 21587: echo "$as_me:$LINENO: checking for getspnam in -lsec" >&5
1.9 millert 21588: echo $ECHO_N "checking for getspnam in -lsec... $ECHO_C" >&6
21589: if test "${ac_cv_lib_sec_getspnam+set}" = set; then
21590: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21591: else
1.9 millert 21592: ac_check_lib_save_LIBS=$LIBS
1.1 millert 21593: LIBS="-lsec $LIBS"
1.9 millert 21594: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21595: #line $LINENO "configure"
21596: /* confdefs.h. */
21597: _ACEOF
21598: cat confdefs.h >>conftest.$ac_ext
21599: cat >>conftest.$ac_ext <<_ACEOF
21600: /* end confdefs.h. */
1.9 millert 21601:
1.1 millert 21602: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21603: #ifdef __cplusplus
21604: extern "C"
21605: #endif
1.1 millert 21606: /* We use char because int might match the return type of a gcc2
1.9 millert 21607: builtin and then its argument prototype would still apply. */
21608: char getspnam ();
21609: int
21610: main ()
21611: {
21612: getspnam ();
21613: ;
21614: return 0;
21615: }
21616: _ACEOF
21617: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21618: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21619: (eval $ac_link) 2>&5
21620: ac_status=$?
1.16 millert 21621: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21622: (exit $ac_status); } &&
21623: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21624: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21625: (eval $ac_try) 2>&5
21626: ac_status=$?
1.16 millert 21627: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21628: (exit $ac_status); }; }; then
21629: ac_cv_lib_sec_getspnam=yes
21630: else
21631: echo "$as_me: failed program was:" >&5
1.16 millert 21632: sed 's/^/| /' conftest.$ac_ext >&5
21633:
1.9 millert 21634: ac_cv_lib_sec_getspnam=no
21635: fi
21636: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21637: LIBS=$ac_check_lib_save_LIBS
21638: fi
1.16 millert 21639: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getspnam" >&5
1.9 millert 21640: echo "${ECHO_T}$ac_cv_lib_sec_getspnam" >&6
21641: if test $ac_cv_lib_sec_getspnam = yes; then
1.16 millert 21642: cat >>confdefs.h <<\_ACEOF
1.1 millert 21643: #define HAVE_GETSPNAM 1
1.16 millert 21644: _ACEOF
1.1 millert 21645: SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
21646: fi
21647:
21648: CHECKSHADOW="false"
21649: fi
1.9 millert 21650: test -n "$mansectsu" || mansectsu=1m
21651: test -n "$mansectform" || mansectform=4
1.17 millert 21652: test -n "$with_rpath" || with_rpath=yes
1.9 millert 21653: ;;
21654: *-ncr-sysv4*|*-ncr-sysvr4*)
1.16 millert 21655: echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
1.9 millert 21656: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6
21657: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
21658: echo $ECHO_N "(cached) $ECHO_C" >&6
21659: else
21660: ac_check_lib_save_LIBS=$LIBS
21661: LIBS="-lc89 $LIBS"
21662: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21663: #line $LINENO "configure"
21664: /* confdefs.h. */
21665: _ACEOF
21666: cat confdefs.h >>conftest.$ac_ext
21667: cat >>conftest.$ac_ext <<_ACEOF
21668: /* end confdefs.h. */
1.9 millert 21669:
21670: /* Override any gcc2 internal prototype to avoid an error. */
21671: #ifdef __cplusplus
21672: extern "C"
21673: #endif
21674: /* We use char because int might match the return type of a gcc2
21675: builtin and then its argument prototype would still apply. */
21676: char strcasecmp ();
21677: int
21678: main ()
21679: {
21680: strcasecmp ();
21681: ;
21682: return 0;
21683: }
21684: _ACEOF
21685: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21686: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21687: (eval $ac_link) 2>&5
21688: ac_status=$?
1.16 millert 21689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21690: (exit $ac_status); } &&
21691: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21692: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21693: (eval $ac_try) 2>&5
21694: ac_status=$?
1.16 millert 21695: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21696: (exit $ac_status); }; }; then
21697: ac_cv_lib_c89_strcasecmp=yes
21698: else
21699: echo "$as_me: failed program was:" >&5
1.16 millert 21700: sed 's/^/| /' conftest.$ac_ext >&5
21701:
1.9 millert 21702: ac_cv_lib_c89_strcasecmp=no
21703: fi
21704: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21705: LIBS=$ac_check_lib_save_LIBS
21706: fi
1.16 millert 21707: echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
1.9 millert 21708: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6
21709: if test $ac_cv_lib_c89_strcasecmp = yes; then
1.16 millert 21710: cat >>confdefs.h <<\_ACEOF
1.9 millert 21711: #define HAVE_STRCASECMP 1
1.16 millert 21712: _ACEOF
1.9 millert 21713: LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
21714: fi
21715:
21716: test -n "$mansectsu" || mansectsu=1m
21717: test -n "$mansectform" || mansectform=4
1.17 millert 21718: test -n "$with_rpath" || with_rpath=yes
1.1 millert 21719: ;;
1.9 millert 21720: *-ccur-sysv4*|*-ccur-sysvr4*)
1.1 millert 21721: LIBS="${LIBS} -lgen"
21722: SUDO_LIBS="${SUDO_LIBS} -lgen"
1.9 millert 21723: test -n "$mansectsu" || mansectsu=1m
21724: test -n "$mansectform" || mansectform=4
1.17 millert 21725: test -n "$with_rpath" || with_rpath=yes
1.1 millert 21726: ;;
21727: *-*-bsdi*)
1.16 millert 21728: SKIP_SETREUID=yes
1.6 millert 21729: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
21730: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
21731: case "$OSREV" in
1.17 millert 21732: 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
21733: echo "$as_me: using shlicc as CC" >&6;}
1.6 millert 21734: ac_cv_prog_CC=shlicc
21735: CC="$ac_cv_prog_CC"
21736: ;;
21737: esac
21738: fi
21739: ;;
21740: *-*-freebsd*)
1.13 millert 21741: # FreeBSD has a real setreuid(2) starting with 2.1 and
21742: # backported to 2.0.5. We just take 2.1 and above...
21743: case "`echo $host_os | sed 's/^freebsd\([0-9\.]*\).*$/\1/'`" in
21744: 0.*|1.*|2.0*)
1.16 millert 21745: SKIP_SETREUID=yes
1.13 millert 21746: ;;
21747: esac
1.7 millert 21748: if test "$with_logincap" = "yes"; then
21749: SUDO_LIBS="${SUDO_LIBS} -lutil"
21750: fi
1.6 millert 21751: if test "$with_skey" = "yes"; then
21752: SUDO_LIBS="${SUDO_LIBS} -lmd"
21753: fi
21754: if test "$CHECKSHADOW" = "true"; then
21755: CHECKSHADOW="false"
1.1 millert 21756: fi
21757: ;;
1.9 millert 21758: *-*-*openbsd*)
1.16 millert 21759: SKIP_SETREUID=yes
1.9 millert 21760: if test "$CHECKSHADOW" = "true"; then
21761: CHECKSHADOW="false"
21762: fi
21763: ;;
21764: *-*-*netbsd*)
1.13 millert 21765: # NetBSD has a real setreuid(2) starting with 1.3.2
21766: case "`echo $host_os | sed 's/^netbsd\([0-9\.]*\).*$/\1/'`" in
21767: 0.9*|1.012*|1.3|1.3.1)
1.16 millert 21768: SKIP_SETREUID=yes
1.13 millert 21769: ;;
21770: esac
1.9 millert 21771: if test "$CHECKSHADOW" = "true"; then
21772: CHECKSHADOW="false"
21773: fi
21774: ;;
1.1 millert 21775: *-*-*bsd*)
21776: if test "$CHECKSHADOW" = "true"; then
21777: CHECKSHADOW="false"
21778: fi
21779: ;;
1.21 millert 21780: *-*-darwin*)
21781: SKIP_SETREUID=yes
21782: if test "$CHECKSHADOW" = "true"; then
21783: CHECKSHADOW="false"
21784: fi
21785: ;;
1.9 millert 21786: *-*-nextstep*)
21787: # lockf() on is broken on the NeXT -- use flock instead
21788: ac_cv_func_lockf=no
21789: ac_cv_func_flock=yes
21790: ;;
1.17 millert 21791: *-*-*sysv4*)
21792: test -n "$mansectsu" || mansectsu=1m
21793: test -n "$mansectform" || mansectform=4
21794: test -n "$with_rpath" || with_rpath=yes
21795: ;;
1.6 millert 21796: *-*-sysv*)
1.9 millert 21797: test -n "$mansectsu" || mansectsu=1m
21798: test -n "$mansectform" || mansectform=4
1.6 millert 21799: ;;
1.1 millert 21800: esac
21801:
1.6 millert 21802: test -n "$mansectsu" || mansectsu=8
21803: test -n "$mansectform" || mansectform=5
21804:
1.17 millert 21805: if test -n "$with_libpath"; then
21806: for i in ${with_libpath}; do
21807:
21808: if test X"$with_rpath" = X"yes"; then
21809: LDFLAGS="${LDFLAGS} -L$i -R$i"
21810: else
21811: LDFLAGS="${LDFLAGS} -L$i"
21812: fi
21813: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21814: blibpath_add="${blibpath_add}:$i"
21815: fi
21816:
21817: done
21818: fi
21819: if test -n "$with_libraries"; then
21820: for i in ${with_libraries}; do
21821: case $i in
21822: -l*) ;;
21823: *.a) ;;
21824: *.o) ;;
21825: *) i="-l${i}";;
21826: esac
21827: LIBS="${LIBS} ${i}"
21828: done
21829: fi
21830:
1.1 millert 21831: if test "$CHECKSHADOW" = "true"; then
1.9 millert 21832:
21833: for ac_func in getspnam
21834: do
21835: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 21836: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 21837: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21838: if eval "test \"\${$as_ac_var+set}\" = set"; then
21839: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21840: else
1.9 millert 21841: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21842: #line $LINENO "configure"
21843: /* confdefs.h. */
21844: _ACEOF
21845: cat confdefs.h >>conftest.$ac_ext
21846: cat >>conftest.$ac_ext <<_ACEOF
21847: /* end confdefs.h. */
1.1 millert 21848: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 21849: which can conflict with char $ac_func (); below.
21850: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21851: <limits.h> exists even on freestanding compilers. */
21852: #ifdef __STDC__
21853: # include <limits.h>
21854: #else
21855: # include <assert.h>
21856: #endif
1.1 millert 21857: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 21858: #ifdef __cplusplus
21859: extern "C"
1.16 millert 21860: {
1.9 millert 21861: #endif
1.1 millert 21862: /* We use char because int might match the return type of a gcc2
1.9 millert 21863: builtin and then its argument prototype would still apply. */
21864: char $ac_func ();
1.1 millert 21865: /* The GNU C library defines this for functions which it implements
21866: to always fail with ENOSYS. Some functions are actually named
21867: something starting with __ and the normal name is an alias. */
1.9 millert 21868: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 21869: choke me
21870: #else
1.16 millert 21871: char (*f) () = $ac_func;
21872: #endif
21873: #ifdef __cplusplus
21874: }
1.1 millert 21875: #endif
21876:
1.16 millert 21877: int
21878: main ()
21879: {
21880: return f != $ac_func;
1.9 millert 21881: ;
21882: return 0;
21883: }
21884: _ACEOF
21885: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21886: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21887: (eval $ac_link) 2>&5
21888: ac_status=$?
1.16 millert 21889: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21890: (exit $ac_status); } &&
21891: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21892: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21893: (eval $ac_try) 2>&5
21894: ac_status=$?
1.16 millert 21895: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21896: (exit $ac_status); }; }; then
21897: eval "$as_ac_var=yes"
21898: else
21899: echo "$as_me: failed program was:" >&5
1.16 millert 21900: sed 's/^/| /' conftest.$ac_ext >&5
21901:
1.9 millert 21902: eval "$as_ac_var=no"
21903: fi
21904: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21905: fi
1.16 millert 21906: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 21907: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21908: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 21909: cat >>confdefs.h <<_ACEOF
1.9 millert 21910: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 21911: _ACEOF
1.9 millert 21912: CHECKSHADOW="false"
1.1 millert 21913: else
1.16 millert 21914: echo "$as_me:$LINENO: checking for getspnam in -lgen" >&5
1.9 millert 21915: echo $ECHO_N "checking for getspnam in -lgen... $ECHO_C" >&6
21916: if test "${ac_cv_lib_gen_getspnam+set}" = set; then
21917: echo $ECHO_N "(cached) $ECHO_C" >&6
21918: else
21919: ac_check_lib_save_LIBS=$LIBS
21920: LIBS="-lgen $LIBS"
21921: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21922: #line $LINENO "configure"
21923: /* confdefs.h. */
21924: _ACEOF
21925: cat confdefs.h >>conftest.$ac_ext
21926: cat >>conftest.$ac_ext <<_ACEOF
21927: /* end confdefs.h. */
1.9 millert 21928:
21929: /* Override any gcc2 internal prototype to avoid an error. */
21930: #ifdef __cplusplus
21931: extern "C"
21932: #endif
21933: /* We use char because int might match the return type of a gcc2
21934: builtin and then its argument prototype would still apply. */
21935: char getspnam ();
21936: int
21937: main ()
21938: {
21939: getspnam ();
21940: ;
21941: return 0;
21942: }
21943: _ACEOF
21944: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 21945: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 21946: (eval $ac_link) 2>&5
21947: ac_status=$?
1.16 millert 21948: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21949: (exit $ac_status); } &&
21950: { ac_try='test -s conftest$ac_exeext'
1.16 millert 21951: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 21952: (eval $ac_try) 2>&5
21953: ac_status=$?
1.16 millert 21954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 21955: (exit $ac_status); }; }; then
21956: ac_cv_lib_gen_getspnam=yes
21957: else
21958: echo "$as_me: failed program was:" >&5
1.16 millert 21959: sed 's/^/| /' conftest.$ac_ext >&5
21960:
1.9 millert 21961: ac_cv_lib_gen_getspnam=no
21962: fi
21963: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21964: LIBS=$ac_check_lib_save_LIBS
21965: fi
1.16 millert 21966: echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getspnam" >&5
1.9 millert 21967: echo "${ECHO_T}$ac_cv_lib_gen_getspnam" >&6
21968: if test $ac_cv_lib_gen_getspnam = yes; then
1.23 ! millert 21969: cat >>confdefs.h <<\_ACEOF
1.1 millert 21970: #define HAVE_GETSPNAM 1
1.16 millert 21971: _ACEOF
1.9 millert 21972: SUDO_LIBS="${SUDO_LIBS} -lgen"; LIBS="${LIBS} -lgen"
21973: fi
21974:
1.1 millert 21975: fi
1.9 millert 21976: done
1.1 millert 21977:
21978: fi
21979: if test "$CHECKSHADOW" = "true"; then
1.16 millert 21980: echo "$as_me:$LINENO: checking for getprpwnam" >&5
1.9 millert 21981: echo $ECHO_N "checking for getprpwnam... $ECHO_C" >&6
21982: if test "${ac_cv_func_getprpwnam+set}" = set; then
21983: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21984: else
1.9 millert 21985: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21986: #line $LINENO "configure"
21987: /* confdefs.h. */
21988: _ACEOF
21989: cat confdefs.h >>conftest.$ac_ext
21990: cat >>conftest.$ac_ext <<_ACEOF
21991: /* end confdefs.h. */
1.1 millert 21992: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 21993: which can conflict with char getprpwnam (); below.
21994: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21995: <limits.h> exists even on freestanding compilers. */
21996: #ifdef __STDC__
21997: # include <limits.h>
21998: #else
21999: # include <assert.h>
22000: #endif
1.1 millert 22001: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 22002: #ifdef __cplusplus
22003: extern "C"
1.16 millert 22004: {
1.9 millert 22005: #endif
1.1 millert 22006: /* We use char because int might match the return type of a gcc2
1.9 millert 22007: builtin and then its argument prototype would still apply. */
22008: char getprpwnam ();
1.1 millert 22009: /* The GNU C library defines this for functions which it implements
22010: to always fail with ENOSYS. Some functions are actually named
22011: something starting with __ and the normal name is an alias. */
22012: #if defined (__stub_getprpwnam) || defined (__stub___getprpwnam)
22013: choke me
22014: #else
1.16 millert 22015: char (*f) () = getprpwnam;
22016: #endif
22017: #ifdef __cplusplus
22018: }
1.1 millert 22019: #endif
22020:
1.16 millert 22021: int
22022: main ()
22023: {
22024: return f != getprpwnam;
1.9 millert 22025: ;
22026: return 0;
22027: }
22028: _ACEOF
22029: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 22030: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 22031: (eval $ac_link) 2>&5
22032: ac_status=$?
1.16 millert 22033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22034: (exit $ac_status); } &&
22035: { ac_try='test -s conftest$ac_exeext'
1.16 millert 22036: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 22037: (eval $ac_try) 2>&5
22038: ac_status=$?
1.16 millert 22039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22040: (exit $ac_status); }; }; then
22041: ac_cv_func_getprpwnam=yes
22042: else
22043: echo "$as_me: failed program was:" >&5
1.16 millert 22044: sed 's/^/| /' conftest.$ac_ext >&5
22045:
1.9 millert 22046: ac_cv_func_getprpwnam=no
22047: fi
22048: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22049: fi
1.16 millert 22050: echo "$as_me:$LINENO: result: $ac_cv_func_getprpwnam" >&5
1.9 millert 22051: echo "${ECHO_T}$ac_cv_func_getprpwnam" >&6
22052: if test $ac_cv_func_getprpwnam = yes; then
1.16 millert 22053: cat >>confdefs.h <<\_ACEOF
1.1 millert 22054: #define HAVE_GETPRPWNAM 1
1.16 millert 22055: _ACEOF
22056: CHECKSHADOW="false"; SECUREWARE=1, echo "$as_me:$LINENO: checking for getprpwnam in -lsec" >&5
1.9 millert 22057: echo $ECHO_N "checking for getprpwnam in -lsec... $ECHO_C" >&6
22058: if test "${ac_cv_lib_sec_getprpwnam+set}" = set; then
22059: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 22060: else
1.9 millert 22061: ac_check_lib_save_LIBS=$LIBS
1.1 millert 22062: LIBS="-lsec $LIBS"
1.9 millert 22063: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22064: #line $LINENO "configure"
22065: /* confdefs.h. */
22066: _ACEOF
22067: cat confdefs.h >>conftest.$ac_ext
22068: cat >>conftest.$ac_ext <<_ACEOF
22069: /* end confdefs.h. */
1.9 millert 22070:
1.1 millert 22071: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 22072: #ifdef __cplusplus
22073: extern "C"
22074: #endif
1.1 millert 22075: /* We use char because int might match the return type of a gcc2
1.9 millert 22076: builtin and then its argument prototype would still apply. */
22077: char getprpwnam ();
22078: int
22079: main ()
22080: {
22081: getprpwnam ();
22082: ;
22083: return 0;
22084: }
22085: _ACEOF
22086: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 22087: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 22088: (eval $ac_link) 2>&5
22089: ac_status=$?
1.16 millert 22090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22091: (exit $ac_status); } &&
22092: { ac_try='test -s conftest$ac_exeext'
1.16 millert 22093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 22094: (eval $ac_try) 2>&5
22095: ac_status=$?
1.16 millert 22096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22097: (exit $ac_status); }; }; then
22098: ac_cv_lib_sec_getprpwnam=yes
22099: else
22100: echo "$as_me: failed program was:" >&5
1.16 millert 22101: sed 's/^/| /' conftest.$ac_ext >&5
22102:
1.9 millert 22103: ac_cv_lib_sec_getprpwnam=no
22104: fi
22105: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22106: LIBS=$ac_check_lib_save_LIBS
22107: fi
1.16 millert 22108: echo "$as_me:$LINENO: result: $ac_cv_lib_sec_getprpwnam" >&5
1.9 millert 22109: echo "${ECHO_T}$ac_cv_lib_sec_getprpwnam" >&6
22110: if test $ac_cv_lib_sec_getprpwnam = yes; then
1.16 millert 22111: cat >>confdefs.h <<\_ACEOF
1.1 millert 22112: #define HAVE_GETPRPWNAM 1
1.16 millert 22113: _ACEOF
1.1 millert 22114: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsec"; LIBS="${LIBS} -lsec"
22115: else
1.16 millert 22116: echo "$as_me:$LINENO: checking for getprpwnam in -lsecurity" >&5
1.9 millert 22117: echo $ECHO_N "checking for getprpwnam in -lsecurity... $ECHO_C" >&6
22118: if test "${ac_cv_lib_security_getprpwnam+set}" = set; then
22119: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 22120: else
1.9 millert 22121: ac_check_lib_save_LIBS=$LIBS
1.1 millert 22122: LIBS="-lsecurity $LIBS"
1.9 millert 22123: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22124: #line $LINENO "configure"
22125: /* confdefs.h. */
22126: _ACEOF
22127: cat confdefs.h >>conftest.$ac_ext
22128: cat >>conftest.$ac_ext <<_ACEOF
22129: /* end confdefs.h. */
1.9 millert 22130:
1.1 millert 22131: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 22132: #ifdef __cplusplus
22133: extern "C"
22134: #endif
1.1 millert 22135: /* We use char because int might match the return type of a gcc2
1.9 millert 22136: builtin and then its argument prototype would still apply. */
22137: char getprpwnam ();
22138: int
22139: main ()
22140: {
22141: getprpwnam ();
22142: ;
22143: return 0;
22144: }
22145: _ACEOF
22146: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 22147: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 22148: (eval $ac_link) 2>&5
22149: ac_status=$?
1.16 millert 22150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22151: (exit $ac_status); } &&
22152: { ac_try='test -s conftest$ac_exeext'
1.16 millert 22153: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 22154: (eval $ac_try) 2>&5
22155: ac_status=$?
1.16 millert 22156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22157: (exit $ac_status); }; }; then
22158: ac_cv_lib_security_getprpwnam=yes
22159: else
22160: echo "$as_me: failed program was:" >&5
1.16 millert 22161: sed 's/^/| /' conftest.$ac_ext >&5
22162:
1.9 millert 22163: ac_cv_lib_security_getprpwnam=no
22164: fi
22165: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22166: LIBS=$ac_check_lib_save_LIBS
22167: fi
1.16 millert 22168: echo "$as_me:$LINENO: result: $ac_cv_lib_security_getprpwnam" >&5
1.9 millert 22169: echo "${ECHO_T}$ac_cv_lib_security_getprpwnam" >&6
22170: if test $ac_cv_lib_security_getprpwnam = yes; then
1.16 millert 22171: cat >>confdefs.h <<\_ACEOF
1.1 millert 22172: #define HAVE_GETPRPWNAM 1
1.16 millert 22173: _ACEOF
1.1 millert 22174: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lsecurity"; LIBS="${LIBS} -lsecurity"
22175: else
1.16 millert 22176: echo "$as_me:$LINENO: checking for getprpwnam in -lprot" >&5
1.9 millert 22177: echo $ECHO_N "checking for getprpwnam in -lprot... $ECHO_C" >&6
22178: if test "${ac_cv_lib_prot_getprpwnam+set}" = set; then
22179: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 22180: else
1.9 millert 22181: ac_check_lib_save_LIBS=$LIBS
1.1 millert 22182: LIBS="-lprot $LIBS"
1.9 millert 22183: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22184: #line $LINENO "configure"
22185: /* confdefs.h. */
22186: _ACEOF
22187: cat confdefs.h >>conftest.$ac_ext
22188: cat >>conftest.$ac_ext <<_ACEOF
22189: /* end confdefs.h. */
1.9 millert 22190:
1.1 millert 22191: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 22192: #ifdef __cplusplus
22193: extern "C"
22194: #endif
1.1 millert 22195: /* We use char because int might match the return type of a gcc2
1.9 millert 22196: builtin and then its argument prototype would still apply. */
22197: char getprpwnam ();
22198: int
22199: main ()
22200: {
22201: getprpwnam ();
22202: ;
22203: return 0;
22204: }
22205: _ACEOF
22206: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 22207: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 22208: (eval $ac_link) 2>&5
22209: ac_status=$?
1.16 millert 22210: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22211: (exit $ac_status); } &&
22212: { ac_try='test -s conftest$ac_exeext'
1.16 millert 22213: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 22214: (eval $ac_try) 2>&5
22215: ac_status=$?
1.16 millert 22216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22217: (exit $ac_status); }; }; then
22218: ac_cv_lib_prot_getprpwnam=yes
22219: else
22220: echo "$as_me: failed program was:" >&5
1.16 millert 22221: sed 's/^/| /' conftest.$ac_ext >&5
22222:
1.9 millert 22223: ac_cv_lib_prot_getprpwnam=no
22224: fi
22225: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22226: LIBS=$ac_check_lib_save_LIBS
22227: fi
1.16 millert 22228: echo "$as_me:$LINENO: result: $ac_cv_lib_prot_getprpwnam" >&5
1.9 millert 22229: echo "${ECHO_T}$ac_cv_lib_prot_getprpwnam" >&6
22230: if test $ac_cv_lib_prot_getprpwnam = yes; then
1.16 millert 22231: cat >>confdefs.h <<\_ACEOF
1.1 millert 22232: #define HAVE_GETPRPWNAM 1
1.16 millert 22233: _ACEOF
1.1 millert 22234: CHECKSHADOW="false"; SECUREWARE=1; SUDO_LIBS="${SUDO_LIBS} -lprot"; LIBS="${LIBS} -lprot"
22235: fi
22236:
22237: fi
22238:
22239: fi
22240:
22241: fi
22242:
22243: fi
22244:
1.9 millert 22245: if test $ac_cv_c_compiler_gnu = yes; then
1.16 millert 22246: echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
1.9 millert 22247: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
22248: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22249: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 22250: else
22251: ac_pattern="Autoconf.*'x'"
1.9 millert 22252: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22253: #line $LINENO "configure"
22254: /* confdefs.h. */
22255: _ACEOF
22256: cat confdefs.h >>conftest.$ac_ext
22257: cat >>conftest.$ac_ext <<_ACEOF
22258: /* end confdefs.h. */
1.1 millert 22259: #include <sgtty.h>
22260: Autoconf TIOCGETP
1.9 millert 22261: _ACEOF
1.1 millert 22262: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 22263: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 millert 22264: ac_cv_prog_gcc_traditional=yes
22265: else
22266: ac_cv_prog_gcc_traditional=no
22267: fi
22268: rm -f conftest*
22269:
1.16 millert 22270:
1.1 millert 22271: if test $ac_cv_prog_gcc_traditional = no; then
1.9 millert 22272: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22273: #line $LINENO "configure"
22274: /* confdefs.h. */
22275: _ACEOF
22276: cat confdefs.h >>conftest.$ac_ext
22277: cat >>conftest.$ac_ext <<_ACEOF
22278: /* end confdefs.h. */
1.1 millert 22279: #include <termio.h>
22280: Autoconf TCGETA
1.9 millert 22281: _ACEOF
1.1 millert 22282: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 22283: $EGREP "$ac_pattern" >/dev/null 2>&1; then
1.1 millert 22284: ac_cv_prog_gcc_traditional=yes
22285: fi
22286: rm -f conftest*
22287:
22288: fi
22289: fi
1.16 millert 22290: echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
1.9 millert 22291: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
1.1 millert 22292: if test $ac_cv_prog_gcc_traditional = yes; then
22293: CC="$CC -traditional"
22294: fi
22295: fi
22296:
1.16 millert 22297: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
1.9 millert 22298: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22299: if test "${ac_cv_c_const+set}" = set; then
22300: echo $ECHO_N "(cached) $ECHO_C" >&6
22301: else
22302: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22303: #line $LINENO "configure"
22304: /* confdefs.h. */
22305: _ACEOF
22306: cat confdefs.h >>conftest.$ac_ext
22307: cat >>conftest.$ac_ext <<_ACEOF
22308: /* end confdefs.h. */
1.9 millert 22309:
22310: int
22311: main ()
22312: {
22313: /* FIXME: Include the comments suggested by Paul. */
22314: #ifndef __cplusplus
22315: /* Ultrix mips cc rejects this. */
22316: typedef int charset[2];
22317: const charset x;
22318: /* SunOS 4.1.1 cc rejects this. */
22319: char const *const *ccp;
22320: char **p;
22321: /* NEC SVR4.0.2 mips cc rejects this. */
22322: struct point {int x, y;};
22323: static struct point const zero = {0,0};
22324: /* AIX XL C 1.02.0.0 rejects this.
22325: It does not let you subtract one const X* pointer from another in
22326: an arm of an if-expression whose if-part is not a constant
22327: expression */
22328: const char *g = "string";
22329: ccp = &g + (g ? g-g : 0);
22330: /* HPUX 7.0 cc rejects these. */
22331: ++ccp;
22332: p = (char**) ccp;
22333: ccp = (char const *const *) p;
22334: { /* SCO 3.2v4 cc rejects this. */
22335: char *t;
22336: char const *s = 0 ? (char *) 0 : (char const *) 0;
22337:
22338: *t++ = 0;
22339: }
22340: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22341: int x[] = {25, 17};
22342: const int *foo = &x[0];
22343: ++foo;
22344: }
22345: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22346: typedef const int *iptr;
22347: iptr p = 0;
22348: ++p;
22349: }
22350: { /* AIX XL C 1.02.0.0 rejects this saying
22351: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22352: struct s { int j; const int *ap[3]; };
22353: struct s *b; b->j = 5;
22354: }
22355: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22356: const int foo = 10;
22357: }
22358: #endif
22359:
22360: ;
22361: return 0;
1.1 millert 22362: }
1.9 millert 22363: _ACEOF
22364: rm -f conftest.$ac_objext
1.16 millert 22365: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 22366: (eval $ac_compile) 2>&5
22367: ac_status=$?
1.16 millert 22368: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22369: (exit $ac_status); } &&
22370: { ac_try='test -s conftest.$ac_objext'
1.16 millert 22371: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 22372: (eval $ac_try) 2>&5
22373: ac_status=$?
1.16 millert 22374: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22375: (exit $ac_status); }; }; then
1.1 millert 22376: ac_cv_c_const=yes
22377: else
1.9 millert 22378: echo "$as_me: failed program was:" >&5
1.16 millert 22379: sed 's/^/| /' conftest.$ac_ext >&5
22380:
1.9 millert 22381: ac_cv_c_const=no
22382: fi
22383: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 22384: fi
1.16 millert 22385: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
1.9 millert 22386: echo "${ECHO_T}$ac_cv_c_const" >&6
22387: if test $ac_cv_c_const = no; then
22388:
1.16 millert 22389: cat >>confdefs.h <<\_ACEOF
1.9 millert 22390: #define const
1.16 millert 22391: _ACEOF
1.9 millert 22392:
1.1 millert 22393: fi
22394:
1.16 millert 22395: echo "$as_me:$LINENO: checking for working volatile" >&5
1.9 millert 22396: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
22397: if test "${ac_cv_c_volatile+set}" = set; then
22398: echo $ECHO_N "(cached) $ECHO_C" >&6
22399: else
22400: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22401: #line $LINENO "configure"
22402: /* confdefs.h. */
22403: _ACEOF
22404: cat confdefs.h >>conftest.$ac_ext
22405: cat >>conftest.$ac_ext <<_ACEOF
22406: /* end confdefs.h. */
1.9 millert 22407:
22408: int
22409: main ()
22410: {
22411:
22412: volatile int x;
22413: int * volatile y;
22414: ;
22415: return 0;
22416: }
22417: _ACEOF
22418: rm -f conftest.$ac_objext
1.16 millert 22419: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 22420: (eval $ac_compile) 2>&5
22421: ac_status=$?
1.16 millert 22422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22423: (exit $ac_status); } &&
22424: { ac_try='test -s conftest.$ac_objext'
1.16 millert 22425: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 22426: (eval $ac_try) 2>&5
22427: ac_status=$?
1.16 millert 22428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 22429: (exit $ac_status); }; }; then
22430: ac_cv_c_volatile=yes
22431: else
22432: echo "$as_me: failed program was:" >&5
1.16 millert 22433: sed 's/^/| /' conftest.$ac_ext >&5
22434:
1.9 millert 22435: ac_cv_c_volatile=no
22436: fi
22437: rm -f conftest.$ac_objext conftest.$ac_ext
22438: fi
1.16 millert 22439: echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
1.9 millert 22440: echo "${ECHO_T}$ac_cv_c_volatile" >&6
22441: if test $ac_cv_c_volatile = no; then
22442:
1.16 millert 22443: cat >>confdefs.h <<\_ACEOF
1.9 millert 22444: #define volatile
1.16 millert 22445: _ACEOF
1.1 millert 22446:
22447: fi
22448:
22449: for ac_prog in 'bison -y' byacc
22450: do
1.9 millert 22451: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1 millert 22452: set dummy $ac_prog; ac_word=$2
1.16 millert 22453: echo "$as_me:$LINENO: checking for $ac_word" >&5
1.9 millert 22454: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22455: if test "${ac_cv_prog_YACC+set}" = set; then
22456: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 22457: else
22458: if test -n "$YACC"; then
22459: ac_cv_prog_YACC="$YACC" # Let the user override the test.
22460: else
1.16 millert 22461: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462: for as_dir in $PATH
22463: do
22464: IFS=$as_save_IFS
22465: test -z "$as_dir" && as_dir=.
22466: for ac_exec_ext in '' $ac_executable_extensions; do
22467: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22468: ac_cv_prog_YACC="$ac_prog"
22469: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22470: break 2
22471: fi
22472: done
1.9 millert 22473: done
22474:
1.1 millert 22475: fi
22476: fi
1.9 millert 22477: YACC=$ac_cv_prog_YACC
1.1 millert 22478: if test -n "$YACC"; then
1.16 millert 22479: echo "$as_me:$LINENO: result: $YACC" >&5
1.9 millert 22480: echo "${ECHO_T}$YACC" >&6
1.1 millert 22481: else
1.16 millert 22482: echo "$as_me:$LINENO: result: no" >&5
1.9 millert 22483: echo "${ECHO_T}no" >&6
1.1 millert 22484: fi
22485:
1.9 millert 22486: test -n "$YACC" && break
1.1 millert 22487: done
22488: test -n "$YACC" || YACC="yacc"
22489:
1.16 millert 22490: echo "$as_me:$LINENO: checking for mv" >&5
1.9 millert 22491: echo $ECHO_N "checking for mv... $ECHO_C" >&6
1.1 millert 22492: if test -f "/usr/bin/mv"; then
1.16 millert 22493: echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
1.9 millert 22494: echo "${ECHO_T}/usr/bin/mv" >&6
22495: cat >>confdefs.h <<\EOF
1.1 millert 22496: #define _PATH_MV "/usr/bin/mv"
22497: EOF
22498:
22499: elif test -f "/bin/mv"; then
1.16 millert 22500: echo "$as_me:$LINENO: result: /bin/mv" >&5
1.9 millert 22501: echo "${ECHO_T}/bin/mv" >&6
22502: cat >>confdefs.h <<\EOF
1.1 millert 22503: #define _PATH_MV "/bin/mv"
22504: EOF
22505:
22506: elif test -f "/usr/ucb/mv"; then
1.16 millert 22507: echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
1.9 millert 22508: echo "${ECHO_T}/usr/ucb/mv" >&6
22509: cat >>confdefs.h <<\EOF
1.1 millert 22510: #define _PATH_MV "/usr/ucb/mv"
22511: EOF
22512:
22513: elif test -f "/usr/sbin/mv"; then
1.16 millert 22514: echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
1.9 millert 22515: echo "${ECHO_T}/usr/sbin/mv" >&6
22516: cat >>confdefs.h <<\EOF
1.1 millert 22517: #define _PATH_MV "/usr/sbin/mv"
22518: EOF
22519:
22520: else
1.16 millert 22521: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 22522: echo "${ECHO_T}not found" >&6
1.1 millert 22523: fi
22524:
1.16 millert 22525: echo "$as_me:$LINENO: checking for bourne shell" >&5
1.9 millert 22526: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6
1.1 millert 22527: if test -f "/bin/sh"; then
1.16 millert 22528: echo "$as_me:$LINENO: result: /bin/sh" >&5
1.9 millert 22529: echo "${ECHO_T}/bin/sh" >&6
22530: cat >>confdefs.h <<\EOF
1.1 millert 22531: #define _PATH_BSHELL "/bin/sh"
22532: EOF
22533:
22534: elif test -f "/usr/bin/sh"; then
1.16 millert 22535: echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
1.9 millert 22536: echo "${ECHO_T}/usr/bin/sh" >&6
22537: cat >>confdefs.h <<\EOF
1.1 millert 22538: #define _PATH_BSHELL "/usr/bin/sh"
22539: EOF
22540:
22541: elif test -f "/sbin/sh"; then
1.16 millert 22542: echo "$as_me:$LINENO: result: /sbin/sh" >&5
1.9 millert 22543: echo "${ECHO_T}/sbin/sh" >&6
22544: cat >>confdefs.h <<\EOF
1.1 millert 22545: #define _PATH_BSHELL "/sbin/sh"
22546: EOF
22547:
22548: elif test -f "/usr/sbin/sh"; then
1.16 millert 22549: echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
1.9 millert 22550: echo "${ECHO_T}/usr/sbin/sh" >&6
22551: cat >>confdefs.h <<\EOF
1.1 millert 22552: #define _PATH_BSHELL "/usr/sbin/sh"
22553: EOF
22554:
22555: elif test -f "/bin/ksh"; then
1.16 millert 22556: echo "$as_me:$LINENO: result: /bin/ksh" >&5
1.9 millert 22557: echo "${ECHO_T}/bin/ksh" >&6
22558: cat >>confdefs.h <<\EOF
1.1 millert 22559: #define _PATH_BSHELL "/bin/ksh"
22560: EOF
22561:
22562: elif test -f "/usr/bin/ksh"; then
1.16 millert 22563: echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
1.9 millert 22564: echo "${ECHO_T}/usr/bin/ksh" >&6
22565: cat >>confdefs.h <<\EOF
1.1 millert 22566: #define _PATH_BSHELL "/usr/bin/ksh"
22567: EOF
22568:
22569: elif test -f "/bin/bash"; then
1.16 millert 22570: echo "$as_me:$LINENO: result: /bin/bash" >&5
1.9 millert 22571: echo "${ECHO_T}/bin/bash" >&6
22572: cat >>confdefs.h <<\EOF
1.1 millert 22573: #define _PATH_BSHELL "/bin/bash"
22574: EOF
22575:
22576: elif test -f "/usr/bin/bash"; then
1.16 millert 22577: echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
1.9 millert 22578: echo "${ECHO_T}/usr/bin/bash" >&6
22579: cat >>confdefs.h <<\EOF
1.1 millert 22580: #define _PATH_BSHELL "/usr/bin/bash"
22581: EOF
22582:
22583: else
1.16 millert 22584: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 22585: echo "${ECHO_T}not found" >&6
22586: fi
22587:
22588: if test -z "$with_sendmail"; then
1.16 millert 22589: echo "$as_me:$LINENO: checking for sendmail" >&5
1.9 millert 22590: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6
22591: if test -f "/usr/sbin/sendmail"; then
1.16 millert 22592: echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
1.9 millert 22593: echo "${ECHO_T}/usr/sbin/sendmail" >&6
22594: cat >>confdefs.h <<\EOF
22595: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
22596: EOF
22597:
22598: elif test -f "/usr/lib/sendmail"; then
1.16 millert 22599: echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
1.9 millert 22600: echo "${ECHO_T}/usr/lib/sendmail" >&6
22601: cat >>confdefs.h <<\EOF
22602: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
22603: EOF
22604:
22605: elif test -f "/usr/etc/sendmail"; then
1.16 millert 22606: echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
1.9 millert 22607: echo "${ECHO_T}/usr/etc/sendmail" >&6
22608: cat >>confdefs.h <<\EOF
22609: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
22610: EOF
22611:
22612: elif test -f "/usr/ucblib/sendmail"; then
1.16 millert 22613: echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
1.9 millert 22614: echo "${ECHO_T}/usr/ucblib/sendmail" >&6
22615: cat >>confdefs.h <<\EOF
22616: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
22617: EOF
22618:
22619: elif test -f "/usr/local/lib/sendmail"; then
1.16 millert 22620: echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
1.9 millert 22621: echo "${ECHO_T}/usr/local/lib/sendmail" >&6
22622: cat >>confdefs.h <<\EOF
22623: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
22624: EOF
22625:
22626: elif test -f "/usr/local/bin/sendmail"; then
1.16 millert 22627: echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
1.9 millert 22628: echo "${ECHO_T}/usr/local/bin/sendmail" >&6
22629: cat >>confdefs.h <<\EOF
22630: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
22631: EOF
22632:
22633: else
1.16 millert 22634: echo "$as_me:$LINENO: result: not found" >&5
1.9 millert 22635: echo "${ECHO_T}not found" >&6
1.1 millert 22636: fi
22637:
1.9 millert 22638: fi
22639: if test -z "$with_editor"; then
1.16 millert 22640: echo "$as_me:$LINENO: checking for vi" >&5
1.9 millert 22641: echo $ECHO_N "checking for vi... $ECHO_C" >&6
1.1 millert 22642: if test -f "/usr/bin/vi"; then
1.16 millert 22643: echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
1.9 millert 22644: echo "${ECHO_T}/usr/bin/vi" >&6
22645: cat >>confdefs.h <<\EOF
1.1 millert 22646: #define _PATH_VI "/usr/bin/vi"
22647: EOF
22648:
22649: elif test -f "/usr/ucb/vi"; then
1.16 millert 22650: echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
1.9 millert 22651: echo "${ECHO_T}/usr/ucb/vi" >&6
22652: cat >>confdefs.h <<\EOF
1.1 millert 22653: #define _PATH_VI "/usr/ucb/vi"
22654: EOF
22655:
22656: elif test -f "/usr/bsd/vi"; then
1.16 millert 22657: echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
1.9 millert 22658: echo "${ECHO_T}/usr/bsd/vi" >&6
22659: cat >>confdefs.h <<\EOF
1.1 millert 22660: #define _PATH_VI "/usr/bsd/vi"
22661: EOF
22662:
22663: elif test -f "/bin/vi"; then
1.16 millert 22664: echo "$as_me:$LINENO: result: /bin/vi" >&5
1.9 millert 22665: echo "${ECHO_T}/bin/vi" >&6
22666: cat >>confdefs.h <<\EOF
1.1 millert 22667: #define _PATH_VI "/bin/vi"
1.23 ! millert 22668: EOF
! 22669:
! 22670: elif test -f "/usr/local/bin/vi"; then
! 22671: echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
! 22672: echo "${ECHO_T}/usr/local/bin/vi" >&6
! 22673: cat >>confdefs.h <<\EOF
! 22674: #define _PATH_VI "/usr/local/bin/vi"
! 22675: EOF
! 22676:
! 22677: else
! 22678: echo "$as_me:$LINENO: result: not found" >&5
! 22679: echo "${ECHO_T}not found" >&6
! 22680: fi
! 22681:
! 22682: fi
! 22683: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
! 22684: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
! 22685: if test "${ac_cv_header_stdc+set}" = set; then
! 22686: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22687: else
! 22688: cat >conftest.$ac_ext <<_ACEOF
! 22689: #line $LINENO "configure"
! 22690: /* confdefs.h. */
! 22691: _ACEOF
! 22692: cat confdefs.h >>conftest.$ac_ext
! 22693: cat >>conftest.$ac_ext <<_ACEOF
! 22694: /* end confdefs.h. */
! 22695: #include <stdlib.h>
! 22696: #include <stdarg.h>
! 22697: #include <string.h>
! 22698: #include <float.h>
! 22699:
! 22700: int
! 22701: main ()
! 22702: {
! 22703:
! 22704: ;
! 22705: return 0;
! 22706: }
! 22707: _ACEOF
! 22708: rm -f conftest.$ac_objext
! 22709: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 22710: (eval $ac_compile) 2>&5
! 22711: ac_status=$?
! 22712: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22713: (exit $ac_status); } &&
! 22714: { ac_try='test -s conftest.$ac_objext'
! 22715: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 22716: (eval $ac_try) 2>&5
! 22717: ac_status=$?
! 22718: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22719: (exit $ac_status); }; }; then
! 22720: ac_cv_header_stdc=yes
! 22721: else
! 22722: echo "$as_me: failed program was:" >&5
! 22723: sed 's/^/| /' conftest.$ac_ext >&5
! 22724:
! 22725: ac_cv_header_stdc=no
! 22726: fi
! 22727: rm -f conftest.$ac_objext conftest.$ac_ext
! 22728:
! 22729: if test $ac_cv_header_stdc = yes; then
! 22730: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
! 22731: cat >conftest.$ac_ext <<_ACEOF
! 22732: #line $LINENO "configure"
! 22733: /* confdefs.h. */
! 22734: _ACEOF
! 22735: cat confdefs.h >>conftest.$ac_ext
! 22736: cat >>conftest.$ac_ext <<_ACEOF
! 22737: /* end confdefs.h. */
! 22738: #include <string.h>
! 22739:
! 22740: _ACEOF
! 22741: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 22742: $EGREP "memchr" >/dev/null 2>&1; then
! 22743: :
! 22744: else
! 22745: ac_cv_header_stdc=no
! 22746: fi
! 22747: rm -f conftest*
! 22748:
! 22749: fi
! 22750:
! 22751: if test $ac_cv_header_stdc = yes; then
! 22752: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
! 22753: cat >conftest.$ac_ext <<_ACEOF
! 22754: #line $LINENO "configure"
! 22755: /* confdefs.h. */
! 22756: _ACEOF
! 22757: cat confdefs.h >>conftest.$ac_ext
! 22758: cat >>conftest.$ac_ext <<_ACEOF
! 22759: /* end confdefs.h. */
! 22760: #include <stdlib.h>
! 22761:
! 22762: _ACEOF
! 22763: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 22764: $EGREP "free" >/dev/null 2>&1; then
! 22765: :
! 22766: else
! 22767: ac_cv_header_stdc=no
! 22768: fi
! 22769: rm -f conftest*
! 22770:
! 22771: fi
! 22772:
! 22773: if test $ac_cv_header_stdc = yes; then
! 22774: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
! 22775: if test "$cross_compiling" = yes; then
! 22776: :
! 22777: else
! 22778: cat >conftest.$ac_ext <<_ACEOF
! 22779: #line $LINENO "configure"
! 22780: /* confdefs.h. */
! 22781: _ACEOF
! 22782: cat confdefs.h >>conftest.$ac_ext
! 22783: cat >>conftest.$ac_ext <<_ACEOF
! 22784: /* end confdefs.h. */
! 22785: #include <ctype.h>
! 22786: #if ((' ' & 0x0FF) == 0x020)
! 22787: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
! 22788: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
! 22789: #else
! 22790: # define ISLOWER(c) \
! 22791: (('a' <= (c) && (c) <= 'i') \
! 22792: || ('j' <= (c) && (c) <= 'r') \
! 22793: || ('s' <= (c) && (c) <= 'z'))
! 22794: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
! 22795: #endif
! 22796:
! 22797: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
! 22798: int
! 22799: main ()
! 22800: {
! 22801: int i;
! 22802: for (i = 0; i < 256; i++)
! 22803: if (XOR (islower (i), ISLOWER (i))
! 22804: || toupper (i) != TOUPPER (i))
! 22805: exit(2);
! 22806: exit (0);
! 22807: }
! 22808: _ACEOF
! 22809: rm -f conftest$ac_exeext
! 22810: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 22811: (eval $ac_link) 2>&5
! 22812: ac_status=$?
! 22813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22814: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 22815: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 22816: (eval $ac_try) 2>&5
! 22817: ac_status=$?
! 22818: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22819: (exit $ac_status); }; }; then
! 22820: :
! 22821: else
! 22822: echo "$as_me: program exited with status $ac_status" >&5
! 22823: echo "$as_me: failed program was:" >&5
! 22824: sed 's/^/| /' conftest.$ac_ext >&5
! 22825:
! 22826: ( exit $ac_status )
! 22827: ac_cv_header_stdc=no
! 22828: fi
! 22829: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 22830: fi
! 22831: fi
! 22832: fi
! 22833: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
! 22834: echo "${ECHO_T}$ac_cv_header_stdc" >&6
! 22835: if test $ac_cv_header_stdc = yes; then
! 22836:
! 22837: cat >>confdefs.h <<\_ACEOF
! 22838: #define STDC_HEADERS 1
! 22839: _ACEOF
! 22840:
! 22841: fi
! 22842:
! 22843:
! 22844:
! 22845:
! 22846:
! 22847:
! 22848: ac_header_dirent=no
! 22849: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
! 22850: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
! 22851: echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
! 22852: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
! 22853: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 22854: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22855: else
! 22856: cat >conftest.$ac_ext <<_ACEOF
! 22857: #line $LINENO "configure"
! 22858: /* confdefs.h. */
! 22859: _ACEOF
! 22860: cat confdefs.h >>conftest.$ac_ext
! 22861: cat >>conftest.$ac_ext <<_ACEOF
! 22862: /* end confdefs.h. */
! 22863: #include <sys/types.h>
! 22864: #include <$ac_hdr>
! 22865:
! 22866: int
! 22867: main ()
! 22868: {
! 22869: if ((DIR *) 0)
! 22870: return 0;
! 22871: ;
! 22872: return 0;
! 22873: }
! 22874: _ACEOF
! 22875: rm -f conftest.$ac_objext
! 22876: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 22877: (eval $ac_compile) 2>&5
! 22878: ac_status=$?
! 22879: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22880: (exit $ac_status); } &&
! 22881: { ac_try='test -s conftest.$ac_objext'
! 22882: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 22883: (eval $ac_try) 2>&5
! 22884: ac_status=$?
! 22885: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22886: (exit $ac_status); }; }; then
! 22887: eval "$as_ac_Header=yes"
! 22888: else
! 22889: echo "$as_me: failed program was:" >&5
! 22890: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 22891:
1.23 ! millert 22892: eval "$as_ac_Header=no"
! 22893: fi
! 22894: rm -f conftest.$ac_objext conftest.$ac_ext
! 22895: fi
! 22896: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 22897: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 22898: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 22899: cat >>confdefs.h <<_ACEOF
! 22900: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
! 22901: _ACEOF
1.1 millert 22902:
1.23 ! millert 22903: ac_header_dirent=$ac_hdr; break
1.1 millert 22904: fi
22905:
1.23 ! millert 22906: done
! 22907: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
! 22908: if test $ac_header_dirent = dirent.h; then
! 22909: echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 22910: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
! 22911: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 22912: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 22913: else
1.23 ! millert 22914: ac_func_search_save_LIBS=$LIBS
! 22915: ac_cv_search_opendir=no
! 22916: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22917: #line $LINENO "configure"
22918: /* confdefs.h. */
22919: _ACEOF
22920: cat confdefs.h >>conftest.$ac_ext
22921: cat >>conftest.$ac_ext <<_ACEOF
22922: /* end confdefs.h. */
1.9 millert 22923:
1.23 ! millert 22924: /* Override any gcc2 internal prototype to avoid an error. */
! 22925: #ifdef __cplusplus
! 22926: extern "C"
! 22927: #endif
! 22928: /* We use char because int might match the return type of a gcc2
! 22929: builtin and then its argument prototype would still apply. */
! 22930: char opendir ();
1.16 millert 22931: int
22932: main ()
22933: {
1.23 ! millert 22934: opendir ();
1.16 millert 22935: ;
22936: return 0;
22937: }
1.9 millert 22938: _ACEOF
1.23 ! millert 22939: rm -f conftest.$ac_objext conftest$ac_exeext
! 22940: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 22941: (eval $ac_link) 2>&5
1.16 millert 22942: ac_status=$?
22943: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944: (exit $ac_status); } &&
1.23 ! millert 22945: { ac_try='test -s conftest$ac_exeext'
1.16 millert 22946: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947: (eval $ac_try) 2>&5
1.9 millert 22948: ac_status=$?
1.16 millert 22949: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950: (exit $ac_status); }; }; then
1.23 ! millert 22951: ac_cv_search_opendir="none required"
1.1 millert 22952: else
1.9 millert 22953: echo "$as_me: failed program was:" >&5
1.16 millert 22954: sed 's/^/| /' conftest.$ac_ext >&5
22955:
1.1 millert 22956: fi
1.23 ! millert 22957: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 22958: if test "$ac_cv_search_opendir" = no; then
! 22959: for ac_lib in dir; do
! 22960: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 22961: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22962: #line $LINENO "configure"
22963: /* confdefs.h. */
22964: _ACEOF
22965: cat confdefs.h >>conftest.$ac_ext
22966: cat >>conftest.$ac_ext <<_ACEOF
22967: /* end confdefs.h. */
1.9 millert 22968:
1.23 ! millert 22969: /* Override any gcc2 internal prototype to avoid an error. */
! 22970: #ifdef __cplusplus
! 22971: extern "C"
! 22972: #endif
! 22973: /* We use char because int might match the return type of a gcc2
! 22974: builtin and then its argument prototype would still apply. */
! 22975: char opendir ();
! 22976: int
! 22977: main ()
! 22978: {
! 22979: opendir ();
! 22980: ;
! 22981: return 0;
! 22982: }
1.9 millert 22983: _ACEOF
1.23 ! millert 22984: rm -f conftest.$ac_objext conftest$ac_exeext
! 22985: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 22986: (eval $ac_link) 2>&5
! 22987: ac_status=$?
! 22988: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22989: (exit $ac_status); } &&
! 22990: { ac_try='test -s conftest$ac_exeext'
! 22991: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 22992: (eval $ac_try) 2>&5
! 22993: ac_status=$?
! 22994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 22995: (exit $ac_status); }; }; then
! 22996: ac_cv_search_opendir="-l$ac_lib"
! 22997: break
1.1 millert 22998: else
1.23 ! millert 22999: echo "$as_me: failed program was:" >&5
! 23000: sed 's/^/| /' conftest.$ac_ext >&5
! 23001:
! 23002: fi
! 23003: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 23004: done
! 23005: fi
! 23006: LIBS=$ac_func_search_save_LIBS
1.1 millert 23007: fi
1.23 ! millert 23008: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 23009: echo "${ECHO_T}$ac_cv_search_opendir" >&6
! 23010: if test "$ac_cv_search_opendir" != no; then
! 23011: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
1.1 millert 23012:
23013: fi
23014:
1.23 ! millert 23015: else
! 23016: echo "$as_me:$LINENO: checking for library containing opendir" >&5
! 23017: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
! 23018: if test "${ac_cv_search_opendir+set}" = set; then
! 23019: echo $ECHO_N "(cached) $ECHO_C" >&6
! 23020: else
! 23021: ac_func_search_save_LIBS=$LIBS
! 23022: ac_cv_search_opendir=no
! 23023: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 23024: #line $LINENO "configure"
23025: /* confdefs.h. */
23026: _ACEOF
23027: cat confdefs.h >>conftest.$ac_ext
23028: cat >>conftest.$ac_ext <<_ACEOF
23029: /* end confdefs.h. */
1.9 millert 23030:
1.23 ! millert 23031: /* Override any gcc2 internal prototype to avoid an error. */
! 23032: #ifdef __cplusplus
! 23033: extern "C"
! 23034: #endif
! 23035: /* We use char because int might match the return type of a gcc2
! 23036: builtin and then its argument prototype would still apply. */
! 23037: char opendir ();
! 23038: int
! 23039: main ()
! 23040: {
! 23041: opendir ();
! 23042: ;
! 23043: return 0;
! 23044: }
1.9 millert 23045: _ACEOF
1.23 ! millert 23046: rm -f conftest.$ac_objext conftest$ac_exeext
! 23047: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 23048: (eval $ac_link) 2>&5
! 23049: ac_status=$?
! 23050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23051: (exit $ac_status); } &&
! 23052: { ac_try='test -s conftest$ac_exeext'
! 23053: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 23054: (eval $ac_try) 2>&5
! 23055: ac_status=$?
! 23056: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23057: (exit $ac_status); }; }; then
! 23058: ac_cv_search_opendir="none required"
1.1 millert 23059: else
1.23 ! millert 23060: echo "$as_me: failed program was:" >&5
! 23061: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 23062:
23063: fi
1.23 ! millert 23064: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 23065: if test "$ac_cv_search_opendir" = no; then
! 23066: for ac_lib in x; do
! 23067: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
! 23068: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 23069: #line $LINENO "configure"
23070: /* confdefs.h. */
23071: _ACEOF
23072: cat confdefs.h >>conftest.$ac_ext
23073: cat >>conftest.$ac_ext <<_ACEOF
23074: /* end confdefs.h. */
1.23 ! millert 23075:
! 23076: /* Override any gcc2 internal prototype to avoid an error. */
! 23077: #ifdef __cplusplus
! 23078: extern "C"
1.9 millert 23079: #endif
1.23 ! millert 23080: /* We use char because int might match the return type of a gcc2
! 23081: builtin and then its argument prototype would still apply. */
! 23082: char opendir ();
1.9 millert 23083: int
23084: main ()
23085: {
1.23 ! millert 23086: opendir ();
! 23087: ;
! 23088: return 0;
1.9 millert 23089: }
23090: _ACEOF
1.23 ! millert 23091: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 23092: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 23093: (eval $ac_link) 2>&5
23094: ac_status=$?
1.16 millert 23095: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 23096: (exit $ac_status); } &&
! 23097: { ac_try='test -s conftest$ac_exeext'
1.16 millert 23098: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 23099: (eval $ac_try) 2>&5
23100: ac_status=$?
1.16 millert 23101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 23102: (exit $ac_status); }; }; then
1.23 ! millert 23103: ac_cv_search_opendir="-l$ac_lib"
! 23104: break
1.1 millert 23105: else
1.23 ! millert 23106: echo "$as_me: failed program was:" >&5
1.16 millert 23107: sed 's/^/| /' conftest.$ac_ext >&5
23108:
1.1 millert 23109: fi
1.23 ! millert 23110: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 23111: done
! 23112: fi
! 23113: LIBS=$ac_func_search_save_LIBS
1.1 millert 23114: fi
1.23 ! millert 23115: echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
! 23116: echo "${ECHO_T}$ac_cv_search_opendir" >&6
! 23117: if test "$ac_cv_search_opendir" != no; then
! 23118: test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
! 23119:
1.1 millert 23120: fi
1.23 ! millert 23121:
1.1 millert 23122: fi
23123:
23124:
23125:
1.16 millert 23126:
23127:
23128:
23129:
23130:
1.23 ! millert 23131: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
! 23132: do
! 23133: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 23134: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 23135: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 23136: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1.9 millert 23137: if eval "test \"\${$as_ac_Header+set}\" = set"; then
23138: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 ! millert 23139: fi
! 23140: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 23141: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 millert 23142: else
1.23 ! millert 23143: # Is the header compilable?
! 23144: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 23145: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 23146: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 23147: #line $LINENO "configure"
23148: /* confdefs.h. */
23149: _ACEOF
23150: cat confdefs.h >>conftest.$ac_ext
23151: cat >>conftest.$ac_ext <<_ACEOF
1.23 ! millert 23152: /* end confdefs.h. */
! 23153: $ac_includes_default
! 23154: #include <$ac_header>
1.9 millert 23155: _ACEOF
23156: rm -f conftest.$ac_objext
1.16 millert 23157: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 23158: (eval $ac_compile) 2>&5
23159: ac_status=$?
1.16 millert 23160: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 23161: (exit $ac_status); } &&
23162: { ac_try='test -s conftest.$ac_objext'
1.16 millert 23163: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 23164: (eval $ac_try) 2>&5
23165: ac_status=$?
1.16 millert 23166: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 23167: (exit $ac_status); }; }; then
1.23 ! millert 23168: ac_header_compiler=yes
1.9 millert 23169: else
23170: echo "$as_me: failed program was:" >&5
1.16 millert 23171: sed 's/^/| /' conftest.$ac_ext >&5
23172:
1.23 ! millert 23173: ac_header_compiler=no
1.9 millert 23174: fi
23175: rm -f conftest.$ac_objext conftest.$ac_ext
1.23 ! millert 23176: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 23177: echo "${ECHO_T}$ac_header_compiler" >&6
! 23178:
! 23179: # Is the header present?
! 23180: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 23181: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 23182: cat >conftest.$ac_ext <<_ACEOF
! 23183: #line $LINENO "configure"
! 23184: /* confdefs.h. */
! 23185: _ACEOF
! 23186: cat confdefs.h >>conftest.$ac_ext
! 23187: cat >>conftest.$ac_ext <<_ACEOF
! 23188: /* end confdefs.h. */
! 23189: #include <$ac_header>
! 23190: _ACEOF
! 23191: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 23192: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 23193: ac_status=$?
! 23194: grep -v '^ *+' conftest.er1 >conftest.err
! 23195: rm -f conftest.er1
! 23196: cat conftest.err >&5
! 23197: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23198: (exit $ac_status); } >/dev/null; then
! 23199: if test -s conftest.err; then
! 23200: ac_cpp_err=$ac_c_preproc_warn_flag
! 23201: else
! 23202: ac_cpp_err=
! 23203: fi
! 23204: else
! 23205: ac_cpp_err=yes
! 23206: fi
! 23207: if test -z "$ac_cpp_err"; then
! 23208: ac_header_preproc=yes
! 23209: else
! 23210: echo "$as_me: failed program was:" >&5
! 23211: sed 's/^/| /' conftest.$ac_ext >&5
! 23212:
! 23213: ac_header_preproc=no
! 23214: fi
! 23215: rm -f conftest.err conftest.$ac_ext
! 23216: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 23217: echo "${ECHO_T}$ac_header_preproc" >&6
! 23218:
! 23219: # So? What about this header?
! 23220: case $ac_header_compiler:$ac_header_preproc in
! 23221: yes:no )
! 23222: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 23223: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 23224: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 23225: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 23226: (
! 23227: cat <<\_ASBOX
! 23228: ## ------------------------------------ ##
! 23229: ## Report this to bug-autoconf@gnu.org. ##
! 23230: ## ------------------------------------ ##
! 23231: _ASBOX
! 23232: ) |
! 23233: sed "s/^/$as_me: WARNING: /" >&2
! 23234: ;;
! 23235: no:yes )
! 23236: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 23237: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 23238: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 23239: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 23240: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 23241: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 23242: (
! 23243: cat <<\_ASBOX
! 23244: ## ------------------------------------ ##
! 23245: ## Report this to bug-autoconf@gnu.org. ##
! 23246: ## ------------------------------------ ##
! 23247: _ASBOX
! 23248: ) |
! 23249: sed "s/^/$as_me: WARNING: /" >&2
! 23250: ;;
! 23251: esac
! 23252: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 23253: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 23254: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 23255: echo $ECHO_N "(cached) $ECHO_C" >&6
! 23256: else
! 23257: eval "$as_ac_Header=$ac_header_preproc"
1.9 millert 23258: fi
1.16 millert 23259: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 23260: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.23 ! millert 23261:
! 23262: fi
1.9 millert 23263: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 23264: cat >>confdefs.h <<_ACEOF
1.23 ! millert 23265: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 23266: _ACEOF
1.9 millert 23267:
1.1 millert 23268: fi
1.9 millert 23269:
1.1 millert 23270: done
1.23 ! millert 23271:
! 23272:
! 23273: for ac_header in err.h
! 23274: do
! 23275: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 23276: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 23277: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 23278: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 23279: if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.9 millert 23280: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 ! millert 23281: fi
! 23282: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 23283: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.1 millert 23284: else
1.23 ! millert 23285: # Is the header compilable?
! 23286: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 23287: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.9 millert 23288: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 23289: #line $LINENO "configure"
23290: /* confdefs.h. */
23291: _ACEOF
23292: cat confdefs.h >>conftest.$ac_ext
23293: cat >>conftest.$ac_ext <<_ACEOF
23294: /* end confdefs.h. */
1.23 ! millert 23295: $ac_includes_default
! 23296: #include <$ac_header>
1.16 millert 23297: _ACEOF
1.23 ! millert 23298: rm -f conftest.$ac_objext
! 23299: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 23300: (eval $ac_compile) 2>&5
1.16 millert 23301: ac_status=$?
23302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303: (exit $ac_status); } &&
1.23 ! millert 23304: { ac_try='test -s conftest.$ac_objext'
1.16 millert 23305: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306: (eval $ac_try) 2>&5
23307: ac_status=$?
23308: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309: (exit $ac_status); }; }; then
1.23 ! millert 23310: ac_header_compiler=yes
1.16 millert 23311: else
23312: echo "$as_me: failed program was:" >&5
23313: sed 's/^/| /' conftest.$ac_ext >&5
23314:
1.23 ! millert 23315: ac_header_compiler=no
1.16 millert 23316: fi
1.23 ! millert 23317: rm -f conftest.$ac_objext conftest.$ac_ext
! 23318: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 23319: echo "${ECHO_T}$ac_header_compiler" >&6
! 23320:
! 23321: # Is the header present?
! 23322: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 23323: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 23324: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 23325: #line $LINENO "configure"
23326: /* confdefs.h. */
23327: _ACEOF
23328: cat confdefs.h >>conftest.$ac_ext
23329: cat >>conftest.$ac_ext <<_ACEOF
23330: /* end confdefs.h. */
1.23 ! millert 23331: #include <$ac_header>
1.9 millert 23332: _ACEOF
1.23 ! millert 23333: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 23334: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.9 millert 23335: ac_status=$?
1.23 ! millert 23336: grep -v '^ *+' conftest.er1 >conftest.err
! 23337: rm -f conftest.er1
! 23338: cat conftest.err >&5
1.16 millert 23339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 23340: (exit $ac_status); } >/dev/null; then
! 23341: if test -s conftest.err; then
! 23342: ac_cpp_err=$ac_c_preproc_warn_flag
! 23343: else
! 23344: ac_cpp_err=
! 23345: fi
! 23346: else
! 23347: ac_cpp_err=yes
! 23348: fi
! 23349: if test -z "$ac_cpp_err"; then
! 23350: ac_header_preproc=yes
! 23351: else
! 23352: echo "$as_me: failed program was:" >&5
! 23353: sed 's/^/| /' conftest.$ac_ext >&5
! 23354:
! 23355: ac_header_preproc=no
! 23356: fi
! 23357: rm -f conftest.err conftest.$ac_ext
! 23358: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 23359: echo "${ECHO_T}$ac_header_preproc" >&6
! 23360:
! 23361: # So? What about this header?
! 23362: case $ac_header_compiler:$ac_header_preproc in
! 23363: yes:no )
! 23364: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 23365: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 23366: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 23367: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 23368: (
! 23369: cat <<\_ASBOX
! 23370: ## ------------------------------------ ##
! 23371: ## Report this to bug-autoconf@gnu.org. ##
! 23372: ## ------------------------------------ ##
! 23373: _ASBOX
! 23374: ) |
! 23375: sed "s/^/$as_me: WARNING: /" >&2
! 23376: ;;
! 23377: no:yes )
! 23378: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 23379: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 23380: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 23381: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 23382: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 23383: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 23384: (
! 23385: cat <<\_ASBOX
! 23386: ## ------------------------------------ ##
! 23387: ## Report this to bug-autoconf@gnu.org. ##
! 23388: ## ------------------------------------ ##
! 23389: _ASBOX
! 23390: ) |
! 23391: sed "s/^/$as_me: WARNING: /" >&2
! 23392: ;;
! 23393: esac
! 23394: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 23395: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 23396: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 23397: echo $ECHO_N "(cached) $ECHO_C" >&6
1.9 millert 23398: else
1.23 ! millert 23399: eval "$as_ac_Header=$ac_header_preproc"
! 23400: fi
! 23401: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 23402: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 23403:
1.9 millert 23404: fi
1.23 ! millert 23405: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 23406: cat >>confdefs.h <<_ACEOF
! 23407: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 23408: _ACEOF
! 23409:
! 23410: else
! 23411: LIBOBJS="$LIBOBJS err.$ac_objext"
1.16 millert 23412: fi
23413:
1.23 ! millert 23414: done
1.1 millert 23415:
1.23 ! millert 23416: if test "$OS" != "ultrix"; then
! 23417: echo "$as_me:$LINENO: checking POSIX termios" >&5
! 23418: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
! 23419: if test "${ac_cv_sys_posix_termios+set}" = set; then
1.9 millert 23420: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 23421: else
1.23 ! millert 23422: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 23423: #line $LINENO "configure"
23424: /* confdefs.h. */
23425: _ACEOF
23426: cat confdefs.h >>conftest.$ac_ext
23427: cat >>conftest.$ac_ext <<_ACEOF
23428: /* end confdefs.h. */
1.23 ! millert 23429: #include <sys/types.h>
! 23430: #include <unistd.h>
! 23431: #include <termios.h>
1.16 millert 23432:
23433: int
23434: main ()
23435: {
1.23 ! millert 23436: /* SunOS 4.0.3 has termios.h but not the library calls. */
! 23437: tcgetattr(0, 0);
1.16 millert 23438: ;
23439: return 0;
23440: }
23441: _ACEOF
23442: rm -f conftest.$ac_objext conftest$ac_exeext
23443: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444: (eval $ac_link) 2>&5
23445: ac_status=$?
23446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447: (exit $ac_status); } &&
23448: { ac_try='test -s conftest$ac_exeext'
23449: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450: (eval $ac_try) 2>&5
23451: ac_status=$?
23452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453: (exit $ac_status); }; }; then
1.23 ! millert 23454: ac_cv_sys_posix_termios=yes
1.16 millert 23455: else
23456: echo "$as_me: failed program was:" >&5
23457: sed 's/^/| /' conftest.$ac_ext >&5
23458:
1.23 ! millert 23459: ac_cv_sys_posix_termios=no
1.16 millert 23460: fi
23461: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.23 ! millert 23462: fi
! 23463: echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
! 23464: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
1.9 millert 23465:
1.23 ! millert 23466: if test "$ac_cv_sys_posix_termios" = "yes"; then
! 23467: cat >>confdefs.h <<\_ACEOF
! 23468: #define HAVE_TERMIOS_H 1
1.9 millert 23469: _ACEOF
1.16 millert 23470:
1.23 ! millert 23471: else
1.16 millert 23472:
1.23 ! millert 23473: for ac_header in termio.h
1.16 millert 23474: do
23475: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.23 ! millert 23476: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 23477: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.16 millert 23478: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479: if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 ! millert 23481: fi
! 23482: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 23483: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 23484: else
1.23 ! millert 23485: # Is the header compilable?
! 23486: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 23487: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 23488: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 23489: #line $LINENO "configure"
23490: /* confdefs.h. */
23491: _ACEOF
23492: cat confdefs.h >>conftest.$ac_ext
23493: cat >>conftest.$ac_ext <<_ACEOF
23494: /* end confdefs.h. */
23495: $ac_includes_default
23496: #include <$ac_header>
23497: _ACEOF
23498: rm -f conftest.$ac_objext
23499: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23500: (eval $ac_compile) 2>&5
23501: ac_status=$?
23502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503: (exit $ac_status); } &&
23504: { ac_try='test -s conftest.$ac_objext'
23505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506: (eval $ac_try) 2>&5
23507: ac_status=$?
23508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509: (exit $ac_status); }; }; then
1.23 ! millert 23510: ac_header_compiler=yes
1.16 millert 23511: else
23512: echo "$as_me: failed program was:" >&5
23513: sed 's/^/| /' conftest.$ac_ext >&5
23514:
1.23 ! millert 23515: ac_header_compiler=no
1.9 millert 23516: fi
1.16 millert 23517: rm -f conftest.$ac_objext conftest.$ac_ext
1.23 ! millert 23518: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 23519: echo "${ECHO_T}$ac_header_compiler" >&6
! 23520:
! 23521: # Is the header present?
! 23522: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 23523: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 23524: cat >conftest.$ac_ext <<_ACEOF
! 23525: #line $LINENO "configure"
! 23526: /* confdefs.h. */
! 23527: _ACEOF
! 23528: cat confdefs.h >>conftest.$ac_ext
! 23529: cat >>conftest.$ac_ext <<_ACEOF
! 23530: /* end confdefs.h. */
! 23531: #include <$ac_header>
! 23532: _ACEOF
! 23533: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 23534: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 23535: ac_status=$?
! 23536: grep -v '^ *+' conftest.er1 >conftest.err
! 23537: rm -f conftest.er1
! 23538: cat conftest.err >&5
! 23539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23540: (exit $ac_status); } >/dev/null; then
! 23541: if test -s conftest.err; then
! 23542: ac_cpp_err=$ac_c_preproc_warn_flag
! 23543: else
! 23544: ac_cpp_err=
! 23545: fi
! 23546: else
! 23547: ac_cpp_err=yes
! 23548: fi
! 23549: if test -z "$ac_cpp_err"; then
! 23550: ac_header_preproc=yes
! 23551: else
! 23552: echo "$as_me: failed program was:" >&5
! 23553: sed 's/^/| /' conftest.$ac_ext >&5
! 23554:
! 23555: ac_header_preproc=no
! 23556: fi
! 23557: rm -f conftest.err conftest.$ac_ext
! 23558: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 23559: echo "${ECHO_T}$ac_header_preproc" >&6
! 23560:
! 23561: # So? What about this header?
! 23562: case $ac_header_compiler:$ac_header_preproc in
! 23563: yes:no )
! 23564: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 23565: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 23566: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 23567: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 23568: (
! 23569: cat <<\_ASBOX
! 23570: ## ------------------------------------ ##
! 23571: ## Report this to bug-autoconf@gnu.org. ##
! 23572: ## ------------------------------------ ##
! 23573: _ASBOX
! 23574: ) |
! 23575: sed "s/^/$as_me: WARNING: /" >&2
! 23576: ;;
! 23577: no:yes )
! 23578: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 23579: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 23580: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 23581: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 23582: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 23583: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 23584: (
! 23585: cat <<\_ASBOX
! 23586: ## ------------------------------------ ##
! 23587: ## Report this to bug-autoconf@gnu.org. ##
! 23588: ## ------------------------------------ ##
! 23589: _ASBOX
! 23590: ) |
! 23591: sed "s/^/$as_me: WARNING: /" >&2
! 23592: ;;
! 23593: esac
! 23594: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 23595: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 23596: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 23597: echo $ECHO_N "(cached) $ECHO_C" >&6
! 23598: else
! 23599: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 23600: fi
1.16 millert 23601: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23602: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.23 ! millert 23603:
! 23604: fi
1.16 millert 23605: if test `eval echo '${'$as_ac_Header'}'` = yes; then
23606: cat >>confdefs.h <<_ACEOF
23607: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23608: _ACEOF
1.1 millert 23609:
23610: fi
23611:
1.16 millert 23612: done
23613:
1.23 ! millert 23614: fi
! 23615: fi
! 23616: if test "$with_logincap" = "yes"; then
1.16 millert 23617:
1.23 ! millert 23618: for ac_header in login_cap.h
1.1 millert 23619: do
1.9 millert 23620: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.16 millert 23621: if eval "test \"\${$as_ac_Header+set}\" = set"; then
23622: echo "$as_me:$LINENO: checking for $ac_header" >&5
1.9 millert 23623: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23624: if eval "test \"\${$as_ac_Header+set}\" = set"; then
23625: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 23626: fi
23627: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23628: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23629: else
23630: # Is the header compilable?
23631: echo "$as_me:$LINENO: checking $ac_header usability" >&5
23632: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23633: cat >conftest.$ac_ext <<_ACEOF
23634: #line $LINENO "configure"
23635: /* confdefs.h. */
23636: _ACEOF
23637: cat confdefs.h >>conftest.$ac_ext
23638: cat >>conftest.$ac_ext <<_ACEOF
23639: /* end confdefs.h. */
23640: $ac_includes_default
23641: #include <$ac_header>
23642: _ACEOF
23643: rm -f conftest.$ac_objext
23644: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23645: (eval $ac_compile) 2>&5
23646: ac_status=$?
23647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648: (exit $ac_status); } &&
23649: { ac_try='test -s conftest.$ac_objext'
23650: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23651: (eval $ac_try) 2>&5
23652: ac_status=$?
23653: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654: (exit $ac_status); }; }; then
23655: ac_header_compiler=yes
1.9 millert 23656: else
1.16 millert 23657: echo "$as_me: failed program was:" >&5
23658: sed 's/^/| /' conftest.$ac_ext >&5
23659:
23660: ac_header_compiler=no
23661: fi
23662: rm -f conftest.$ac_objext conftest.$ac_ext
23663: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23664: echo "${ECHO_T}$ac_header_compiler" >&6
23665:
23666: # Is the header present?
23667: echo "$as_me:$LINENO: checking $ac_header presence" >&5
23668: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23669: cat >conftest.$ac_ext <<_ACEOF
23670: #line $LINENO "configure"
23671: /* confdefs.h. */
23672: _ACEOF
23673: cat confdefs.h >>conftest.$ac_ext
23674: cat >>conftest.$ac_ext <<_ACEOF
23675: /* end confdefs.h. */
1.9 millert 23676: #include <$ac_header>
23677: _ACEOF
1.16 millert 23678: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.9 millert 23679: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23680: ac_status=$?
1.16 millert 23681: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 23682: rm -f conftest.er1
23683: cat conftest.err >&5
1.16 millert 23684: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 23685: (exit $ac_status); } >/dev/null; then
23686: if test -s conftest.err; then
23687: ac_cpp_err=$ac_c_preproc_warn_flag
23688: else
23689: ac_cpp_err=
23690: fi
1.1 millert 23691: else
1.9 millert 23692: ac_cpp_err=yes
23693: fi
23694: if test -z "$ac_cpp_err"; then
1.16 millert 23695: ac_header_preproc=yes
1.1 millert 23696: else
1.9 millert 23697: echo "$as_me: failed program was:" >&5
1.16 millert 23698: sed 's/^/| /' conftest.$ac_ext >&5
23699:
23700: ac_header_preproc=no
1.1 millert 23701: fi
1.9 millert 23702: rm -f conftest.err conftest.$ac_ext
1.16 millert 23703: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23704: echo "${ECHO_T}$ac_header_preproc" >&6
23705:
23706: # So? What about this header?
23707: case $ac_header_compiler:$ac_header_preproc in
23708: yes:no )
23709: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23710: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23711: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23712: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23713: (
23714: cat <<\_ASBOX
23715: ## ------------------------------------ ##
23716: ## Report this to bug-autoconf@gnu.org. ##
23717: ## ------------------------------------ ##
23718: _ASBOX
23719: ) |
23720: sed "s/^/$as_me: WARNING: /" >&2
23721: ;;
23722: no:yes )
23723: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23724: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23725: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23726: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23727: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23728: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23729: (
23730: cat <<\_ASBOX
23731: ## ------------------------------------ ##
23732: ## Report this to bug-autoconf@gnu.org. ##
23733: ## ------------------------------------ ##
23734: _ASBOX
23735: ) |
23736: sed "s/^/$as_me: WARNING: /" >&2
23737: ;;
23738: esac
23739: echo "$as_me:$LINENO: checking for $ac_header" >&5
23740: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23741: if eval "test \"\${$as_ac_Header+set}\" = set"; then
23742: echo $ECHO_N "(cached) $ECHO_C" >&6
23743: else
23744: eval "$as_ac_Header=$ac_header_preproc"
1.1 millert 23745: fi
1.16 millert 23746: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.9 millert 23747: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.16 millert 23748:
23749: fi
1.9 millert 23750: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.16 millert 23751: cat >>confdefs.h <<_ACEOF
1.9 millert 23752: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.16 millert 23753: _ACEOF
1.9 millert 23754:
1.1 millert 23755: fi
1.16 millert 23756:
1.1 millert 23757: done
23758:
1.23 ! millert 23759: fi
! 23760: if test "$with_bsdauth" = "yes"; then
! 23761: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
! 23762: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
! 23763: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
! 23764: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.18 millert 23765: echo $ECHO_N "(cached) $ECHO_C" >&6
23766: fi
1.23 ! millert 23767: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
! 23768: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
1.18 millert 23769: else
23770: # Is the header compilable?
1.23 ! millert 23771: echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
! 23772: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6
1.18 millert 23773: cat >conftest.$ac_ext <<_ACEOF
23774: #line $LINENO "configure"
23775: /* confdefs.h. */
23776: _ACEOF
23777: cat confdefs.h >>conftest.$ac_ext
23778: cat >>conftest.$ac_ext <<_ACEOF
23779: /* end confdefs.h. */
23780: $ac_includes_default
1.23 ! millert 23781: #include <bsd_auth.h>
1.18 millert 23782: _ACEOF
23783: rm -f conftest.$ac_objext
23784: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23785: (eval $ac_compile) 2>&5
23786: ac_status=$?
23787: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788: (exit $ac_status); } &&
23789: { ac_try='test -s conftest.$ac_objext'
23790: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791: (eval $ac_try) 2>&5
23792: ac_status=$?
23793: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794: (exit $ac_status); }; }; then
23795: ac_header_compiler=yes
23796: else
23797: echo "$as_me: failed program was:" >&5
23798: sed 's/^/| /' conftest.$ac_ext >&5
23799:
23800: ac_header_compiler=no
23801: fi
23802: rm -f conftest.$ac_objext conftest.$ac_ext
23803: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23804: echo "${ECHO_T}$ac_header_compiler" >&6
23805:
23806: # Is the header present?
1.23 ! millert 23807: echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
! 23808: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6
1.18 millert 23809: cat >conftest.$ac_ext <<_ACEOF
23810: #line $LINENO "configure"
23811: /* confdefs.h. */
23812: _ACEOF
23813: cat confdefs.h >>conftest.$ac_ext
23814: cat >>conftest.$ac_ext <<_ACEOF
23815: /* end confdefs.h. */
1.23 ! millert 23816: #include <bsd_auth.h>
1.18 millert 23817: _ACEOF
23818: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23819: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23820: ac_status=$?
23821: grep -v '^ *+' conftest.er1 >conftest.err
23822: rm -f conftest.er1
23823: cat conftest.err >&5
23824: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23825: (exit $ac_status); } >/dev/null; then
23826: if test -s conftest.err; then
23827: ac_cpp_err=$ac_c_preproc_warn_flag
23828: else
23829: ac_cpp_err=
23830: fi
23831: else
23832: ac_cpp_err=yes
23833: fi
23834: if test -z "$ac_cpp_err"; then
23835: ac_header_preproc=yes
23836: else
23837: echo "$as_me: failed program was:" >&5
23838: sed 's/^/| /' conftest.$ac_ext >&5
23839:
23840: ac_header_preproc=no
23841: fi
23842: rm -f conftest.err conftest.$ac_ext
23843: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23844: echo "${ECHO_T}$ac_header_preproc" >&6
23845:
23846: # So? What about this header?
23847: case $ac_header_compiler:$ac_header_preproc in
23848: yes:no )
1.23 ! millert 23849: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
! 23850: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 23851: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
! 23852: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
1.18 millert 23853: (
23854: cat <<\_ASBOX
23855: ## ------------------------------------ ##
23856: ## Report this to bug-autoconf@gnu.org. ##
23857: ## ------------------------------------ ##
23858: _ASBOX
23859: ) |
23860: sed "s/^/$as_me: WARNING: /" >&2
23861: ;;
23862: no:yes )
1.23 ! millert 23863: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
! 23864: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
! 23865: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
! 23866: echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
! 23867: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
! 23868: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
1.18 millert 23869: (
23870: cat <<\_ASBOX
23871: ## ------------------------------------ ##
23872: ## Report this to bug-autoconf@gnu.org. ##
23873: ## ------------------------------------ ##
23874: _ASBOX
23875: ) |
23876: sed "s/^/$as_me: WARNING: /" >&2
23877: ;;
23878: esac
1.23 ! millert 23879: echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
! 23880: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6
! 23881: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
! 23882: echo $ECHO_N "(cached) $ECHO_C" >&6
! 23883: else
! 23884: ac_cv_header_bsd_auth_h=$ac_header_preproc
! 23885: fi
! 23886: echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
! 23887: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6
! 23888:
! 23889: fi
! 23890: if test $ac_cv_header_bsd_auth_h = yes; then
! 23891: cat >>confdefs.h <<\_ACEOF
! 23892: #define HAVE_BSD_AUTH_H 1
! 23893: _ACEOF
! 23894: with_passwd=no; AUTH_OBJS=bsdauth.o
! 23895: else
! 23896: -
! 23897: fi
! 23898:
! 23899:
! 23900: fi
! 23901: echo "$as_me:$LINENO: checking for mode_t" >&5
! 23902: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
! 23903: if test "${ac_cv_type_mode_t+set}" = set; then
! 23904: echo $ECHO_N "(cached) $ECHO_C" >&6
! 23905: else
! 23906: cat >conftest.$ac_ext <<_ACEOF
! 23907: #line $LINENO "configure"
! 23908: /* confdefs.h. */
! 23909: _ACEOF
! 23910: cat confdefs.h >>conftest.$ac_ext
! 23911: cat >>conftest.$ac_ext <<_ACEOF
! 23912: /* end confdefs.h. */
! 23913: $ac_includes_default
! 23914: int
! 23915: main ()
! 23916: {
! 23917: if ((mode_t *) 0)
! 23918: return 0;
! 23919: if (sizeof (mode_t))
! 23920: return 0;
! 23921: ;
! 23922: return 0;
! 23923: }
! 23924: _ACEOF
! 23925: rm -f conftest.$ac_objext
! 23926: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 23927: (eval $ac_compile) 2>&5
! 23928: ac_status=$?
! 23929: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23930: (exit $ac_status); } &&
! 23931: { ac_try='test -s conftest.$ac_objext'
! 23932: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 23933: (eval $ac_try) 2>&5
! 23934: ac_status=$?
! 23935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23936: (exit $ac_status); }; }; then
! 23937: ac_cv_type_mode_t=yes
! 23938: else
! 23939: echo "$as_me: failed program was:" >&5
! 23940: sed 's/^/| /' conftest.$ac_ext >&5
! 23941:
! 23942: ac_cv_type_mode_t=no
! 23943: fi
! 23944: rm -f conftest.$ac_objext conftest.$ac_ext
! 23945: fi
! 23946: echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
! 23947: echo "${ECHO_T}$ac_cv_type_mode_t" >&6
! 23948: if test $ac_cv_type_mode_t = yes; then
! 23949: :
! 23950: else
! 23951:
! 23952: cat >>confdefs.h <<_ACEOF
! 23953: #define mode_t int
! 23954: _ACEOF
! 23955:
! 23956: fi
! 23957:
! 23958: echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
! 23959: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
! 23960: if test "${ac_cv_type_uid_t+set}" = set; then
1.18 millert 23961: echo $ECHO_N "(cached) $ECHO_C" >&6
23962: else
1.23 ! millert 23963: cat >conftest.$ac_ext <<_ACEOF
! 23964: #line $LINENO "configure"
! 23965: /* confdefs.h. */
! 23966: _ACEOF
! 23967: cat confdefs.h >>conftest.$ac_ext
! 23968: cat >>conftest.$ac_ext <<_ACEOF
! 23969: /* end confdefs.h. */
! 23970: #include <sys/types.h>
! 23971:
! 23972: _ACEOF
! 23973: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 23974: $EGREP "uid_t" >/dev/null 2>&1; then
! 23975: ac_cv_type_uid_t=yes
! 23976: else
! 23977: ac_cv_type_uid_t=no
! 23978: fi
! 23979: rm -f conftest*
! 23980:
1.18 millert 23981: fi
1.23 ! millert 23982: echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
! 23983: echo "${ECHO_T}$ac_cv_type_uid_t" >&6
! 23984: if test $ac_cv_type_uid_t = no; then
! 23985:
! 23986: cat >>confdefs.h <<\_ACEOF
! 23987: #define uid_t int
! 23988: _ACEOF
! 23989:
! 23990:
! 23991: cat >>confdefs.h <<\_ACEOF
! 23992: #define gid_t int
! 23993: _ACEOF
1.18 millert 23994:
23995: fi
1.23 ! millert 23996:
! 23997: echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
! 23998: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
! 23999: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
! 24000: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24001: else
! 24002: cat >conftest.$ac_ext <<_ACEOF
! 24003: #line $LINENO "configure"
! 24004: /* confdefs.h. */
1.18 millert 24005: _ACEOF
1.23 ! millert 24006: cat confdefs.h >>conftest.$ac_ext
! 24007: cat >>conftest.$ac_ext <<_ACEOF
! 24008: /* end confdefs.h. */
! 24009: #include <sys/types.h>
! 24010: #include <signal.h>
1.18 millert 24011:
1.23 ! millert 24012: int
! 24013: main ()
! 24014: {
! 24015: if ((sig_atomic_t *) 0)
! 24016: return 0;
! 24017: if (sizeof (sig_atomic_t))
! 24018: return 0;
! 24019: ;
! 24020: return 0;
! 24021: }
! 24022: _ACEOF
! 24023: rm -f conftest.$ac_objext
! 24024: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 24025: (eval $ac_compile) 2>&5
! 24026: ac_status=$?
! 24027: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24028: (exit $ac_status); } &&
! 24029: { ac_try='test -s conftest.$ac_objext'
! 24030: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 24031: (eval $ac_try) 2>&5
! 24032: ac_status=$?
! 24033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24034: (exit $ac_status); }; }; then
! 24035: ac_cv_type_sig_atomic_t=yes
1.18 millert 24036: else
1.23 ! millert 24037: echo "$as_me: failed program was:" >&5
! 24038: sed 's/^/| /' conftest.$ac_ext >&5
! 24039:
! 24040: ac_cv_type_sig_atomic_t=no
! 24041: fi
! 24042: rm -f conftest.$ac_objext conftest.$ac_ext
1.18 millert 24043: fi
1.23 ! millert 24044: echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
! 24045: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
! 24046: if test $ac_cv_type_sig_atomic_t = yes; then
! 24047:
! 24048: cat >>confdefs.h <<_ACEOF
! 24049: #define HAVE_SIG_ATOMIC_T 1
! 24050: _ACEOF
! 24051:
! 24052:
! 24053: else
! 24054: cat >>confdefs.h <<\_ACEOF
! 24055: #define sig_atomic_t int
! 24056: _ACEOF
1.18 millert 24057:
1.23 ! millert 24058: fi
1.18 millert 24059:
1.23 ! millert 24060: echo "$as_me:$LINENO: checking for sigaction_t" >&5
! 24061: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6
! 24062: if test "${ac_cv_type_sigaction_t+set}" = set; then
1.9 millert 24063: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 24064: else
1.9 millert 24065: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24066: #line $LINENO "configure"
24067: /* confdefs.h. */
24068: _ACEOF
24069: cat confdefs.h >>conftest.$ac_ext
24070: cat >>conftest.$ac_ext <<_ACEOF
24071: /* end confdefs.h. */
1.9 millert 24072: #include <sys/types.h>
1.23 ! millert 24073: #include <signal.h>
1.16 millert 24074:
1.9 millert 24075: int
24076: main ()
24077: {
1.23 ! millert 24078: if ((sigaction_t *) 0)
! 24079: return 0;
! 24080: if (sizeof (sigaction_t))
! 24081: return 0;
1.9 millert 24082: ;
24083: return 0;
24084: }
24085: _ACEOF
1.23 ! millert 24086: rm -f conftest.$ac_objext
! 24087: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 24088: (eval $ac_compile) 2>&5
1.9 millert 24089: ac_status=$?
1.16 millert 24090: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24091: (exit $ac_status); } &&
1.23 ! millert 24092: { ac_try='test -s conftest.$ac_objext'
1.16 millert 24093: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 24094: (eval $ac_try) 2>&5
24095: ac_status=$?
1.16 millert 24096: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24097: (exit $ac_status); }; }; then
1.23 ! millert 24098: ac_cv_type_sigaction_t=yes
1.9 millert 24099: else
24100: echo "$as_me: failed program was:" >&5
1.16 millert 24101: sed 's/^/| /' conftest.$ac_ext >&5
24102:
1.23 ! millert 24103: ac_cv_type_sigaction_t=no
1.9 millert 24104: fi
1.23 ! millert 24105: rm -f conftest.$ac_objext conftest.$ac_ext
1.9 millert 24106: fi
1.23 ! millert 24107: echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
! 24108: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6
! 24109: if test $ac_cv_type_sigaction_t = yes; then
1.9 millert 24110:
1.23 ! millert 24111: cat >>confdefs.h <<_ACEOF
! 24112: #define HAVE_SIGACTION_T 1
! 24113: _ACEOF
1.9 millert 24114:
1.16 millert 24115: cat >>confdefs.h <<\_ACEOF
1.23 ! millert 24116: #define HAVE_SIGACTION_T 1
1.16 millert 24117: _ACEOF
1.9 millert 24118:
1.23 ! millert 24119: fi
1.9 millert 24120:
1.23 ! millert 24121: echo "$as_me:$LINENO: checking for struct timespec" >&5
! 24122: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
! 24123: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9 millert 24124: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 24125: else
1.23 ! millert 24126: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24127: #line $LINENO "configure"
24128: /* confdefs.h. */
24129: _ACEOF
24130: cat confdefs.h >>conftest.$ac_ext
24131: cat >>conftest.$ac_ext <<_ACEOF
24132: /* end confdefs.h. */
1.23 ! millert 24133: #include <sys/types.h>
! 24134: #include <sys/time.h>
! 24135: #include <time.h>
! 24136:
! 24137: int
! 24138: main ()
! 24139: {
! 24140: if ((struct timespec *) 0)
! 24141: return 0;
! 24142: if (sizeof (struct timespec))
! 24143: return 0;
! 24144: ;
! 24145: return 0;
! 24146: }
1.16 millert 24147: _ACEOF
24148: rm -f conftest.$ac_objext
24149: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24150: (eval $ac_compile) 2>&5
24151: ac_status=$?
24152: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24153: (exit $ac_status); } &&
24154: { ac_try='test -s conftest.$ac_objext'
24155: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24156: (eval $ac_try) 2>&5
24157: ac_status=$?
24158: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159: (exit $ac_status); }; }; then
1.23 ! millert 24160: ac_cv_type_struct_timespec=yes
1.16 millert 24161: else
24162: echo "$as_me: failed program was:" >&5
24163: sed 's/^/| /' conftest.$ac_ext >&5
24164:
1.23 ! millert 24165: ac_cv_type_struct_timespec=no
1.16 millert 24166: fi
24167: rm -f conftest.$ac_objext conftest.$ac_ext
1.23 ! millert 24168: fi
! 24169: echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
! 24170: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
! 24171: if test $ac_cv_type_struct_timespec = yes; then
! 24172: cat >>confdefs.h <<\_ACEOF
! 24173: #define HAVE_TIMESPEC 1
! 24174: _ACEOF
! 24175:
! 24176: fi
1.16 millert 24177:
1.23 ! millert 24178: echo "$as_me:$LINENO: checking for size_t" >&5
! 24179: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
! 24180: if test "${sudo_cv_type_size_t+set}" = set; then
! 24181: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24182: else
! 24183: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24184: #line $LINENO "configure"
24185: /* confdefs.h. */
24186: _ACEOF
24187: cat confdefs.h >>conftest.$ac_ext
24188: cat >>conftest.$ac_ext <<_ACEOF
24189: /* end confdefs.h. */
1.23 ! millert 24190: #include <sys/types.h>
! 24191: #include <stdio.h>
! 24192: #if STDC_HEADERS
! 24193: #include <stdlib.h>
! 24194: #endif
! 24195: #if HAVE_UNISTD_H
! 24196: #include <unistd.h>
! 24197: #endif
1.9 millert 24198: _ACEOF
1.23 ! millert 24199: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 24200: $EGREP "size_t" >/dev/null 2>&1; then
! 24201: sudo_cv_type_size_t=yes
1.9 millert 24202: else
1.23 ! millert 24203: sudo_cv_type_size_t=no
1.9 millert 24204: fi
1.23 ! millert 24205: rm -f conftest*
1.16 millert 24206:
1.1 millert 24207: fi
1.23 ! millert 24208: echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
! 24209: echo "${ECHO_T}$sudo_cv_type_size_t" >&6
! 24210: if test $sudo_cv_type_size_t = no; then
1.16 millert 24211:
1.23 ! millert 24212: cat >>confdefs.h <<\_ACEOF
! 24213: #define size_t int
1.16 millert 24214: _ACEOF
1.9 millert 24215:
1.1 millert 24216: fi
1.16 millert 24217:
1.23 ! millert 24218: echo "$as_me:$LINENO: checking for ssize_t" >&5
! 24219: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
! 24220: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9 millert 24221: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 24222: else
1.23 ! millert 24223: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24224: #line $LINENO "configure"
24225: /* confdefs.h. */
24226: _ACEOF
24227: cat confdefs.h >>conftest.$ac_ext
24228: cat >>conftest.$ac_ext <<_ACEOF
24229: /* end confdefs.h. */
1.23 ! millert 24230: #include <sys/types.h>
! 24231: #include <stdio.h>
! 24232: #if STDC_HEADERS
! 24233: #include <stdlib.h>
! 24234: #endif
! 24235: #if HAVE_UNISTD_H
! 24236: #include <unistd.h>
! 24237: #endif
1.16 millert 24238: _ACEOF
1.23 ! millert 24239: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 24240: $EGREP "ssize_t" >/dev/null 2>&1; then
! 24241: sudo_cv_type_ssize_t=yes
1.9 millert 24242: else
1.23 ! millert 24243: sudo_cv_type_ssize_t=no
! 24244: fi
! 24245: rm -f conftest*
! 24246:
! 24247: fi
! 24248: echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
! 24249: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6
! 24250: if test $sudo_cv_type_ssize_t = no; then
! 24251:
! 24252: cat >>confdefs.h <<\_ACEOF
! 24253: #define ssize_t int
! 24254: _ACEOF
1.16 millert 24255:
24256: fi
24257:
1.23 ! millert 24258: echo "$as_me:$LINENO: checking for dev_t" >&5
! 24259: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
! 24260: if test "${sudo_cv_type_dev_t+set}" = set; then
! 24261: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24262: else
! 24263: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24264: #line $LINENO "configure"
24265: /* confdefs.h. */
24266: _ACEOF
24267: cat confdefs.h >>conftest.$ac_ext
24268: cat >>conftest.$ac_ext <<_ACEOF
24269: /* end confdefs.h. */
1.23 ! millert 24270: #include <sys/types.h>
! 24271: #include <stdio.h>
! 24272: #if STDC_HEADERS
! 24273: #include <stdlib.h>
! 24274: #endif
! 24275: #if HAVE_UNISTD_H
! 24276: #include <unistd.h>
! 24277: #endif
1.9 millert 24278: _ACEOF
1.23 ! millert 24279: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 24280: $EGREP "dev_t" >/dev/null 2>&1; then
! 24281: sudo_cv_type_dev_t=yes
1.1 millert 24282: else
1.23 ! millert 24283: sudo_cv_type_dev_t=no
! 24284: fi
! 24285: rm -f conftest*
! 24286:
1.9 millert 24287: fi
1.23 ! millert 24288: echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
! 24289: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6
! 24290: if test $sudo_cv_type_dev_t = no; then
! 24291:
! 24292: cat >>confdefs.h <<\_ACEOF
! 24293: #define dev_t int
! 24294: _ACEOF
1.16 millert 24295:
1.1 millert 24296: fi
1.16 millert 24297:
1.23 ! millert 24298: echo "$as_me:$LINENO: checking for ino_t" >&5
! 24299: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
! 24300: if test "${sudo_cv_type_ino_t+set}" = set; then
1.16 millert 24301: echo $ECHO_N "(cached) $ECHO_C" >&6
24302: else
1.23 ! millert 24303: cat >conftest.$ac_ext <<_ACEOF
! 24304: #line $LINENO "configure"
! 24305: /* confdefs.h. */
! 24306: _ACEOF
! 24307: cat confdefs.h >>conftest.$ac_ext
! 24308: cat >>conftest.$ac_ext <<_ACEOF
! 24309: /* end confdefs.h. */
! 24310: #include <sys/types.h>
! 24311: #include <stdio.h>
! 24312: #if STDC_HEADERS
! 24313: #include <stdlib.h>
! 24314: #endif
! 24315: #if HAVE_UNISTD_H
! 24316: #include <unistd.h>
! 24317: #endif
! 24318: _ACEOF
! 24319: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 24320: $EGREP "ino_t" >/dev/null 2>&1; then
! 24321: sudo_cv_type_ino_t=yes
! 24322: else
! 24323: sudo_cv_type_ino_t=no
1.1 millert 24324: fi
1.23 ! millert 24325: rm -f conftest*
1.16 millert 24326:
24327: fi
1.23 ! millert 24328: echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
! 24329: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6
! 24330: if test $sudo_cv_type_ino_t = no; then
! 24331:
! 24332: cat >>confdefs.h <<\_ACEOF
! 24333: #define ino_t unsigned int
1.16 millert 24334: _ACEOF
1.9 millert 24335:
24336: fi
1.16 millert 24337:
1.23 ! millert 24338: echo "$as_me:$LINENO: checking for full void implementation" >&5
! 24339: echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6
1.16 millert 24340: cat >conftest.$ac_ext <<_ACEOF
24341: #line $LINENO "configure"
24342: /* confdefs.h. */
24343: _ACEOF
24344: cat confdefs.h >>conftest.$ac_ext
24345: cat >>conftest.$ac_ext <<_ACEOF
24346: /* end confdefs.h. */
1.23 ! millert 24347:
! 24348: int
! 24349: main ()
! 24350: {
! 24351: void *foo;
! 24352: foo = (void *)0; (void *)"test";
! 24353: ;
! 24354: return 0;
! 24355: }
1.16 millert 24356: _ACEOF
24357: rm -f conftest.$ac_objext
24358: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24359: (eval $ac_compile) 2>&5
24360: ac_status=$?
24361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362: (exit $ac_status); } &&
24363: { ac_try='test -s conftest.$ac_objext'
24364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365: (eval $ac_try) 2>&5
24366: ac_status=$?
24367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368: (exit $ac_status); }; }; then
1.23 ! millert 24369:
! 24370: cat >>confdefs.h <<\_ACEOF
! 24371: #define VOID void
! 24372: _ACEOF
! 24373:
! 24374: echo "$as_me:$LINENO: result: yes" >&5
! 24375: echo "${ECHO_T}yes" >&6
1.1 millert 24376: else
1.16 millert 24377: echo "$as_me: failed program was:" >&5
24378: sed 's/^/| /' conftest.$ac_ext >&5
24379:
1.23 ! millert 24380: cat >>confdefs.h <<\_ACEOF
! 24381: #define VOID char
! 24382: _ACEOF
! 24383:
! 24384: echo "$as_me:$LINENO: result: no" >&5
! 24385: echo "${ECHO_T}no" >&6
1.16 millert 24386: fi
24387: rm -f conftest.$ac_objext conftest.$ac_ext
24388:
1.23 ! millert 24389: echo "$as_me:$LINENO: checking max length of uid_t" >&5
! 24390: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6
! 24391: if test "${sudo_cv_uid_t_len+set}" = set; then
! 24392: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24393: else
! 24394: rm -f conftestdata
! 24395: if test "$cross_compiling" = yes; then
! 24396: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 24397: See \`config.log' for more details." >&5
! 24398: echo "$as_me: error: cannot run test program while cross compiling
! 24399: See \`config.log' for more details." >&2;}
! 24400: { (exit 1); exit 1; }; }
! 24401: else
! 24402: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24403: #line $LINENO "configure"
24404: /* confdefs.h. */
24405: _ACEOF
24406: cat confdefs.h >>conftest.$ac_ext
24407: cat >>conftest.$ac_ext <<_ACEOF
24408: /* end confdefs.h. */
1.23 ! millert 24409: #include <stdio.h>
! 24410: #include <pwd.h>
! 24411: #include <limits.h>
! 24412: #include <sys/types.h>
! 24413: #include <sys/param.h>
! 24414: main() {
! 24415: FILE *f;
! 24416: char b[1024];
! 24417: uid_t u = (uid_t) -1;
! 24418:
! 24419: if ((f = fopen("conftestdata", "w")) == NULL)
! 24420: exit(1);
! 24421:
! 24422: (void) sprintf(b, "%lu", (unsigned long) u);
! 24423: (void) fprintf(f, "%d\n", strlen(b));
! 24424: (void) fclose(f);
! 24425: exit(0);
! 24426: }
1.9 millert 24427: _ACEOF
1.23 ! millert 24428: rm -f conftest$ac_exeext
! 24429: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 24430: (eval $ac_link) 2>&5
! 24431: ac_status=$?
! 24432: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24433: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 24434: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 24435: (eval $ac_try) 2>&5
1.9 millert 24436: ac_status=$?
1.16 millert 24437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 24438: (exit $ac_status); }; }; then
! 24439: sudo_cv_uid_t_len=`cat conftestdata`
1.9 millert 24440: else
1.23 ! millert 24441: echo "$as_me: program exited with status $ac_status" >&5
! 24442: echo "$as_me: failed program was:" >&5
1.16 millert 24443: sed 's/^/| /' conftest.$ac_ext >&5
24444:
1.23 ! millert 24445: ( exit $ac_status )
! 24446: sudo_cv_uid_t_len=10
! 24447: fi
! 24448: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 24449: fi
1.16 millert 24450:
1.1 millert 24451: fi
1.16 millert 24452:
1.23 ! millert 24453: rm -f conftestdata
! 24454: echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
! 24455: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6
1.1 millert 24456:
1.23 ! millert 24457: cat >>confdefs.h <<_ACEOF
! 24458: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
1.16 millert 24459: _ACEOF
1.9 millert 24460:
1.1 millert 24461:
1.23 ! millert 24462: echo "$as_me:$LINENO: checking for long long support" >&5
! 24463: echo $ECHO_N "checking for long long support... $ECHO_C" >&6
! 24464: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24465: #line $LINENO "configure"
24466: /* confdefs.h. */
24467: _ACEOF
24468: cat confdefs.h >>conftest.$ac_ext
24469: cat >>conftest.$ac_ext <<_ACEOF
24470: /* end confdefs.h. */
1.23 ! millert 24471:
1.9 millert 24472: int
24473: main ()
24474: {
1.23 ! millert 24475: long long foo = 1000; foo /= 10;
1.9 millert 24476: ;
24477: return 0;
24478: }
24479: _ACEOF
1.23 ! millert 24480: rm -f conftest.$ac_objext conftest$ac_exeext
! 24481: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 24482: (eval $ac_link) 2>&5
1.9 millert 24483: ac_status=$?
1.16 millert 24484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24485: (exit $ac_status); } &&
1.23 ! millert 24486: { ac_try='test -s conftest$ac_exeext'
1.16 millert 24487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 24488: (eval $ac_try) 2>&5
24489: ac_status=$?
1.16 millert 24490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24491: (exit $ac_status); }; }; then
1.16 millert 24492:
1.23 ! millert 24493: cat >>confdefs.h <<\_ACEOF
! 24494: #define HAVE_LONG_LONG 1
1.16 millert 24495: _ACEOF
1.9 millert 24496:
1.23 ! millert 24497: if test "$cross_compiling" = yes; then
! 24498: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
! 24499: See \`config.log' for more details." >&5
! 24500: echo "$as_me: error: cannot run test program while cross compiling
! 24501: See \`config.log' for more details." >&2;}
! 24502: { (exit 1); exit 1; }; }
1.7 millert 24503: else
1.9 millert 24504: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24505: #line $LINENO "configure"
24506: /* confdefs.h. */
24507: _ACEOF
24508: cat confdefs.h >>conftest.$ac_ext
24509: cat >>conftest.$ac_ext <<_ACEOF
24510: /* end confdefs.h. */
1.23 ! millert 24511: main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}
1.9 millert 24512: _ACEOF
1.23 ! millert 24513: rm -f conftest$ac_exeext
! 24514: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 24515: (eval $ac_link) 2>&5
! 24516: ac_status=$?
! 24517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24518: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 24519: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 24520: (eval $ac_try) 2>&5
! 24521: ac_status=$?
! 24522: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24523: (exit $ac_status); }; }; then
1.9 millert 24524:
1.16 millert 24525: cat >>confdefs.h <<\_ACEOF
1.23 ! millert 24526: #define LONG_IS_QUAD 1
1.16 millert 24527: _ACEOF
24528:
1.23 ! millert 24529: else
! 24530: echo "$as_me: program exited with status $ac_status" >&5
! 24531: echo "$as_me: failed program was:" >&5
! 24532: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 24533:
1.23 ! millert 24534: fi
! 24535: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 24536: fi
! 24537: echo "$as_me:$LINENO: result: yes" >&5
! 24538: echo "${ECHO_T}yes" >&6
! 24539: else
! 24540: echo "$as_me: failed program was:" >&5
! 24541: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 24542:
1.23 ! millert 24543: echo "$as_me:$LINENO: result: no" >&5
! 24544: echo "${ECHO_T}no" >&6
1.9 millert 24545: fi
1.23 ! millert 24546: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 24547: echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
! 24548: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6
! 24549: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9 millert 24550: echo $ECHO_N "(cached) $ECHO_C" >&6
24551: else
1.23 ! millert 24552: if test "$cross_compiling" = yes; then
! 24553: sudo_cv_sock_sa_len=no
! 24554: else
1.9 millert 24555: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24556: #line $LINENO "configure"
24557: /* confdefs.h. */
24558: _ACEOF
24559: cat confdefs.h >>conftest.$ac_ext
24560: cat >>conftest.$ac_ext <<_ACEOF
24561: /* end confdefs.h. */
1.9 millert 24562: #include <sys/types.h>
1.23 ! millert 24563: #include <sys/socket.h>
! 24564: main() {
! 24565: struct sockaddr s;
! 24566: s.sa_len = 0;
! 24567: exit(0);
1.9 millert 24568: }
24569: _ACEOF
1.23 ! millert 24570: rm -f conftest$ac_exeext
! 24571: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 24572: (eval $ac_link) 2>&5
1.9 millert 24573: ac_status=$?
1.16 millert 24574: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 24575: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 24576: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 24577: (eval $ac_try) 2>&5
24578: ac_status=$?
1.16 millert 24579: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24580: (exit $ac_status); }; }; then
1.23 ! millert 24581: sudo_cv_sock_sa_len=yes
1.7 millert 24582: else
1.23 ! millert 24583: echo "$as_me: program exited with status $ac_status" >&5
! 24584: echo "$as_me: failed program was:" >&5
1.16 millert 24585: sed 's/^/| /' conftest.$ac_ext >&5
24586:
1.23 ! millert 24587: ( exit $ac_status )
! 24588: sudo_cv_sock_sa_len=no
! 24589: fi
! 24590: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.7 millert 24591: fi
1.23 ! millert 24592: rm -f core core.* *.core
1.7 millert 24593: fi
1.23 ! millert 24594: echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
! 24595: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6
! 24596: if test $sudo_cv_sock_sa_len = yes; then
1.1 millert 24597:
1.16 millert 24598: cat >>confdefs.h <<\_ACEOF
1.23 ! millert 24599: #define HAVE_SA_LEN 1
1.16 millert 24600: _ACEOF
1.1 millert 24601:
24602: fi
24603:
1.23 ! millert 24604: case "$DEFS" in
! 24605: *"RETSIGTYPE"*) ;;
! 24606: *) echo "$as_me:$LINENO: checking return type of signal handlers" >&5
! 24607: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
! 24608: if test "${ac_cv_type_signal+set}" = set; then
1.9 millert 24609: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 24610: else
1.9 millert 24611: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24612: #line $LINENO "configure"
24613: /* confdefs.h. */
24614: _ACEOF
24615: cat confdefs.h >>conftest.$ac_ext
24616: cat >>conftest.$ac_ext <<_ACEOF
24617: /* end confdefs.h. */
1.1 millert 24618: #include <sys/types.h>
1.9 millert 24619: #include <signal.h>
1.23 ! millert 24620: #ifdef signal
! 24621: # undef signal
! 24622: #endif
! 24623: #ifdef __cplusplus
! 24624: extern "C" void (*signal (int, void (*)(int)))(int);
! 24625: #else
! 24626: void (*signal ()) ();
! 24627: #endif
1.9 millert 24628:
24629: int
24630: main ()
24631: {
1.23 ! millert 24632: int i;
1.9 millert 24633: ;
24634: return 0;
24635: }
24636: _ACEOF
24637: rm -f conftest.$ac_objext
1.16 millert 24638: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.9 millert 24639: (eval $ac_compile) 2>&5
24640: ac_status=$?
1.16 millert 24641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24642: (exit $ac_status); } &&
24643: { ac_try='test -s conftest.$ac_objext'
1.16 millert 24644: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 24645: (eval $ac_try) 2>&5
24646: ac_status=$?
1.16 millert 24647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24648: (exit $ac_status); }; }; then
1.23 ! millert 24649: ac_cv_type_signal=void
1.1 millert 24650: else
1.9 millert 24651: echo "$as_me: failed program was:" >&5
1.16 millert 24652: sed 's/^/| /' conftest.$ac_ext >&5
24653:
1.23 ! millert 24654: ac_cv_type_signal=int
1.1 millert 24655: fi
1.9 millert 24656: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 24657: fi
1.23 ! millert 24658: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
! 24659: echo "${ECHO_T}$ac_cv_type_signal" >&6
1.1 millert 24660:
1.16 millert 24661: cat >>confdefs.h <<_ACEOF
1.23 ! millert 24662: #define RETSIGTYPE $ac_cv_type_signal
1.16 millert 24663: _ACEOF
24664:
1.23 ! millert 24665: ;;
! 24666: esac
1.1 millert 24667:
24668:
24669:
24670:
1.9 millert 24671:
1.1 millert 24672:
24673:
24674:
1.9 millert 24675:
1.1 millert 24676:
24677:
1.23 ! millert 24678: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
! 24679: strftime setrlimit initgroups fstat
! 24680: do
! 24681: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 24682: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 24683: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 24684: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 24685: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 24686: else
1.9 millert 24687: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24688: #line $LINENO "configure"
24689: /* confdefs.h. */
24690: _ACEOF
24691: cat confdefs.h >>conftest.$ac_ext
24692: cat >>conftest.$ac_ext <<_ACEOF
24693: /* end confdefs.h. */
1.23 ! millert 24694: /* System header to define __stub macros and hopefully few prototypes,
! 24695: which can conflict with char $ac_func (); below.
! 24696: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 24697: <limits.h> exists even on freestanding compilers. */
! 24698: #ifdef __STDC__
! 24699: # include <limits.h>
! 24700: #else
! 24701: # include <assert.h>
! 24702: #endif
! 24703: /* Override any gcc2 internal prototype to avoid an error. */
! 24704: #ifdef __cplusplus
! 24705: extern "C"
! 24706: {
! 24707: #endif
! 24708: /* We use char because int might match the return type of a gcc2
! 24709: builtin and then its argument prototype would still apply. */
! 24710: char $ac_func ();
! 24711: /* The GNU C library defines this for functions which it implements
! 24712: to always fail with ENOSYS. Some functions are actually named
! 24713: something starting with __ and the normal name is an alias. */
! 24714: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 24715: choke me
! 24716: #else
! 24717: char (*f) () = $ac_func;
1.1 millert 24718: #endif
1.23 ! millert 24719: #ifdef __cplusplus
! 24720: }
1.1 millert 24721: #endif
1.23 ! millert 24722:
! 24723: int
! 24724: main ()
! 24725: {
! 24726: return f != $ac_func;
! 24727: ;
! 24728: return 0;
! 24729: }
1.9 millert 24730: _ACEOF
1.23 ! millert 24731: rm -f conftest.$ac_objext conftest$ac_exeext
! 24732: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 24733: (eval $ac_link) 2>&5
! 24734: ac_status=$?
! 24735: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24736: (exit $ac_status); } &&
! 24737: { ac_try='test -s conftest$ac_exeext'
! 24738: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 24739: (eval $ac_try) 2>&5
! 24740: ac_status=$?
! 24741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 24742: (exit $ac_status); }; }; then
! 24743: eval "$as_ac_var=yes"
1.1 millert 24744: else
1.23 ! millert 24745: echo "$as_me: failed program was:" >&5
! 24746: sed 's/^/| /' conftest.$ac_ext >&5
! 24747:
! 24748: eval "$as_ac_var=no"
1.1 millert 24749: fi
1.23 ! millert 24750: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 24751: fi
1.23 ! millert 24752: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 24753: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 24754: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 24755: cat >>confdefs.h <<_ACEOF
! 24756: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 24757: _ACEOF
1.1 millert 24758:
24759: fi
1.23 ! millert 24760: done
1.1 millert 24761:
1.23 ! millert 24762:
! 24763: for ac_func in seteuid
! 24764: do
! 24765: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 24766: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 24767: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 24768: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 24769: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 24770: else
1.9 millert 24771: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24772: #line $LINENO "configure"
24773: /* confdefs.h. */
24774: _ACEOF
24775: cat confdefs.h >>conftest.$ac_ext
24776: cat >>conftest.$ac_ext <<_ACEOF
24777: /* end confdefs.h. */
1.23 ! millert 24778: /* System header to define __stub macros and hopefully few prototypes,
! 24779: which can conflict with char $ac_func (); below.
! 24780: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 24781: <limits.h> exists even on freestanding compilers. */
! 24782: #ifdef __STDC__
! 24783: # include <limits.h>
! 24784: #else
! 24785: # include <assert.h>
! 24786: #endif
! 24787: /* Override any gcc2 internal prototype to avoid an error. */
! 24788: #ifdef __cplusplus
! 24789: extern "C"
! 24790: {
! 24791: #endif
! 24792: /* We use char because int might match the return type of a gcc2
! 24793: builtin and then its argument prototype would still apply. */
! 24794: char $ac_func ();
! 24795: /* The GNU C library defines this for functions which it implements
! 24796: to always fail with ENOSYS. Some functions are actually named
! 24797: something starting with __ and the normal name is an alias. */
! 24798: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 24799: choke me
! 24800: #else
! 24801: char (*f) () = $ac_func;
1.1 millert 24802: #endif
1.23 ! millert 24803: #ifdef __cplusplus
! 24804: }
1.1 millert 24805: #endif
24806:
1.9 millert 24807: int
24808: main ()
24809: {
1.23 ! millert 24810: return f != $ac_func;
1.9 millert 24811: ;
24812: return 0;
24813: }
24814: _ACEOF
1.23 ! millert 24815: rm -f conftest.$ac_objext conftest$ac_exeext
! 24816: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 24817: (eval $ac_link) 2>&5
1.9 millert 24818: ac_status=$?
1.16 millert 24819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24820: (exit $ac_status); } &&
1.23 ! millert 24821: { ac_try='test -s conftest$ac_exeext'
1.16 millert 24822: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 24823: (eval $ac_try) 2>&5
24824: ac_status=$?
1.16 millert 24825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24826: (exit $ac_status); }; }; then
1.23 ! millert 24827: eval "$as_ac_var=yes"
! 24828: else
! 24829: echo "$as_me: failed program was:" >&5
! 24830: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 24831:
1.23 ! millert 24832: eval "$as_ac_var=no"
! 24833: fi
! 24834: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 24835: fi
! 24836: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 24837: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 24838: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 24839: cat >>confdefs.h <<_ACEOF
! 24840: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 24841: _ACEOF
1.1 millert 24842:
24843: else
1.23 ! millert 24844: cat >>confdefs.h <<\_ACEOF
! 24845: #define NO_SAVED_IDS 1
1.16 millert 24846: _ACEOF
1.1 millert 24847:
24848: fi
1.23 ! millert 24849: done
! 24850:
! 24851: if test -z "$SKIP_SETRESUID"; then
1.1 millert 24852:
1.23 ! millert 24853: for ac_func in setresuid
! 24854: do
! 24855: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 24856: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 24857: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 24858: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 24859: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 24860: else
1.9 millert 24861: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24862: #line $LINENO "configure"
24863: /* confdefs.h. */
24864: _ACEOF
24865: cat confdefs.h >>conftest.$ac_ext
1.23 ! millert 24866: cat >>conftest.$ac_ext <<_ACEOF
! 24867: /* end confdefs.h. */
! 24868: /* System header to define __stub macros and hopefully few prototypes,
! 24869: which can conflict with char $ac_func (); below.
! 24870: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 24871: <limits.h> exists even on freestanding compilers. */
! 24872: #ifdef __STDC__
! 24873: # include <limits.h>
! 24874: #else
! 24875: # include <assert.h>
! 24876: #endif
! 24877: /* Override any gcc2 internal prototype to avoid an error. */
! 24878: #ifdef __cplusplus
! 24879: extern "C"
! 24880: {
! 24881: #endif
! 24882: /* We use char because int might match the return type of a gcc2
! 24883: builtin and then its argument prototype would still apply. */
! 24884: char $ac_func ();
! 24885: /* The GNU C library defines this for functions which it implements
! 24886: to always fail with ENOSYS. Some functions are actually named
! 24887: something starting with __ and the normal name is an alias. */
! 24888: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 24889: choke me
! 24890: #else
! 24891: char (*f) () = $ac_func;
! 24892: #endif
! 24893: #ifdef __cplusplus
! 24894: }
! 24895: #endif
1.1 millert 24896:
1.23 ! millert 24897: int
! 24898: main ()
! 24899: {
! 24900: return f != $ac_func;
! 24901: ;
! 24902: return 0;
1.1 millert 24903: }
1.9 millert 24904: _ACEOF
1.23 ! millert 24905: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 24906: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 24907: (eval $ac_link) 2>&5
24908: ac_status=$?
1.16 millert 24909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 24910: (exit $ac_status); } &&
! 24911: { ac_try='test -s conftest$ac_exeext'
1.16 millert 24912: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 24913: (eval $ac_try) 2>&5
24914: ac_status=$?
1.16 millert 24915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24916: (exit $ac_status); }; }; then
1.23 ! millert 24917: eval "$as_ac_var=yes"
1.1 millert 24918: else
1.23 ! millert 24919: echo "$as_me: failed program was:" >&5
1.16 millert 24920: sed 's/^/| /' conftest.$ac_ext >&5
24921:
1.23 ! millert 24922: eval "$as_ac_var=no"
! 24923: fi
! 24924: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 24925: fi
1.23 ! millert 24926: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 24927: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 24928: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 24929: cat >>confdefs.h <<_ACEOF
! 24930: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 24931: _ACEOF
! 24932: SKIP_SETREUID=yes
1.1 millert 24933: fi
1.23 ! millert 24934: done
1.1 millert 24935:
24936: fi
1.23 ! millert 24937: if test -z "$SKIP_SETREUID"; then
1.1 millert 24938:
1.23 ! millert 24939: for ac_func in setreuid
! 24940: do
! 24941: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 24942: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 24943: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 24944: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 24945: echo $ECHO_N "(cached) $ECHO_C" >&6
! 24946: else
! 24947: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 24948: #line $LINENO "configure"
24949: /* confdefs.h. */
24950: _ACEOF
24951: cat confdefs.h >>conftest.$ac_ext
24952: cat >>conftest.$ac_ext <<_ACEOF
24953: /* end confdefs.h. */
1.23 ! millert 24954: /* System header to define __stub macros and hopefully few prototypes,
! 24955: which can conflict with char $ac_func (); below.
! 24956: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 24957: <limits.h> exists even on freestanding compilers. */
! 24958: #ifdef __STDC__
! 24959: # include <limits.h>
! 24960: #else
! 24961: # include <assert.h>
! 24962: #endif
! 24963: /* Override any gcc2 internal prototype to avoid an error. */
! 24964: #ifdef __cplusplus
! 24965: extern "C"
! 24966: {
! 24967: #endif
! 24968: /* We use char because int might match the return type of a gcc2
! 24969: builtin and then its argument prototype would still apply. */
! 24970: char $ac_func ();
! 24971: /* The GNU C library defines this for functions which it implements
! 24972: to always fail with ENOSYS. Some functions are actually named
! 24973: something starting with __ and the normal name is an alias. */
! 24974: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 24975: choke me
! 24976: #else
! 24977: char (*f) () = $ac_func;
! 24978: #endif
! 24979: #ifdef __cplusplus
! 24980: }
! 24981: #endif
1.1 millert 24982:
1.9 millert 24983: int
24984: main ()
24985: {
1.23 ! millert 24986: return f != $ac_func;
1.9 millert 24987: ;
24988: return 0;
24989: }
24990: _ACEOF
24991: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 24992: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 24993: (eval $ac_link) 2>&5
24994: ac_status=$?
1.16 millert 24995: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 24996: (exit $ac_status); } &&
24997: { ac_try='test -s conftest$ac_exeext'
1.16 millert 24998: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 24999: (eval $ac_try) 2>&5
25000: ac_status=$?
1.16 millert 25001: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25002: (exit $ac_status); }; }; then
1.23 ! millert 25003: eval "$as_ac_var=yes"
! 25004: else
! 25005: echo "$as_me: failed program was:" >&5
! 25006: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 25007:
1.23 ! millert 25008: eval "$as_ac_var=no"
! 25009: fi
! 25010: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 25011: fi
! 25012: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 25013: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 25014: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 25015: cat >>confdefs.h <<_ACEOF
! 25016: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 25017: _ACEOF
1.1 millert 25018:
1.23 ! millert 25019: fi
! 25020: done
! 25021:
! 25022: fi
! 25023: if test X"$with_interfaces" != X"no"; then
! 25024:
! 25025: for ac_func in getifaddrs
! 25026: do
! 25027: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 25028: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 25029: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 25030: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 25031: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25032: else
1.9 millert 25033: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25034: #line $LINENO "configure"
25035: /* confdefs.h. */
25036: _ACEOF
25037: cat confdefs.h >>conftest.$ac_ext
25038: cat >>conftest.$ac_ext <<_ACEOF
25039: /* end confdefs.h. */
1.23 ! millert 25040: /* System header to define __stub macros and hopefully few prototypes,
! 25041: which can conflict with char $ac_func (); below.
! 25042: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 25043: <limits.h> exists even on freestanding compilers. */
! 25044: #ifdef __STDC__
! 25045: # include <limits.h>
! 25046: #else
! 25047: # include <assert.h>
! 25048: #endif
! 25049: /* Override any gcc2 internal prototype to avoid an error. */
! 25050: #ifdef __cplusplus
! 25051: extern "C"
! 25052: {
! 25053: #endif
! 25054: /* We use char because int might match the return type of a gcc2
! 25055: builtin and then its argument prototype would still apply. */
! 25056: char $ac_func ();
! 25057: /* The GNU C library defines this for functions which it implements
! 25058: to always fail with ENOSYS. Some functions are actually named
! 25059: something starting with __ and the normal name is an alias. */
! 25060: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 25061: choke me
! 25062: #else
! 25063: char (*f) () = $ac_func;
! 25064: #endif
! 25065: #ifdef __cplusplus
! 25066: }
! 25067: #endif
! 25068:
! 25069: int
! 25070: main ()
! 25071: {
! 25072: return f != $ac_func;
! 25073: ;
! 25074: return 0;
! 25075: }
1.9 millert 25076: _ACEOF
1.23 ! millert 25077: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25078: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 25079: (eval $ac_link) 2>&5
25080: ac_status=$?
1.16 millert 25081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 25082: (exit $ac_status); } &&
! 25083: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25084: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25085: (eval $ac_try) 2>&5
25086: ac_status=$?
1.16 millert 25087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25088: (exit $ac_status); }; }; then
1.23 ! millert 25089: eval "$as_ac_var=yes"
1.1 millert 25090: else
1.23 ! millert 25091: echo "$as_me: failed program was:" >&5
1.16 millert 25092: sed 's/^/| /' conftest.$ac_ext >&5
25093:
1.23 ! millert 25094: eval "$as_ac_var=no"
1.9 millert 25095: fi
1.23 ! millert 25096: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.9 millert 25097: fi
1.23 ! millert 25098: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 25099: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 25100: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 25101: cat >>confdefs.h <<_ACEOF
! 25102: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 25103: _ACEOF
1.16 millert 25104:
1.23 ! millert 25105: for ac_func in freeifaddrs
! 25106: do
! 25107: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 25108: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 25109: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 25110: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 25111: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25112: else
1.9 millert 25113: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25114: #line $LINENO "configure"
25115: /* confdefs.h. */
25116: _ACEOF
25117: cat confdefs.h >>conftest.$ac_ext
25118: cat >>conftest.$ac_ext <<_ACEOF
25119: /* end confdefs.h. */
1.23 ! millert 25120: /* System header to define __stub macros and hopefully few prototypes,
! 25121: which can conflict with char $ac_func (); below.
! 25122: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 25123: <limits.h> exists even on freestanding compilers. */
! 25124: #ifdef __STDC__
! 25125: # include <limits.h>
! 25126: #else
! 25127: # include <assert.h>
! 25128: #endif
! 25129: /* Override any gcc2 internal prototype to avoid an error. */
! 25130: #ifdef __cplusplus
! 25131: extern "C"
! 25132: {
! 25133: #endif
! 25134: /* We use char because int might match the return type of a gcc2
! 25135: builtin and then its argument prototype would still apply. */
! 25136: char $ac_func ();
! 25137: /* The GNU C library defines this for functions which it implements
! 25138: to always fail with ENOSYS. Some functions are actually named
! 25139: something starting with __ and the normal name is an alias. */
! 25140: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 25141: choke me
! 25142: #else
! 25143: char (*f) () = $ac_func;
! 25144: #endif
! 25145: #ifdef __cplusplus
! 25146: }
! 25147: #endif
! 25148:
! 25149: int
! 25150: main ()
! 25151: {
! 25152: return f != $ac_func;
! 25153: ;
! 25154: return 0;
1.1 millert 25155: }
1.9 millert 25156: _ACEOF
1.23 ! millert 25157: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25158: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 25159: (eval $ac_link) 2>&5
25160: ac_status=$?
1.16 millert 25161: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 25162: (exit $ac_status); } &&
! 25163: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25164: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25165: (eval $ac_try) 2>&5
25166: ac_status=$?
1.16 millert 25167: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25168: (exit $ac_status); }; }; then
1.23 ! millert 25169: eval "$as_ac_var=yes"
1.1 millert 25170: else
1.23 ! millert 25171: echo "$as_me: failed program was:" >&5
1.16 millert 25172: sed 's/^/| /' conftest.$ac_ext >&5
25173:
1.23 ! millert 25174: eval "$as_ac_var=no"
1.1 millert 25175: fi
1.23 ! millert 25176: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 25177: fi
1.23 ! millert 25178: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 25179: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 25180: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 25181: cat >>confdefs.h <<_ACEOF
! 25182: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 25183: _ACEOF
! 25184:
1.1 millert 25185: fi
1.23 ! millert 25186: done
1.9 millert 25187:
1.23 ! millert 25188: fi
! 25189: done
1.1 millert 25190:
25191: fi
1.23 ! millert 25192: if test -n "$SECUREWARE"; then
! 25193:
1.1 millert 25194:
1.23 ! millert 25195:
! 25196: for ac_func in bigcrypt set_auth_parameters initprivs
! 25197: do
! 25198: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 25199: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 25200: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 25201: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.9 millert 25202: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25203: else
1.9 millert 25204: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25205: #line $LINENO "configure"
25206: /* confdefs.h. */
25207: _ACEOF
25208: cat confdefs.h >>conftest.$ac_ext
25209: cat >>conftest.$ac_ext <<_ACEOF
25210: /* end confdefs.h. */
1.23 ! millert 25211: /* System header to define __stub macros and hopefully few prototypes,
! 25212: which can conflict with char $ac_func (); below.
! 25213: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 25214: <limits.h> exists even on freestanding compilers. */
! 25215: #ifdef __STDC__
! 25216: # include <limits.h>
! 25217: #else
! 25218: # include <assert.h>
1.1 millert 25219: #endif
1.23 ! millert 25220: /* Override any gcc2 internal prototype to avoid an error. */
1.1 millert 25221: #ifdef __cplusplus
1.23 ! millert 25222: extern "C"
! 25223: {
! 25224: #endif
! 25225: /* We use char because int might match the return type of a gcc2
! 25226: builtin and then its argument prototype would still apply. */
! 25227: char $ac_func ();
! 25228: /* The GNU C library defines this for functions which it implements
! 25229: to always fail with ENOSYS. Some functions are actually named
! 25230: something starting with __ and the normal name is an alias. */
! 25231: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 25232: choke me
1.1 millert 25233: #else
1.23 ! millert 25234: char (*f) () = $ac_func;
! 25235: #endif
! 25236: #ifdef __cplusplus
! 25237: }
1.1 millert 25238: #endif
25239:
1.9 millert 25240: int
25241: main ()
25242: {
1.23 ! millert 25243: return f != $ac_func;
1.9 millert 25244: ;
25245: return 0;
25246: }
25247: _ACEOF
1.23 ! millert 25248: rm -f conftest.$ac_objext conftest$ac_exeext
! 25249: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 25250: (eval $ac_link) 2>&5
1.9 millert 25251: ac_status=$?
1.16 millert 25252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253: (exit $ac_status); } &&
1.23 ! millert 25254: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25255: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256: (eval $ac_try) 2>&5
25257: ac_status=$?
25258: echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259: (exit $ac_status); }; }; then
1.23 ! millert 25260: eval "$as_ac_var=yes"
1.16 millert 25261: else
25262: echo "$as_me: failed program was:" >&5
25263: sed 's/^/| /' conftest.$ac_ext >&5
25264:
1.23 ! millert 25265: eval "$as_ac_var=no"
1.16 millert 25266: fi
1.23 ! millert 25267: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.16 millert 25268: fi
1.23 ! millert 25269: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 25270: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 25271: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 25272: cat >>confdefs.h <<_ACEOF
! 25273: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 25274: _ACEOF
25275:
1.23 ! millert 25276: fi
! 25277: done
1.16 millert 25278:
1.23 ! millert 25279: fi
! 25280: if test -z "$BROKEN_GETCWD"; then
1.16 millert 25281:
1.23 ! millert 25282: for ac_func in getcwd
1.16 millert 25283: do
25284: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25285: echo "$as_me:$LINENO: checking for $ac_func" >&5
25286: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25287: if eval "test \"\${$as_ac_var+set}\" = set"; then
25288: echo $ECHO_N "(cached) $ECHO_C" >&6
25289: else
25290: cat >conftest.$ac_ext <<_ACEOF
25291: #line $LINENO "configure"
25292: /* confdefs.h. */
25293: _ACEOF
25294: cat confdefs.h >>conftest.$ac_ext
25295: cat >>conftest.$ac_ext <<_ACEOF
25296: /* end confdefs.h. */
25297: /* System header to define __stub macros and hopefully few prototypes,
25298: which can conflict with char $ac_func (); below.
25299: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25300: <limits.h> exists even on freestanding compilers. */
25301: #ifdef __STDC__
25302: # include <limits.h>
25303: #else
25304: # include <assert.h>
25305: #endif
25306: /* Override any gcc2 internal prototype to avoid an error. */
25307: #ifdef __cplusplus
25308: extern "C"
25309: {
25310: #endif
25311: /* We use char because int might match the return type of a gcc2
25312: builtin and then its argument prototype would still apply. */
25313: char $ac_func ();
25314: /* The GNU C library defines this for functions which it implements
25315: to always fail with ENOSYS. Some functions are actually named
25316: something starting with __ and the normal name is an alias. */
25317: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25318: choke me
25319: #else
25320: char (*f) () = $ac_func;
25321: #endif
25322: #ifdef __cplusplus
25323: }
25324: #endif
25325:
25326: int
25327: main ()
25328: {
25329: return f != $ac_func;
25330: ;
25331: return 0;
25332: }
25333: _ACEOF
25334: rm -f conftest.$ac_objext conftest$ac_exeext
25335: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25336: (eval $ac_link) 2>&5
25337: ac_status=$?
25338: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25339: (exit $ac_status); } &&
1.16 millert 25340: { ac_try='test -s conftest$ac_exeext'
25341: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25342: (eval $ac_try) 2>&5
25343: ac_status=$?
1.16 millert 25344: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25345: (exit $ac_status); }; }; then
1.16 millert 25346: eval "$as_ac_var=yes"
1.1 millert 25347: else
1.9 millert 25348: echo "$as_me: failed program was:" >&5
1.16 millert 25349: sed 's/^/| /' conftest.$ac_ext >&5
25350:
25351: eval "$as_ac_var=no"
1.1 millert 25352: fi
1.16 millert 25353: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 25354: fi
1.16 millert 25355: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25356: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25357: if test `eval echo '${'$as_ac_var'}'` = yes; then
25358: cat >>confdefs.h <<_ACEOF
25359: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25360: _ACEOF
1.1 millert 25361:
1.23 ! millert 25362: else
! 25363: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.16 millert 25364: fi
25365: done
1.1 millert 25366:
1.9 millert 25367:
1.23 ! millert 25368: fi
! 25369:
! 25370:
! 25371: for ac_func in lockf flock
1.1 millert 25372: do
1.9 millert 25373: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 25374: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 25375: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25376: if eval "test \"\${$as_ac_var+set}\" = set"; then
25377: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25378: else
1.9 millert 25379: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25380: #line $LINENO "configure"
25381: /* confdefs.h. */
25382: _ACEOF
25383: cat confdefs.h >>conftest.$ac_ext
25384: cat >>conftest.$ac_ext <<_ACEOF
25385: /* end confdefs.h. */
1.1 millert 25386: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 25387: which can conflict with char $ac_func (); below.
25388: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25389: <limits.h> exists even on freestanding compilers. */
25390: #ifdef __STDC__
25391: # include <limits.h>
25392: #else
25393: # include <assert.h>
25394: #endif
1.1 millert 25395: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 25396: #ifdef __cplusplus
25397: extern "C"
1.16 millert 25398: {
1.9 millert 25399: #endif
1.1 millert 25400: /* We use char because int might match the return type of a gcc2
1.9 millert 25401: builtin and then its argument prototype would still apply. */
25402: char $ac_func ();
1.1 millert 25403: /* The GNU C library defines this for functions which it implements
25404: to always fail with ENOSYS. Some functions are actually named
25405: something starting with __ and the normal name is an alias. */
25406: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25407: choke me
25408: #else
1.16 millert 25409: char (*f) () = $ac_func;
25410: #endif
25411: #ifdef __cplusplus
25412: }
1.1 millert 25413: #endif
25414:
1.16 millert 25415: int
25416: main ()
25417: {
25418: return f != $ac_func;
1.9 millert 25419: ;
25420: return 0;
25421: }
25422: _ACEOF
25423: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25424: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 25425: (eval $ac_link) 2>&5
25426: ac_status=$?
1.16 millert 25427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25428: (exit $ac_status); } &&
25429: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25430: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25431: (eval $ac_try) 2>&5
25432: ac_status=$?
1.16 millert 25433: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25434: (exit $ac_status); }; }; then
25435: eval "$as_ac_var=yes"
25436: else
25437: echo "$as_me: failed program was:" >&5
1.16 millert 25438: sed 's/^/| /' conftest.$ac_ext >&5
25439:
1.9 millert 25440: eval "$as_ac_var=no"
25441: fi
25442: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25443: fi
1.16 millert 25444: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 25445: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25446: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 25447: cat >>confdefs.h <<_ACEOF
1.9 millert 25448: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 25449: _ACEOF
1.23 ! millert 25450: break
1.1 millert 25451: fi
25452: done
25453:
1.9 millert 25454:
1.23 ! millert 25455:
! 25456: for ac_func in waitpid wait3
1.1 millert 25457: do
1.9 millert 25458: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 25459: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 25460: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25461: if eval "test \"\${$as_ac_var+set}\" = set"; then
25462: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25463: else
1.9 millert 25464: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25465: #line $LINENO "configure"
25466: /* confdefs.h. */
25467: _ACEOF
25468: cat confdefs.h >>conftest.$ac_ext
25469: cat >>conftest.$ac_ext <<_ACEOF
25470: /* end confdefs.h. */
1.1 millert 25471: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 25472: which can conflict with char $ac_func (); below.
25473: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25474: <limits.h> exists even on freestanding compilers. */
25475: #ifdef __STDC__
25476: # include <limits.h>
25477: #else
25478: # include <assert.h>
25479: #endif
1.1 millert 25480: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 25481: #ifdef __cplusplus
25482: extern "C"
1.16 millert 25483: {
1.9 millert 25484: #endif
1.1 millert 25485: /* We use char because int might match the return type of a gcc2
1.9 millert 25486: builtin and then its argument prototype would still apply. */
25487: char $ac_func ();
1.1 millert 25488: /* The GNU C library defines this for functions which it implements
25489: to always fail with ENOSYS. Some functions are actually named
25490: something starting with __ and the normal name is an alias. */
25491: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25492: choke me
25493: #else
1.16 millert 25494: char (*f) () = $ac_func;
25495: #endif
25496: #ifdef __cplusplus
25497: }
1.1 millert 25498: #endif
25499:
1.16 millert 25500: int
25501: main ()
25502: {
25503: return f != $ac_func;
1.9 millert 25504: ;
25505: return 0;
25506: }
25507: _ACEOF
25508: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25509: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 25510: (eval $ac_link) 2>&5
25511: ac_status=$?
1.16 millert 25512: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25513: (exit $ac_status); } &&
25514: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25515: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25516: (eval $ac_try) 2>&5
25517: ac_status=$?
1.16 millert 25518: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25519: (exit $ac_status); }; }; then
25520: eval "$as_ac_var=yes"
25521: else
25522: echo "$as_me: failed program was:" >&5
1.16 millert 25523: sed 's/^/| /' conftest.$ac_ext >&5
25524:
1.9 millert 25525: eval "$as_ac_var=no"
25526: fi
25527: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25528: fi
1.16 millert 25529: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 25530: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25531: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 25532: cat >>confdefs.h <<_ACEOF
1.9 millert 25533: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 25534: _ACEOF
1.23 ! millert 25535: break
1.1 millert 25536: fi
25537: done
25538:
25539:
1.23 ! millert 25540:
! 25541: for ac_func in innetgr _innetgr
1.1 millert 25542: do
1.9 millert 25543: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 25544: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 25545: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25546: if eval "test \"\${$as_ac_var+set}\" = set"; then
25547: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25548: else
1.9 millert 25549: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25550: #line $LINENO "configure"
25551: /* confdefs.h. */
25552: _ACEOF
25553: cat confdefs.h >>conftest.$ac_ext
25554: cat >>conftest.$ac_ext <<_ACEOF
25555: /* end confdefs.h. */
1.1 millert 25556: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 25557: which can conflict with char $ac_func (); below.
25558: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25559: <limits.h> exists even on freestanding compilers. */
25560: #ifdef __STDC__
25561: # include <limits.h>
25562: #else
25563: # include <assert.h>
25564: #endif
1.1 millert 25565: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 25566: #ifdef __cplusplus
25567: extern "C"
1.16 millert 25568: {
1.9 millert 25569: #endif
1.1 millert 25570: /* We use char because int might match the return type of a gcc2
1.9 millert 25571: builtin and then its argument prototype would still apply. */
25572: char $ac_func ();
1.1 millert 25573: /* The GNU C library defines this for functions which it implements
25574: to always fail with ENOSYS. Some functions are actually named
25575: something starting with __ and the normal name is an alias. */
25576: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25577: choke me
25578: #else
1.16 millert 25579: char (*f) () = $ac_func;
25580: #endif
25581: #ifdef __cplusplus
25582: }
1.1 millert 25583: #endif
25584:
1.16 millert 25585: int
25586: main ()
25587: {
25588: return f != $ac_func;
1.9 millert 25589: ;
25590: return 0;
25591: }
25592: _ACEOF
25593: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25594: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.13 millert 25595: (eval $ac_link) 2>&5
25596: ac_status=$?
1.16 millert 25597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 25598: (exit $ac_status); } &&
25599: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25600: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.13 millert 25601: (eval $ac_try) 2>&5
25602: ac_status=$?
1.16 millert 25603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.13 millert 25604: (exit $ac_status); }; }; then
25605: eval "$as_ac_var=yes"
25606: else
25607: echo "$as_me: failed program was:" >&5
1.16 millert 25608: sed 's/^/| /' conftest.$ac_ext >&5
25609:
1.13 millert 25610: eval "$as_ac_var=no"
25611: fi
25612: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25613: fi
1.16 millert 25614: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.13 millert 25615: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25616: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 25617: cat >>confdefs.h <<_ACEOF
1.13 millert 25618: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 25619: _ACEOF
1.13 millert 25620:
1.23 ! millert 25621: for ac_func in getdomainname
1.13 millert 25622: do
25623: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 25624: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.13 millert 25625: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25626: if eval "test \"\${$as_ac_var+set}\" = set"; then
25627: echo $ECHO_N "(cached) $ECHO_C" >&6
25628: else
25629: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25630: #line $LINENO "configure"
25631: /* confdefs.h. */
25632: _ACEOF
25633: cat confdefs.h >>conftest.$ac_ext
25634: cat >>conftest.$ac_ext <<_ACEOF
25635: /* end confdefs.h. */
25636: /* System header to define __stub macros and hopefully few prototypes,
25637: which can conflict with char $ac_func (); below.
25638: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25639: <limits.h> exists even on freestanding compilers. */
25640: #ifdef __STDC__
25641: # include <limits.h>
25642: #else
25643: # include <assert.h>
25644: #endif
1.13 millert 25645: /* Override any gcc2 internal prototype to avoid an error. */
25646: #ifdef __cplusplus
25647: extern "C"
1.16 millert 25648: {
1.13 millert 25649: #endif
25650: /* We use char because int might match the return type of a gcc2
25651: builtin and then its argument prototype would still apply. */
25652: char $ac_func ();
25653: /* The GNU C library defines this for functions which it implements
25654: to always fail with ENOSYS. Some functions are actually named
25655: something starting with __ and the normal name is an alias. */
25656: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25657: choke me
25658: #else
1.16 millert 25659: char (*f) () = $ac_func;
25660: #endif
25661: #ifdef __cplusplus
25662: }
1.13 millert 25663: #endif
25664:
1.16 millert 25665: int
25666: main ()
25667: {
25668: return f != $ac_func;
1.13 millert 25669: ;
25670: return 0;
25671: }
25672: _ACEOF
25673: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25674: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 25675: (eval $ac_link) 2>&5
25676: ac_status=$?
1.16 millert 25677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25678: (exit $ac_status); } &&
25679: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25680: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25681: (eval $ac_try) 2>&5
25682: ac_status=$?
1.16 millert 25683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25684: (exit $ac_status); }; }; then
25685: eval "$as_ac_var=yes"
25686: else
25687: echo "$as_me: failed program was:" >&5
1.16 millert 25688: sed 's/^/| /' conftest.$ac_ext >&5
25689:
1.9 millert 25690: eval "$as_ac_var=no"
25691: fi
25692: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25693: fi
1.16 millert 25694: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 25695: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25696: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 25697: cat >>confdefs.h <<_ACEOF
1.9 millert 25698: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 25699: _ACEOF
1.1 millert 25700:
25701: fi
25702: done
1.23 ! millert 25703: break
1.1 millert 25704: fi
1.13 millert 25705: done
25706:
1.16 millert 25707:
1.23 ! millert 25708: for ac_func in lsearch
1.9 millert 25709: do
25710: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 25711: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 25712: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25713: if eval "test \"\${$as_ac_var+set}\" = set"; then
25714: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25715: else
1.9 millert 25716: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25717: #line $LINENO "configure"
25718: /* confdefs.h. */
25719: _ACEOF
25720: cat confdefs.h >>conftest.$ac_ext
25721: cat >>conftest.$ac_ext <<_ACEOF
25722: /* end confdefs.h. */
1.1 millert 25723: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 25724: which can conflict with char $ac_func (); below.
25725: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25726: <limits.h> exists even on freestanding compilers. */
25727: #ifdef __STDC__
25728: # include <limits.h>
25729: #else
25730: # include <assert.h>
25731: #endif
1.1 millert 25732: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 25733: #ifdef __cplusplus
25734: extern "C"
1.16 millert 25735: {
1.1 millert 25736: #endif
25737: /* We use char because int might match the return type of a gcc2
1.9 millert 25738: builtin and then its argument prototype would still apply. */
25739: char $ac_func ();
1.1 millert 25740: /* The GNU C library defines this for functions which it implements
25741: to always fail with ENOSYS. Some functions are actually named
25742: something starting with __ and the normal name is an alias. */
25743: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25744: choke me
25745: #else
1.16 millert 25746: char (*f) () = $ac_func;
25747: #endif
25748: #ifdef __cplusplus
25749: }
1.1 millert 25750: #endif
25751:
1.16 millert 25752: int
25753: main ()
25754: {
25755: return f != $ac_func;
1.9 millert 25756: ;
25757: return 0;
25758: }
25759: _ACEOF
25760: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25761: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 25762: (eval $ac_link) 2>&5
25763: ac_status=$?
1.16 millert 25764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25765: (exit $ac_status); } &&
25766: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25767: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25768: (eval $ac_try) 2>&5
25769: ac_status=$?
1.16 millert 25770: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25771: (exit $ac_status); }; }; then
1.23 ! millert 25772: eval "$as_ac_var=yes"
! 25773: else
! 25774: echo "$as_me: failed program was:" >&5
! 25775: sed 's/^/| /' conftest.$ac_ext >&5
! 25776:
! 25777: eval "$as_ac_var=no"
! 25778: fi
! 25779: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 25780: fi
! 25781: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 25782: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 25783: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 25784: cat >>confdefs.h <<_ACEOF
! 25785: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 25786: _ACEOF
! 25787:
! 25788: else
! 25789: echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
! 25790: echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6
! 25791: if test "${ac_cv_lib_compat_lsearch+set}" = set; then
! 25792: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25793: else
! 25794: ac_check_lib_save_LIBS=$LIBS
! 25795: LIBS="-lcompat $LIBS"
! 25796: cat >conftest.$ac_ext <<_ACEOF
! 25797: #line $LINENO "configure"
! 25798: /* confdefs.h. */
! 25799: _ACEOF
! 25800: cat confdefs.h >>conftest.$ac_ext
! 25801: cat >>conftest.$ac_ext <<_ACEOF
! 25802: /* end confdefs.h. */
! 25803:
! 25804: /* Override any gcc2 internal prototype to avoid an error. */
! 25805: #ifdef __cplusplus
! 25806: extern "C"
! 25807: #endif
! 25808: /* We use char because int might match the return type of a gcc2
! 25809: builtin and then its argument prototype would still apply. */
! 25810: char lsearch ();
! 25811: int
! 25812: main ()
! 25813: {
! 25814: lsearch ();
! 25815: ;
! 25816: return 0;
! 25817: }
! 25818: _ACEOF
! 25819: rm -f conftest.$ac_objext conftest$ac_exeext
! 25820: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 25821: (eval $ac_link) 2>&5
! 25822: ac_status=$?
! 25823: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25824: (exit $ac_status); } &&
! 25825: { ac_try='test -s conftest$ac_exeext'
! 25826: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 25827: (eval $ac_try) 2>&5
! 25828: ac_status=$?
! 25829: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25830: (exit $ac_status); }; }; then
! 25831: ac_cv_lib_compat_lsearch=yes
! 25832: else
! 25833: echo "$as_me: failed program was:" >&5
! 25834: sed 's/^/| /' conftest.$ac_ext >&5
! 25835:
! 25836: ac_cv_lib_compat_lsearch=no
! 25837: fi
! 25838: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 25839: LIBS=$ac_check_lib_save_LIBS
! 25840: fi
! 25841: echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
! 25842: echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6
! 25843: if test $ac_cv_lib_compat_lsearch = yes; then
! 25844: echo "$as_me:$LINENO: checking for search.h" >&5
! 25845: echo $ECHO_N "checking for search.h... $ECHO_C" >&6
! 25846: if test "${ac_cv_header_search_h+set}" = set; then
! 25847: echo $ECHO_N "(cached) $ECHO_C" >&6
! 25848: else
! 25849: cat >conftest.$ac_ext <<_ACEOF
! 25850: #line $LINENO "configure"
! 25851: /* confdefs.h. */
! 25852: _ACEOF
! 25853: cat confdefs.h >>conftest.$ac_ext
! 25854: cat >>conftest.$ac_ext <<_ACEOF
! 25855: /* end confdefs.h. */
! 25856: #include <search.h>
! 25857: _ACEOF
! 25858: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 25859: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 25860: ac_status=$?
! 25861: grep -v '^ *+' conftest.er1 >conftest.err
! 25862: rm -f conftest.er1
! 25863: cat conftest.err >&5
! 25864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 25865: (exit $ac_status); } >/dev/null; then
! 25866: if test -s conftest.err; then
! 25867: ac_cpp_err=$ac_c_preproc_warn_flag
! 25868: else
! 25869: ac_cpp_err=
! 25870: fi
! 25871: else
! 25872: ac_cpp_err=yes
! 25873: fi
! 25874: if test -z "$ac_cpp_err"; then
! 25875: ac_cv_header_search_h=yes
1.9 millert 25876: else
25877: echo "$as_me: failed program was:" >&5
1.16 millert 25878: sed 's/^/| /' conftest.$ac_ext >&5
25879:
1.23 ! millert 25880: ac_cv_header_search_h=no
1.9 millert 25881: fi
1.23 ! millert 25882: rm -f conftest.err conftest.$ac_ext
1.9 millert 25883: fi
1.23 ! millert 25884: echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
! 25885: echo "${ECHO_T}$ac_cv_header_search_h" >&6
! 25886: if test $ac_cv_header_search_h = yes; then
! 25887: cat >>confdefs.h <<\_ACEOF
! 25888: #define HAVE_LSEARCH 1
1.16 millert 25889: _ACEOF
1.23 ! millert 25890: LIBS="${LIBS} -lcompat"
! 25891: else
! 25892: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
! 25893: fi
! 25894:
! 25895:
! 25896: else
! 25897: LIBOBJS="$LIBOBJS lsearch.$ac_objext"
! 25898: fi
1.1 millert 25899:
25900: fi
25901: done
25902:
25903:
1.23 ! millert 25904: for ac_func in utimes
1.9 millert 25905: do
25906: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 25907: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 25908: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25909: if eval "test \"\${$as_ac_var+set}\" = set"; then
25910: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25911: else
1.9 millert 25912: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25913: #line $LINENO "configure"
25914: /* confdefs.h. */
25915: _ACEOF
25916: cat confdefs.h >>conftest.$ac_ext
25917: cat >>conftest.$ac_ext <<_ACEOF
25918: /* end confdefs.h. */
1.1 millert 25919: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 25920: which can conflict with char $ac_func (); below.
25921: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25922: <limits.h> exists even on freestanding compilers. */
25923: #ifdef __STDC__
25924: # include <limits.h>
25925: #else
25926: # include <assert.h>
25927: #endif
1.1 millert 25928: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 25929: #ifdef __cplusplus
25930: extern "C"
1.16 millert 25931: {
1.1 millert 25932: #endif
25933: /* We use char because int might match the return type of a gcc2
1.9 millert 25934: builtin and then its argument prototype would still apply. */
25935: char $ac_func ();
1.1 millert 25936: /* The GNU C library defines this for functions which it implements
25937: to always fail with ENOSYS. Some functions are actually named
25938: something starting with __ and the normal name is an alias. */
25939: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25940: choke me
25941: #else
1.16 millert 25942: char (*f) () = $ac_func;
25943: #endif
25944: #ifdef __cplusplus
25945: }
1.1 millert 25946: #endif
25947:
1.16 millert 25948: int
25949: main ()
25950: {
25951: return f != $ac_func;
1.9 millert 25952: ;
25953: return 0;
25954: }
25955: _ACEOF
25956: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 25957: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 25958: (eval $ac_link) 2>&5
25959: ac_status=$?
1.16 millert 25960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25961: (exit $ac_status); } &&
25962: { ac_try='test -s conftest$ac_exeext'
1.16 millert 25963: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 25964: (eval $ac_try) 2>&5
25965: ac_status=$?
1.16 millert 25966: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 25967: (exit $ac_status); }; }; then
25968: eval "$as_ac_var=yes"
25969: else
25970: echo "$as_me: failed program was:" >&5
1.16 millert 25971: sed 's/^/| /' conftest.$ac_ext >&5
25972:
1.9 millert 25973: eval "$as_ac_var=no"
25974: fi
25975: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25976: fi
1.16 millert 25977: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 25978: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25979: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 25980: cat >>confdefs.h <<_ACEOF
1.9 millert 25981: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 25982: _ACEOF
1.1 millert 25983:
1.16 millert 25984:
1.23 ! millert 25985: for ac_func in futimes futimesat
1.9 millert 25986: do
25987: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 25988: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 25989: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25990: if eval "test \"\${$as_ac_var+set}\" = set"; then
25991: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 25992: else
1.9 millert 25993: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 25994: #line $LINENO "configure"
25995: /* confdefs.h. */
25996: _ACEOF
25997: cat confdefs.h >>conftest.$ac_ext
25998: cat >>conftest.$ac_ext <<_ACEOF
25999: /* end confdefs.h. */
1.1 millert 26000: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 26001: which can conflict with char $ac_func (); below.
26002: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26003: <limits.h> exists even on freestanding compilers. */
26004: #ifdef __STDC__
26005: # include <limits.h>
26006: #else
26007: # include <assert.h>
26008: #endif
1.1 millert 26009: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26010: #ifdef __cplusplus
26011: extern "C"
1.16 millert 26012: {
1.9 millert 26013: #endif
1.1 millert 26014: /* We use char because int might match the return type of a gcc2
1.9 millert 26015: builtin and then its argument prototype would still apply. */
26016: char $ac_func ();
1.1 millert 26017: /* The GNU C library defines this for functions which it implements
26018: to always fail with ENOSYS. Some functions are actually named
26019: something starting with __ and the normal name is an alias. */
1.9 millert 26020: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 26021: choke me
26022: #else
1.16 millert 26023: char (*f) () = $ac_func;
26024: #endif
26025: #ifdef __cplusplus
26026: }
1.1 millert 26027: #endif
26028:
1.16 millert 26029: int
26030: main ()
26031: {
26032: return f != $ac_func;
1.9 millert 26033: ;
26034: return 0;
26035: }
26036: _ACEOF
26037: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26038: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26039: (eval $ac_link) 2>&5
26040: ac_status=$?
1.16 millert 26041: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26042: (exit $ac_status); } &&
26043: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26044: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26045: (eval $ac_try) 2>&5
26046: ac_status=$?
1.16 millert 26047: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26048: (exit $ac_status); }; }; then
26049: eval "$as_ac_var=yes"
26050: else
26051: echo "$as_me: failed program was:" >&5
1.16 millert 26052: sed 's/^/| /' conftest.$ac_ext >&5
26053:
1.9 millert 26054: eval "$as_ac_var=no"
26055: fi
26056: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26057: fi
1.16 millert 26058: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 26059: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26060: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 26061: cat >>confdefs.h <<_ACEOF
1.9 millert 26062: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 26063: _ACEOF
1.9 millert 26064: break
1.1 millert 26065: fi
1.9 millert 26066: done
1.1 millert 26067:
1.23 ! millert 26068: else
1.16 millert 26069:
1.23 ! millert 26070: for ac_func in futime
1.1 millert 26071: do
1.9 millert 26072: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 26073: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 26074: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26075: if eval "test \"\${$as_ac_var+set}\" = set"; then
26076: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26077: else
1.9 millert 26078: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26079: #line $LINENO "configure"
26080: /* confdefs.h. */
26081: _ACEOF
26082: cat confdefs.h >>conftest.$ac_ext
26083: cat >>conftest.$ac_ext <<_ACEOF
26084: /* end confdefs.h. */
1.1 millert 26085: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 26086: which can conflict with char $ac_func (); below.
26087: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26088: <limits.h> exists even on freestanding compilers. */
26089: #ifdef __STDC__
26090: # include <limits.h>
26091: #else
26092: # include <assert.h>
26093: #endif
1.1 millert 26094: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26095: #ifdef __cplusplus
26096: extern "C"
1.16 millert 26097: {
1.9 millert 26098: #endif
1.1 millert 26099: /* We use char because int might match the return type of a gcc2
1.9 millert 26100: builtin and then its argument prototype would still apply. */
26101: char $ac_func ();
1.1 millert 26102: /* The GNU C library defines this for functions which it implements
26103: to always fail with ENOSYS. Some functions are actually named
26104: something starting with __ and the normal name is an alias. */
26105: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26106: choke me
26107: #else
1.16 millert 26108: char (*f) () = $ac_func;
26109: #endif
26110: #ifdef __cplusplus
26111: }
1.1 millert 26112: #endif
26113:
1.16 millert 26114: int
26115: main ()
26116: {
26117: return f != $ac_func;
1.9 millert 26118: ;
26119: return 0;
26120: }
26121: _ACEOF
26122: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26123: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26124: (eval $ac_link) 2>&5
26125: ac_status=$?
1.16 millert 26126: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26127: (exit $ac_status); } &&
26128: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26129: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26130: (eval $ac_try) 2>&5
26131: ac_status=$?
1.16 millert 26132: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26133: (exit $ac_status); }; }; then
26134: eval "$as_ac_var=yes"
26135: else
26136: echo "$as_me: failed program was:" >&5
1.16 millert 26137: sed 's/^/| /' conftest.$ac_ext >&5
26138:
1.9 millert 26139: eval "$as_ac_var=no"
26140: fi
26141: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26142: fi
1.16 millert 26143: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 26144: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26145: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 26146: cat >>confdefs.h <<_ACEOF
1.9 millert 26147: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 26148: _ACEOF
1.23 ! millert 26149:
! 26150: fi
! 26151: done
! 26152: LIBOBJS="$LIBOBJS utimes.$ac_objext"
1.1 millert 26153: fi
26154: done
26155:
1.23 ! millert 26156: echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
! 26157: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6
! 26158: if test "${sudo_cv_func_fnmatch+set}" = set; then
! 26159: echo $ECHO_N "(cached) $ECHO_C" >&6
! 26160: else
! 26161: rm -f conftestdata; > conftestdata
! 26162: if test "$cross_compiling" = yes; then
! 26163: sudo_cv_func_fnmatch=no
! 26164: else
! 26165: cat >conftest.$ac_ext <<_ACEOF
! 26166: #line $LINENO "configure"
! 26167: /* confdefs.h. */
! 26168: _ACEOF
! 26169: cat confdefs.h >>conftest.$ac_ext
! 26170: cat >>conftest.$ac_ext <<_ACEOF
! 26171: /* end confdefs.h. */
! 26172: #include <fnmatch.h>
! 26173: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
! 26174:
! 26175: _ACEOF
! 26176: rm -f conftest$ac_exeext
! 26177: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 26178: (eval $ac_link) 2>&5
! 26179: ac_status=$?
! 26180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26181: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 26182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 26183: (eval $ac_try) 2>&5
! 26184: ac_status=$?
! 26185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26186: (exit $ac_status); }; }; then
! 26187: sudo_cv_func_fnmatch=yes
! 26188: else
! 26189: echo "$as_me: program exited with status $ac_status" >&5
! 26190: echo "$as_me: failed program was:" >&5
! 26191: sed 's/^/| /' conftest.$ac_ext >&5
! 26192:
! 26193: ( exit $ac_status )
! 26194: sudo_cv_func_fnmatch=no
! 26195: fi
! 26196: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 26197: fi
! 26198: rm -f core core.* *.core
! 26199: fi
! 26200: echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
! 26201: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6
! 26202: if test $sudo_cv_func_fnmatch = yes; then
! 26203: cat >>confdefs.h <<\_ACEOF
! 26204: #define HAVE_FNMATCH 1
! 26205: _ACEOF
1.16 millert 26206:
1.23 ! millert 26207: else
! 26208: LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
! 26209: fi
1.16 millert 26210:
1.23 ! millert 26211: echo "$as_me:$LINENO: checking for isblank" >&5
! 26212: echo $ECHO_N "checking for isblank... $ECHO_C" >&6
! 26213: if test "${sudo_cv_func_isblank+set}" = set; then
1.9 millert 26214: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26215: else
1.9 millert 26216: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26217: #line $LINENO "configure"
26218: /* confdefs.h. */
26219: _ACEOF
26220: cat confdefs.h >>conftest.$ac_ext
26221: cat >>conftest.$ac_ext <<_ACEOF
26222: /* end confdefs.h. */
1.23 ! millert 26223: #include <ctype.h>
1.16 millert 26224: int
26225: main ()
26226: {
1.23 ! millert 26227: (void)isblank(1);
1.9 millert 26228: ;
26229: return 0;
26230: }
26231: _ACEOF
26232: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26233: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26234: (eval $ac_link) 2>&5
26235: ac_status=$?
1.16 millert 26236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26237: (exit $ac_status); } &&
26238: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26239: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26240: (eval $ac_try) 2>&5
26241: ac_status=$?
1.16 millert 26242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26243: (exit $ac_status); }; }; then
1.23 ! millert 26244: sudo_cv_func_isblank=yes
1.9 millert 26245: else
26246: echo "$as_me: failed program was:" >&5
1.16 millert 26247: sed 's/^/| /' conftest.$ac_ext >&5
26248:
1.23 ! millert 26249: sudo_cv_func_isblank=no
1.9 millert 26250: fi
26251: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26252: fi
1.23 ! millert 26253: echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
! 26254: echo "${ECHO_T}$sudo_cv_func_isblank" >&6
! 26255:
! 26256: if test "$sudo_cv_func_isblank" = "yes"; then
! 26257:
! 26258: cat >>confdefs.h <<\_ACEOF
! 26259: #define HAVE_ISBLANK 1
1.16 millert 26260: _ACEOF
1.1 millert 26261:
1.23 ! millert 26262: fi
! 26263:
! 26264:
! 26265:
! 26266:
! 26267:
! 26268:
! 26269:
! 26270: for ac_func in strerror strcasecmp sigaction strlcpy strlcat closefrom
1.9 millert 26271: do
26272: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 26273: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 26274: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26275: if eval "test \"\${$as_ac_var+set}\" = set"; then
26276: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26277: else
1.9 millert 26278: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26279: #line $LINENO "configure"
26280: /* confdefs.h. */
26281: _ACEOF
26282: cat confdefs.h >>conftest.$ac_ext
26283: cat >>conftest.$ac_ext <<_ACEOF
26284: /* end confdefs.h. */
26285: /* System header to define __stub macros and hopefully few prototypes,
26286: which can conflict with char $ac_func (); below.
26287: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26288: <limits.h> exists even on freestanding compilers. */
26289: #ifdef __STDC__
26290: # include <limits.h>
26291: #else
26292: # include <assert.h>
26293: #endif
1.1 millert 26294: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26295: #ifdef __cplusplus
26296: extern "C"
1.16 millert 26297: {
1.9 millert 26298: #endif
1.1 millert 26299: /* We use char because int might match the return type of a gcc2
1.9 millert 26300: builtin and then its argument prototype would still apply. */
26301: char $ac_func ();
1.1 millert 26302: /* The GNU C library defines this for functions which it implements
26303: to always fail with ENOSYS. Some functions are actually named
26304: something starting with __ and the normal name is an alias. */
1.9 millert 26305: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 26306: choke me
26307: #else
1.16 millert 26308: char (*f) () = $ac_func;
26309: #endif
26310: #ifdef __cplusplus
26311: }
1.1 millert 26312: #endif
26313:
1.16 millert 26314: int
26315: main ()
26316: {
26317: return f != $ac_func;
1.9 millert 26318: ;
26319: return 0;
26320: }
26321: _ACEOF
26322: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26323: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26324: (eval $ac_link) 2>&5
26325: ac_status=$?
1.16 millert 26326: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26327: (exit $ac_status); } &&
26328: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26329: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26330: (eval $ac_try) 2>&5
26331: ac_status=$?
1.16 millert 26332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26333: (exit $ac_status); }; }; then
26334: eval "$as_ac_var=yes"
26335: else
26336: echo "$as_me: failed program was:" >&5
1.16 millert 26337: sed 's/^/| /' conftest.$ac_ext >&5
26338:
1.9 millert 26339: eval "$as_ac_var=no"
26340: fi
26341: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26342: fi
1.16 millert 26343: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 26344: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26345: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 26346: cat >>confdefs.h <<_ACEOF
1.9 millert 26347: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 26348: _ACEOF
1.9 millert 26349:
1.23 ! millert 26350: else
! 26351: LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
1.1 millert 26352: fi
1.9 millert 26353: done
1.1 millert 26354:
1.16 millert 26355:
1.23 ! millert 26356:
! 26357:
! 26358:
! 26359:
! 26360: for ac_func in snprintf vsnprintf asprintf vasprintf
1.9 millert 26361: do
26362: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 26363: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 26364: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26365: if eval "test \"\${$as_ac_var+set}\" = set"; then
26366: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26367: else
1.9 millert 26368: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26369: #line $LINENO "configure"
26370: /* confdefs.h. */
26371: _ACEOF
26372: cat confdefs.h >>conftest.$ac_ext
26373: cat >>conftest.$ac_ext <<_ACEOF
26374: /* end confdefs.h. */
1.1 millert 26375: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 26376: which can conflict with char $ac_func (); below.
26377: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26378: <limits.h> exists even on freestanding compilers. */
26379: #ifdef __STDC__
26380: # include <limits.h>
26381: #else
26382: # include <assert.h>
26383: #endif
1.1 millert 26384: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26385: #ifdef __cplusplus
26386: extern "C"
1.16 millert 26387: {
1.9 millert 26388: #endif
1.1 millert 26389: /* We use char because int might match the return type of a gcc2
1.9 millert 26390: builtin and then its argument prototype would still apply. */
26391: char $ac_func ();
1.1 millert 26392: /* The GNU C library defines this for functions which it implements
26393: to always fail with ENOSYS. Some functions are actually named
26394: something starting with __ and the normal name is an alias. */
1.9 millert 26395: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 26396: choke me
26397: #else
1.16 millert 26398: char (*f) () = $ac_func;
26399: #endif
26400: #ifdef __cplusplus
26401: }
1.1 millert 26402: #endif
26403:
1.16 millert 26404: int
26405: main ()
26406: {
26407: return f != $ac_func;
1.9 millert 26408: ;
26409: return 0;
26410: }
26411: _ACEOF
26412: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26413: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26414: (eval $ac_link) 2>&5
26415: ac_status=$?
1.16 millert 26416: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26417: (exit $ac_status); } &&
26418: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26419: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26420: (eval $ac_try) 2>&5
26421: ac_status=$?
1.16 millert 26422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 26423: (exit $ac_status); }; }; then
! 26424: eval "$as_ac_var=yes"
1.9 millert 26425: else
26426: echo "$as_me: failed program was:" >&5
1.16 millert 26427: sed 's/^/| /' conftest.$ac_ext >&5
26428:
1.23 ! millert 26429: eval "$as_ac_var=no"
1.1 millert 26430: fi
1.23 ! millert 26431: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 26432: fi
1.23 ! millert 26433: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 26434: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 26435: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 26436: cat >>confdefs.h <<_ACEOF
! 26437: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 26438: _ACEOF
26439:
1.1 millert 26440: else
1.23 ! millert 26441: NEED_SNPRINTF=1
1.1 millert 26442: fi
1.9 millert 26443: done
1.1 millert 26444:
1.16 millert 26445:
1.23 ! millert 26446: for ac_func in getttimeofday
1.9 millert 26447: do
26448: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 26449: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 26450: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26451: if eval "test \"\${$as_ac_var+set}\" = set"; then
26452: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26453: else
1.9 millert 26454: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26455: #line $LINENO "configure"
26456: /* confdefs.h. */
26457: _ACEOF
26458: cat confdefs.h >>conftest.$ac_ext
26459: cat >>conftest.$ac_ext <<_ACEOF
26460: /* end confdefs.h. */
1.1 millert 26461: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 26462: which can conflict with char $ac_func (); below.
26463: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26464: <limits.h> exists even on freestanding compilers. */
26465: #ifdef __STDC__
26466: # include <limits.h>
26467: #else
26468: # include <assert.h>
26469: #endif
1.1 millert 26470: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26471: #ifdef __cplusplus
26472: extern "C"
1.16 millert 26473: {
1.9 millert 26474: #endif
1.1 millert 26475: /* We use char because int might match the return type of a gcc2
1.9 millert 26476: builtin and then its argument prototype would still apply. */
26477: char $ac_func ();
1.1 millert 26478: /* The GNU C library defines this for functions which it implements
26479: to always fail with ENOSYS. Some functions are actually named
26480: something starting with __ and the normal name is an alias. */
1.9 millert 26481: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1.1 millert 26482: choke me
26483: #else
1.16 millert 26484: char (*f) () = $ac_func;
26485: #endif
26486: #ifdef __cplusplus
26487: }
1.1 millert 26488: #endif
26489:
1.16 millert 26490: int
26491: main ()
26492: {
26493: return f != $ac_func;
1.9 millert 26494: ;
26495: return 0;
26496: }
26497: _ACEOF
26498: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26499: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26500: (eval $ac_link) 2>&5
26501: ac_status=$?
1.16 millert 26502: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26503: (exit $ac_status); } &&
26504: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26505: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26506: (eval $ac_try) 2>&5
26507: ac_status=$?
1.16 millert 26508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26509: (exit $ac_status); }; }; then
26510: eval "$as_ac_var=yes"
26511: else
26512: echo "$as_me: failed program was:" >&5
1.16 millert 26513: sed 's/^/| /' conftest.$ac_ext >&5
26514:
1.9 millert 26515: eval "$as_ac_var=no"
26516: fi
26517: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26518: fi
1.16 millert 26519: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 26520: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26521: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.16 millert 26522: cat >>confdefs.h <<_ACEOF
1.9 millert 26523: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 26524: _ACEOF
1.23 ! millert 26525: echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
! 26526: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6
! 26527: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.9 millert 26528: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26529: else
1.23 ! millert 26530: cat >conftest.$ac_ext <<_ACEOF
! 26531: #line $LINENO "configure"
! 26532: /* confdefs.h. */
! 26533: _ACEOF
! 26534: cat confdefs.h >>conftest.$ac_ext
! 26535: cat >>conftest.$ac_ext <<_ACEOF
! 26536: /* end confdefs.h. */
! 26537: $ac_includes_default
! 26538: int
! 26539: main ()
! 26540: {
! 26541: static struct stat ac_aggr;
! 26542: if (ac_aggr.st_mtim)
! 26543: return 0;
! 26544: ;
! 26545: return 0;
! 26546: }
! 26547: _ACEOF
! 26548: rm -f conftest.$ac_objext
! 26549: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 26550: (eval $ac_compile) 2>&5
! 26551: ac_status=$?
! 26552: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26553: (exit $ac_status); } &&
! 26554: { ac_try='test -s conftest.$ac_objext'
! 26555: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 26556: (eval $ac_try) 2>&5
! 26557: ac_status=$?
! 26558: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 26559: (exit $ac_status); }; }; then
! 26560: ac_cv_member_struct_stat_st_mtim=yes
1.1 millert 26561: else
1.23 ! millert 26562: echo "$as_me: failed program was:" >&5
! 26563: sed 's/^/| /' conftest.$ac_ext >&5
! 26564:
! 26565: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26566: #line $LINENO "configure"
26567: /* confdefs.h. */
26568: _ACEOF
26569: cat confdefs.h >>conftest.$ac_ext
26570: cat >>conftest.$ac_ext <<_ACEOF
26571: /* end confdefs.h. */
1.23 ! millert 26572: $ac_includes_default
! 26573: int
! 26574: main ()
! 26575: {
! 26576: static struct stat ac_aggr;
! 26577: if (sizeof ac_aggr.st_mtim)
! 26578: return 0;
! 26579: ;
! 26580: return 0;
1.1 millert 26581: }
1.9 millert 26582: _ACEOF
1.23 ! millert 26583: rm -f conftest.$ac_objext
! 26584: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 26585: (eval $ac_compile) 2>&5
1.9 millert 26586: ac_status=$?
1.16 millert 26587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 26588: (exit $ac_status); } &&
! 26589: { ac_try='test -s conftest.$ac_objext'
1.16 millert 26590: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26591: (eval $ac_try) 2>&5
26592: ac_status=$?
1.16 millert 26593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26594: (exit $ac_status); }; }; then
1.23 ! millert 26595: ac_cv_member_struct_stat_st_mtim=yes
1.1 millert 26596: else
1.23 ! millert 26597: echo "$as_me: failed program was:" >&5
1.16 millert 26598: sed 's/^/| /' conftest.$ac_ext >&5
26599:
1.23 ! millert 26600: ac_cv_member_struct_stat_st_mtim=no
1.1 millert 26601: fi
1.23 ! millert 26602: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 26603: fi
1.23 ! millert 26604: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 26605: fi
1.23 ! millert 26606: echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
! 26607: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6
! 26608: if test $ac_cv_member_struct_stat_st_mtim = yes; then
! 26609: cat >>confdefs.h <<\_ACEOF
! 26610: #define HAVE_ST_MTIM 1
1.16 millert 26611: _ACEOF
1.1 millert 26612:
26613: else
1.23 ! millert 26614: echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
! 26615: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6
! 26616: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9 millert 26617: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26618: else
1.9 millert 26619: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26620: #line $LINENO "configure"
26621: /* confdefs.h. */
26622: _ACEOF
26623: cat confdefs.h >>conftest.$ac_ext
26624: cat >>conftest.$ac_ext <<_ACEOF
26625: /* end confdefs.h. */
1.23 ! millert 26626: $ac_includes_default
! 26627: int
! 26628: main ()
! 26629: {
! 26630: static struct stat ac_aggr;
! 26631: if (ac_aggr.st_mtimespec)
! 26632: return 0;
! 26633: ;
! 26634: return 0;
! 26635: }
1.9 millert 26636: _ACEOF
1.23 ! millert 26637: rm -f conftest.$ac_objext
! 26638: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 26639: (eval $ac_compile) 2>&5
1.9 millert 26640: ac_status=$?
1.16 millert 26641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 26642: (exit $ac_status); } &&
! 26643: { ac_try='test -s conftest.$ac_objext'
1.16 millert 26644: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26645: (eval $ac_try) 2>&5
26646: ac_status=$?
1.16 millert 26647: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26648: (exit $ac_status); }; }; then
1.23 ! millert 26649: ac_cv_member_struct_stat_st_mtimespec=yes
1.1 millert 26650: else
1.23 ! millert 26651: echo "$as_me: failed program was:" >&5
1.16 millert 26652: sed 's/^/| /' conftest.$ac_ext >&5
26653:
1.23 ! millert 26654: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26655: #line $LINENO "configure"
26656: /* confdefs.h. */
26657: _ACEOF
26658: cat confdefs.h >>conftest.$ac_ext
26659: cat >>conftest.$ac_ext <<_ACEOF
26660: /* end confdefs.h. */
1.23 ! millert 26661: $ac_includes_default
1.9 millert 26662: int
26663: main ()
26664: {
1.23 ! millert 26665: static struct stat ac_aggr;
! 26666: if (sizeof ac_aggr.st_mtimespec)
! 26667: return 0;
1.9 millert 26668: ;
26669: return 0;
26670: }
26671: _ACEOF
1.23 ! millert 26672: rm -f conftest.$ac_objext
! 26673: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 26674: (eval $ac_compile) 2>&5
1.9 millert 26675: ac_status=$?
1.16 millert 26676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26677: (exit $ac_status); } &&
1.23 ! millert 26678: { ac_try='test -s conftest.$ac_objext'
1.16 millert 26679: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26680: (eval $ac_try) 2>&5
26681: ac_status=$?
1.16 millert 26682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26683: (exit $ac_status); }; }; then
1.23 ! millert 26684: ac_cv_member_struct_stat_st_mtimespec=yes
1.9 millert 26685: else
26686: echo "$as_me: failed program was:" >&5
1.16 millert 26687: sed 's/^/| /' conftest.$ac_ext >&5
26688:
1.23 ! millert 26689: ac_cv_member_struct_stat_st_mtimespec=no
! 26690: fi
! 26691: rm -f conftest.$ac_objext conftest.$ac_ext
1.9 millert 26692: fi
1.23 ! millert 26693: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 millert 26694: fi
1.23 ! millert 26695: echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
! 26696: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6
! 26697: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
! 26698: cat >>confdefs.h <<\_ACEOF
! 26699: #define HAVE_ST_MTIMESPEC 1
1.16 millert 26700: _ACEOF
1.1 millert 26701:
1.23 ! millert 26702: fi
1.1 millert 26703:
1.23 ! millert 26704: fi
1.16 millert 26705:
1.23 ! millert 26706: fi
! 26707: done
1.16 millert 26708:
1.23 ! millert 26709: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26710: #line $LINENO "configure"
26711: /* confdefs.h. */
26712: _ACEOF
26713: cat confdefs.h >>conftest.$ac_ext
26714: cat >>conftest.$ac_ext <<_ACEOF
26715: /* end confdefs.h. */
1.23 ! millert 26716: #include <sys/types.h>
! 26717: #include <$ac_header_dirent>
1.16 millert 26718: int
26719: main ()
26720: {
1.23 ! millert 26721: DIR d; (void)dirfd(&d);
1.9 millert 26722: ;
26723: return 0;
26724: }
26725: _ACEOF
26726: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26727: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26728: (eval $ac_link) 2>&5
26729: ac_status=$?
1.16 millert 26730: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26731: (exit $ac_status); } &&
26732: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26733: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26734: (eval $ac_try) 2>&5
26735: ac_status=$?
1.16 millert 26736: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.23 ! millert 26737: (exit $ac_status); }; }; then
! 26738: cat >>confdefs.h <<\_ACEOF
! 26739: #define HAVE_DIRFD 1
! 26740: _ACEOF
! 26741:
1.9 millert 26742: else
26743: echo "$as_me: failed program was:" >&5
1.16 millert 26744: sed 's/^/| /' conftest.$ac_ext >&5
26745:
1.23 ! millert 26746: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26747: #line $LINENO "configure"
26748: /* confdefs.h. */
26749: _ACEOF
26750: cat confdefs.h >>conftest.$ac_ext
26751: cat >>conftest.$ac_ext <<_ACEOF
26752: /* end confdefs.h. */
1.23 ! millert 26753: #include <sys/types.h>
! 26754: #include <$ac_header_dirent>
1.16 millert 26755: int
26756: main ()
26757: {
1.23 ! millert 26758: DIR d; (void)&d.dd_fd;
1.9 millert 26759: ;
26760: return 0;
26761: }
26762: _ACEOF
26763: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26764: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26765: (eval $ac_link) 2>&5
26766: ac_status=$?
1.16 millert 26767: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26768: (exit $ac_status); } &&
26769: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26770: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26771: (eval $ac_try) 2>&5
26772: ac_status=$?
1.16 millert 26773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26774: (exit $ac_status); }; }; then
1.23 ! millert 26775: cat >>confdefs.h <<\_ACEOF
! 26776: #define HAVE_DD_FD 1
! 26777: _ACEOF
! 26778:
1.9 millert 26779: else
26780: echo "$as_me: failed program was:" >&5
1.16 millert 26781: sed 's/^/| /' conftest.$ac_ext >&5
26782:
1.9 millert 26783: fi
26784: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26785: fi
1.23 ! millert 26786: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 26787: if test -n "$NEED_SNPRINTF"; then
1.9 millert 26788: LIBOBJS="$LIBOBJS snprintf.$ac_objext"
1.1 millert 26789: fi
1.23 ! millert 26790: if test -z "$LIB_CRYPT" -a "$with_pam" != "yes"; then
1.16 millert 26791: echo "$as_me:$LINENO: checking for crypt" >&5
1.9 millert 26792: echo $ECHO_N "checking for crypt... $ECHO_C" >&6
26793: if test "${ac_cv_func_crypt+set}" = set; then
26794: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26795: else
1.9 millert 26796: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26797: #line $LINENO "configure"
26798: /* confdefs.h. */
26799: _ACEOF
26800: cat confdefs.h >>conftest.$ac_ext
26801: cat >>conftest.$ac_ext <<_ACEOF
26802: /* end confdefs.h. */
1.1 millert 26803: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 26804: which can conflict with char crypt (); below.
26805: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26806: <limits.h> exists even on freestanding compilers. */
26807: #ifdef __STDC__
26808: # include <limits.h>
26809: #else
26810: # include <assert.h>
26811: #endif
1.1 millert 26812: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26813: #ifdef __cplusplus
26814: extern "C"
1.16 millert 26815: {
1.9 millert 26816: #endif
1.1 millert 26817: /* We use char because int might match the return type of a gcc2
1.9 millert 26818: builtin and then its argument prototype would still apply. */
26819: char crypt ();
1.1 millert 26820: /* The GNU C library defines this for functions which it implements
26821: to always fail with ENOSYS. Some functions are actually named
26822: something starting with __ and the normal name is an alias. */
26823: #if defined (__stub_crypt) || defined (__stub___crypt)
26824: choke me
26825: #else
1.16 millert 26826: char (*f) () = crypt;
26827: #endif
26828: #ifdef __cplusplus
26829: }
1.1 millert 26830: #endif
26831:
1.16 millert 26832: int
26833: main ()
26834: {
26835: return f != crypt;
1.9 millert 26836: ;
26837: return 0;
26838: }
26839: _ACEOF
26840: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26841: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26842: (eval $ac_link) 2>&5
26843: ac_status=$?
1.16 millert 26844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26845: (exit $ac_status); } &&
26846: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26847: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26848: (eval $ac_try) 2>&5
26849: ac_status=$?
1.16 millert 26850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26851: (exit $ac_status); }; }; then
26852: ac_cv_func_crypt=yes
26853: else
26854: echo "$as_me: failed program was:" >&5
1.16 millert 26855: sed 's/^/| /' conftest.$ac_ext >&5
26856:
1.9 millert 26857: ac_cv_func_crypt=no
26858: fi
26859: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26860: fi
1.16 millert 26861: echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
1.9 millert 26862: echo "${ECHO_T}$ac_cv_func_crypt" >&6
26863: if test $ac_cv_func_crypt = yes; then
1.1 millert 26864: :
26865: else
1.16 millert 26866: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
1.9 millert 26867: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
26868: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
26869: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26870: else
1.9 millert 26871: ac_check_lib_save_LIBS=$LIBS
1.1 millert 26872: LIBS="-lcrypt $LIBS"
1.9 millert 26873: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26874: #line $LINENO "configure"
26875: /* confdefs.h. */
26876: _ACEOF
26877: cat confdefs.h >>conftest.$ac_ext
26878: cat >>conftest.$ac_ext <<_ACEOF
26879: /* end confdefs.h. */
1.9 millert 26880:
1.1 millert 26881: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26882: #ifdef __cplusplus
26883: extern "C"
26884: #endif
1.1 millert 26885: /* We use char because int might match the return type of a gcc2
1.9 millert 26886: builtin and then its argument prototype would still apply. */
26887: char crypt ();
26888: int
26889: main ()
26890: {
26891: crypt ();
26892: ;
26893: return 0;
26894: }
26895: _ACEOF
26896: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26897: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26898: (eval $ac_link) 2>&5
26899: ac_status=$?
1.16 millert 26900: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26901: (exit $ac_status); } &&
26902: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26903: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26904: (eval $ac_try) 2>&5
26905: ac_status=$?
1.16 millert 26906: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26907: (exit $ac_status); }; }; then
26908: ac_cv_lib_crypt_crypt=yes
26909: else
26910: echo "$as_me: failed program was:" >&5
1.16 millert 26911: sed 's/^/| /' conftest.$ac_ext >&5
26912:
1.9 millert 26913: ac_cv_lib_crypt_crypt=no
26914: fi
26915: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26916: LIBS=$ac_check_lib_save_LIBS
26917: fi
1.16 millert 26918: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
1.9 millert 26919: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
26920: if test $ac_cv_lib_crypt_crypt = yes; then
1.1 millert 26921: SUDO_LIBS="${SUDO_LIBS} -lcrypt"; LIBS="${LIBS} -lcrypt"
26922: else
1.16 millert 26923: echo "$as_me:$LINENO: checking for crypt in -lcrypt_d" >&5
1.9 millert 26924: echo $ECHO_N "checking for crypt in -lcrypt_d... $ECHO_C" >&6
26925: if test "${ac_cv_lib_crypt_d_crypt+set}" = set; then
26926: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26927: else
1.9 millert 26928: ac_check_lib_save_LIBS=$LIBS
1.1 millert 26929: LIBS="-lcrypt_d $LIBS"
1.9 millert 26930: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26931: #line $LINENO "configure"
26932: /* confdefs.h. */
26933: _ACEOF
26934: cat confdefs.h >>conftest.$ac_ext
26935: cat >>conftest.$ac_ext <<_ACEOF
26936: /* end confdefs.h. */
1.9 millert 26937:
1.1 millert 26938: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26939: #ifdef __cplusplus
26940: extern "C"
26941: #endif
1.1 millert 26942: /* We use char because int might match the return type of a gcc2
1.9 millert 26943: builtin and then its argument prototype would still apply. */
26944: char crypt ();
26945: int
26946: main ()
26947: {
26948: crypt ();
26949: ;
26950: return 0;
26951: }
26952: _ACEOF
26953: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 26954: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 26955: (eval $ac_link) 2>&5
26956: ac_status=$?
1.16 millert 26957: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26958: (exit $ac_status); } &&
26959: { ac_try='test -s conftest$ac_exeext'
1.16 millert 26960: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 26961: (eval $ac_try) 2>&5
26962: ac_status=$?
1.16 millert 26963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 26964: (exit $ac_status); }; }; then
26965: ac_cv_lib_crypt_d_crypt=yes
26966: else
26967: echo "$as_me: failed program was:" >&5
1.16 millert 26968: sed 's/^/| /' conftest.$ac_ext >&5
26969:
1.9 millert 26970: ac_cv_lib_crypt_d_crypt=no
26971: fi
26972: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26973: LIBS=$ac_check_lib_save_LIBS
26974: fi
1.16 millert 26975: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_d_crypt" >&5
1.9 millert 26976: echo "${ECHO_T}$ac_cv_lib_crypt_d_crypt" >&6
26977: if test $ac_cv_lib_crypt_d_crypt = yes; then
1.1 millert 26978: SUDO_LIBS="${SUDO_LIBS} -lcrypt_d"; LIBS="${LIBS} -lcrypt_d"
26979: else
1.16 millert 26980: echo "$as_me:$LINENO: checking for crypt in -lufc" >&5
1.9 millert 26981: echo $ECHO_N "checking for crypt in -lufc... $ECHO_C" >&6
26982: if test "${ac_cv_lib_ufc_crypt+set}" = set; then
26983: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 26984: else
1.9 millert 26985: ac_check_lib_save_LIBS=$LIBS
1.1 millert 26986: LIBS="-lufc $LIBS"
1.9 millert 26987: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 26988: #line $LINENO "configure"
26989: /* confdefs.h. */
26990: _ACEOF
26991: cat confdefs.h >>conftest.$ac_ext
26992: cat >>conftest.$ac_ext <<_ACEOF
26993: /* end confdefs.h. */
1.9 millert 26994:
1.1 millert 26995: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 26996: #ifdef __cplusplus
26997: extern "C"
26998: #endif
1.1 millert 26999: /* We use char because int might match the return type of a gcc2
1.9 millert 27000: builtin and then its argument prototype would still apply. */
27001: char crypt ();
27002: int
27003: main ()
27004: {
27005: crypt ();
27006: ;
27007: return 0;
27008: }
27009: _ACEOF
27010: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27011: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27012: (eval $ac_link) 2>&5
27013: ac_status=$?
1.16 millert 27014: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27015: (exit $ac_status); } &&
27016: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27017: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27018: (eval $ac_try) 2>&5
27019: ac_status=$?
1.16 millert 27020: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27021: (exit $ac_status); }; }; then
27022: ac_cv_lib_ufc_crypt=yes
27023: else
27024: echo "$as_me: failed program was:" >&5
1.16 millert 27025: sed 's/^/| /' conftest.$ac_ext >&5
27026:
1.9 millert 27027: ac_cv_lib_ufc_crypt=no
27028: fi
27029: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27030: LIBS=$ac_check_lib_save_LIBS
27031: fi
1.16 millert 27032: echo "$as_me:$LINENO: result: $ac_cv_lib_ufc_crypt" >&5
1.9 millert 27033: echo "${ECHO_T}$ac_cv_lib_ufc_crypt" >&6
27034: if test $ac_cv_lib_ufc_crypt = yes; then
1.1 millert 27035: SUDO_LIBS="${SUDO_LIBS} -lufc"; LIBS="${LIBS} -lufc"
27036: fi
27037:
27038: fi
27039:
27040: fi
27041:
27042: fi
27043:
27044: fi
1.16 millert 27045: echo "$as_me:$LINENO: checking for socket" >&5
1.9 millert 27046: echo $ECHO_N "checking for socket... $ECHO_C" >&6
27047: if test "${ac_cv_func_socket+set}" = set; then
27048: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27049: else
1.9 millert 27050: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27051: #line $LINENO "configure"
27052: /* confdefs.h. */
27053: _ACEOF
27054: cat confdefs.h >>conftest.$ac_ext
27055: cat >>conftest.$ac_ext <<_ACEOF
27056: /* end confdefs.h. */
1.1 millert 27057: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 27058: which can conflict with char socket (); below.
27059: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27060: <limits.h> exists even on freestanding compilers. */
27061: #ifdef __STDC__
27062: # include <limits.h>
27063: #else
27064: # include <assert.h>
27065: #endif
1.1 millert 27066: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27067: #ifdef __cplusplus
27068: extern "C"
1.16 millert 27069: {
1.9 millert 27070: #endif
1.1 millert 27071: /* We use char because int might match the return type of a gcc2
1.9 millert 27072: builtin and then its argument prototype would still apply. */
27073: char socket ();
1.1 millert 27074: /* The GNU C library defines this for functions which it implements
27075: to always fail with ENOSYS. Some functions are actually named
27076: something starting with __ and the normal name is an alias. */
27077: #if defined (__stub_socket) || defined (__stub___socket)
27078: choke me
27079: #else
1.16 millert 27080: char (*f) () = socket;
27081: #endif
27082: #ifdef __cplusplus
27083: }
1.1 millert 27084: #endif
27085:
1.16 millert 27086: int
27087: main ()
27088: {
27089: return f != socket;
1.9 millert 27090: ;
27091: return 0;
27092: }
27093: _ACEOF
27094: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27095: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27096: (eval $ac_link) 2>&5
27097: ac_status=$?
1.16 millert 27098: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27099: (exit $ac_status); } &&
27100: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27101: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27102: (eval $ac_try) 2>&5
27103: ac_status=$?
1.16 millert 27104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27105: (exit $ac_status); }; }; then
27106: ac_cv_func_socket=yes
27107: else
27108: echo "$as_me: failed program was:" >&5
1.16 millert 27109: sed 's/^/| /' conftest.$ac_ext >&5
27110:
1.9 millert 27111: ac_cv_func_socket=no
27112: fi
27113: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27114: fi
1.16 millert 27115: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
1.9 millert 27116: echo "${ECHO_T}$ac_cv_func_socket" >&6
27117: if test $ac_cv_func_socket = yes; then
1.1 millert 27118: :
27119: else
1.16 millert 27120: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9 millert 27121: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27122: if test "${ac_cv_lib_socket_socket+set}" = set; then
27123: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27124: else
1.9 millert 27125: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27126: LIBS="-lsocket $LIBS"
1.9 millert 27127: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27128: #line $LINENO "configure"
27129: /* confdefs.h. */
27130: _ACEOF
27131: cat confdefs.h >>conftest.$ac_ext
27132: cat >>conftest.$ac_ext <<_ACEOF
27133: /* end confdefs.h. */
1.9 millert 27134:
1.1 millert 27135: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27136: #ifdef __cplusplus
27137: extern "C"
27138: #endif
1.1 millert 27139: /* We use char because int might match the return type of a gcc2
1.9 millert 27140: builtin and then its argument prototype would still apply. */
27141: char socket ();
27142: int
27143: main ()
27144: {
27145: socket ();
27146: ;
27147: return 0;
27148: }
27149: _ACEOF
27150: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27151: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27152: (eval $ac_link) 2>&5
27153: ac_status=$?
1.16 millert 27154: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27155: (exit $ac_status); } &&
27156: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27157: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27158: (eval $ac_try) 2>&5
27159: ac_status=$?
1.16 millert 27160: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27161: (exit $ac_status); }; }; then
27162: ac_cv_lib_socket_socket=yes
27163: else
27164: echo "$as_me: failed program was:" >&5
1.16 millert 27165: sed 's/^/| /' conftest.$ac_ext >&5
27166:
1.9 millert 27167: ac_cv_lib_socket_socket=no
27168: fi
27169: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27170: LIBS=$ac_check_lib_save_LIBS
27171: fi
1.16 millert 27172: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
1.9 millert 27173: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
27174: if test $ac_cv_lib_socket_socket = yes; then
1.1 millert 27175: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
27176: else
1.16 millert 27177: echo "$as_me:$LINENO: checking for socket in -linet" >&5
1.9 millert 27178: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
27179: if test "${ac_cv_lib_inet_socket+set}" = set; then
27180: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27181: else
1.9 millert 27182: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27183: LIBS="-linet $LIBS"
1.9 millert 27184: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27185: #line $LINENO "configure"
27186: /* confdefs.h. */
27187: _ACEOF
27188: cat confdefs.h >>conftest.$ac_ext
27189: cat >>conftest.$ac_ext <<_ACEOF
27190: /* end confdefs.h. */
1.9 millert 27191:
1.1 millert 27192: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27193: #ifdef __cplusplus
27194: extern "C"
27195: #endif
1.1 millert 27196: /* We use char because int might match the return type of a gcc2
1.9 millert 27197: builtin and then its argument prototype would still apply. */
27198: char socket ();
27199: int
27200: main ()
27201: {
27202: socket ();
27203: ;
27204: return 0;
27205: }
27206: _ACEOF
27207: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27208: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27209: (eval $ac_link) 2>&5
27210: ac_status=$?
1.16 millert 27211: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27212: (exit $ac_status); } &&
27213: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27214: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27215: (eval $ac_try) 2>&5
27216: ac_status=$?
1.16 millert 27217: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27218: (exit $ac_status); }; }; then
27219: ac_cv_lib_inet_socket=yes
27220: else
27221: echo "$as_me: failed program was:" >&5
1.16 millert 27222: sed 's/^/| /' conftest.$ac_ext >&5
27223:
1.9 millert 27224: ac_cv_lib_inet_socket=no
27225: fi
27226: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27227: LIBS=$ac_check_lib_save_LIBS
27228: fi
1.16 millert 27229: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
1.9 millert 27230: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
27231: if test $ac_cv_lib_inet_socket = yes; then
1.1 millert 27232: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27233: else
1.16 millert 27234: { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
1.9 millert 27235: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
1.16 millert 27236: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
1.9 millert 27237: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
27238: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
27239: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27240: else
1.9 millert 27241: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27242: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 27243: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27244: #line $LINENO "configure"
27245: /* confdefs.h. */
27246: _ACEOF
27247: cat confdefs.h >>conftest.$ac_ext
27248: cat >>conftest.$ac_ext <<_ACEOF
27249: /* end confdefs.h. */
1.9 millert 27250:
1.1 millert 27251: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27252: #ifdef __cplusplus
27253: extern "C"
27254: #endif
1.1 millert 27255: /* We use char because int might match the return type of a gcc2
1.9 millert 27256: builtin and then its argument prototype would still apply. */
27257: char socket ();
27258: int
27259: main ()
27260: {
27261: socket ();
27262: ;
27263: return 0;
27264: }
27265: _ACEOF
27266: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27267: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27268: (eval $ac_link) 2>&5
27269: ac_status=$?
1.16 millert 27270: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27271: (exit $ac_status); } &&
27272: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27273: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27274: (eval $ac_try) 2>&5
27275: ac_status=$?
1.16 millert 27276: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27277: (exit $ac_status); }; }; then
27278: ac_cv_lib_socket_socket_lnsl=yes
27279: else
27280: echo "$as_me: failed program was:" >&5
1.16 millert 27281: sed 's/^/| /' conftest.$ac_ext >&5
27282:
1.9 millert 27283: ac_cv_lib_socket_socket_lnsl=no
27284: fi
27285: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27286: LIBS=$ac_check_lib_save_LIBS
27287: fi
1.16 millert 27288: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
1.9 millert 27289: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6
27290: if test $ac_cv_lib_socket_socket_lnsl = yes; then
1.1 millert 27291: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
27292: fi
27293:
27294: fi
27295:
27296: fi
27297:
27298: fi
27299:
1.16 millert 27300: echo "$as_me:$LINENO: checking for inet_addr" >&5
1.9 millert 27301: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
27302: if test "${ac_cv_func_inet_addr+set}" = set; then
27303: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27304: else
1.9 millert 27305: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27306: #line $LINENO "configure"
27307: /* confdefs.h. */
27308: _ACEOF
27309: cat confdefs.h >>conftest.$ac_ext
27310: cat >>conftest.$ac_ext <<_ACEOF
27311: /* end confdefs.h. */
1.1 millert 27312: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 27313: which can conflict with char inet_addr (); below.
27314: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27315: <limits.h> exists even on freestanding compilers. */
27316: #ifdef __STDC__
27317: # include <limits.h>
27318: #else
27319: # include <assert.h>
27320: #endif
1.1 millert 27321: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27322: #ifdef __cplusplus
27323: extern "C"
1.16 millert 27324: {
1.9 millert 27325: #endif
1.1 millert 27326: /* We use char because int might match the return type of a gcc2
1.9 millert 27327: builtin and then its argument prototype would still apply. */
27328: char inet_addr ();
1.1 millert 27329: /* The GNU C library defines this for functions which it implements
27330: to always fail with ENOSYS. Some functions are actually named
27331: something starting with __ and the normal name is an alias. */
27332: #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
27333: choke me
27334: #else
1.16 millert 27335: char (*f) () = inet_addr;
27336: #endif
27337: #ifdef __cplusplus
27338: }
1.1 millert 27339: #endif
27340:
1.16 millert 27341: int
27342: main ()
27343: {
27344: return f != inet_addr;
1.9 millert 27345: ;
27346: return 0;
27347: }
27348: _ACEOF
27349: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27350: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27351: (eval $ac_link) 2>&5
27352: ac_status=$?
1.16 millert 27353: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27354: (exit $ac_status); } &&
27355: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27356: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27357: (eval $ac_try) 2>&5
27358: ac_status=$?
1.16 millert 27359: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27360: (exit $ac_status); }; }; then
27361: ac_cv_func_inet_addr=yes
27362: else
27363: echo "$as_me: failed program was:" >&5
1.16 millert 27364: sed 's/^/| /' conftest.$ac_ext >&5
27365:
1.9 millert 27366: ac_cv_func_inet_addr=no
27367: fi
27368: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27369: fi
1.16 millert 27370: echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
1.9 millert 27371: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
27372: if test $ac_cv_func_inet_addr = yes; then
1.1 millert 27373: :
27374: else
1.16 millert 27375: echo "$as_me:$LINENO: checking for __inet_addr" >&5
1.9 millert 27376: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6
27377: if test "${ac_cv_func___inet_addr+set}" = set; then
27378: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 27379: else
1.9 millert 27380: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27381: #line $LINENO "configure"
27382: /* confdefs.h. */
27383: _ACEOF
27384: cat confdefs.h >>conftest.$ac_ext
27385: cat >>conftest.$ac_ext <<_ACEOF
27386: /* end confdefs.h. */
1.6 millert 27387: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 27388: which can conflict with char __inet_addr (); below.
27389: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27390: <limits.h> exists even on freestanding compilers. */
27391: #ifdef __STDC__
27392: # include <limits.h>
27393: #else
27394: # include <assert.h>
27395: #endif
1.6 millert 27396: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27397: #ifdef __cplusplus
27398: extern "C"
1.16 millert 27399: {
1.9 millert 27400: #endif
1.6 millert 27401: /* We use char because int might match the return type of a gcc2
1.9 millert 27402: builtin and then its argument prototype would still apply. */
27403: char __inet_addr ();
1.6 millert 27404: /* The GNU C library defines this for functions which it implements
27405: to always fail with ENOSYS. Some functions are actually named
27406: something starting with __ and the normal name is an alias. */
27407: #if defined (__stub___inet_addr) || defined (__stub_____inet_addr)
27408: choke me
27409: #else
1.16 millert 27410: char (*f) () = __inet_addr;
27411: #endif
27412: #ifdef __cplusplus
27413: }
1.6 millert 27414: #endif
27415:
1.16 millert 27416: int
27417: main ()
27418: {
27419: return f != __inet_addr;
1.9 millert 27420: ;
27421: return 0;
27422: }
27423: _ACEOF
27424: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27425: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27426: (eval $ac_link) 2>&5
27427: ac_status=$?
1.16 millert 27428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27429: (exit $ac_status); } &&
27430: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27431: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27432: (eval $ac_try) 2>&5
27433: ac_status=$?
1.16 millert 27434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27435: (exit $ac_status); }; }; then
27436: ac_cv_func___inet_addr=yes
27437: else
27438: echo "$as_me: failed program was:" >&5
1.16 millert 27439: sed 's/^/| /' conftest.$ac_ext >&5
27440:
1.9 millert 27441: ac_cv_func___inet_addr=no
27442: fi
27443: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27444: fi
1.16 millert 27445: echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
1.9 millert 27446: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6
27447: if test $ac_cv_func___inet_addr = yes; then
1.6 millert 27448: :
27449: else
1.16 millert 27450: echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
1.9 millert 27451: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
27452: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
27453: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27454: else
1.9 millert 27455: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27456: LIBS="-lnsl $LIBS"
1.9 millert 27457: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27458: #line $LINENO "configure"
27459: /* confdefs.h. */
27460: _ACEOF
27461: cat confdefs.h >>conftest.$ac_ext
27462: cat >>conftest.$ac_ext <<_ACEOF
27463: /* end confdefs.h. */
1.9 millert 27464:
1.1 millert 27465: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27466: #ifdef __cplusplus
27467: extern "C"
27468: #endif
1.1 millert 27469: /* We use char because int might match the return type of a gcc2
1.9 millert 27470: builtin and then its argument prototype would still apply. */
27471: char inet_addr ();
27472: int
27473: main ()
27474: {
27475: inet_addr ();
27476: ;
27477: return 0;
27478: }
27479: _ACEOF
27480: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27481: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27482: (eval $ac_link) 2>&5
27483: ac_status=$?
1.16 millert 27484: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27485: (exit $ac_status); } &&
27486: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27487: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27488: (eval $ac_try) 2>&5
27489: ac_status=$?
1.16 millert 27490: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27491: (exit $ac_status); }; }; then
27492: ac_cv_lib_nsl_inet_addr=yes
27493: else
27494: echo "$as_me: failed program was:" >&5
1.16 millert 27495: sed 's/^/| /' conftest.$ac_ext >&5
27496:
1.9 millert 27497: ac_cv_lib_nsl_inet_addr=no
27498: fi
27499: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27500: LIBS=$ac_check_lib_save_LIBS
27501: fi
1.16 millert 27502: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
1.9 millert 27503: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
27504: if test $ac_cv_lib_nsl_inet_addr = yes; then
1.1 millert 27505: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
27506: else
1.16 millert 27507: echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
1.9 millert 27508: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6
27509: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
27510: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27511: else
1.9 millert 27512: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27513: LIBS="-linet $LIBS"
1.9 millert 27514: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27515: #line $LINENO "configure"
27516: /* confdefs.h. */
27517: _ACEOF
27518: cat confdefs.h >>conftest.$ac_ext
27519: cat >>conftest.$ac_ext <<_ACEOF
27520: /* end confdefs.h. */
1.9 millert 27521:
1.1 millert 27522: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27523: #ifdef __cplusplus
27524: extern "C"
27525: #endif
1.1 millert 27526: /* We use char because int might match the return type of a gcc2
1.9 millert 27527: builtin and then its argument prototype would still apply. */
27528: char inet_addr ();
27529: int
27530: main ()
27531: {
27532: inet_addr ();
27533: ;
27534: return 0;
27535: }
27536: _ACEOF
27537: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27538: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27539: (eval $ac_link) 2>&5
27540: ac_status=$?
1.16 millert 27541: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27542: (exit $ac_status); } &&
27543: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27544: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27545: (eval $ac_try) 2>&5
27546: ac_status=$?
1.16 millert 27547: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27548: (exit $ac_status); }; }; then
27549: ac_cv_lib_inet_inet_addr=yes
27550: else
27551: echo "$as_me: failed program was:" >&5
1.16 millert 27552: sed 's/^/| /' conftest.$ac_ext >&5
27553:
1.9 millert 27554: ac_cv_lib_inet_inet_addr=no
27555: fi
27556: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27557: LIBS=$ac_check_lib_save_LIBS
27558: fi
1.16 millert 27559: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
1.9 millert 27560: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6
27561: if test $ac_cv_lib_inet_inet_addr = yes; then
1.1 millert 27562: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27563: else
1.16 millert 27564: { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
1.9 millert 27565: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
1.16 millert 27566: echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
1.9 millert 27567: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
27568: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
27569: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27570: else
1.9 millert 27571: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27572: LIBS="-lsocket -lnsl $LIBS"
1.9 millert 27573: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27574: #line $LINENO "configure"
27575: /* confdefs.h. */
27576: _ACEOF
27577: cat confdefs.h >>conftest.$ac_ext
27578: cat >>conftest.$ac_ext <<_ACEOF
27579: /* end confdefs.h. */
1.9 millert 27580:
1.1 millert 27581: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27582: #ifdef __cplusplus
27583: extern "C"
27584: #endif
1.1 millert 27585: /* We use char because int might match the return type of a gcc2
1.9 millert 27586: builtin and then its argument prototype would still apply. */
27587: char inet_addr ();
27588: int
27589: main ()
27590: {
27591: inet_addr ();
27592: ;
27593: return 0;
27594: }
27595: _ACEOF
27596: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27597: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27598: (eval $ac_link) 2>&5
27599: ac_status=$?
1.16 millert 27600: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27601: (exit $ac_status); } &&
27602: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27603: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27604: (eval $ac_try) 2>&5
27605: ac_status=$?
1.16 millert 27606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27607: (exit $ac_status); }; }; then
27608: ac_cv_lib_socket_inet_addr_lnsl=yes
27609: else
27610: echo "$as_me: failed program was:" >&5
1.16 millert 27611: sed 's/^/| /' conftest.$ac_ext >&5
27612:
1.9 millert 27613: ac_cv_lib_socket_inet_addr_lnsl=no
27614: fi
27615: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27616: LIBS=$ac_check_lib_save_LIBS
27617: fi
1.16 millert 27618: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
1.9 millert 27619: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6
27620: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
1.1 millert 27621: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
27622: fi
27623:
27624: fi
27625:
27626: fi
27627:
27628: fi
27629:
1.6 millert 27630: fi
27631:
1.16 millert 27632: echo "$as_me:$LINENO: checking for syslog" >&5
1.9 millert 27633: echo $ECHO_N "checking for syslog... $ECHO_C" >&6
27634: if test "${ac_cv_func_syslog+set}" = set; then
27635: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27636: else
1.9 millert 27637: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27638: #line $LINENO "configure"
27639: /* confdefs.h. */
27640: _ACEOF
27641: cat confdefs.h >>conftest.$ac_ext
27642: cat >>conftest.$ac_ext <<_ACEOF
27643: /* end confdefs.h. */
1.1 millert 27644: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 27645: which can conflict with char syslog (); below.
27646: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27647: <limits.h> exists even on freestanding compilers. */
27648: #ifdef __STDC__
27649: # include <limits.h>
27650: #else
27651: # include <assert.h>
27652: #endif
1.1 millert 27653: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27654: #ifdef __cplusplus
27655: extern "C"
1.16 millert 27656: {
1.9 millert 27657: #endif
1.1 millert 27658: /* We use char because int might match the return type of a gcc2
1.9 millert 27659: builtin and then its argument prototype would still apply. */
27660: char syslog ();
1.1 millert 27661: /* The GNU C library defines this for functions which it implements
27662: to always fail with ENOSYS. Some functions are actually named
27663: something starting with __ and the normal name is an alias. */
27664: #if defined (__stub_syslog) || defined (__stub___syslog)
27665: choke me
27666: #else
1.16 millert 27667: char (*f) () = syslog;
27668: #endif
27669: #ifdef __cplusplus
27670: }
1.1 millert 27671: #endif
27672:
1.16 millert 27673: int
27674: main ()
27675: {
27676: return f != syslog;
1.9 millert 27677: ;
27678: return 0;
27679: }
27680: _ACEOF
27681: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27682: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27683: (eval $ac_link) 2>&5
27684: ac_status=$?
1.16 millert 27685: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27686: (exit $ac_status); } &&
27687: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27688: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27689: (eval $ac_try) 2>&5
27690: ac_status=$?
1.16 millert 27691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27692: (exit $ac_status); }; }; then
27693: ac_cv_func_syslog=yes
27694: else
27695: echo "$as_me: failed program was:" >&5
1.16 millert 27696: sed 's/^/| /' conftest.$ac_ext >&5
27697:
1.9 millert 27698: ac_cv_func_syslog=no
27699: fi
27700: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27701: fi
1.16 millert 27702: echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
1.9 millert 27703: echo "${ECHO_T}$ac_cv_func_syslog" >&6
27704: if test $ac_cv_func_syslog = yes; then
1.1 millert 27705: :
27706: else
1.16 millert 27707: echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
1.9 millert 27708: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6
27709: if test "${ac_cv_lib_socket_syslog+set}" = set; then
27710: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27711: else
1.9 millert 27712: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27713: LIBS="-lsocket $LIBS"
1.9 millert 27714: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27715: #line $LINENO "configure"
27716: /* confdefs.h. */
27717: _ACEOF
27718: cat confdefs.h >>conftest.$ac_ext
27719: cat >>conftest.$ac_ext <<_ACEOF
27720: /* end confdefs.h. */
1.9 millert 27721:
1.1 millert 27722: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27723: #ifdef __cplusplus
27724: extern "C"
27725: #endif
1.1 millert 27726: /* We use char because int might match the return type of a gcc2
1.9 millert 27727: builtin and then its argument prototype would still apply. */
27728: char syslog ();
27729: int
27730: main ()
27731: {
27732: syslog ();
27733: ;
27734: return 0;
27735: }
27736: _ACEOF
27737: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27738: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27739: (eval $ac_link) 2>&5
27740: ac_status=$?
1.16 millert 27741: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27742: (exit $ac_status); } &&
27743: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27744: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27745: (eval $ac_try) 2>&5
27746: ac_status=$?
1.16 millert 27747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27748: (exit $ac_status); }; }; then
27749: ac_cv_lib_socket_syslog=yes
27750: else
27751: echo "$as_me: failed program was:" >&5
1.16 millert 27752: sed 's/^/| /' conftest.$ac_ext >&5
27753:
1.9 millert 27754: ac_cv_lib_socket_syslog=no
27755: fi
27756: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27757: LIBS=$ac_check_lib_save_LIBS
27758: fi
1.16 millert 27759: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
1.9 millert 27760: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6
27761: if test $ac_cv_lib_socket_syslog = yes; then
1.1 millert 27762: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
27763: else
1.16 millert 27764: echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
1.9 millert 27765: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6
27766: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
27767: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27768: else
1.9 millert 27769: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27770: LIBS="-lnsl $LIBS"
1.9 millert 27771: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27772: #line $LINENO "configure"
27773: /* confdefs.h. */
27774: _ACEOF
27775: cat confdefs.h >>conftest.$ac_ext
27776: cat >>conftest.$ac_ext <<_ACEOF
27777: /* end confdefs.h. */
1.1 millert 27778:
1.9 millert 27779: /* Override any gcc2 internal prototype to avoid an error. */
27780: #ifdef __cplusplus
27781: extern "C"
27782: #endif
27783: /* We use char because int might match the return type of a gcc2
27784: builtin and then its argument prototype would still apply. */
27785: char syslog ();
27786: int
27787: main ()
27788: {
27789: syslog ();
27790: ;
27791: return 0;
27792: }
27793: _ACEOF
27794: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27795: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27796: (eval $ac_link) 2>&5
27797: ac_status=$?
1.16 millert 27798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27799: (exit $ac_status); } &&
27800: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27801: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27802: (eval $ac_try) 2>&5
27803: ac_status=$?
1.16 millert 27804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27805: (exit $ac_status); }; }; then
27806: ac_cv_lib_nsl_syslog=yes
27807: else
27808: echo "$as_me: failed program was:" >&5
1.16 millert 27809: sed 's/^/| /' conftest.$ac_ext >&5
27810:
1.9 millert 27811: ac_cv_lib_nsl_syslog=no
27812: fi
27813: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27814: LIBS=$ac_check_lib_save_LIBS
27815: fi
1.16 millert 27816: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
1.9 millert 27817: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6
27818: if test $ac_cv_lib_nsl_syslog = yes; then
1.1 millert 27819: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
27820: else
1.16 millert 27821: echo "$as_me:$LINENO: checking for syslog in -linet" >&5
1.9 millert 27822: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6
27823: if test "${ac_cv_lib_inet_syslog+set}" = set; then
27824: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27825: else
1.9 millert 27826: ac_check_lib_save_LIBS=$LIBS
1.1 millert 27827: LIBS="-linet $LIBS"
1.9 millert 27828: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27829: #line $LINENO "configure"
27830: /* confdefs.h. */
27831: _ACEOF
27832: cat confdefs.h >>conftest.$ac_ext
27833: cat >>conftest.$ac_ext <<_ACEOF
27834: /* end confdefs.h. */
1.9 millert 27835:
1.1 millert 27836: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 27837: #ifdef __cplusplus
27838: extern "C"
27839: #endif
1.1 millert 27840: /* We use char because int might match the return type of a gcc2
1.9 millert 27841: builtin and then its argument prototype would still apply. */
27842: char syslog ();
27843: int
27844: main ()
27845: {
27846: syslog ();
27847: ;
27848: return 0;
27849: }
27850: _ACEOF
27851: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27852: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27853: (eval $ac_link) 2>&5
27854: ac_status=$?
1.16 millert 27855: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27856: (exit $ac_status); } &&
27857: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27858: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27859: (eval $ac_try) 2>&5
27860: ac_status=$?
1.16 millert 27861: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27862: (exit $ac_status); }; }; then
27863: ac_cv_lib_inet_syslog=yes
27864: else
27865: echo "$as_me: failed program was:" >&5
1.16 millert 27866: sed 's/^/| /' conftest.$ac_ext >&5
27867:
1.9 millert 27868: ac_cv_lib_inet_syslog=no
27869: fi
27870: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27871: LIBS=$ac_check_lib_save_LIBS
27872: fi
1.16 millert 27873: echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
1.9 millert 27874: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6
27875: if test $ac_cv_lib_inet_syslog = yes; then
1.1 millert 27876: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
27877: fi
27878:
27879: fi
27880:
27881: fi
27882:
27883: fi
27884:
27885: if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
27886: # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27887: # for constant arguments. Useless!
1.16 millert 27888: echo "$as_me:$LINENO: checking for working alloca.h" >&5
1.9 millert 27889: echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27890: if test "${ac_cv_working_alloca_h+set}" = set; then
27891: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27892: else
1.9 millert 27893: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27894: #line $LINENO "configure"
27895: /* confdefs.h. */
27896: _ACEOF
27897: cat confdefs.h >>conftest.$ac_ext
27898: cat >>conftest.$ac_ext <<_ACEOF
27899: /* end confdefs.h. */
1.1 millert 27900: #include <alloca.h>
1.9 millert 27901: int
27902: main ()
27903: {
27904: char *p = (char *) alloca (2 * sizeof (int));
27905: ;
27906: return 0;
27907: }
27908: _ACEOF
27909: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27910: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27911: (eval $ac_link) 2>&5
27912: ac_status=$?
1.16 millert 27913: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27914: (exit $ac_status); } &&
27915: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27916: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27917: (eval $ac_try) 2>&5
27918: ac_status=$?
1.16 millert 27919: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27920: (exit $ac_status); }; }; then
27921: ac_cv_working_alloca_h=yes
27922: else
27923: echo "$as_me: failed program was:" >&5
1.16 millert 27924: sed 's/^/| /' conftest.$ac_ext >&5
27925:
1.9 millert 27926: ac_cv_working_alloca_h=no
27927: fi
27928: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27929: fi
1.16 millert 27930: echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
1.9 millert 27931: echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27932: if test $ac_cv_working_alloca_h = yes; then
1.1 millert 27933:
1.16 millert 27934: cat >>confdefs.h <<\_ACEOF
1.1 millert 27935: #define HAVE_ALLOCA_H 1
1.16 millert 27936: _ACEOF
1.1 millert 27937:
27938: fi
27939:
1.16 millert 27940: echo "$as_me:$LINENO: checking for alloca" >&5
1.9 millert 27941: echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27942: if test "${ac_cv_func_alloca_works+set}" = set; then
27943: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 27944: else
1.9 millert 27945: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 27946: #line $LINENO "configure"
27947: /* confdefs.h. */
27948: _ACEOF
27949: cat confdefs.h >>conftest.$ac_ext
27950: cat >>conftest.$ac_ext <<_ACEOF
27951: /* end confdefs.h. */
1.1 millert 27952: #ifdef __GNUC__
27953: # define alloca __builtin_alloca
27954: #else
1.9 millert 27955: # ifdef _MSC_VER
27956: # include <malloc.h>
27957: # define alloca _alloca
1.1 millert 27958: # else
1.9 millert 27959: # if HAVE_ALLOCA_H
27960: # include <alloca.h>
27961: # else
27962: # ifdef _AIX
1.1 millert 27963: #pragma alloca
1.9 millert 27964: # else
27965: # ifndef alloca /* predefined by HP cc +Olibcalls */
1.1 millert 27966: char *alloca ();
1.9 millert 27967: # endif
1.1 millert 27968: # endif
27969: # endif
27970: # endif
27971: #endif
27972:
1.9 millert 27973: int
27974: main ()
27975: {
27976: char *p = (char *) alloca (1);
27977: ;
27978: return 0;
27979: }
27980: _ACEOF
27981: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 27982: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 27983: (eval $ac_link) 2>&5
27984: ac_status=$?
1.16 millert 27985: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27986: (exit $ac_status); } &&
27987: { ac_try='test -s conftest$ac_exeext'
1.16 millert 27988: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 27989: (eval $ac_try) 2>&5
27990: ac_status=$?
1.16 millert 27991: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 27992: (exit $ac_status); }; }; then
1.1 millert 27993: ac_cv_func_alloca_works=yes
27994: else
1.9 millert 27995: echo "$as_me: failed program was:" >&5
1.16 millert 27996: sed 's/^/| /' conftest.$ac_ext >&5
27997:
1.9 millert 27998: ac_cv_func_alloca_works=no
1.1 millert 27999: fi
1.9 millert 28000: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.1 millert 28001: fi
1.16 millert 28002: echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
1.9 millert 28003: echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1.1 millert 28004:
28005: if test $ac_cv_func_alloca_works = yes; then
1.9 millert 28006:
1.16 millert 28007: cat >>confdefs.h <<\_ACEOF
1.1 millert 28008: #define HAVE_ALLOCA 1
1.16 millert 28009: _ACEOF
1.1 millert 28010:
1.9 millert 28011: else
28012: # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28013: # that cause trouble. Some versions do not even contain alloca or
28014: # contain a buggy version. If you still want to use their alloca,
28015: # use ar to extract alloca.o from them instead of compiling alloca.c.
28016:
28017: ALLOCA=alloca.$ac_objext
1.1 millert 28018:
1.16 millert 28019: cat >>confdefs.h <<\_ACEOF
1.1 millert 28020: #define C_ALLOCA 1
1.16 millert 28021: _ACEOF
28022:
1.1 millert 28023:
1.16 millert 28024: echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
1.9 millert 28025: echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28026: if test "${ac_cv_os_cray+set}" = set; then
28027: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 28028: else
1.9 millert 28029: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 28030: #line $LINENO "configure"
28031: /* confdefs.h. */
28032: _ACEOF
28033: cat confdefs.h >>conftest.$ac_ext
28034: cat >>conftest.$ac_ext <<_ACEOF
28035: /* end confdefs.h. */
1.1 millert 28036: #if defined(CRAY) && ! defined(CRAY2)
28037: webecray
28038: #else
28039: wenotbecray
28040: #endif
28041:
1.9 millert 28042: _ACEOF
1.1 millert 28043: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.16 millert 28044: $EGREP "webecray" >/dev/null 2>&1; then
1.1 millert 28045: ac_cv_os_cray=yes
28046: else
28047: ac_cv_os_cray=no
28048: fi
28049: rm -f conftest*
28050:
28051: fi
1.16 millert 28052: echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
1.9 millert 28053: echo "${ECHO_T}$ac_cv_os_cray" >&6
1.1 millert 28054: if test $ac_cv_os_cray = yes; then
1.9 millert 28055: for ac_func in _getb67 GETB67 getb67; do
28056: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.16 millert 28057: echo "$as_me:$LINENO: checking for $ac_func" >&5
1.9 millert 28058: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28059: if eval "test \"\${$as_ac_var+set}\" = set"; then
28060: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 28061: else
1.9 millert 28062: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 28063: #line $LINENO "configure"
28064: /* confdefs.h. */
28065: _ACEOF
28066: cat confdefs.h >>conftest.$ac_ext
28067: cat >>conftest.$ac_ext <<_ACEOF
28068: /* end confdefs.h. */
1.1 millert 28069: /* System header to define __stub macros and hopefully few prototypes,
1.16 millert 28070: which can conflict with char $ac_func (); below.
28071: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28072: <limits.h> exists even on freestanding compilers. */
28073: #ifdef __STDC__
28074: # include <limits.h>
28075: #else
28076: # include <assert.h>
28077: #endif
1.1 millert 28078: /* Override any gcc2 internal prototype to avoid an error. */
1.9 millert 28079: #ifdef __cplusplus
28080: extern "C"
1.16 millert 28081: {
1.9 millert 28082: #endif
1.1 millert 28083: /* We use char because int might match the return type of a gcc2
1.9 millert 28084: builtin and then its argument prototype would still apply. */
28085: char $ac_func ();
1.1 millert 28086: /* The GNU C library defines this for functions which it implements
28087: to always fail with ENOSYS. Some functions are actually named
28088: something starting with __ and the normal name is an alias. */
28089: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28090: choke me
28091: #else
1.16 millert 28092: char (*f) () = $ac_func;
28093: #endif
28094: #ifdef __cplusplus
28095: }
1.1 millert 28096: #endif
28097:
1.16 millert 28098: int
28099: main ()
28100: {
28101: return f != $ac_func;
1.9 millert 28102: ;
28103: return 0;
28104: }
28105: _ACEOF
28106: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 28107: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 28108: (eval $ac_link) 2>&5
28109: ac_status=$?
1.16 millert 28110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28111: (exit $ac_status); } &&
28112: { ac_try='test -s conftest$ac_exeext'
1.16 millert 28113: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 28114: (eval $ac_try) 2>&5
28115: ac_status=$?
1.16 millert 28116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28117: (exit $ac_status); }; }; then
28118: eval "$as_ac_var=yes"
28119: else
28120: echo "$as_me: failed program was:" >&5
1.16 millert 28121: sed 's/^/| /' conftest.$ac_ext >&5
28122:
1.9 millert 28123: eval "$as_ac_var=no"
28124: fi
28125: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28126: fi
1.16 millert 28127: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
1.9 millert 28128: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28129: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.1 millert 28130:
1.16 millert 28131: cat >>confdefs.h <<_ACEOF
1.1 millert 28132: #define CRAY_STACKSEG_END $ac_func
1.16 millert 28133: _ACEOF
1.1 millert 28134:
1.9 millert 28135: break
1.1 millert 28136: fi
28137:
1.9 millert 28138: done
1.1 millert 28139: fi
28140:
1.16 millert 28141: echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
1.9 millert 28142: echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28143: if test "${ac_cv_c_stack_direction+set}" = set; then
28144: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 28145: else
28146: if test "$cross_compiling" = yes; then
28147: ac_cv_c_stack_direction=0
28148: else
1.9 millert 28149: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 28150: #line $LINENO "configure"
28151: /* confdefs.h. */
28152: _ACEOF
28153: cat confdefs.h >>conftest.$ac_ext
28154: cat >>conftest.$ac_ext <<_ACEOF
28155: /* end confdefs.h. */
1.9 millert 28156: int
1.1 millert 28157: find_stack_direction ()
28158: {
28159: static char *addr = 0;
28160: auto char dummy;
28161: if (addr == 0)
28162: {
28163: addr = &dummy;
28164: return find_stack_direction ();
28165: }
28166: else
28167: return (&dummy > addr) ? 1 : -1;
28168: }
1.9 millert 28169:
28170: int
1.1 millert 28171: main ()
28172: {
1.9 millert 28173: exit (find_stack_direction () < 0);
1.1 millert 28174: }
1.9 millert 28175: _ACEOF
28176: rm -f conftest$ac_exeext
1.16 millert 28177: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 28178: (eval $ac_link) 2>&5
28179: ac_status=$?
1.16 millert 28180: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28181: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.16 millert 28182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 28183: (eval $ac_try) 2>&5
28184: ac_status=$?
1.16 millert 28185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28186: (exit $ac_status); }; }; then
1.1 millert 28187: ac_cv_c_stack_direction=1
28188: else
1.9 millert 28189: echo "$as_me: program exited with status $ac_status" >&5
28190: echo "$as_me: failed program was:" >&5
1.16 millert 28191: sed 's/^/| /' conftest.$ac_ext >&5
28192:
28193: ( exit $ac_status )
1.9 millert 28194: ac_cv_c_stack_direction=-1
1.1 millert 28195: fi
1.16 millert 28196: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 28197: fi
28198: fi
1.16 millert 28199: echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
1.9 millert 28200: echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1.1 millert 28201:
1.16 millert 28202: cat >>confdefs.h <<_ACEOF
1.1 millert 28203: #define STACK_DIRECTION $ac_cv_c_stack_direction
1.16 millert 28204: _ACEOF
28205:
1.1 millert 28206:
28207: fi
28208:
28209: fi
28210:
1.18 millert 28211: for ac_func in getprogname
28212: do
28213: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28214: echo "$as_me:$LINENO: checking for $ac_func" >&5
28215: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28216: if eval "test \"\${$as_ac_var+set}\" = set"; then
28217: echo $ECHO_N "(cached) $ECHO_C" >&6
28218: else
28219: cat >conftest.$ac_ext <<_ACEOF
28220: #line $LINENO "configure"
28221: /* confdefs.h. */
28222: _ACEOF
28223: cat confdefs.h >>conftest.$ac_ext
28224: cat >>conftest.$ac_ext <<_ACEOF
28225: /* end confdefs.h. */
28226: /* System header to define __stub macros and hopefully few prototypes,
28227: which can conflict with char $ac_func (); below.
28228: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28229: <limits.h> exists even on freestanding compilers. */
28230: #ifdef __STDC__
28231: # include <limits.h>
28232: #else
28233: # include <assert.h>
28234: #endif
28235: /* Override any gcc2 internal prototype to avoid an error. */
28236: #ifdef __cplusplus
28237: extern "C"
28238: {
28239: #endif
28240: /* We use char because int might match the return type of a gcc2
28241: builtin and then its argument prototype would still apply. */
28242: char $ac_func ();
28243: /* The GNU C library defines this for functions which it implements
28244: to always fail with ENOSYS. Some functions are actually named
28245: something starting with __ and the normal name is an alias. */
28246: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28247: choke me
28248: #else
28249: char (*f) () = $ac_func;
28250: #endif
28251: #ifdef __cplusplus
28252: }
28253: #endif
28254:
28255: int
28256: main ()
28257: {
28258: return f != $ac_func;
28259: ;
28260: return 0;
28261: }
28262: _ACEOF
28263: rm -f conftest.$ac_objext conftest$ac_exeext
28264: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28265: (eval $ac_link) 2>&5
28266: ac_status=$?
28267: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268: (exit $ac_status); } &&
28269: { ac_try='test -s conftest$ac_exeext'
28270: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28271: (eval $ac_try) 2>&5
28272: ac_status=$?
28273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274: (exit $ac_status); }; }; then
28275: eval "$as_ac_var=yes"
28276: else
28277: echo "$as_me: failed program was:" >&5
28278: sed 's/^/| /' conftest.$ac_ext >&5
28279:
28280: eval "$as_ac_var=no"
28281: fi
28282: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28283: fi
28284: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28285: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28286: if test `eval echo '${'$as_ac_var'}'` = yes; then
28287: cat >>confdefs.h <<_ACEOF
28288: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28289: _ACEOF
28290:
28291: else
28292:
28293: echo "$as_me:$LINENO: checking for __progname" >&5
28294: echo $ECHO_N "checking for __progname... $ECHO_C" >&6
28295: if test "${sudo_cv___progname+set}" = set; then
28296: echo $ECHO_N "(cached) $ECHO_C" >&6
28297: else
28298:
28299: cat >conftest.$ac_ext <<_ACEOF
28300: #line $LINENO "configure"
28301: /* confdefs.h. */
28302: _ACEOF
28303: cat confdefs.h >>conftest.$ac_ext
28304: cat >>conftest.$ac_ext <<_ACEOF
28305: /* end confdefs.h. */
28306:
28307: int
28308: main ()
28309: {
28310: extern char *__progname; (void)puts(__progname);
28311: ;
28312: return 0;
28313: }
28314: _ACEOF
28315: rm -f conftest.$ac_objext conftest$ac_exeext
28316: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28317: (eval $ac_link) 2>&5
28318: ac_status=$?
28319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320: (exit $ac_status); } &&
28321: { ac_try='test -s conftest$ac_exeext'
28322: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323: (eval $ac_try) 2>&5
28324: ac_status=$?
28325: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326: (exit $ac_status); }; }; then
28327: sudo_cv___progname=yes
28328: else
28329: echo "$as_me: failed program was:" >&5
28330: sed 's/^/| /' conftest.$ac_ext >&5
28331:
28332: sudo_cv___progname=no
28333: fi
28334: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28335: fi
28336:
28337: if test "$sudo_cv___progname" = "yes"; then
1.23 ! millert 28338: cat >>confdefs.h <<\_ACEOF
1.18 millert 28339: #define HAVE___PROGNAME 1
28340: _ACEOF
28341:
28342: else
28343: LIBOBJS="$LIBOBJS getprogname.$ac_objext"
28344: fi
28345: echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
28346: echo "${ECHO_T}$sudo_cv___progname" >&6
28347:
28348: fi
28349: done
28350:
1.17 millert 28351: if test -n "$with_kerb4"; then
1.23 ! millert 28352: cat >>confdefs.h <<\_ACEOF
1.17 millert 28353: #define HAVE_KERB4 1
28354: _ACEOF
28355:
28356: O_LDFLAGS="$LDFLAGS"
28357: if test "$with_kerb4" = "yes"; then
28358: found=no
28359: O_CPPFLAGS="$CPPFLAGS"
28360: for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
28361: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
28362: cat >conftest.$ac_ext <<_ACEOF
28363: #include <krb.h>
1.16 millert 28364: _ACEOF
1.17 millert 28365: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28366: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28367: ac_status=$?
28368: grep -v '^ *+' conftest.er1 >conftest.err
28369: rm -f conftest.er1
28370: cat conftest.err >&5
28371: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372: (exit $ac_status); } >/dev/null; then
28373: if test -s conftest.err; then
28374: ac_cpp_err=$ac_c_preproc_warn_flag
28375: else
28376: ac_cpp_err=
28377: fi
28378: else
28379: ac_cpp_err=yes
28380: fi
28381: if test -z "$ac_cpp_err"; then
28382: found=yes; break
28383: else
28384: echo "$as_me: failed program was:" >&5
28385: sed 's/^/| /' conftest.$ac_ext >&5
28386:
28387:
28388: fi
28389: rm -f conftest.err conftest.$ac_ext
28390: done
28391: test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
28392: else
1.1 millert 28393:
1.17 millert 28394: if test X"$with_rpath" = X"yes"; then
28395: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
1.1 millert 28396: else
1.17 millert 28397: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
28398: fi
28399: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
28400: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.1 millert 28401: fi
28402:
1.17 millert 28403:
28404: if test X"$with_rpath" = X"yes"; then
28405: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
1.1 millert 28406: else
1.17 millert 28407: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
28408: fi
28409: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
28410: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.1 millert 28411: fi
28412:
1.17 millert 28413: CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
28414: if test "${ac_cv_header_krb_h+set}" = set; then
28415: echo "$as_me:$LINENO: checking for krb.h" >&5
28416: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
28417: if test "${ac_cv_header_krb_h+set}" = set; then
28418: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 28419: fi
1.17 millert 28420: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
28421: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.5 millert 28422: else
1.17 millert 28423: # Is the header compilable?
28424: echo "$as_me:$LINENO: checking krb.h usability" >&5
28425: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6
1.9 millert 28426: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 28427: #line $LINENO "configure"
28428: /* confdefs.h. */
28429: _ACEOF
28430: cat confdefs.h >>conftest.$ac_ext
28431: cat >>conftest.$ac_ext <<_ACEOF
28432: /* end confdefs.h. */
1.17 millert 28433: $ac_includes_default
28434: #include <krb.h>
1.9 millert 28435: _ACEOF
1.17 millert 28436: rm -f conftest.$ac_objext
28437: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28438: (eval $ac_compile) 2>&5
1.9 millert 28439: ac_status=$?
1.16 millert 28440: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28441: (exit $ac_status); } &&
1.17 millert 28442: { ac_try='test -s conftest.$ac_objext'
1.16 millert 28443: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 28444: (eval $ac_try) 2>&5
28445: ac_status=$?
1.16 millert 28446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28447: (exit $ac_status); }; }; then
1.17 millert 28448: ac_header_compiler=yes
1.9 millert 28449: else
28450: echo "$as_me: failed program was:" >&5
1.16 millert 28451: sed 's/^/| /' conftest.$ac_ext >&5
28452:
1.17 millert 28453: ac_header_compiler=no
1.9 millert 28454: fi
1.17 millert 28455: rm -f conftest.$ac_objext conftest.$ac_ext
28456: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28457: echo "${ECHO_T}$ac_header_compiler" >&6
28458:
28459: # Is the header present?
28460: echo "$as_me:$LINENO: checking krb.h presence" >&5
28461: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6
28462: cat >conftest.$ac_ext <<_ACEOF
28463: #line $LINENO "configure"
28464: /* confdefs.h. */
28465: _ACEOF
28466: cat confdefs.h >>conftest.$ac_ext
28467: cat >>conftest.$ac_ext <<_ACEOF
28468: /* end confdefs.h. */
28469: #include <krb.h>
28470: _ACEOF
28471: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28472: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28473: ac_status=$?
28474: grep -v '^ *+' conftest.er1 >conftest.err
28475: rm -f conftest.er1
28476: cat conftest.err >&5
28477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478: (exit $ac_status); } >/dev/null; then
28479: if test -s conftest.err; then
28480: ac_cpp_err=$ac_c_preproc_warn_flag
28481: else
28482: ac_cpp_err=
28483: fi
28484: else
28485: ac_cpp_err=yes
1.9 millert 28486: fi
1.17 millert 28487: if test -z "$ac_cpp_err"; then
28488: ac_header_preproc=yes
1.5 millert 28489: else
1.17 millert 28490: echo "$as_me: failed program was:" >&5
28491: sed 's/^/| /' conftest.$ac_ext >&5
28492:
28493: ac_header_preproc=no
1.5 millert 28494: fi
1.17 millert 28495: rm -f conftest.err conftest.$ac_ext
28496: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28497: echo "${ECHO_T}$ac_header_preproc" >&6
1.5 millert 28498:
1.17 millert 28499: # So? What about this header?
28500: case $ac_header_compiler:$ac_header_preproc in
28501: yes:no )
28502: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
28503: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28504: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
28505: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
28506: (
28507: cat <<\_ASBOX
28508: ## ------------------------------------ ##
28509: ## Report this to bug-autoconf@gnu.org. ##
28510: ## ------------------------------------ ##
28511: _ASBOX
28512: ) |
28513: sed "s/^/$as_me: WARNING: /" >&2
28514: ;;
28515: no:yes )
28516: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
28517: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
28518: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
28519: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
28520: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
28521: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
28522: (
28523: cat <<\_ASBOX
28524: ## ------------------------------------ ##
28525: ## Report this to bug-autoconf@gnu.org. ##
28526: ## ------------------------------------ ##
28527: _ASBOX
28528: ) |
28529: sed "s/^/$as_me: WARNING: /" >&2
28530: ;;
28531: esac
28532: echo "$as_me:$LINENO: checking for krb.h" >&5
28533: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
28534: if test "${ac_cv_header_krb_h+set}" = set; then
28535: echo $ECHO_N "(cached) $ECHO_C" >&6
28536: else
28537: ac_cv_header_krb_h=$ac_header_preproc
1.5 millert 28538: fi
1.17 millert 28539: echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
28540: echo "${ECHO_T}$ac_cv_header_krb_h" >&6
1.5 millert 28541:
1.17 millert 28542: fi
28543: if test $ac_cv_header_krb_h = yes; then
28544: found=yes
28545: else
28546: found=no
28547: fi
1.9 millert 28548:
1.1 millert 28549:
1.17 millert 28550: fi
28551: if test X"$found" = X"no"; then
28552: { 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
28553: 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;}
1.1 millert 28554: fi
28555:
1.17 millert 28556: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
28557: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
28558: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9 millert 28559: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 28560: else
1.9 millert 28561: ac_check_lib_save_LIBS=$LIBS
1.1 millert 28562: LIBS="-ldes $LIBS"
1.9 millert 28563: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 28564: #line $LINENO "configure"
28565: /* confdefs.h. */
28566: _ACEOF
28567: cat confdefs.h >>conftest.$ac_ext
28568: cat >>conftest.$ac_ext <<_ACEOF
28569: /* end confdefs.h. */
28570:
1.17 millert 28571: /* Override any gcc2 internal prototype to avoid an error. */
28572: #ifdef __cplusplus
28573: extern "C"
28574: #endif
28575: /* We use char because int might match the return type of a gcc2
28576: builtin and then its argument prototype would still apply. */
28577: char des_cbc_encrypt ();
1.9 millert 28578: int
28579: main ()
28580: {
1.17 millert 28581: des_cbc_encrypt ();
1.9 millert 28582: ;
28583: return 0;
28584: }
28585: _ACEOF
28586: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 28587: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 28588: (eval $ac_link) 2>&5
28589: ac_status=$?
1.16 millert 28590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28591: (exit $ac_status); } &&
28592: { ac_try='test -s conftest$ac_exeext'
1.16 millert 28593: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 28594: (eval $ac_try) 2>&5
28595: ac_status=$?
1.16 millert 28596: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 28597: (exit $ac_status); }; }; then
1.17 millert 28598: ac_cv_lib_des_des_cbc_encrypt=yes
1.9 millert 28599: else
28600: echo "$as_me: failed program was:" >&5
1.16 millert 28601: sed 's/^/| /' conftest.$ac_ext >&5
28602:
1.17 millert 28603: ac_cv_lib_des_des_cbc_encrypt=no
1.9 millert 28604: fi
28605: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28606: LIBS=$ac_check_lib_save_LIBS
28607: fi
1.17 millert 28608: echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
28609: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
28610: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
28611: K4LIBS="-ldes"
1.1 millert 28612: else
28613:
1.17 millert 28614: echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
28615: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
28616: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
28617: echo $ECHO_N "(cached) $ECHO_C" >&6
28618: else
28619: ac_check_lib_save_LIBS=$LIBS
28620: LIBS="-ldes425 $LIBS"
28621: cat >conftest.$ac_ext <<_ACEOF
28622: #line $LINENO "configure"
28623: /* confdefs.h. */
28624: _ACEOF
28625: cat confdefs.h >>conftest.$ac_ext
28626: cat >>conftest.$ac_ext <<_ACEOF
28627: /* end confdefs.h. */
28628:
28629: /* Override any gcc2 internal prototype to avoid an error. */
28630: #ifdef __cplusplus
28631: extern "C"
28632: #endif
28633: /* We use char because int might match the return type of a gcc2
28634: builtin and then its argument prototype would still apply. */
28635: char des_cbc_encrypt ();
28636: int
28637: main ()
28638: {
28639: des_cbc_encrypt ();
28640: ;
28641: return 0;
28642: }
28643: _ACEOF
28644: rm -f conftest.$ac_objext conftest$ac_exeext
28645: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28646: (eval $ac_link) 2>&5
28647: ac_status=$?
28648: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649: (exit $ac_status); } &&
28650: { ac_try='test -s conftest$ac_exeext'
28651: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28652: (eval $ac_try) 2>&5
28653: ac_status=$?
28654: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655: (exit $ac_status); }; }; then
28656: ac_cv_lib_des425_des_cbc_encrypt=yes
28657: else
28658: echo "$as_me: failed program was:" >&5
28659: sed 's/^/| /' conftest.$ac_ext >&5
28660:
28661: ac_cv_lib_des425_des_cbc_encrypt=no
28662: fi
28663: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28664: LIBS=$ac_check_lib_save_LIBS
28665: fi
28666: echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
28667: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
28668: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
28669: K4LIBS="-ldes425"
28670: else
28671: K4LIBS=""
28672: fi
28673:
28674:
28675: fi
28676:
28677: echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
28678: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6
28679: cat >conftest.$ac_ext <<_ACEOF
28680: #line $LINENO "configure"
28681: /* confdefs.h. */
28682: _ACEOF
28683: cat confdefs.h >>conftest.$ac_ext
28684: cat >>conftest.$ac_ext <<_ACEOF
28685: /* end confdefs.h. */
28686: #include <krb.h>
28687: int
28688: main ()
28689: {
28690: const char *tmp = krb4_version;
28691: ;
28692: return 0;
28693: }
28694: _ACEOF
28695: rm -f conftest.$ac_objext
28696: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28697: (eval $ac_compile) 2>&5
28698: ac_status=$?
28699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700: (exit $ac_status); } &&
28701: { ac_try='test -s conftest.$ac_objext'
28702: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28703: (eval $ac_try) 2>&5
28704: ac_status=$?
28705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706: (exit $ac_status); }; }; then
28707:
28708: echo "$as_me:$LINENO: result: yes" >&5
28709: echo "${ECHO_T}yes" >&6
28710: K4LIBS="${K4LIBS} -lcom_err"
28711: echo "$as_me:$LINENO: checking for main in -lroken" >&5
28712: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
28713: if test "${ac_cv_lib_roken_main+set}" = set; then
28714: echo $ECHO_N "(cached) $ECHO_C" >&6
28715: else
28716: ac_check_lib_save_LIBS=$LIBS
28717: LIBS="-lroken $LIBS"
28718: cat >conftest.$ac_ext <<_ACEOF
28719: #line $LINENO "configure"
28720: /* confdefs.h. */
28721: _ACEOF
28722: cat confdefs.h >>conftest.$ac_ext
28723: cat >>conftest.$ac_ext <<_ACEOF
28724: /* end confdefs.h. */
28725:
28726:
28727: int
28728: main ()
28729: {
28730: main ();
28731: ;
28732: return 0;
28733: }
28734: _ACEOF
28735: rm -f conftest.$ac_objext conftest$ac_exeext
28736: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737: (eval $ac_link) 2>&5
28738: ac_status=$?
28739: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740: (exit $ac_status); } &&
28741: { ac_try='test -s conftest$ac_exeext'
28742: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743: (eval $ac_try) 2>&5
28744: ac_status=$?
28745: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746: (exit $ac_status); }; }; then
28747: ac_cv_lib_roken_main=yes
28748: else
28749: echo "$as_me: failed program was:" >&5
28750: sed 's/^/| /' conftest.$ac_ext >&5
28751:
28752: ac_cv_lib_roken_main=no
28753: fi
28754: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28755: LIBS=$ac_check_lib_save_LIBS
28756: fi
28757: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
28758: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
28759: if test $ac_cv_lib_roken_main = yes; then
28760: K4LIBS="${K4LIBS} -lroken"
28761: fi
28762:
28763:
28764: else
28765: echo "$as_me: failed program was:" >&5
28766: sed 's/^/| /' conftest.$ac_ext >&5
28767:
28768:
28769: echo "$as_me:$LINENO: result: no" >&5
28770: echo "${ECHO_T}no" >&6
28771:
28772:
28773: fi
28774: rm -f conftest.$ac_objext conftest.$ac_ext
28775: as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
28776: echo "$as_me:$LINENO: checking for main in -lkrb" >&5
28777: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
28778: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28779: echo $ECHO_N "(cached) $ECHO_C" >&6
28780: else
28781: ac_check_lib_save_LIBS=$LIBS
28782: LIBS="-lkrb $K4LIBS $LIBS"
28783: cat >conftest.$ac_ext <<_ACEOF
28784: #line $LINENO "configure"
28785: /* confdefs.h. */
28786: _ACEOF
28787: cat confdefs.h >>conftest.$ac_ext
28788: cat >>conftest.$ac_ext <<_ACEOF
28789: /* end confdefs.h. */
28790:
28791:
28792: int
28793: main ()
28794: {
28795: main ();
28796: ;
28797: return 0;
28798: }
28799: _ACEOF
28800: rm -f conftest.$ac_objext conftest$ac_exeext
28801: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28802: (eval $ac_link) 2>&5
28803: ac_status=$?
28804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805: (exit $ac_status); } &&
28806: { ac_try='test -s conftest$ac_exeext'
28807: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28808: (eval $ac_try) 2>&5
28809: ac_status=$?
28810: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811: (exit $ac_status); }; }; then
28812: eval "$as_ac_Lib=yes"
28813: else
28814: echo "$as_me: failed program was:" >&5
28815: sed 's/^/| /' conftest.$ac_ext >&5
28816:
28817: eval "$as_ac_Lib=no"
28818: fi
28819: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28820: LIBS=$ac_check_lib_save_LIBS
28821: fi
28822: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28823: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28824: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28825: K4LIBS="-lkrb $K4LIBS"
28826: else
28827:
28828: as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
28829: echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28830: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28831: if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28832: echo $ECHO_N "(cached) $ECHO_C" >&6
28833: else
28834: ac_check_lib_save_LIBS=$LIBS
28835: LIBS="-lkrb4 $K4LIBS $LIBS"
28836: cat >conftest.$ac_ext <<_ACEOF
28837: #line $LINENO "configure"
28838: /* confdefs.h. */
28839: _ACEOF
28840: cat confdefs.h >>conftest.$ac_ext
28841: cat >>conftest.$ac_ext <<_ACEOF
28842: /* end confdefs.h. */
28843:
28844:
28845: int
28846: main ()
28847: {
28848: main ();
28849: ;
28850: return 0;
28851: }
28852: _ACEOF
28853: rm -f conftest.$ac_objext conftest$ac_exeext
28854: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28855: (eval $ac_link) 2>&5
28856: ac_status=$?
28857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858: (exit $ac_status); } &&
28859: { ac_try='test -s conftest$ac_exeext'
28860: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28861: (eval $ac_try) 2>&5
28862: ac_status=$?
28863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864: (exit $ac_status); }; }; then
28865: eval "$as_ac_Lib=yes"
28866: else
28867: echo "$as_me: failed program was:" >&5
28868: sed 's/^/| /' conftest.$ac_ext >&5
28869:
28870: eval "$as_ac_Lib=no"
28871: fi
28872: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28873: LIBS=$ac_check_lib_save_LIBS
28874: fi
28875: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28876: echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28877: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28878: K4LIBS="-lkrb4 $K4LIBS"
28879: else
28880: K4LIBS="-lkrb $K4LIBS"
28881: { 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
28882: 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;}
28883:
28884: fi
28885:
28886:
28887: fi
28888:
28889: LDFLAGS="$O_LDFLAGS"
28890: SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
28891: AUTH_OBJS="${AUTH_OBJS} kerb4.o"
28892: fi
28893:
1.18 millert 28894: if test "$with_kerb5" = "yes"; then
28895: # Extract the first word of "krb5-config", so it can be a program name with args.
28896: set dummy krb5-config; ac_word=$2
28897: echo "$as_me:$LINENO: checking for $ac_word" >&5
28898: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28899: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
28900: echo $ECHO_N "(cached) $ECHO_C" >&6
28901: else
28902: if test -n "$KRB5CONFIG"; then
28903: ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
28904: else
28905: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28906: for as_dir in $PATH
28907: do
28908: IFS=$as_save_IFS
28909: test -z "$as_dir" && as_dir=.
28910: for ac_exec_ext in '' $ac_executable_extensions; do
28911: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28912: ac_cv_prog_KRB5CONFIG="yes"
28913: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28914: break 2
28915: fi
28916: done
28917: done
28918:
28919: test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
28920: fi
28921: fi
28922: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
28923: if test -n "$KRB5CONFIG"; then
28924: echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
28925: echo "${ECHO_T}$KRB5CONFIG" >&6
28926: else
28927: echo "$as_me:$LINENO: result: no" >&5
28928: echo "${ECHO_T}no" >&6
28929: fi
28930:
28931: if test -n "$KRB5CONFIG"; then
1.23 ! millert 28932: cat >>confdefs.h <<\_ACEOF
1.18 millert 28933: #define HAVE_KERB5 1
28934: _ACEOF
28935:
28936: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
28937: CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
28938: SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
1.19 millert 28939: echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
28940: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
28941: cat >conftest.$ac_ext <<_ACEOF
28942: #line $LINENO "configure"
28943: /* confdefs.h. */
28944: _ACEOF
28945: cat confdefs.h >>conftest.$ac_ext
28946: cat >>conftest.$ac_ext <<_ACEOF
28947: /* end confdefs.h. */
28948: #include <krb5.h>
28949: int
28950: main ()
28951: {
28952: const char *tmp = heimdal_version;
28953: ;
28954: return 0;
28955: }
28956: _ACEOF
28957: rm -f conftest.$ac_objext
28958: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28959: (eval $ac_compile) 2>&5
28960: ac_status=$?
28961: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962: (exit $ac_status); } &&
28963: { ac_try='test -s conftest.$ac_objext'
28964: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965: (eval $ac_try) 2>&5
28966: ac_status=$?
28967: echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968: (exit $ac_status); }; }; then
28969:
28970: echo "$as_me:$LINENO: result: yes" >&5
28971: echo "${ECHO_T}yes" >&6
1.23 ! millert 28972: cat >>confdefs.h <<\_ACEOF
1.19 millert 28973: #define HAVE_HEIMDAL 1
28974: _ACEOF
28975:
28976:
28977:
28978: else
28979: echo "$as_me: failed program was:" >&5
28980: sed 's/^/| /' conftest.$ac_ext >&5
28981:
28982: fi
28983: rm -f conftest.$ac_objext conftest.$ac_ext
1.18 millert 28984: fi
28985: fi
28986: if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then
1.23 ! millert 28987: cat >>confdefs.h <<\_ACEOF
1.17 millert 28988: #define HAVE_KERB5 1
28989: _ACEOF
28990:
28991: if test "$with_kerb5" = "yes"; then
28992: found=no
28993: O_CPPFLAGS="$CPPFLAGS"
28994: for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
28995: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
28996: cat >conftest.$ac_ext <<_ACEOF
28997: #include <krb5.h>
28998: _ACEOF
28999: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29000: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29001: ac_status=$?
29002: grep -v '^ *+' conftest.er1 >conftest.err
29003: rm -f conftest.er1
29004: cat conftest.err >&5
29005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006: (exit $ac_status); } >/dev/null; then
29007: if test -s conftest.err; then
29008: ac_cpp_err=$ac_c_preproc_warn_flag
29009: else
29010: ac_cpp_err=
29011: fi
29012: else
29013: ac_cpp_err=yes
29014: fi
29015: if test -z "$ac_cpp_err"; then
29016: found=yes; break
29017: else
29018: echo "$as_me: failed program was:" >&5
29019: sed 's/^/| /' conftest.$ac_ext >&5
29020:
29021:
29022: fi
29023: rm -f conftest.err conftest.$ac_ext
29024: done
29025: if test X"$found" = X"no"; then
29026: CPPFLAGS="$O_CPPFLAGS"
29027: { 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
29028: 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;}
29029: fi
29030: else
29031:
29032: if test X"$with_rpath" = X"yes"; then
29033: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
29034: else
29035: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
29036: fi
29037: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29038: blibpath_add="${blibpath_add}:${with_kerb5}/lib"
29039: fi
29040:
29041: CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
29042: fi
29043:
29044: echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
29045: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6
29046: cat >conftest.$ac_ext <<_ACEOF
29047: #line $LINENO "configure"
29048: /* confdefs.h. */
29049: _ACEOF
29050: cat confdefs.h >>conftest.$ac_ext
29051: cat >>conftest.$ac_ext <<_ACEOF
29052: /* end confdefs.h. */
29053: #include <krb5.h>
29054: int
29055: main ()
29056: {
29057: const char *tmp = heimdal_version;
29058: ;
29059: return 0;
29060: }
29061: _ACEOF
29062: rm -f conftest.$ac_objext
29063: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29064: (eval $ac_compile) 2>&5
29065: ac_status=$?
29066: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067: (exit $ac_status); } &&
29068: { ac_try='test -s conftest.$ac_objext'
29069: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29070: (eval $ac_try) 2>&5
29071: ac_status=$?
29072: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073: (exit $ac_status); }; }; then
29074:
29075: echo "$as_me:$LINENO: result: yes" >&5
29076: echo "${ECHO_T}yes" >&6
1.23 ! millert 29077: cat >>confdefs.h <<\_ACEOF
1.19 millert 29078: #define HAVE_HEIMDAL 1
29079: _ACEOF
29080:
1.17 millert 29081: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -ldes -lcom_err -lasn1"
29082: echo "$as_me:$LINENO: checking for main in -lroken" >&5
29083: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6
29084: if test "${ac_cv_lib_roken_main+set}" = set; then
29085: echo $ECHO_N "(cached) $ECHO_C" >&6
29086: else
29087: ac_check_lib_save_LIBS=$LIBS
29088: LIBS="-lroken $LIBS"
29089: cat >conftest.$ac_ext <<_ACEOF
29090: #line $LINENO "configure"
29091: /* confdefs.h. */
29092: _ACEOF
29093: cat confdefs.h >>conftest.$ac_ext
29094: cat >>conftest.$ac_ext <<_ACEOF
29095: /* end confdefs.h. */
29096:
29097:
29098: int
29099: main ()
29100: {
29101: main ();
29102: ;
29103: return 0;
29104: }
29105: _ACEOF
29106: rm -f conftest.$ac_objext conftest$ac_exeext
29107: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29108: (eval $ac_link) 2>&5
29109: ac_status=$?
29110: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111: (exit $ac_status); } &&
29112: { ac_try='test -s conftest$ac_exeext'
29113: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114: (eval $ac_try) 2>&5
29115: ac_status=$?
29116: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117: (exit $ac_status); }; }; then
29118: ac_cv_lib_roken_main=yes
29119: else
29120: echo "$as_me: failed program was:" >&5
29121: sed 's/^/| /' conftest.$ac_ext >&5
29122:
29123: ac_cv_lib_roken_main=no
29124: fi
29125: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29126: LIBS=$ac_check_lib_save_LIBS
29127: fi
29128: echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
29129: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6
29130: if test $ac_cv_lib_roken_main = yes; then
29131: SUDO_LIBS="${SUDO_LIBS} -lroken"
29132: fi
29133:
29134:
29135: else
29136: echo "$as_me: failed program was:" >&5
29137: sed 's/^/| /' conftest.$ac_ext >&5
29138:
29139:
29140: echo "$as_me:$LINENO: result: no" >&5
29141: echo "${ECHO_T}no" >&6
29142: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
29143:
29144:
29145: fi
29146: rm -f conftest.$ac_objext conftest.$ac_ext
29147: AUTH_OBJS="${AUTH_OBJS} kerb5.o"
29148: fi
29149:
29150: if test "$with_pam" = "yes"; then
1.23 ! millert 29151: echo "$as_me:$LINENO: checking for main in -ldl" >&5
1.17 millert 29152: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
29153: if test "${ac_cv_lib_dl_main+set}" = set; then
29154: echo $ECHO_N "(cached) $ECHO_C" >&6
29155: else
29156: ac_check_lib_save_LIBS=$LIBS
29157: LIBS="-ldl $LIBS"
29158: cat >conftest.$ac_ext <<_ACEOF
29159: #line $LINENO "configure"
29160: /* confdefs.h. */
29161: _ACEOF
29162: cat confdefs.h >>conftest.$ac_ext
29163: cat >>conftest.$ac_ext <<_ACEOF
29164: /* end confdefs.h. */
29165:
29166:
29167: int
29168: main ()
29169: {
29170: main ();
29171: ;
1.23 ! millert 29172: return 0;
! 29173: }
! 29174: _ACEOF
! 29175: rm -f conftest.$ac_objext conftest$ac_exeext
! 29176: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 29177: (eval $ac_link) 2>&5
! 29178: ac_status=$?
! 29179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29180: (exit $ac_status); } &&
! 29181: { ac_try='test -s conftest$ac_exeext'
! 29182: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 29183: (eval $ac_try) 2>&5
! 29184: ac_status=$?
! 29185: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29186: (exit $ac_status); }; }; then
! 29187: ac_cv_lib_dl_main=yes
! 29188: else
! 29189: echo "$as_me: failed program was:" >&5
! 29190: sed 's/^/| /' conftest.$ac_ext >&5
! 29191:
! 29192: ac_cv_lib_dl_main=no
! 29193: fi
! 29194: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 29195: LIBS=$ac_check_lib_save_LIBS
! 29196: fi
! 29197: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
! 29198: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
! 29199: if test $ac_cv_lib_dl_main = yes; then
! 29200: SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
! 29201: else
! 29202: SUDO_LIBS="${SUDO_LIBS} -lpam"
! 29203: fi
! 29204: ac_cv_lib_dl=ac_cv_lib_dl_main
! 29205:
! 29206:
! 29207: for ac_header in pam/pam_appl.h
! 29208: do
! 29209: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
! 29210: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 29211: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 29212: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 29213: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 29214: echo $ECHO_N "(cached) $ECHO_C" >&6
! 29215: fi
! 29216: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 29217: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
! 29218: else
! 29219: # Is the header compilable?
! 29220: echo "$as_me:$LINENO: checking $ac_header usability" >&5
! 29221: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
! 29222: cat >conftest.$ac_ext <<_ACEOF
! 29223: #line $LINENO "configure"
! 29224: /* confdefs.h. */
! 29225: _ACEOF
! 29226: cat confdefs.h >>conftest.$ac_ext
! 29227: cat >>conftest.$ac_ext <<_ACEOF
! 29228: /* end confdefs.h. */
! 29229: $ac_includes_default
! 29230: #include <$ac_header>
! 29231: _ACEOF
! 29232: rm -f conftest.$ac_objext
! 29233: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 29234: (eval $ac_compile) 2>&5
! 29235: ac_status=$?
! 29236: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29237: (exit $ac_status); } &&
! 29238: { ac_try='test -s conftest.$ac_objext'
! 29239: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 29240: (eval $ac_try) 2>&5
! 29241: ac_status=$?
! 29242: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29243: (exit $ac_status); }; }; then
! 29244: ac_header_compiler=yes
! 29245: else
! 29246: echo "$as_me: failed program was:" >&5
! 29247: sed 's/^/| /' conftest.$ac_ext >&5
! 29248:
! 29249: ac_header_compiler=no
! 29250: fi
! 29251: rm -f conftest.$ac_objext conftest.$ac_ext
! 29252: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
! 29253: echo "${ECHO_T}$ac_header_compiler" >&6
! 29254:
! 29255: # Is the header present?
! 29256: echo "$as_me:$LINENO: checking $ac_header presence" >&5
! 29257: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
! 29258: cat >conftest.$ac_ext <<_ACEOF
! 29259: #line $LINENO "configure"
! 29260: /* confdefs.h. */
! 29261: _ACEOF
! 29262: cat confdefs.h >>conftest.$ac_ext
! 29263: cat >>conftest.$ac_ext <<_ACEOF
! 29264: /* end confdefs.h. */
! 29265: #include <$ac_header>
! 29266: _ACEOF
! 29267: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
! 29268: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
! 29269: ac_status=$?
! 29270: grep -v '^ *+' conftest.er1 >conftest.err
! 29271: rm -f conftest.er1
! 29272: cat conftest.err >&5
! 29273: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29274: (exit $ac_status); } >/dev/null; then
! 29275: if test -s conftest.err; then
! 29276: ac_cpp_err=$ac_c_preproc_warn_flag
! 29277: else
! 29278: ac_cpp_err=
! 29279: fi
! 29280: else
! 29281: ac_cpp_err=yes
! 29282: fi
! 29283: if test -z "$ac_cpp_err"; then
! 29284: ac_header_preproc=yes
! 29285: else
! 29286: echo "$as_me: failed program was:" >&5
! 29287: sed 's/^/| /' conftest.$ac_ext >&5
! 29288:
! 29289: ac_header_preproc=no
! 29290: fi
! 29291: rm -f conftest.err conftest.$ac_ext
! 29292: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
! 29293: echo "${ECHO_T}$ac_header_preproc" >&6
! 29294:
! 29295: # So? What about this header?
! 29296: case $ac_header_compiler:$ac_header_preproc in
! 29297: yes:no )
! 29298: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
! 29299: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
! 29300: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 29301: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 29302: (
! 29303: cat <<\_ASBOX
! 29304: ## ------------------------------------ ##
! 29305: ## Report this to bug-autoconf@gnu.org. ##
! 29306: ## ------------------------------------ ##
! 29307: _ASBOX
! 29308: ) |
! 29309: sed "s/^/$as_me: WARNING: /" >&2
! 29310: ;;
! 29311: no:yes )
! 29312: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
! 29313: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
! 29314: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
! 29315: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
! 29316: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
! 29317: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
! 29318: (
! 29319: cat <<\_ASBOX
! 29320: ## ------------------------------------ ##
! 29321: ## Report this to bug-autoconf@gnu.org. ##
! 29322: ## ------------------------------------ ##
! 29323: _ASBOX
! 29324: ) |
! 29325: sed "s/^/$as_me: WARNING: /" >&2
! 29326: ;;
! 29327: esac
! 29328: echo "$as_me:$LINENO: checking for $ac_header" >&5
! 29329: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
! 29330: if eval "test \"\${$as_ac_Header+set}\" = set"; then
! 29331: echo $ECHO_N "(cached) $ECHO_C" >&6
1.17 millert 29332: else
1.23 ! millert 29333: eval "$as_ac_Header=$ac_header_preproc"
! 29334: fi
! 29335: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
! 29336: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.17 millert 29337:
29338: fi
1.23 ! millert 29339: if test `eval echo '${'$as_ac_Header'}'` = yes; then
! 29340: cat >>confdefs.h <<_ACEOF
! 29341: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
! 29342: _ACEOF
! 29343:
1.17 millert 29344: fi
1.23 ! millert 29345:
! 29346: done
1.17 millert 29347:
29348: fi
29349:
29350: if test "$with_AFS" = "yes"; then
29351:
29352: # looks like the "standard" place for AFS libs is /usr/afsws/lib
29353: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
29354: for i in $AFSLIBDIRS; do
29355: if test -d ${i}; then
29356:
29357: if test X"$with_rpath" = X"yes"; then
29358: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
29359: else
29360: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
29361: fi
29362: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29363: blibpath_add="${blibpath_add}:$i"
29364: fi
29365:
29366: FOUND_AFSLIBDIR=true
29367: fi
29368: done
29369: if test -z "$FOUND_AFSLIBDIR"; then
29370: { 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
29371: 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;}
29372: fi
29373:
29374: # Order is important here. Note that we build AFS_LIBS from right to left
29375: # since AFS_LIBS may be initialized with BSD compat libs that must go last
29376: AFS_LIBS="-laudit ${AFS_LIBS}"
29377: for i in $AFSLIBDIRS; do
29378: if test -f ${i}/util.a; then
29379: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
29380: FOUND_UTIL_A=true
29381: break;
29382: fi
29383: done
29384: if test -z "$FOUND_UTIL_A"; then
29385: AFS_LIBS="-lutil ${AFS_LIBS}"
29386: fi
29387: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
29388:
29389: # AFS includes may live in /usr/include on some machines...
29390: for i in /usr/afsws/include; do
29391: if test -d ${i}; then
29392: CPPFLAGS="${CPPFLAGS} -I${i}"
29393: FOUND_AFSINCDIR=true
29394: fi
29395: done
29396:
29397: if test -z "$FOUND_AFSLIBDIR"; then
29398: { 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
29399: 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;}
29400: fi
29401: fi
29402:
29403: if test "$with_DCE" = "yes"; then
29404: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
29405: SUDO_LIBS="${SUDO_LIBS} -ldce"
29406: fi
29407:
29408: if test -n "$with_skey"; then
29409: O_LDFLAGS="$LDFLAGS"
29410: if test "$with_skey" != "yes"; then
29411: CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
29412:
29413: if test X"$with_rpath" = X"yes"; then
29414: LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
29415: else
29416: LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
29417: fi
29418: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29419: blibpath_add="${blibpath_add}:${with_skey}/lib"
29420: fi
29421:
29422:
29423: if test X"$with_rpath" = X"yes"; then
29424: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
29425: else
29426: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
29427: fi
29428: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29429: blibpath_add="${blibpath_add}:${with_skey}/lib"
29430: fi
29431:
29432: cat >conftest.$ac_ext <<_ACEOF
29433: #include <skey.h>
29434: _ACEOF
29435: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29436: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29437: ac_status=$?
29438: grep -v '^ *+' conftest.er1 >conftest.err
29439: rm -f conftest.er1
29440: cat conftest.err >&5
29441: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442: (exit $ac_status); } >/dev/null; then
29443: if test -s conftest.err; then
29444: ac_cpp_err=$ac_c_preproc_warn_flag
29445: else
29446: ac_cpp_err=
29447: fi
29448: else
29449: ac_cpp_err=yes
29450: fi
29451: if test -z "$ac_cpp_err"; then
29452: found=yes
29453: else
29454: echo "$as_me: failed program was:" >&5
29455: sed 's/^/| /' conftest.$ac_ext >&5
29456:
29457: found=no
29458: fi
29459: rm -f conftest.err conftest.$ac_ext
29460: else
29461: found=no
29462: O_CPPFLAGS="$CPPFLAGS"
29463: for dir in "" "/usr/local" "/usr/contrib"; do
29464: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
29465: cat >conftest.$ac_ext <<_ACEOF
29466: #include <skey.h>
29467: _ACEOF
29468: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29469: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29470: ac_status=$?
29471: grep -v '^ *+' conftest.er1 >conftest.err
29472: rm -f conftest.er1
29473: cat conftest.err >&5
29474: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475: (exit $ac_status); } >/dev/null; then
29476: if test -s conftest.err; then
29477: ac_cpp_err=$ac_c_preproc_warn_flag
29478: else
29479: ac_cpp_err=
29480: fi
29481: else
29482: ac_cpp_err=yes
29483: fi
29484: if test -z "$ac_cpp_err"; then
29485: found=yes; break
29486: else
29487: echo "$as_me: failed program was:" >&5
29488: sed 's/^/| /' conftest.$ac_ext >&5
29489:
29490:
29491: fi
29492: rm -f conftest.err conftest.$ac_ext
29493: done
29494: if test "$found" = "no" -o -z "$dir"; then
29495: CPPFLAGS="$O_CPPFLAGS"
29496: else
29497:
29498: if test X"$with_rpath" = X"yes"; then
29499: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
29500: else
29501: LDFLAGS="${LDFLAGS} -L${dir}/lib"
29502: fi
29503: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29504: blibpath_add="${blibpath_add}:${dir}/lib"
29505: fi
1.1 millert 29506:
29507:
1.17 millert 29508: if test X"$with_rpath" = X"yes"; then
29509: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
29510: else
29511: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
29512: fi
29513: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29514: blibpath_add="${blibpath_add}:${dir}/lib"
1.1 millert 29515: fi
29516:
29517: fi
29518: fi
1.17 millert 29519: if test "$found" = "no"; then
29520: { 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
29521: 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;}
29522: fi
29523: echo "$as_me:$LINENO: checking for main in -lskey" >&5
29524: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6
29525: if test "${ac_cv_lib_skey_main+set}" = set; then
29526: echo $ECHO_N "(cached) $ECHO_C" >&6
29527: else
29528: ac_check_lib_save_LIBS=$LIBS
29529: LIBS="-lskey $LIBS"
29530: cat >conftest.$ac_ext <<_ACEOF
29531: #line $LINENO "configure"
29532: /* confdefs.h. */
29533: _ACEOF
29534: cat confdefs.h >>conftest.$ac_ext
29535: cat >>conftest.$ac_ext <<_ACEOF
29536: /* end confdefs.h. */
29537:
1.1 millert 29538:
1.17 millert 29539: int
29540: main ()
29541: {
29542: main ();
29543: ;
29544: return 0;
29545: }
29546: _ACEOF
29547: rm -f conftest.$ac_objext conftest$ac_exeext
29548: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29549: (eval $ac_link) 2>&5
29550: ac_status=$?
29551: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552: (exit $ac_status); } &&
29553: { ac_try='test -s conftest$ac_exeext'
29554: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555: (eval $ac_try) 2>&5
29556: ac_status=$?
29557: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558: (exit $ac_status); }; }; then
29559: ac_cv_lib_skey_main=yes
29560: else
29561: echo "$as_me: failed program was:" >&5
29562: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 29563:
1.17 millert 29564: ac_cv_lib_skey_main=no
29565: fi
29566: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29567: LIBS=$ac_check_lib_save_LIBS
1.1 millert 29568: fi
1.17 millert 29569: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
29570: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6
29571: if test $ac_cv_lib_skey_main = yes; then
29572: found=yes
29573: else
29574: { 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
29575: 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;}
1.1 millert 29576: fi
29577:
1.16 millert 29578: echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
1.9 millert 29579: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6
29580: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
29581: echo $ECHO_N "(cached) $ECHO_C" >&6
29582: else
29583: ac_check_lib_save_LIBS=$LIBS
1.16 millert 29584: LIBS="-lskey $LIBS"
29585: cat >conftest.$ac_ext <<_ACEOF
29586: #line $LINENO "configure"
29587: /* confdefs.h. */
29588: _ACEOF
29589: cat confdefs.h >>conftest.$ac_ext
29590: cat >>conftest.$ac_ext <<_ACEOF
29591: /* end confdefs.h. */
29592:
29593: /* Override any gcc2 internal prototype to avoid an error. */
29594: #ifdef __cplusplus
29595: extern "C"
29596: #endif
29597: /* We use char because int might match the return type of a gcc2
29598: builtin and then its argument prototype would still apply. */
29599: char skeyaccess ();
29600: int
29601: main ()
29602: {
29603: skeyaccess ();
29604: ;
29605: return 0;
29606: }
29607: _ACEOF
29608: rm -f conftest.$ac_objext conftest$ac_exeext
29609: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29610: (eval $ac_link) 2>&5
29611: ac_status=$?
29612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29613: (exit $ac_status); } &&
29614: { ac_try='test -s conftest$ac_exeext'
29615: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29616: (eval $ac_try) 2>&5
29617: ac_status=$?
29618: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619: (exit $ac_status); }; }; then
29620: ac_cv_lib_skey_skeyaccess=yes
29621: else
29622: echo "$as_me: failed program was:" >&5
29623: sed 's/^/| /' conftest.$ac_ext >&5
29624:
29625: ac_cv_lib_skey_skeyaccess=no
29626: fi
29627: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29628: LIBS=$ac_check_lib_save_LIBS
29629: fi
29630: echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
29631: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6
29632: if test $ac_cv_lib_skey_skeyaccess = yes; then
1.23 ! millert 29633: cat >>confdefs.h <<\_ACEOF
1.16 millert 29634: #define HAVE_SKEYACCESS 1
29635: _ACEOF
29636:
29637: fi
29638:
1.17 millert 29639: LDFLAGS="$O_LDFLAGS"
29640: SUDO_LIBS="${SUDO_LIBS} -lskey"
29641: fi
29642:
29643: if test -n "$with_opie"; then
29644: O_LDFLAGS="$LDFLAGS"
29645: if test "$with_opie" != "yes"; then
29646: CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
29647:
29648: if test X"$with_rpath" = X"yes"; then
29649: LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
29650: else
29651: LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
29652: fi
29653: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29654: blibpath_add="${blibpath_add}:${with_opie}/lib"
29655: fi
29656:
29657:
29658: if test X"$with_rpath" = X"yes"; then
29659: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
29660: else
29661: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
29662: fi
29663: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29664: blibpath_add="${blibpath_add}:${with_opie}/lib"
29665: fi
29666:
29667: cat >conftest.$ac_ext <<_ACEOF
29668: #include <opie.h>
29669: _ACEOF
29670: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29671: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29672: ac_status=$?
29673: grep -v '^ *+' conftest.er1 >conftest.err
29674: rm -f conftest.er1
29675: cat conftest.err >&5
29676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677: (exit $ac_status); } >/dev/null; then
29678: if test -s conftest.err; then
29679: ac_cpp_err=$ac_c_preproc_warn_flag
29680: else
29681: ac_cpp_err=
29682: fi
29683: else
29684: ac_cpp_err=yes
29685: fi
29686: if test -z "$ac_cpp_err"; then
29687: found=yes
29688: else
29689: echo "$as_me: failed program was:" >&5
29690: sed 's/^/| /' conftest.$ac_ext >&5
29691:
29692: found=no
29693: fi
29694: rm -f conftest.err conftest.$ac_ext
29695: else
29696: found=no
29697: O_CPPFLAGS="$CPPFLAGS"
29698: for dir in "" "/usr/local" "/usr/contrib"; do
29699: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
29700: cat >conftest.$ac_ext <<_ACEOF
29701: #include <opie.h>
29702: _ACEOF
29703: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29704: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29705: ac_status=$?
29706: grep -v '^ *+' conftest.er1 >conftest.err
29707: rm -f conftest.er1
29708: cat conftest.err >&5
29709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710: (exit $ac_status); } >/dev/null; then
29711: if test -s conftest.err; then
29712: ac_cpp_err=$ac_c_preproc_warn_flag
29713: else
29714: ac_cpp_err=
29715: fi
29716: else
29717: ac_cpp_err=yes
29718: fi
29719: if test -z "$ac_cpp_err"; then
29720: found=yes; break
29721: else
29722: echo "$as_me: failed program was:" >&5
29723: sed 's/^/| /' conftest.$ac_ext >&5
29724:
29725:
1.16 millert 29726: fi
1.17 millert 29727: rm -f conftest.err conftest.$ac_ext
29728: done
29729: if test "$found" = "no" -o -z "$dir"; then
29730: CPPFLAGS="$O_CPPFLAGS"
29731: else
29732:
29733: if test X"$with_rpath" = X"yes"; then
29734: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
29735: else
29736: LDFLAGS="${LDFLAGS} -L${dir}/lib"
29737: fi
29738: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
29739: blibpath_add="${blibpath_add}:${dir}/lib"
29740: fi
1.16 millert 29741:
1.17 millert 29742:
29743: if test X"$with_rpath" = X"yes"; then
29744: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
1.16 millert 29745: else
1.17 millert 29746: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
29747: fi
29748: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
29749: blibpath_add="${blibpath_add}:${dir}/lib"
29750: fi
29751:
29752: fi
29753: fi
29754: if test "$found" = "no"; then
29755: { 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
29756: 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;}
1.16 millert 29757: fi
1.17 millert 29758: echo "$as_me:$LINENO: checking for main in -lopie" >&5
29759: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6
29760: if test "${ac_cv_lib_opie_main+set}" = set; then
29761: echo $ECHO_N "(cached) $ECHO_C" >&6
29762: else
29763: ac_check_lib_save_LIBS=$LIBS
29764: LIBS="-lopie $LIBS"
29765: cat >conftest.$ac_ext <<_ACEOF
29766: #line $LINENO "configure"
29767: /* confdefs.h. */
29768: _ACEOF
29769: cat confdefs.h >>conftest.$ac_ext
29770: cat >>conftest.$ac_ext <<_ACEOF
29771: /* end confdefs.h. */
29772:
29773:
29774: int
29775: main ()
29776: {
29777: main ();
29778: ;
29779: return 0;
29780: }
29781: _ACEOF
29782: rm -f conftest.$ac_objext conftest$ac_exeext
29783: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29784: (eval $ac_link) 2>&5
29785: ac_status=$?
29786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787: (exit $ac_status); } &&
29788: { ac_try='test -s conftest$ac_exeext'
29789: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29790: (eval $ac_try) 2>&5
29791: ac_status=$?
29792: echo "$as_me:$LINENO: \$? = $ac_status" >&5
29793: (exit $ac_status); }; }; then
29794: ac_cv_lib_opie_main=yes
29795: else
29796: echo "$as_me: failed program was:" >&5
29797: sed 's/^/| /' conftest.$ac_ext >&5
29798:
29799: ac_cv_lib_opie_main=no
29800: fi
29801: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29802: LIBS=$ac_check_lib_save_LIBS
29803: fi
29804: echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
29805: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6
29806: if test $ac_cv_lib_opie_main = yes; then
29807: found=yes
29808: else
29809: { 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
29810: 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;}
29811: fi
29812:
29813: LDFLAGS="$O_LDFLAGS"
29814: SUDO_LIBS="${SUDO_LIBS} -lopie"
1.16 millert 29815: fi
29816:
29817: if test -n "$with_SecurID" -a "$with_SecurID" != "no"; then
29818: if test "$with_SecurID" != "yes"; then
29819: :
29820: elif test -d /usr/ace/examples; then
29821: with_SecurID=/usr/ace/examples
29822: else
29823: with_SecurID=/usr/ace
29824: fi
29825: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
29826: _LDFLAGS="${LDFLAGS}"
1.17 millert 29827:
29828: if test X"$with_rpath" = X"yes"; then
1.23 ! millert 29829: LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
! 29830: else
! 29831: LDFLAGS="${LDFLAGS} -L${with_SecurID}"
! 29832: fi
! 29833: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 29834: blibpath_add="${blibpath_add}:${with_SecurID}"
! 29835: fi
! 29836:
! 29837: #
! 29838: # Determine whether to use the new or old SecurID API
! 29839: #
! 29840: echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
! 29841: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6
! 29842: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
! 29843: echo $ECHO_N "(cached) $ECHO_C" >&6
! 29844: else
! 29845: ac_check_lib_save_LIBS=$LIBS
! 29846: LIBS="-laceclnt
! 29847: -lpthread
! 29848:
! 29849: $LIBS"
! 29850: cat >conftest.$ac_ext <<_ACEOF
! 29851: #line $LINENO "configure"
! 29852: /* confdefs.h. */
! 29853: _ACEOF
! 29854: cat confdefs.h >>conftest.$ac_ext
! 29855: cat >>conftest.$ac_ext <<_ACEOF
! 29856: /* end confdefs.h. */
! 29857:
! 29858: /* Override any gcc2 internal prototype to avoid an error. */
! 29859: #ifdef __cplusplus
! 29860: extern "C"
! 29861: #endif
! 29862: /* We use char because int might match the return type of a gcc2
! 29863: builtin and then its argument prototype would still apply. */
! 29864: char SD_Init ();
! 29865: int
! 29866: main ()
! 29867: {
! 29868: SD_Init ();
! 29869: ;
! 29870: return 0;
! 29871: }
! 29872: _ACEOF
! 29873: rm -f conftest.$ac_objext conftest$ac_exeext
! 29874: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 29875: (eval $ac_link) 2>&5
! 29876: ac_status=$?
! 29877: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29878: (exit $ac_status); } &&
! 29879: { ac_try='test -s conftest$ac_exeext'
! 29880: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 29881: (eval $ac_try) 2>&5
! 29882: ac_status=$?
! 29883: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 29884: (exit $ac_status); }; }; then
! 29885: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
! 29886: else
! 29887: echo "$as_me: failed program was:" >&5
! 29888: sed 's/^/| /' conftest.$ac_ext >&5
! 29889:
! 29890: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
! 29891: fi
! 29892: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 29893: LIBS=$ac_check_lib_save_LIBS
! 29894: fi
! 29895: echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
! 29896: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6
! 29897: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
! 29898:
! 29899: AUTH_OBJS="securid5.o"
! 29900: SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
! 29901:
! 29902:
! 29903:
! 29904: if test X"$with_rpath" = X"yes"; then
! 29905: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
! 29906: else
! 29907: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
! 29908: fi
! 29909: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 29910: blibpath_add="${blibpath_add}:${with_SecurID}"
! 29911: fi
! 29912:
! 29913:
! 29914: else
! 29915:
! 29916: AUTH_OBJS="securid.o"
! 29917: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
! 29918:
! 29919: fi
! 29920:
! 29921: LDFLAGS="${_LDFLAGS}"
! 29922: fi
! 29923:
! 29924: if test -n "$with_fwtk"; then
! 29925: if test "$with_fwtk" != "yes"; then
! 29926:
! 29927: if test X"$with_rpath" = X"yes"; then
! 29928: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
! 29929: else
! 29930: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
! 29931: fi
! 29932: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 29933: blibpath_add="${blibpath_add}:${with_fwtk}"
! 29934: fi
! 29935:
! 29936: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
! 29937: with_fwtk=yes
! 29938: fi
! 29939: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
! 29940: fi
! 29941:
! 29942: if test "$with_authenticate" = "yes"; then
! 29943: SUDO_LIBS="${SUDO_LIBS} -ls"
! 29944: fi
! 29945:
! 29946: if test -n "$with_ldap"; then
! 29947: if test "$with_ldap" != "yes"; then
! 29948:
! 29949: if test X"$with_rpath" = X"yes"; then
! 29950: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
! 29951: else
! 29952: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
! 29953: fi
! 29954: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
! 29955: blibpath_add="${blibpath_add}:${with_ldap}/lib"
! 29956: fi
! 29957:
! 29958: _LDFLAGS="$LDFLAGS"
! 29959:
! 29960: if test X"$with_rpath" = X"yes"; then
! 29961: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
! 29962: else
! 29963: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
! 29964: fi
! 29965: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
! 29966: blibpath_add="${blibpath_add}:${with_ldap}/lib"
! 29967: fi
! 29968:
! 29969: CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
! 29970: with_ldap=yes
! 29971: fi
! 29972: SUDO_OBJS="${SUDO_OBJS} ldap.o"
! 29973:
! 29974: echo "$as_me:$LINENO: checking for LDAP libraries" >&5
! 29975: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6
! 29976: LDAP_LIBS=""
! 29977: _LIBS="$LIBS"
! 29978: found=no
! 29979: for l in -lldap -llber '-lssl -lcrypto'; do
! 29980: LIBS="${LIBS} $l"
! 29981: LDAP_LIBS="${LDAP_LIBS} $l"
! 29982: cat >conftest.$ac_ext <<_ACEOF
! 29983: #line $LINENO "configure"
! 29984: /* confdefs.h. */
! 29985: _ACEOF
! 29986: cat confdefs.h >>conftest.$ac_ext
! 29987: cat >>conftest.$ac_ext <<_ACEOF
! 29988: /* end confdefs.h. */
! 29989: #include <sys/types.h>
! 29990: #include <lber.h>
! 29991: #include <ldap.h>
! 29992: int
! 29993: main ()
! 29994: {
! 29995: (void)ldap_init(0, 0)
! 29996: ;
! 29997: return 0;
! 29998: }
! 29999: _ACEOF
! 30000: rm -f conftest.$ac_objext conftest$ac_exeext
! 30001: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 30002: (eval $ac_link) 2>&5
! 30003: ac_status=$?
! 30004: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30005: (exit $ac_status); } &&
! 30006: { ac_try='test -s conftest$ac_exeext'
! 30007: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 30008: (eval $ac_try) 2>&5
! 30009: ac_status=$?
! 30010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30011: (exit $ac_status); }; }; then
! 30012: found=yes; break
! 30013: else
! 30014: echo "$as_me: failed program was:" >&5
! 30015: sed 's/^/| /' conftest.$ac_ext >&5
! 30016:
! 30017: fi
! 30018: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 30019: done
! 30020: if test "$found" = "no"; then
! 30021: LDAP_LIBS=" -ldap"
! 30022: echo "$as_me:$LINENO: result: not found, using -ldap" >&5
! 30023: echo "${ECHO_T}not found, using -ldap" >&6
! 30024: else
! 30025: echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
! 30026: echo "${ECHO_T}$LDAP_LIBS" >&6
! 30027: fi
! 30028: echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
! 30029: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6
! 30030: cat >conftest.$ac_ext <<_ACEOF
! 30031: #line $LINENO "configure"
! 30032: /* confdefs.h. */
! 30033: _ACEOF
! 30034: cat confdefs.h >>conftest.$ac_ext
! 30035: cat >>conftest.$ac_ext <<_ACEOF
! 30036: /* end confdefs.h. */
! 30037: #include <sys/types.h>
! 30038: #include <ldap.h>
! 30039: int
! 30040: main ()
! 30041: {
! 30042: (void)ldap_init(0, 0)
! 30043: ;
! 30044: return 0;
! 30045: }
! 30046: _ACEOF
! 30047: rm -f conftest.$ac_objext conftest$ac_exeext
! 30048: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 30049: (eval $ac_link) 2>&5
! 30050: ac_status=$?
! 30051: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30052: (exit $ac_status); } &&
! 30053: { ac_try='test -s conftest$ac_exeext'
! 30054: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 30055: (eval $ac_try) 2>&5
! 30056: ac_status=$?
! 30057: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 30058: (exit $ac_status); }; }; then
! 30059: echo "$as_me:$LINENO: result: no" >&5
! 30060: echo "${ECHO_T}no" >&6
! 30061: else
! 30062: echo "$as_me: failed program was:" >&5
! 30063: sed 's/^/| /' conftest.$ac_ext >&5
! 30064:
! 30065:
! 30066: echo "$as_me:$LINENO: result: yes" >&5
! 30067: echo "${ECHO_T}yes" >&6
! 30068: cat >>confdefs.h <<\_ACEOF
! 30069: #define HAVE_LBER_H 1
! 30070: _ACEOF
! 30071:
! 30072: fi
! 30073: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 30074:
! 30075:
1.17 millert 30076:
1.23 ! millert 30077: for ac_func in ldap_initialize ldap_start_tls_s
! 30078: do
! 30079: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 30080: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 30081: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 30082: if eval "test \"\${$as_ac_var+set}\" = set"; then
1.16 millert 30083: echo $ECHO_N "(cached) $ECHO_C" >&6
30084: else
1.23 ! millert 30085: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 30086: #line $LINENO "configure"
30087: /* confdefs.h. */
30088: _ACEOF
30089: cat confdefs.h >>conftest.$ac_ext
30090: cat >>conftest.$ac_ext <<_ACEOF
30091: /* end confdefs.h. */
1.23 ! millert 30092: /* System header to define __stub macros and hopefully few prototypes,
! 30093: which can conflict with char $ac_func (); below.
! 30094: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 30095: <limits.h> exists even on freestanding compilers. */
! 30096: #ifdef __STDC__
! 30097: # include <limits.h>
! 30098: #else
! 30099: # include <assert.h>
! 30100: #endif
1.9 millert 30101: /* Override any gcc2 internal prototype to avoid an error. */
30102: #ifdef __cplusplus
30103: extern "C"
1.23 ! millert 30104: {
1.9 millert 30105: #endif
30106: /* We use char because int might match the return type of a gcc2
30107: builtin and then its argument prototype would still apply. */
1.23 ! millert 30108: char $ac_func ();
! 30109: /* The GNU C library defines this for functions which it implements
! 30110: to always fail with ENOSYS. Some functions are actually named
! 30111: something starting with __ and the normal name is an alias. */
! 30112: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 30113: choke me
! 30114: #else
! 30115: char (*f) () = $ac_func;
! 30116: #endif
! 30117: #ifdef __cplusplus
! 30118: }
! 30119: #endif
! 30120:
1.9 millert 30121: int
30122: main ()
30123: {
1.23 ! millert 30124: return f != $ac_func;
1.9 millert 30125: ;
30126: return 0;
30127: }
30128: _ACEOF
30129: rm -f conftest.$ac_objext conftest$ac_exeext
1.16 millert 30130: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9 millert 30131: (eval $ac_link) 2>&5
30132: ac_status=$?
1.16 millert 30133: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 30134: (exit $ac_status); } &&
30135: { ac_try='test -s conftest$ac_exeext'
1.16 millert 30136: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.9 millert 30137: (eval $ac_try) 2>&5
30138: ac_status=$?
1.16 millert 30139: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 30140: (exit $ac_status); }; }; then
1.23 ! millert 30141: eval "$as_ac_var=yes"
1.9 millert 30142: else
30143: echo "$as_me: failed program was:" >&5
1.16 millert 30144: sed 's/^/| /' conftest.$ac_ext >&5
30145:
1.23 ! millert 30146: eval "$as_ac_var=no"
1.9 millert 30147: fi
30148: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30149: fi
1.23 ! millert 30150: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 30151: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 30152: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 30153: cat >>confdefs.h <<_ACEOF
! 30154: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 30155: _ACEOF
1.17 millert 30156:
1.1 millert 30157: fi
1.23 ! millert 30158: done
1.1 millert 30159:
30160:
1.23 ! millert 30161: SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
! 30162: LIBS="$_LIBS"
! 30163: LDFLAGS="$_LDFLAGS"
1.1 millert 30164: fi
30165:
1.17 millert 30166: if test -n "$blibpath"; then
30167: if test -n "$blibpath_add"; then
30168: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
30169: elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
30170: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
30171: fi
30172: fi
30173:
1.16 millert 30174: echo "$as_me:$LINENO: checking for log file location" >&5
1.9 millert 30175: echo $ECHO_N "checking for log file location... $ECHO_C" >&6
1.1 millert 30176: if test -n "$with_logpath"; then
1.16 millert 30177: echo "$as_me:$LINENO: result: $with_logpath" >&5
1.9 millert 30178: echo "${ECHO_T}$with_logpath" >&6
30179: cat >>confdefs.h <<EOF
1.1 millert 30180: #define _PATH_SUDO_LOGFILE "$with_logpath"
30181: EOF
30182:
30183: elif test -d "/var/log"; then
1.16 millert 30184: echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
1.9 millert 30185: echo "${ECHO_T}/var/log/sudo.log" >&6
30186: cat >>confdefs.h <<\EOF
1.1 millert 30187: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
30188: EOF
30189:
30190: elif test -d "/var/adm"; then
1.16 millert 30191: echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
1.9 millert 30192: echo "${ECHO_T}/var/adm/sudo.log" >&6
30193: cat >>confdefs.h <<\EOF
1.1 millert 30194: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
30195: EOF
30196:
30197: elif test -d "/usr/adm"; then
1.16 millert 30198: echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
1.9 millert 30199: echo "${ECHO_T}/usr/adm/sudo.log" >&6
30200: cat >>confdefs.h <<\EOF
1.1 millert 30201: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
30202: EOF
30203:
30204: else
1.16 millert 30205: echo "$as_me:$LINENO: result: unknown" >&5
1.9 millert 30206: echo "${ECHO_T}unknown" >&6
1.1 millert 30207: fi
30208:
1.16 millert 30209: echo "$as_me:$LINENO: checking for timestamp file location" >&5
1.9 millert 30210: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6
1.1 millert 30211: if test -n "$with_timedir"; then
1.16 millert 30212: echo "$as_me:$LINENO: result: $with_timedir" >&5
1.9 millert 30213: echo "${ECHO_T}$with_timedir" >&6
30214: cat >>confdefs.h <<EOF
1.1 millert 30215: #define _PATH_SUDO_TIMEDIR "$with_timedir"
30216: EOF
30217:
1.9 millert 30218: timedir="$with_timedir"
1.1 millert 30219: elif test -d "/var/run"; then
1.16 millert 30220: echo "$as_me:$LINENO: result: /var/run/sudo" >&5
1.9 millert 30221: echo "${ECHO_T}/var/run/sudo" >&6
30222: cat >>confdefs.h <<\EOF
1.1 millert 30223: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
30224: EOF
30225:
1.9 millert 30226: timedir="/var/run/sudo"
1.23 ! millert 30227: elif test -d "/var/adm"; then
! 30228: echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
! 30229: echo "${ECHO_T}/var/adm/sudo" >&6
! 30230: cat >>confdefs.h <<\EOF
! 30231: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
! 30232: EOF
! 30233:
! 30234: timedir="/var/adm/sudo"
1.6 millert 30235: else
1.23 ! millert 30236: echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
! 30237: echo "${ECHO_T}/usr/adm/sudo" >&6
1.9 millert 30238: cat >>confdefs.h <<\EOF
1.23 ! millert 30239: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
1.1 millert 30240: EOF
30241:
1.23 ! millert 30242: timedir="/usr/adm/sudo"
1.1 millert 30243: fi
30244:
1.16 millert 30245:
1.1 millert 30246: if test "$with_passwd" = "no"; then
1.16 millert 30247: cat >>confdefs.h <<\_ACEOF
1.23 ! millert 30248: #define WITHOUT_PASSWD 1
1.16 millert 30249: _ACEOF
1.1 millert 30250:
30251: if test -z "$AUTH_OBJS"; then
1.16 millert 30252: { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
1.9 millert 30253: echo "$as_me: error: no authentication methods defined." >&2;}
30254: { (exit 1); exit 1; }; }
1.1 millert 30255: fi
30256: else
30257: if test -n "$SECUREWARE"; then
30258: AUTH_OBJS="${AUTH_OBJS} passwd.o secureware.o"
30259: else
30260: AUTH_OBJS="${AUTH_OBJS} passwd.o"
30261: fi
30262: fi
30263:
30264: if test -n "$LIBS"; then
30265: L="$LIBS"
30266: LIBS=
30267: for l in ${L}; do
30268: dupe=0
30269: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
30270: test $l = $sl && dupe=1
30271: done
30272: test $dupe = 0 && LIBS="${LIBS} $l"
30273: done
30274: fi
30275:
30276: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
30277:
1.23 ! millert 30278: if test "$with_noexec" != "no"; then
! 30279: PROGS="${PROGS} sudo_noexec.la"
! 30280: INSTALL_NOEXEC="install-noexec"
! 30281:
! 30282: oexec_prefix="$exec_prefix"
! 30283: if test "$exec_prefix" = '$(prefix)'; then
! 30284: if test "$prefix" = "NONE"; then
! 30285: exec_prefix="$ac_default_prefix"
! 30286: else
! 30287: exec_prefix="$prefix"
! 30288: fi
! 30289: fi
! 30290: eval noexec_file="$with_noexec"
! 30291:
! 30292: cat >>confdefs.h <<_ACEOF
! 30293: #define _PATH_SUDO_NOEXEC "$noexec_file"
! 30294: _ACEOF
! 30295:
! 30296: exec_prefix="$oexec_prefix"
! 30297: fi
! 30298:
1.16 millert 30299: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
1.9 millert 30300: cat >confcache <<\_ACEOF
1.1 millert 30301: # This file is a shell script that caches the results of configure
30302: # tests run on this system so they can be shared between configure
1.9 millert 30303: # scripts and configure runs, see configure's option --config-cache.
30304: # It is not useful on other systems. If it contains results you don't
30305: # want to keep, you may remove or edit it.
1.1 millert 30306: #
1.9 millert 30307: # config.status only pays attention to the cache file if you give it
30308: # the --recheck option to rerun configure.
1.1 millert 30309: #
1.16 millert 30310: # `ac_cv_env_foo' variables (set or unset) will be overridden when
1.9 millert 30311: # loading this file, other *unset* `ac_cv_foo' will be assigned the
30312: # following values.
30313:
30314: _ACEOF
30315:
1.1 millert 30316: # The following way of writing the cache mishandles newlines in values,
30317: # but we know of no workaround that is simple, portable, and efficient.
30318: # So, don't put newlines in cache variables' values.
30319: # Ultrix sh set writes to stderr and can't be redirected directly,
30320: # and sets the high bit in the cache file unless we assign to the vars.
1.9 millert 30321: {
30322: (set) 2>&1 |
30323: case `(ac_space=' '; set | grep ac_space) 2>&1` in
30324: *ac_space=\ *)
30325: # `set' does not quote correctly, so add quotes (double-quote
30326: # substitution turns \\\\ into \\, and sed turns \\ into \).
30327: sed -n \
30328: "s/'/'\\\\''/g;
30329: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30330: ;;
30331: *)
30332: # `set' quotes correctly as required by POSIX, so do not add quotes.
30333: sed -n \
30334: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30335: ;;
30336: esac;
30337: } |
30338: sed '
30339: t clear
30340: : clear
30341: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30342: t end
30343: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30344: : end' >>confcache
1.16 millert 30345: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 millert 30346: if test -w $cache_file; then
1.9 millert 30347: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30348: cat confcache >$cache_file
1.1 millert 30349: else
30350: echo "not updating unwritable cache $cache_file"
30351: fi
30352: fi
30353: rm -f confcache
30354:
30355: test "x$prefix" = xNONE && prefix=$ac_default_prefix
30356: # Let make expand exec_prefix.
30357: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30358:
1.9 millert 30359: # VPATH may cause trouble with some makes, so we remove $(srcdir),
30360: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30361: # trailing colons and then remove the whole line if VPATH becomes empty
30362: # (actually we leave an empty line to preserve line numbers).
1.1 millert 30363: if test "x$srcdir" = x.; then
1.9 millert 30364: ac_vpsub='/^[ ]*VPATH[ ]*=/{
30365: s/:*\$(srcdir):*/:/;
30366: s/:*\${srcdir}:*/:/;
30367: s/:*@srcdir@:*/:/;
30368: s/^\([^=]*=[ ]*\):*/\1/;
30369: s/:*$//;
30370: s/^[^=]*=[ ]*$//;
30371: }'
1.1 millert 30372: fi
30373:
30374: DEFS=-DHAVE_CONFIG_H
30375:
1.16 millert 30376: ac_libobjs=
30377: ac_ltlibobjs=
30378: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30379: # 1. Remove the extension, and $U if already installed.
30380: ac_i=`echo "$ac_i" |
30381: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30382: # 2. Add them.
30383: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30384: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30385: done
30386: LIBOBJS=$ac_libobjs
30387:
30388: LTLIBOBJS=$ac_ltlibobjs
30389:
30390:
30391:
1.1 millert 30392: : ${CONFIG_STATUS=./config.status}
1.9 millert 30393: ac_clean_files_save=$ac_clean_files
30394: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.16 millert 30395: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1.9 millert 30396: echo "$as_me: creating $CONFIG_STATUS" >&6;}
30397: cat >$CONFIG_STATUS <<_ACEOF
30398: #! $SHELL
1.16 millert 30399: # Generated by $as_me.
1.1 millert 30400: # Run this file to recreate the current configuration.
30401: # Compiler output produced by configure, useful for debugging
1.9 millert 30402: # configure, is in config.log if it exists.
30403:
30404: debug=false
1.16 millert 30405: ac_cs_recheck=false
30406: ac_cs_silent=false
1.9 millert 30407: SHELL=\${CONFIG_SHELL-$SHELL}
30408: _ACEOF
30409:
30410: cat >>$CONFIG_STATUS <<\_ACEOF
1.16 millert 30411: ## --------------------- ##
30412: ## M4sh Initialization. ##
30413: ## --------------------- ##
30414:
1.9 millert 30415: # Be Bourne compatible
30416: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30417: emulate sh
30418: NULLCMD=:
1.16 millert 30419: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30420: # is contrary to our usage. Disable this feature.
30421: alias -g '${1+"$@"}'='"$@"'
1.9 millert 30422: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30423: set -o posix
30424: fi
30425:
1.16 millert 30426: # Support unset when possible.
30427: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
30428: as_unset=unset
30429: else
30430: as_unset=false
30431: fi
30432:
30433:
30434: # Work around bugs in pre-3.0 UWIN ksh.
30435: $as_unset ENV MAIL MAILPATH
30436: PS1='$ '
30437: PS2='> '
30438: PS4='+ '
30439:
30440: # NLS nuisances.
30441: for as_var in \
30442: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30443: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30444: LC_TELEPHONE LC_TIME
30445: do
30446: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
30447: eval $as_var=C; export $as_var
30448: else
30449: $as_unset $as_var
30450: fi
30451: done
30452:
30453: # Required to use basename.
30454: if expr a : '\(a\)' >/dev/null 2>&1; then
30455: as_expr=expr
30456: else
30457: as_expr=false
30458: fi
30459:
30460: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30461: as_basename=basename
30462: else
30463: as_basename=false
30464: fi
30465:
30466:
1.9 millert 30467: # Name of the executable.
1.16 millert 30468: as_me=`$as_basename "$0" ||
30469: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30470: X"$0" : 'X\(//\)$' \| \
30471: X"$0" : 'X\(/\)$' \| \
30472: . : '\(.\)' 2>/dev/null ||
30473: echo X/"$0" |
30474: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30475: /^X\/\(\/\/\)$/{ s//\1/; q; }
30476: /^X\/\(\/\).*/{ s//\1/; q; }
30477: s/.*/./; q'`
30478:
30479:
30480: # PATH needs CR, and LINENO needs CR and PATH.
30481: # Avoid depending upon Character Ranges.
30482: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30483: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30484: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30485: as_cr_digits='0123456789'
30486: as_cr_alnum=$as_cr_Letters$as_cr_digits
30487:
30488: # The user is always right.
30489: if test "${PATH_SEPARATOR+set}" != set; then
30490: echo "#! /bin/sh" >conf$$.sh
30491: echo "exit 0" >>conf$$.sh
30492: chmod +x conf$$.sh
30493: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30494: PATH_SEPARATOR=';'
30495: else
30496: PATH_SEPARATOR=:
30497: fi
30498: rm -f conf$$.sh
30499: fi
30500:
30501:
30502: as_lineno_1=$LINENO
30503: as_lineno_2=$LINENO
30504: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30505: test "x$as_lineno_1" != "x$as_lineno_2" &&
30506: test "x$as_lineno_3" = "x$as_lineno_2" || {
30507: # Find who we are. Look in the path if we contain no path at all
30508: # relative or not.
30509: case $0 in
30510: *[\\/]* ) as_myself=$0 ;;
30511: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30512: for as_dir in $PATH
30513: do
30514: IFS=$as_save_IFS
30515: test -z "$as_dir" && as_dir=.
30516: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30517: done
30518:
30519: ;;
30520: esac
30521: # We did not find ourselves, most probably we were run as `sh COMMAND'
30522: # in which case we are not to be found in the path.
30523: if test "x$as_myself" = x; then
30524: as_myself=$0
30525: fi
30526: if test ! -f "$as_myself"; then
30527: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30528: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30529: { (exit 1); exit 1; }; }
30530: fi
30531: case $CONFIG_SHELL in
30532: '')
30533: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30534: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30535: do
30536: IFS=$as_save_IFS
30537: test -z "$as_dir" && as_dir=.
30538: for as_base in sh bash ksh sh5; do
30539: case $as_dir in
30540: /*)
30541: if ("$as_dir/$as_base" -c '
30542: as_lineno_1=$LINENO
30543: as_lineno_2=$LINENO
30544: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30545: test "x$as_lineno_1" != "x$as_lineno_2" &&
30546: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30547: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30548: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30549: CONFIG_SHELL=$as_dir/$as_base
30550: export CONFIG_SHELL
30551: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30552: fi;;
30553: esac
30554: done
30555: done
30556: ;;
30557: esac
30558:
30559: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30560: # uniformly replaced by the line number. The first 'sed' inserts a
30561: # line-number line before each line; the second 'sed' does the real
30562: # work. The second script uses 'N' to pair each line-number line
30563: # with the numbered line, and appends trailing '-' during
30564: # substitution so that $LINENO is not a special case at line end.
30565: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30566: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30567: sed '=' <$as_myself |
30568: sed '
30569: N
30570: s,$,-,
30571: : loop
30572: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30573: t loop
30574: s,-$,,
30575: s,^['$as_cr_digits']*\n,,
30576: ' >$as_me.lineno &&
30577: chmod +x $as_me.lineno ||
30578: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30579: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30580: { (exit 1); exit 1; }; }
30581:
30582: # Don't try to exec as it changes $[0], causing all sort of problems
30583: # (the dirname of $[0] is not the place where we might find the
30584: # original and so on. Autoconf is especially sensible to this).
30585: . ./$as_me.lineno
30586: # Exit status is that of the last command.
30587: exit
30588: }
30589:
30590:
30591: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30592: *c*,-n*) ECHO_N= ECHO_C='
30593: ' ECHO_T=' ' ;;
30594: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30595: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30596: esac
1.9 millert 30597:
30598: if expr a : '\(a\)' >/dev/null 2>&1; then
30599: as_expr=expr
30600: else
30601: as_expr=false
30602: fi
30603:
30604: rm -f conf$$ conf$$.exe conf$$.file
30605: echo >conf$$.file
30606: if ln -s conf$$.file conf$$ 2>/dev/null; then
30607: # We could just check for DJGPP; but this test a) works b) is more generic
30608: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30609: if test -f conf$$.exe; then
30610: # Don't use ln at all; we don't have any links
30611: as_ln_s='cp -p'
30612: else
30613: as_ln_s='ln -s'
30614: fi
30615: elif ln conf$$.file conf$$ 2>/dev/null; then
30616: as_ln_s=ln
30617: else
30618: as_ln_s='cp -p'
30619: fi
30620: rm -f conf$$ conf$$.exe conf$$.file
30621:
1.16 millert 30622: if mkdir -p . 2>/dev/null; then
30623: as_mkdir_p=:
30624: else
30625: as_mkdir_p=false
30626: fi
30627:
1.9 millert 30628: as_executable_p="test -f"
30629:
1.16 millert 30630: # Sed expression to map a string onto a valid CPP name.
30631: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
30632:
30633: # Sed expression to map a string onto a valid variable name.
30634: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
1.9 millert 30635:
30636:
30637: # IFS
30638: # We need space, tab and new line, in precisely that order.
30639: as_nl='
30640: '
30641: IFS=" $as_nl"
30642:
30643: # CDPATH.
1.16 millert 30644: $as_unset CDPATH
1.9 millert 30645:
30646: exec 6>&1
30647:
1.16 millert 30648: # Open the log real soon, to keep \$[0] and so on meaningful, and to
30649: # report actual input values of CONFIG_FILES etc. instead of their
30650: # values after options handling. Logging --version etc. is OK.
30651: exec 5>>config.log
30652: {
30653: echo
30654: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30655: ## Running $as_me. ##
30656: _ASBOX
30657: } >&5
30658: cat >&5 <<_CSEOF
30659:
1.23 ! millert 30660: This file was extended by sudo $as_me 1.6.8, which was
1.16 millert 30661: generated by GNU Autoconf 2.57. Invocation command line was
30662:
30663: CONFIG_FILES = $CONFIG_FILES
30664: CONFIG_HEADERS = $CONFIG_HEADERS
30665: CONFIG_LINKS = $CONFIG_LINKS
30666: CONFIG_COMMANDS = $CONFIG_COMMANDS
30667: $ $0 $@
30668:
30669: _CSEOF
30670: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30671: echo >&5
1.9 millert 30672: _ACEOF
30673:
30674: # Files that config.status was made for.
30675: if test -n "$ac_config_files"; then
30676: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30677: fi
30678:
30679: if test -n "$ac_config_headers"; then
30680: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30681: fi
30682:
30683: if test -n "$ac_config_links"; then
30684: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30685: fi
30686:
30687: if test -n "$ac_config_commands"; then
30688: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30689: fi
30690:
1.16 millert 30691: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 30692:
30693: ac_cs_usage="\
30694: \`$as_me' instantiates files from templates according to the
30695: current configuration.
30696:
30697: Usage: $0 [OPTIONS] [FILE]...
30698:
30699: -h, --help print this help, then exit
30700: -V, --version print version number, then exit
1.16 millert 30701: -q, --quiet do not print progress messages
1.9 millert 30702: -d, --debug don't remove temporary files
30703: --recheck update $as_me by reconfiguring in the same conditions
30704: --file=FILE[:TEMPLATE]
30705: instantiate the configuration file FILE
30706: --header=FILE[:TEMPLATE]
30707: instantiate the configuration header FILE
30708:
30709: Configuration files:
30710: $config_files
30711:
30712: Configuration headers:
30713: $config_headers
30714:
30715: Report bugs to <bug-autoconf@gnu.org>."
1.16 millert 30716: _ACEOF
1.9 millert 30717:
1.16 millert 30718: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 30719: ac_cs_version="\\
1.23 ! millert 30720: sudo config.status 1.6.8
1.16 millert 30721: configured by $0, generated by GNU Autoconf 2.57,
1.9 millert 30722: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30723:
30724: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
30725: Free Software Foundation, Inc.
30726: This config.status script is free software; the Free Software Foundation
30727: gives unlimited permission to copy, distribute and modify it."
30728: srcdir=$srcdir
1.16 millert 30729: _ACEOF
1.9 millert 30730:
1.16 millert 30731: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 30732: # If no file are specified by the user, then we need to provide default
30733: # value. By we need to know if files were specified by the user.
30734: ac_need_defaults=:
30735: while test $# != 0
1.1 millert 30736: do
1.9 millert 30737: case $1 in
30738: --*=*)
30739: ac_option=`expr "x$1" : 'x\([^=]*\)='`
30740: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.16 millert 30741: ac_shift=:
30742: ;;
30743: -*)
30744: ac_option=$1
30745: ac_optarg=$2
30746: ac_shift=shift
1.9 millert 30747: ;;
30748: *) # This is not an option, so the user has probably given explicit
30749: # arguments.
1.16 millert 30750: ac_option=$1
1.9 millert 30751: ac_need_defaults=false;;
30752: esac
30753:
1.16 millert 30754: case $ac_option in
1.9 millert 30755: # Handling of the options.
1.16 millert 30756: _ACEOF
30757: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 30758: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.16 millert 30759: ac_cs_recheck=: ;;
1.9 millert 30760: --version | --vers* | -V )
30761: echo "$ac_cs_version"; exit 0 ;;
30762: --he | --h)
30763: # Conflict between --help and --header
1.16 millert 30764: { { echo "$as_me:$LINENO: error: ambiguous option: $1
1.9 millert 30765: Try \`$0 --help' for more information." >&5
30766: echo "$as_me: error: ambiguous option: $1
30767: Try \`$0 --help' for more information." >&2;}
30768: { (exit 1); exit 1; }; };;
30769: --help | --hel | -h )
30770: echo "$ac_cs_usage"; exit 0 ;;
30771: --debug | --d* | -d )
30772: debug=: ;;
30773: --file | --fil | --fi | --f )
1.16 millert 30774: $ac_shift
30775: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.9 millert 30776: ac_need_defaults=false;;
30777: --header | --heade | --head | --hea )
1.16 millert 30778: $ac_shift
30779: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.9 millert 30780: ac_need_defaults=false;;
1.16 millert 30781: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30782: | -silent | --silent | --silen | --sile | --sil | --si | --s)
30783: ac_cs_silent=: ;;
1.9 millert 30784:
30785: # This is an error.
1.16 millert 30786: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1.9 millert 30787: Try \`$0 --help' for more information." >&5
30788: echo "$as_me: error: unrecognized option: $1
30789: Try \`$0 --help' for more information." >&2;}
30790: { (exit 1); exit 1; }; } ;;
30791:
30792: *) ac_config_targets="$ac_config_targets $1" ;;
30793:
30794: esac
30795: shift
30796: done
30797:
1.16 millert 30798: ac_configure_extra_args=
1.9 millert 30799:
1.16 millert 30800: if $ac_cs_silent; then
30801: exec 6>/dev/null
30802: ac_configure_extra_args="$ac_configure_extra_args --silent"
30803: fi
1.9 millert 30804:
1.16 millert 30805: _ACEOF
30806: cat >>$CONFIG_STATUS <<_ACEOF
30807: if \$ac_cs_recheck; then
30808: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30809: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30810: fi
1.9 millert 30811:
30812: _ACEOF
30813:
1.16 millert 30814:
30815:
30816:
30817:
30818: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 30819: for ac_config_target in $ac_config_targets
30820: do
30821: case "$ac_config_target" in
30822: # Handling of arguments.
30823: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30824: "sudo.man" ) CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
30825: "visudo.man" ) CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
30826: "sudoers.man" ) CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
30827: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30828: "pathnames.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
1.16 millert 30829: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1.9 millert 30830: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30831: { (exit 1); exit 1; }; };;
1.1 millert 30832: esac
30833: done
30834:
1.9 millert 30835: # If the user did not use the arguments to specify the items to instantiate,
30836: # then the envvar interface is used. Set only those that are not.
30837: # We use the long form for the default assignment because of an extremely
30838: # bizarre bug on SunOS 4.1.3.
30839: if $ac_need_defaults; then
30840: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30841: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30842: fi
30843:
1.16 millert 30844: # Have a temporary directory for convenience. Make it in the build tree
30845: # simply because there is no reason to put it here, and in addition,
30846: # creating and moving files from /tmp can sometimes cause problems.
1.9 millert 30847: # Create a temporary directory, and hook for its removal unless debugging.
30848: $debug ||
30849: {
30850: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30851: trap '{ (exit 1); exit 1; }' 1 2 13 15
30852: }
30853:
30854: # Create a (secure) tmp directory for tmp files.
1.16 millert 30855:
1.9 millert 30856: {
1.16 millert 30857: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.9 millert 30858: test -n "$tmp" && test -d "$tmp"
30859: } ||
30860: {
1.16 millert 30861: tmp=./confstat$$-$RANDOM
1.9 millert 30862: (umask 077 && mkdir $tmp)
30863: } ||
30864: {
1.16 millert 30865: echo "$me: cannot create a temporary directory in ." >&2
1.9 millert 30866: { (exit 1); exit 1; }
30867: }
1.1 millert 30868:
1.16 millert 30869: _ACEOF
1.1 millert 30870:
1.16 millert 30871: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 30872:
30873: #
30874: # CONFIG_FILES section.
30875: #
1.1 millert 30876:
1.9 millert 30877: # No need to generate the scripts if there are no CONFIG_FILES.
30878: # This happens for instance when ./config.status config.h
30879: if test -n "\$CONFIG_FILES"; then
30880: # Protect against being on the right side of a sed subst in config.status.
30881: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30882: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30883: s,@SHELL@,$SHELL,;t t
1.16 millert 30884: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30885: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30886: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30887: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30888: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30889: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1.9 millert 30890: s,@exec_prefix@,$exec_prefix,;t t
30891: s,@prefix@,$prefix,;t t
30892: s,@program_transform_name@,$program_transform_name,;t t
30893: s,@bindir@,$bindir,;t t
30894: s,@sbindir@,$sbindir,;t t
30895: s,@libexecdir@,$libexecdir,;t t
30896: s,@datadir@,$datadir,;t t
30897: s,@sysconfdir@,$sysconfdir,;t t
30898: s,@sharedstatedir@,$sharedstatedir,;t t
30899: s,@localstatedir@,$localstatedir,;t t
30900: s,@libdir@,$libdir,;t t
30901: s,@includedir@,$includedir,;t t
30902: s,@oldincludedir@,$oldincludedir,;t t
30903: s,@infodir@,$infodir,;t t
30904: s,@mandir@,$mandir,;t t
30905: s,@build_alias@,$build_alias,;t t
30906: s,@host_alias@,$host_alias,;t t
30907: s,@target_alias@,$target_alias,;t t
1.16 millert 30908: s,@DEFS@,$DEFS,;t t
1.9 millert 30909: s,@ECHO_C@,$ECHO_C,;t t
30910: s,@ECHO_N@,$ECHO_N,;t t
30911: s,@ECHO_T@,$ECHO_T,;t t
30912: s,@LIBS@,$LIBS,;t t
1.23 ! millert 30913: s,@LIBTOOL@,$LIBTOOL,;t t
1.9 millert 30914: s,@CFLAGS@,$CFLAGS,;t t
30915: s,@PROGS@,$PROGS,;t t
30916: s,@CPPFLAGS@,$CPPFLAGS,;t t
30917: s,@LDFLAGS@,$LDFLAGS,;t t
30918: s,@SUDO_LDFLAGS@,$SUDO_LDFLAGS,;t t
1.23 ! millert 30919: s,@SUDO_OBJS@,$SUDO_OBJS,;t t
1.9 millert 30920: s,@SUDO_LIBS@,$SUDO_LIBS,;t t
30921: s,@NET_LIBS@,$NET_LIBS,;t t
30922: s,@AFS_LIBS@,$AFS_LIBS,;t t
30923: s,@OSDEFS@,$OSDEFS,;t t
30924: s,@AUTH_OBJS@,$AUTH_OBJS,;t t
30925: s,@MANTYPE@,$MANTYPE,;t t
30926: s,@MAN_POSTINSTALL@,$MAN_POSTINSTALL,;t t
30927: s,@SUDOERS_MODE@,$SUDOERS_MODE,;t t
30928: s,@SUDOERS_UID@,$SUDOERS_UID,;t t
30929: s,@SUDOERS_GID@,$SUDOERS_GID,;t t
30930: s,@DEV@,$DEV,;t t
30931: s,@mansectsu@,$mansectsu,;t t
30932: s,@mansectform@,$mansectform,;t t
30933: s,@mansrcdir@,$mansrcdir,;t t
1.23 ! millert 30934: s,@NOEXECDIR@,$NOEXECDIR,;t t
! 30935: s,@noexec_file@,$noexec_file,;t t
! 30936: s,@INSTALL_NOEXEC@,$INSTALL_NOEXEC,;t t
1.9 millert 30937: s,@timedir@,$timedir,;t t
30938: s,@timeout@,$timeout,;t t
30939: s,@password_timeout@,$password_timeout,;t t
30940: s,@sudo_umask@,$sudo_umask,;t t
30941: s,@passprompt@,$passprompt,;t t
30942: s,@long_otp_prompt@,$long_otp_prompt,;t t
30943: s,@lecture@,$lecture,;t t
30944: s,@logfac@,$logfac,;t t
30945: s,@goodpri@,$goodpri,;t t
30946: s,@badpri@,$badpri,;t t
30947: s,@loglen@,$loglen,;t t
30948: s,@ignore_dot@,$ignore_dot,;t t
30949: s,@mail_no_user@,$mail_no_user,;t t
30950: s,@mail_no_host@,$mail_no_host,;t t
30951: s,@mail_no_perms@,$mail_no_perms,;t t
30952: s,@mailto@,$mailto,;t t
30953: s,@mailsub@,$mailsub,;t t
30954: s,@badpass_message@,$badpass_message,;t t
30955: s,@fqdn@,$fqdn,;t t
30956: s,@runas_default@,$runas_default,;t t
30957: s,@env_editor@,$env_editor,;t t
30958: s,@passwd_tries@,$passwd_tries,;t t
30959: s,@tty_tickets@,$tty_tickets,;t t
30960: s,@insults@,$insults,;t t
1.23 ! millert 30961: s,@root_sudo@,$root_sudo,;t t
1.9 millert 30962: s,@EGREPPROG@,$EGREPPROG,;t t
30963: s,@CC@,$CC,;t t
30964: s,@ac_ct_CC@,$ac_ct_CC,;t t
30965: s,@EXEEXT@,$EXEEXT,;t t
30966: s,@OBJEXT@,$OBJEXT,;t t
30967: s,@CPP@,$CPP,;t t
30968: s,@build@,$build,;t t
30969: s,@build_cpu@,$build_cpu,;t t
30970: s,@build_vendor@,$build_vendor,;t t
30971: s,@build_os@,$build_os,;t t
30972: s,@host@,$host,;t t
30973: s,@host_cpu@,$host_cpu,;t t
30974: s,@host_vendor@,$host_vendor,;t t
30975: s,@host_os@,$host_os,;t t
1.23 ! millert 30976: s,@target@,$target,;t t
! 30977: s,@target_cpu@,$target_cpu,;t t
! 30978: s,@target_vendor@,$target_vendor,;t t
! 30979: s,@target_os@,$target_os,;t t
1.16 millert 30980: s,@EGREP@,$EGREP,;t t
1.23 ! millert 30981: s,@LN_S@,$LN_S,;t t
! 30982: s,@ECHO@,$ECHO,;t t
! 30983: s,@AR@,$AR,;t t
! 30984: s,@ac_ct_AR@,$ac_ct_AR,;t t
! 30985: s,@RANLIB@,$RANLIB,;t t
! 30986: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
! 30987: s,@STRIP@,$STRIP,;t t
! 30988: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
! 30989: s,@CXX@,$CXX,;t t
! 30990: s,@CXXFLAGS@,$CXXFLAGS,;t t
! 30991: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
! 30992: s,@CXXCPP@,$CXXCPP,;t t
! 30993: s,@F77@,$F77,;t t
! 30994: s,@FFLAGS@,$FFLAGS,;t t
! 30995: s,@ac_ct_F77@,$ac_ct_F77,;t t
! 30996: s,@UNAMEPROG@,$UNAMEPROG,;t t
! 30997: s,@TRPROG@,$TRPROG,;t t
! 30998: s,@NROFFPROG@,$NROFFPROG,;t t
1.9 millert 30999: s,@YACC@,$YACC,;t t
1.16 millert 31000: s,@LIBOBJS@,$LIBOBJS,;t t
1.9 millert 31001: s,@ALLOCA@,$ALLOCA,;t t
1.18 millert 31002: s,@KRB5CONFIG@,$KRB5CONFIG,;t t
1.16 millert 31003: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 millert 31004: CEOF
1.9 millert 31005:
1.16 millert 31006: _ACEOF
1.1 millert 31007:
1.16 millert 31008: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 31009: # Split the substitutions into bite-sized pieces for seds with
31010: # small command number limits, like on Digital OSF/1 and HP-UX.
31011: ac_max_sed_lines=48
31012: ac_sed_frag=1 # Number of current file.
31013: ac_beg=1 # First line for current file.
31014: ac_end=$ac_max_sed_lines # Line after last line for current file.
31015: ac_more_lines=:
31016: ac_sed_cmds=
31017: while $ac_more_lines; do
31018: if test $ac_beg -gt 1; then
31019: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31020: else
31021: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31022: fi
31023: if test ! -s $tmp/subs.frag; then
31024: ac_more_lines=false
1.1 millert 31025: else
1.9 millert 31026: # The purpose of the label and of the branching condition is to
31027: # speed up the sed processing (if there are no `@' at all, there
31028: # is no need to browse any of the substitutions).
31029: # These are the two extra sed commands mentioned above.
31030: (echo ':t
31031: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31032: if test -z "$ac_sed_cmds"; then
31033: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31034: else
31035: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31036: fi
31037: ac_sed_frag=`expr $ac_sed_frag + 1`
31038: ac_beg=$ac_end
31039: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 millert 31040: fi
1.9 millert 31041: done
31042: if test -z "$ac_sed_cmds"; then
31043: ac_sed_cmds=cat
1.1 millert 31044: fi
1.9 millert 31045: fi # test -n "$CONFIG_FILES"
1.1 millert 31046:
1.16 millert 31047: _ACEOF
31048: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 31049: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 millert 31050: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 31051: case $ac_file in
31052: - | *:- | *:-:* ) # input from stdin
31053: cat >$tmp/stdin
31054: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31055: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31056: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31057: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31058: * ) ac_file_in=$ac_file.in ;;
1.1 millert 31059: esac
31060:
1.9 millert 31061: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1.16 millert 31062: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31063: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 millert 31064: X"$ac_file" : 'X\(//\)[^/]' \| \
31065: X"$ac_file" : 'X\(//\)$' \| \
31066: X"$ac_file" : 'X\(/\)' \| \
31067: . : '\(.\)' 2>/dev/null ||
31068: echo X"$ac_file" |
31069: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31070: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31071: /^X\(\/\/\)$/{ s//\1/; q; }
31072: /^X\(\/\).*/{ s//\1/; q; }
31073: s/.*/./; q'`
1.16 millert 31074: { if $as_mkdir_p; then
31075: mkdir -p "$ac_dir"
31076: else
31077: as_dir="$ac_dir"
31078: as_dirs=
31079: while test ! -d "$as_dir"; do
31080: as_dirs="$as_dir $as_dirs"
31081: as_dir=`(dirname "$as_dir") 2>/dev/null ||
31082: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31083: X"$as_dir" : 'X\(//\)[^/]' \| \
31084: X"$as_dir" : 'X\(//\)$' \| \
31085: X"$as_dir" : 'X\(/\)' \| \
31086: . : '\(.\)' 2>/dev/null ||
31087: echo X"$as_dir" |
31088: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31089: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31090: /^X\(\/\/\)$/{ s//\1/; q; }
31091: /^X\(\/\).*/{ s//\1/; q; }
31092: s/.*/./; q'`
31093: done
31094: test ! -n "$as_dirs" || mkdir $as_dirs
31095: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31096: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31097: { (exit 1); exit 1; }; }; }
31098:
31099: ac_builddir=.
31100:
31101: if test "$ac_dir" != .; then
31102: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31103: # A "../" for each directory in $ac_dir_suffix.
31104: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31105: else
31106: ac_dir_suffix= ac_top_builddir=
31107: fi
31108:
31109: case $srcdir in
31110: .) # No --srcdir option. We are building in place.
31111: ac_srcdir=.
31112: if test -z "$ac_top_builddir"; then
31113: ac_top_srcdir=.
31114: else
31115: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31116: fi ;;
31117: [\\/]* | ?:[\\/]* ) # Absolute path.
31118: ac_srcdir=$srcdir$ac_dir_suffix;
31119: ac_top_srcdir=$srcdir ;;
31120: *) # Relative path.
31121: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31122: ac_top_srcdir=$ac_top_builddir$srcdir ;;
31123: esac
31124: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
31125: # absolute.
31126: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
31127: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
31128: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
31129: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 millert 31130:
31131:
31132:
1.9 millert 31133: if test x"$ac_file" != x-; then
1.16 millert 31134: { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9 millert 31135: echo "$as_me: creating $ac_file" >&6;}
31136: rm -f "$ac_file"
31137: fi
31138: # Let's still pretend it is `configure' which instantiates (i.e., don't
31139: # use $as_me), people would be surprised to read:
1.16 millert 31140: # /* config.h. Generated by config.status. */
31141: if test x"$ac_file" = x-; then
31142: configure_input=
31143: else
31144: configure_input="$ac_file. "
31145: fi
31146: configure_input=$configure_input"Generated from `echo $ac_file_in |
31147: sed 's,.*/,,'` by configure."
1.9 millert 31148:
31149: # First look for the input files in the build tree, otherwise in the
31150: # src tree.
31151: ac_file_inputs=`IFS=:
31152: for f in $ac_file_in; do
31153: case $f in
31154: -) echo $tmp/stdin ;;
31155: [\\/$]*)
31156: # Absolute (can't be DOS-style, as IFS=:)
1.16 millert 31157: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 31158: echo "$as_me: error: cannot find input file: $f" >&2;}
31159: { (exit 1); exit 1; }; }
31160: echo $f;;
31161: *) # Relative
31162: if test -f "$f"; then
31163: # Build tree
31164: echo $f
31165: elif test -f "$srcdir/$f"; then
31166: # Source tree
31167: echo $srcdir/$f
31168: else
31169: # /dev/null tree
1.16 millert 31170: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 31171: echo "$as_me: error: cannot find input file: $f" >&2;}
31172: { (exit 1); exit 1; }; }
31173: fi;;
31174: esac
31175: done` || { (exit 1); exit 1; }
1.16 millert 31176: _ACEOF
31177: cat >>$CONFIG_STATUS <<_ACEOF
1.9 millert 31178: sed "$ac_vpsub
31179: $extrasub
1.16 millert 31180: _ACEOF
31181: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 31182: :t
31183: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31184: s,@configure_input@,$configure_input,;t t
31185: s,@srcdir@,$ac_srcdir,;t t
1.16 millert 31186: s,@abs_srcdir@,$ac_abs_srcdir,;t t
1.9 millert 31187: s,@top_srcdir@,$ac_top_srcdir,;t t
1.16 millert 31188: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31189: s,@builddir@,$ac_builddir,;t t
31190: s,@abs_builddir@,$ac_abs_builddir,;t t
31191: s,@top_builddir@,$ac_top_builddir,;t t
31192: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.9 millert 31193: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31194: rm -f $tmp/stdin
31195: if test x"$ac_file" != x-; then
31196: mv $tmp/out $ac_file
31197: else
31198: cat $tmp/out
31199: rm -f $tmp/out
31200: fi
1.1 millert 31201:
1.9 millert 31202: done
1.16 millert 31203: _ACEOF
31204: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 31205:
1.9 millert 31206: #
31207: # CONFIG_HEADER section.
31208: #
1.1 millert 31209:
31210: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31211: # NAME is the cpp macro being defined and VALUE is the value it is being given.
31212: #
31213: # ac_d sets the value in "#define NAME VALUE" lines.
1.9 millert 31214: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31215: ac_dB='[ ].*$,\1#\2'
31216: ac_dC=' '
31217: ac_dD=',;t'
31218: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31219: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
31220: ac_uB='$,\1#\2define\3'
1.1 millert 31221: ac_uC=' '
1.9 millert 31222: ac_uD=',;t'
1.1 millert 31223:
1.9 millert 31224: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 millert 31225: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.9 millert 31226: case $ac_file in
31227: - | *:- | *:-:* ) # input from stdin
31228: cat >$tmp/stdin
31229: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31230: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31231: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31232: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31233: * ) ac_file_in=$ac_file.in ;;
1.1 millert 31234: esac
31235:
1.16 millert 31236: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
1.9 millert 31237: echo "$as_me: creating $ac_file" >&6;}
1.1 millert 31238:
1.9 millert 31239: # First look for the input files in the build tree, otherwise in the
31240: # src tree.
31241: ac_file_inputs=`IFS=:
31242: for f in $ac_file_in; do
31243: case $f in
31244: -) echo $tmp/stdin ;;
31245: [\\/$]*)
31246: # Absolute (can't be DOS-style, as IFS=:)
1.16 millert 31247: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 31248: echo "$as_me: error: cannot find input file: $f" >&2;}
31249: { (exit 1); exit 1; }; }
31250: echo $f;;
31251: *) # Relative
31252: if test -f "$f"; then
31253: # Build tree
31254: echo $f
31255: elif test -f "$srcdir/$f"; then
31256: # Source tree
31257: echo $srcdir/$f
31258: else
31259: # /dev/null tree
1.16 millert 31260: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.9 millert 31261: echo "$as_me: error: cannot find input file: $f" >&2;}
31262: { (exit 1); exit 1; }; }
31263: fi;;
31264: esac
31265: done` || { (exit 1); exit 1; }
31266: # Remove the trailing spaces.
31267: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.1 millert 31268:
1.16 millert 31269: _ACEOF
1.1 millert 31270:
1.9 millert 31271: # Transform confdefs.h into two sed scripts, `conftest.defines' and
31272: # `conftest.undefs', that substitutes the proper values into
31273: # config.h.in to produce config.h. The first handles `#define'
31274: # templates, and the second `#undef' templates.
31275: # And first: Protect against being on the right side of a sed subst in
31276: # config.status. Protect against being in an unquoted here document
31277: # in config.status.
31278: rm -f conftest.defines conftest.undefs
31279: # Using a here document instead of a string reduces the quoting nightmare.
31280: # Putting comments in sed scripts is not portable.
31281: #
31282: # `end' is used to avoid that the second main sed command (meant for
31283: # 0-ary CPP macros) applies to n-ary macro definitions.
31284: # See the Autoconf documentation for `clear'.
1.16 millert 31285: cat >confdef2sed.sed <<\_ACEOF
1.9 millert 31286: s/[\\&,]/\\&/g
31287: s,[\\$`],\\&,g
31288: t clear
31289: : clear
1.16 millert 31290: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.9 millert 31291: t end
31292: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31293: : end
1.16 millert 31294: _ACEOF
1.9 millert 31295: # If some macros were called several times there might be several times
31296: # the same #defines, which is useless. Nevertheless, we may not want to
31297: # sort them, since we want the *last* AC-DEFINE to be honored.
31298: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31299: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31300: rm -f confdef2sed.sed
1.1 millert 31301:
31302: # This sed command replaces #undef with comments. This is necessary, for
31303: # example, in the case of _POSIX_SOURCE, which is predefined and required
31304: # on some systems where configure will not decide to define it.
1.16 millert 31305: cat >>conftest.undefs <<\_ACEOF
1.9 millert 31306: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.16 millert 31307: _ACEOF
1.1 millert 31308:
1.9 millert 31309: # Break up conftest.defines because some shells have a limit on the size
31310: # of here documents, and old seds have small limits too (100 cmds).
31311: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.16 millert 31312: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.9 millert 31313: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31314: echo ' :' >>$CONFIG_STATUS
31315: rm -f conftest.tail
31316: while grep . conftest.defines >/dev/null
31317: do
31318: # Write a limited-size here document to $tmp/defines.sed.
31319: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31320: # Speed up: don't consider the non `#define' lines.
31321: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
31322: # Work around the forget-to-reset-the-flag bug.
31323: echo 't clr' >>$CONFIG_STATUS
31324: echo ': clr' >>$CONFIG_STATUS
31325: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31326: echo 'CEOF
31327: sed -f $tmp/defines.sed $tmp/in >$tmp/out
31328: rm -f $tmp/in
31329: mv $tmp/out $tmp/in
31330: ' >>$CONFIG_STATUS
31331: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31332: rm -f conftest.defines
31333: mv conftest.tail conftest.defines
31334: done
31335: rm -f conftest.defines
1.16 millert 31336: echo ' fi # grep' >>$CONFIG_STATUS
1.9 millert 31337: echo >>$CONFIG_STATUS
31338:
31339: # Break up conftest.undefs because some shells have a limit on the size
31340: # of here documents, and old seds have small limits too (100 cmds).
31341: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 millert 31342: rm -f conftest.tail
1.9 millert 31343: while grep . conftest.undefs >/dev/null
1.1 millert 31344: do
1.9 millert 31345: # Write a limited-size here document to $tmp/undefs.sed.
31346: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31347: # Speed up: don't consider the non `#undef'
31348: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
31349: # Work around the forget-to-reset-the-flag bug.
31350: echo 't clr' >>$CONFIG_STATUS
31351: echo ': clr' >>$CONFIG_STATUS
31352: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 millert 31353: echo 'CEOF
1.9 millert 31354: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31355: rm -f $tmp/in
31356: mv $tmp/out $tmp/in
31357: ' >>$CONFIG_STATUS
31358: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31359: rm -f conftest.undefs
31360: mv conftest.tail conftest.undefs
31361: done
31362: rm -f conftest.undefs
31363:
1.16 millert 31364: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 31365: # Let's still pretend it is `configure' which instantiates (i.e., don't
31366: # use $as_me), people would be surprised to read:
1.16 millert 31367: # /* config.h. Generated by config.status. */
1.9 millert 31368: if test x"$ac_file" = x-; then
1.16 millert 31369: echo "/* Generated by configure. */" >$tmp/config.h
1.1 millert 31370: else
1.16 millert 31371: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
1.9 millert 31372: fi
31373: cat $tmp/in >>$tmp/config.h
31374: rm -f $tmp/in
31375: if test x"$ac_file" != x-; then
1.16 millert 31376: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31377: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
1.9 millert 31378: echo "$as_me: $ac_file is unchanged" >&6;}
31379: else
1.16 millert 31380: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31381: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.9 millert 31382: X"$ac_file" : 'X\(//\)[^/]' \| \
31383: X"$ac_file" : 'X\(//\)$' \| \
31384: X"$ac_file" : 'X\(/\)' \| \
31385: . : '\(.\)' 2>/dev/null ||
31386: echo X"$ac_file" |
31387: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31388: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31389: /^X\(\/\/\)$/{ s//\1/; q; }
31390: /^X\(\/\).*/{ s//\1/; q; }
31391: s/.*/./; q'`
1.16 millert 31392: { if $as_mkdir_p; then
31393: mkdir -p "$ac_dir"
31394: else
31395: as_dir="$ac_dir"
31396: as_dirs=
31397: while test ! -d "$as_dir"; do
31398: as_dirs="$as_dir $as_dirs"
31399: as_dir=`(dirname "$as_dir") 2>/dev/null ||
31400: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31401: X"$as_dir" : 'X\(//\)[^/]' \| \
31402: X"$as_dir" : 'X\(//\)$' \| \
31403: X"$as_dir" : 'X\(/\)' \| \
31404: . : '\(.\)' 2>/dev/null ||
31405: echo X"$as_dir" |
31406: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31407: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31408: /^X\(\/\/\)$/{ s//\1/; q; }
31409: /^X\(\/\).*/{ s//\1/; q; }
31410: s/.*/./; q'`
31411: done
31412: test ! -n "$as_dirs" || mkdir $as_dirs
31413: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31414: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31415: { (exit 1); exit 1; }; }; }
1.9 millert 31416:
31417: rm -f $ac_file
31418: mv $tmp/config.h $ac_file
1.1 millert 31419: fi
1.9 millert 31420: else
31421: cat $tmp/config.h
31422: rm -f $tmp/config.h
1.1 millert 31423: fi
1.9 millert 31424: done
1.16 millert 31425: _ACEOF
1.1 millert 31426:
1.16 millert 31427: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 millert 31428:
1.9 millert 31429: { (exit 0); exit 0; }
1.16 millert 31430: _ACEOF
1.1 millert 31431: chmod +x $CONFIG_STATUS
1.9 millert 31432: ac_clean_files=$ac_clean_files_save
1.1 millert 31433:
1.16 millert 31434:
1.9 millert 31435: # configure is writing to config.log, and then calls config.status.
31436: # config.status does its own redirection, appending to config.log.
31437: # Unfortunately, on DOS this fails, as config.log is still kept open
31438: # by configure, so config.status won't be able to write to it; its
31439: # output is simply discarded. So we exec the FD to /dev/null,
31440: # effectively closing config.log, so it can be properly (re)opened and
31441: # appended to by config.status. When coming back to configure, we
31442: # need to make the FD available again.
31443: if test "$no_create" != yes; then
31444: ac_cs_success=:
1.16 millert 31445: ac_config_status_args=
31446: test "$silent" = yes &&
31447: ac_config_status_args="$ac_config_status_args --quiet"
1.9 millert 31448: exec 5>/dev/null
1.16 millert 31449: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9 millert 31450: exec 5>>config.log
31451: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31452: # would make configure fail if this is the last instruction.
31453: $ac_cs_success || { (exit 1); exit 1; }
31454: fi
1.1 millert 31455:
1.16 millert 31456:
1.1 millert 31457: if test "$with_pam" = "yes"; then
31458: case $host in
31459: *-*-linux*)
1.17 millert 31460: { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
31461: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1 millert 31462: ;;
31463: esac
31464: fi
1.23 ! millert 31465:
! 31466:
! 31467:
! 31468:
! 31469:
! 31470:
! 31471:
! 31472:
! 31473:
! 31474:
! 31475:
! 31476:
! 31477:
! 31478:
! 31479:
! 31480:
! 31481:
! 31482:
! 31483:
! 31484:
! 31485:
! 31486:
! 31487:
! 31488:
! 31489:
! 31490:
! 31491:
! 31492:
! 31493:
! 31494:
! 31495:
! 31496:
! 31497:
! 31498:
! 31499:
! 31500:
! 31501:
! 31502:
! 31503:
! 31504:
! 31505:
! 31506:
! 31507:
! 31508:
! 31509:
! 31510:
! 31511:
! 31512:
! 31513:
! 31514:
! 31515:
! 31516:
! 31517:
! 31518:
! 31519:
! 31520:
! 31521:
! 31522:
! 31523:
! 31524:
! 31525:
! 31526:
! 31527:
! 31528:
! 31529:
! 31530:
! 31531:
! 31532:
! 31533:
! 31534:
! 31535:
! 31536:
! 31537:
! 31538:
! 31539:
! 31540:
! 31541:
! 31542:
! 31543:
! 31544:
! 31545:
! 31546:
! 31547:
! 31548:
! 31549:
! 31550:
! 31551:
! 31552:
! 31553:
! 31554:
! 31555:
! 31556:
! 31557:
! 31558:
! 31559:
! 31560:
! 31561:
! 31562:
! 31563:
! 31564:
! 31565:
! 31566:
! 31567:
! 31568:
! 31569:
! 31570:
! 31571:
! 31572:
! 31573:
! 31574:
! 31575:
! 31576:
! 31577:
! 31578:
! 31579:
! 31580:
! 31581:
! 31582:
! 31583:
! 31584:
! 31585:
! 31586:
! 31587:
! 31588:
! 31589:
! 31590:
! 31591:
1.16 millert 31592:
31593:
31594:
31595:
31596:
31597:
31598:
31599:
31600:
31601:
31602:
31603:
31604:
31605:
1.9 millert 31606: