Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pam-afs-session 2.6.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='pam-afs-session'
592 PACKAGE_TARNAME='pam-afs-session'
593 PACKAGE_VERSION='2.6'
594 PACKAGE_STRING='pam-afs-session 2.6'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 ac_config_libobj_dir=portable
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 WARNINGS_CLANG_FALSE
639 WARNINGS_CLANG_TRUE
640 WARNINGS_GCC_FALSE
641 WARNINGS_GCC_TRUE
642 NEED_KAFS_FALSE
643 NEED_KAFS_TRUE
644 KAFS_LIBS
645 KAFS_LDFLAGS
646 KAFS_CPPFLAGS
647 KRB5_USES_COM_ERR_FALSE
648 KRB5_USES_COM_ERR_TRUE
649 PATH_KRB5_CONFIG
650 KRB5_LIBS
651 KRB5_LDFLAGS
652 KRB5_CPPFLAGS_GCC
653 KRB5_CPPFLAGS
654 PATH_AKLOG
655 LIBOBJS
656 HAVE_LD_VERSION_SCRIPT_FALSE
657 HAVE_LD_VERSION_SCRIPT_TRUE
658 OTOOL64
659 OTOOL
660 LIPO
661 NMEDIT
662 DSYMUTIL
663 MANIFEST_TOOL
664 RANLIB
665 DLLTOOL
666 OBJDUMP
667 LN_S
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 LIBTOOL
683 ac_ct_AR
684 AR
685 EGREP
686 GREP
687 CPP
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 MAINT
706 MAINTAINER_MODE_FALSE
707 MAINTAINER_MODE_TRUE
708 AM_BACKSLASH
709 AM_DEFAULT_VERBOSITY
710 AM_DEFAULT_V
711 AM_V
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 runstatedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_silent_rules
778 enable_maintainer_mode
779 enable_dependency_tracking
780 enable_largefile
781 enable_static
782 enable_shared
783 with_pic
784 enable_fast_install
785 with_gnu_ld
786 with_sysroot
787 enable_libtool_lock
788 with_aklog
789 with_krb5
790 with_krb5_include
791 with_krb5_lib
792 enable_reduced_depends
793 with_libkafs
794 with_libkafs_include
795 with_libkafs_lib
796 with_afs
797 with_afs_include
798 with_afs_lib
799 '
800 ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CPP
809 PATH_KRB5_CONFIG'
810
811
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
833
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 runstatedir='${localstatedir}/run'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
868 ac_prev=
869 continue
870 fi
871
872 case $ac_option in
873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 *=) ac_optarg= ;;
875 *) ac_optarg=yes ;;
876 esac
877
878 # Accept the important Cygnus configure options, so we can diagnose typos.
879
880 case $ac_dashdash$ac_option in
881 --)
882 ac_dashdash=yes ;;
883
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
885 ac_prev=bindir ;;
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 bindir=$ac_optarg ;;
888
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
893
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
900
901 --config-cache | -C)
902 cache_file=config.cache ;;
903
904 -datadir | --datadir | --datadi | --datad)
905 ac_prev=datadir ;;
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
908
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
915
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
924 *"
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=no ;;
931
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
936
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
941
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951 "enable_$ac_useropt"
952 "*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=\$ac_optarg ;;
957
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
966
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
969 with_gas=yes ;;
970
971 -help | --help | --hel | --he | -h)
972 ac_init_help=long ;;
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
977
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
982
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984 ac_prev=htmldir ;;
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986 | --ht=*)
987 htmldir=$ac_optarg ;;
988
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
995
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
997 ac_prev=infodir ;;
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1000
1001 -libdir | --libdir | --libdi | --libd)
1002 ac_prev=libdir ;;
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1005
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1012
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1017
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1024
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026 ac_prev=mandir ;;
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1029
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1032 with_fp=no ;;
1033
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1036 no_create=yes ;;
1037
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040 no_recursion=yes ;;
1041
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1050
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052 ac_prev=prefix ;;
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1055
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1062
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1069
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1086
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088 ac_prev=pdfdir ;;
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1091
1092 -psdir | --psdir | --psdi | --psd | --ps)
1093 ac_prev=psdir ;;
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095 psdir=$ac_optarg ;;
1096
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1099 silent=yes ;;
1100
1101 -runstatedir | --runstatedir | --runstatedi | --runstated \
1102 | --runstate | --runstat | --runsta | --runst | --runs \
1103 | --run | --ru | --r)
1104 ac_prev=runstatedir ;;
1105 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1106 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1107 | --run=* | --ru=* | --r=*)
1108 runstatedir=$ac_optarg ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir runstatedir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures pam-afs-session 2.6 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/pam-afs-session]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1415
1416 cat <<\_ACEOF
1417
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of pam-afs-session 2.6:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-silent-rules less verbose build output (undo: "make V=1")
1440 --disable-silent-rules verbose build output (undo: "make V=0")
1441 --enable-maintainer-mode
1442 enable make rules and dependencies not useful (and
1443 sometimes confusing) to the casual installer
1444 --enable-dependency-tracking
1445 do not reject slow dependency extractors
1446 --disable-dependency-tracking
1447 speeds up one-time build
1448 --disable-largefile omit support for large files
1449 --enable-static[=PKGS] build static libraries [default=no]
1450 --enable-shared[=PKGS] build shared libraries [default=yes]
1451 --enable-fast-install[=PKGS]
1452 optimize for fast installation [default=yes]
1453 --disable-libtool-lock avoid locking (might break parallel builds)
1454 --enable-reduced-depends
1455 Try to minimize shared library dependencies
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1461 both]
1462 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1463 --with-sysroot=DIR Search for dependent libraries within DIR
1464 (or the compiler's sysroot if not specified).
1465 --with-aklog=PATH Path to aklog or other Kerberos v5 AFS token program
1466 --with-krb5[=DIR] Location of Kerberos headers and libraries
1467 --with-krb5-include=DIR Location of Kerberos headers
1468 --with-krb5-lib=DIR Location of Kerberos libraries
1469 --with-libkafs=DIR Location of kafs headers and libraries
1470 --with-libkafs-include=DIR
1471 Location of kafs headers
1472 --with-libkafs-lib=DIR Location of kafs libraries
1473 --with-afs=DIR Location of AFS headers and libraries
1474 --with-afs-include=DIR Location of AFS headers
1475 --with-afs-lib=DIR Location of AFS libraries
1476
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486 PATH_KRB5_CONFIG
1487 Path to krb5-config
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to <[email protected]>.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 pam-afs-session configure 2.6
1556 generated by GNU Autoconf 2.69
1557
1558 Copyright (C) 2012 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_cpp LINENO
1608 # ----------------------
1609 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_cpp ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } > conftest.i && {
1629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 }; then :
1632 ac_retval=0
1633 else
1634 $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638 fi
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 as_fn_set_status $ac_retval
1641
1642 } # ac_fn_c_try_cpp
1643
1644 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1645 # -------------------------------------------------------
1646 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1647 # the include files in INCLUDES and setting the cache variable VAR
1648 # accordingly.
1649 ac_fn_c_check_header_mongrel ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if eval \${$3+:} false; then :
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1657 fi
1658 eval ac_res=\$$3
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660 $as_echo "$ac_res" >&6; }
1661 else
1662 # Is the header compilable?
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1664 $as_echo_n "checking $2 usability... " >&6; }
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 ac_header_compiler=yes
1672 else
1673 ac_header_compiler=no
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1677 $as_echo "$ac_header_compiler" >&6; }
1678
1679 # Is the header present?
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1681 $as_echo_n "checking $2 presence... " >&6; }
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_cpp "$LINENO"; then :
1687 ac_header_preproc=yes
1688 else
1689 ac_header_preproc=no
1690 fi
1691 rm -f conftest.err conftest.i conftest.$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1693 $as_echo "$ac_header_preproc" >&6; }
1694
1695 # So? What about this header?
1696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1697 yes:no: )
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1699 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 no:yes:* )
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1705 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1707 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1709 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1711 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1713 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 ( $as_echo "## ------------------------------ ##
1715 ## Report this to [email protected] ##
1716 ## ------------------------------ ##"
1717 ) | sed "s/^/$as_me: WARNING: /" >&2
1718 ;;
1719 esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1724 else
1725 eval "$3=\$ac_header_compiler"
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 fi
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_mongrel
1734
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1739 ac_fn_c_try_run ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770 fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_run
1776
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1788 else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_header_compile
1807
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 ac_fn_c_try_link ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest$ac_exeext
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843 fi
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_link
1853
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func ()
1858 {
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1870
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1875
1876 #ifdef __STDC__
1877 # include <limits.h>
1878 #else
1879 # include <assert.h>
1880 #endif
1881
1882 #undef $2
1883
1884 /* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1887 #ifdef __cplusplus
1888 extern "C"
1889 #endif
1890 char $2 ();
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined __stub_$2 || defined __stub___$2
1895 choke me
1896 #endif
1897
1898 int
1899 main ()
1900 {
1901 return $2 ();
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_link "$LINENO"; then :
1907 eval "$3=yes"
1908 else
1909 eval "$3=no"
1910 fi
1911 rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1913 fi
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918
1919 } # ac_fn_c_check_func
1920
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1925 # computed
1926 ac_fn_c_compute_int ()
1927 {
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if test "$cross_compiling" = yes; then
1930 # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1933 $4
1934 int
1935 main ()
1936 {
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1938 test_array [0] = 0;
1939 return test_array [0];
1940
1941 ;
1942 return 0;
1943 }
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_lo=0 ac_mid=0
1947 while :; do
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1950 $4
1951 int
1952 main ()
1953 {
1954 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1955 test_array [0] = 0;
1956 return test_array [0];
1957
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_hi=$ac_mid; break
1964 else
1965 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1966 if test $ac_lo -le $ac_mid; then
1967 ac_lo= ac_hi=
1968 break
1969 fi
1970 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 done
1974 else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1977 $4
1978 int
1979 main ()
1980 {
1981 static int test_array [1 - 2 * !(($2) < 0)];
1982 test_array [0] = 0;
1983 return test_array [0];
1984
1985 ;
1986 return 0;
1987 }
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_hi=-1 ac_mid=-1
1991 while :; do
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $4
1995 int
1996 main ()
1997 {
1998 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1999 test_array [0] = 0;
2000 return test_array [0];
2001
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_lo=$ac_mid; break
2008 else
2009 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010 if test $ac_mid -le $ac_hi; then
2011 ac_lo= ac_hi=
2012 break
2013 fi
2014 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018 else
2019 ac_lo= ac_hi=
2020 fi
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 $4
2030 int
2031 main ()
2032 {
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2034 test_array [0] = 0;
2035 return test_array [0];
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=$ac_mid
2043 else
2044 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 done
2048 case $ac_lo in #((
2049 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2050 '') ac_retval=1 ;;
2051 esac
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 static long int longval () { return $2; }
2057 static unsigned long int ulongval () { return $2; }
2058 #include <stdio.h>
2059 #include <stdlib.h>
2060 int
2061 main ()
2062 {
2063
2064 FILE *f = fopen ("conftest.val", "w");
2065 if (! f)
2066 return 1;
2067 if (($2) < 0)
2068 {
2069 long int i = longval ();
2070 if (i != ($2))
2071 return 1;
2072 fprintf (f, "%ld", i);
2073 }
2074 else
2075 {
2076 unsigned long int i = ulongval ();
2077 if (i != ($2))
2078 return 1;
2079 fprintf (f, "%lu", i);
2080 }
2081 /* Do not output a trailing newline, as this causes \r\n confusion
2082 on some platforms. */
2083 return ferror (f) || fclose (f) != 0;
2084
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_run "$LINENO"; then :
2090 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2091 else
2092 ac_retval=1
2093 fi
2094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2095 conftest.$ac_objext conftest.beam conftest.$ac_ext
2096 rm -f conftest.val
2097
2098 fi
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2101
2102 } # ac_fn_c_compute_int
2103
2104 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2105 # -------------------------------------------
2106 # Tests whether TYPE exists after having included INCLUDES, setting cache
2107 # variable VAR accordingly.
2108 ac_fn_c_check_type ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 eval "$3=no"
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2119 $4
2120 int
2121 main ()
2122 {
2123 if (sizeof ($2))
2124 return 0;
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 $4
2133 int
2134 main ()
2135 {
2136 if (sizeof (($2)))
2137 return 0;
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143
2144 else
2145 eval "$3=yes"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 fi
2151 eval ac_res=\$$3
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153 $as_echo "$ac_res" >&6; }
2154 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156 } # ac_fn_c_check_type
2157
2158 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2159 # ---------------------------------------------
2160 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2161 # accordingly.
2162 ac_fn_c_check_decl ()
2163 {
2164 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165 as_decl_name=`echo $2|sed 's/ *(.*//'`
2166 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2168 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2169 if eval \${$3+:} false; then :
2170 $as_echo_n "(cached) " >&6
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 #ifndef $as_decl_name
2179 #ifdef __cplusplus
2180 (void) $as_decl_use;
2181 #else
2182 (void) $as_decl_name;
2183 #endif
2184 #endif
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 eval "$3=yes"
2192 else
2193 eval "$3=no"
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_decl
2203
2204 # ac_fn_c_find_uintX_t LINENO BITS VAR
2205 # ------------------------------------
2206 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2207 # accordingly.
2208 ac_fn_c_find_uintX_t ()
2209 {
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2212 $as_echo_n "checking for uint$2_t... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 eval "$3=no"
2217 # Order is important - never check a type that is potentially smaller
2218 # than half of the expected target width.
2219 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2220 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2223 $ac_includes_default
2224 int
2225 main ()
2226 {
2227 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2228 test_array [0] = 0;
2229 return test_array [0];
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 case $ac_type in #(
2237 uint$2_t) :
2238 eval "$3=yes" ;; #(
2239 *) :
2240 eval "$3=\$ac_type" ;;
2241 esac
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 if eval test \"x\$"$3"\" = x"no"; then :
2245
2246 else
2247 break
2248 fi
2249 done
2250 fi
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256 } # ac_fn_c_find_uintX_t
2257 cat >config.log <<_ACEOF
2258 This file contains any messages produced by compilers while
2259 running configure, to aid debugging if configure makes a mistake.
2260
2261 It was created by pam-afs-session $as_me 2.6, which was
2262 generated by GNU Autoconf 2.69. Invocation command line was
2263
2264 $ $0 $@
2265
2266 _ACEOF
2267 exec 5>>config.log
2268 {
2269 cat <<_ASUNAME
2270 ## --------- ##
2271 ## Platform. ##
2272 ## --------- ##
2273
2274 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2286 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2287 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291 _ASUNAME
2292
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 $as_echo "PATH: $as_dir"
2299 done
2300 IFS=$as_save_IFS
2301
2302 } >&5
2303
2304 cat >&5 <<_ACEOF
2305
2306
2307 ## ----------- ##
2308 ## Core tests. ##
2309 ## ----------- ##
2310
2311 _ACEOF
2312
2313
2314 # Keep a trace of the command line.
2315 # Strip out --no-create and --no-recursion so they do not pile up.
2316 # Strip out --silent because we don't want to record it for future runs.
2317 # Also quote any args containing shell meta-characters.
2318 # Make two passes to allow for proper duplicate-argument suppression.
2319 ac_configure_args=
2320 ac_configure_args0=
2321 ac_configure_args1=
2322 ac_must_keep_next=false
2323 for ac_pass in 1 2
2324 do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
2332 *\'*)
2333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 esac
2335 case $ac_pass in
2336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2337 2)
2338 as_fn_append ac_configure_args1 " '$ac_arg'"
2339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
2354 as_fn_append ac_configure_args " '$ac_arg'"
2355 ;;
2356 esac
2357 done
2358 done
2359 { ac_configure_args0=; unset ac_configure_args0;}
2360 { ac_configure_args1=; unset ac_configure_args1;}
2361
2362 # When interrupted or exit'd, cleanup temporary files, and complete
2363 # config.log. We remove comments because anyway the quotes in there
2364 # would cause problems or look ugly.
2365 # WARNING: Use '\'' to represent an apostrophe within the trap.
2366 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2367 trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 $as_echo "## ---------------- ##
2373 ## Cache variables. ##
2374 ## ---------------- ##"
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2377 (
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2400 *)
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ;;
2403 esac |
2404 sort
2405 )
2406 echo
2407
2408 $as_echo "## ----------------- ##
2409 ## Output variables. ##
2410 ## ----------------- ##"
2411 echo
2412 for ac_var in $ac_subst_vars
2413 do
2414 eval ac_val=\$$ac_var
2415 case $ac_val in
2416 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 esac
2418 $as_echo "$ac_var='\''$ac_val'\''"
2419 done | sort
2420 echo
2421
2422 if test -n "$ac_subst_files"; then
2423 $as_echo "## ------------------- ##
2424 ## File substitutions. ##
2425 ## ------------------- ##"
2426 echo
2427 for ac_var in $ac_subst_files
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436 fi
2437
2438 if test -s confdefs.h; then
2439 $as_echo "## ----------- ##
2440 ## confdefs.h. ##
2441 ## ----------- ##"
2442 echo
2443 cat confdefs.h
2444 echo
2445 fi
2446 test "$ac_signal" != 0 &&
2447 $as_echo "$as_me: caught signal $ac_signal"
2448 $as_echo "$as_me: exit $exit_status"
2449 } >&5
2450 rm -f core *.core core.conftest.* &&
2451 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 exit $exit_status
2453 ' 0
2454 for ac_signal in 1 2 13 15; do
2455 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2456 done
2457 ac_signal=0
2458
2459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2460 rm -f -r conftest* confdefs.h
2461
2462 $as_echo "/* confdefs.h */" > confdefs.h
2463
2464 # Predefined preprocessor variables.
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 _ACEOF
2481
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 _ACEOF
2485
2486 cat >>confdefs.h <<_ACEOF
2487 #define PACKAGE_URL "$PACKAGE_URL"
2488 _ACEOF
2489
2490
2491 # Let the site file select an alternate cache file if it wants to.
2492 # Prefer an explicitly selected file to automatically selected ones.
2493 ac_site_file1=NONE
2494 ac_site_file2=NONE
2495 if test -n "$CONFIG_SITE"; then
2496 # We do not want a PATH search for config.site.
2497 case $CONFIG_SITE in #((
2498 -*) ac_site_file1=./$CONFIG_SITE;;
2499 */*) ac_site_file1=$CONFIG_SITE;;
2500 *) ac_site_file1=./$CONFIG_SITE;;
2501 esac
2502 elif test "x$prefix" != xNONE; then
2503 ac_site_file1=$prefix/share/config.site
2504 ac_site_file2=$prefix/etc/config.site
2505 else
2506 ac_site_file1=$ac_default_prefix/share/config.site
2507 ac_site_file2=$ac_default_prefix/etc/config.site
2508 fi
2509 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2510 do
2511 test "x$ac_site_file" = xNONE && continue
2512 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2514 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2515 sed 's/^/| /' "$ac_site_file" >&5
2516 . "$ac_site_file" \
2517 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 as_fn_error $? "failed to load site script $ac_site_file
2520 See \`config.log' for more details" "$LINENO" 5; }
2521 fi
2522 done
2523
2524 if test -r "$cache_file"; then
2525 # Some versions of bash will fail to source /dev/null (special files
2526 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2527 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2529 $as_echo "$as_me: loading cache $cache_file" >&6;}
2530 case $cache_file in
2531 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2532 *) . "./$cache_file";;
2533 esac
2534 fi
2535 else
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2537 $as_echo "$as_me: creating cache $cache_file" >&6;}
2538 >$cache_file
2539 fi
2540
2541 # Check that the precious variables saved in the cache have kept the same
2542 # value.
2543 ac_cache_corrupted=false
2544 for ac_var in $ac_precious_vars; do
2545 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2546 eval ac_new_set=\$ac_env_${ac_var}_set
2547 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2548 eval ac_new_val=\$ac_env_${ac_var}_value
2549 case $ac_old_set,$ac_new_set in
2550 set,)
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2552 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2553 ac_cache_corrupted=: ;;
2554 ,set)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2556 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2557 ac_cache_corrupted=: ;;
2558 ,);;
2559 *)
2560 if test "x$ac_old_val" != "x$ac_new_val"; then
2561 # differences in whitespace do not lead to failure.
2562 ac_old_val_w=`echo x $ac_old_val`
2563 ac_new_val_w=`echo x $ac_new_val`
2564 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2566 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2567 ac_cache_corrupted=:
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2570 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2571 eval $ac_var=\$ac_old_val
2572 fi
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2574 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2576 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 fi;;
2578 esac
2579 # Pass precious variables to config.status.
2580 if test "$ac_new_set" = set; then
2581 case $ac_new_val in
2582 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2583 *) ac_arg=$ac_var=$ac_new_val ;;
2584 esac
2585 case " $ac_configure_args " in
2586 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2587 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2588 esac
2589 fi
2590 done
2591 if $ac_cache_corrupted; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2595 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2596 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2597 fi
2598 ## -------------------- ##
2599 ## Main body of script. ##
2600 ## -------------------- ##
2601
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607
2608
2609 ac_aux_dir=
2610 for ac_dir in build-aux "$srcdir"/build-aux; do
2611 if test -f "$ac_dir/install-sh"; then
2612 ac_aux_dir=$ac_dir
2613 ac_install_sh="$ac_aux_dir/install-sh -c"
2614 break
2615 elif test -f "$ac_dir/install.sh"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/install.sh -c"
2618 break
2619 elif test -f "$ac_dir/shtool"; then
2620 ac_aux_dir=$ac_dir
2621 ac_install_sh="$ac_aux_dir/shtool install -c"
2622 break
2623 fi
2624 done
2625 if test -z "$ac_aux_dir"; then
2626 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2627 fi
2628
2629 # These three variables are undocumented and unsupported,
2630 # and are intended to be withdrawn in a future Autoconf release.
2631 # They can cause serious problems if a builder's source tree is in a directory
2632 # whose full name contains unusual characters.
2633 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2634 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2635 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2636
2637
2638
2639
2640 am__api_version='1.15'
2641
2642 # Find a good install program. We prefer a C program (faster),
2643 # so one script is as good as another. But avoid the broken or
2644 # incompatible versions:
2645 # SysV /etc/install, /usr/sbin/install
2646 # SunOS /usr/etc/install
2647 # IRIX /sbin/install
2648 # AIX /bin/install
2649 # AmigaOS /C/install, which installs bootblocks on floppy discs
2650 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2653 # OS/2's system install, which has a completely different semantic
2654 # ./install, which can be erroneously created by make from ./install.sh.
2655 # Reject install programs that cannot install multiple files.
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2657 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2658 if test -z "$INSTALL"; then
2659 if ${ac_cv_path_install+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 # Account for people who put trailing slashes in PATH elements.
2668 case $as_dir/ in #((
2669 ./ | .// | /[cC]/* | \
2670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2672 /usr/ucb/* ) ;;
2673 *)
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2676 # by default.
2677 for ac_prog in ginstall scoinst install; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2680 if test $ac_prog = install &&
2681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682 # AIX install. It has an incompatible calling convention.
2683 :
2684 elif test $ac_prog = install &&
2685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686 # program-specific install script used by HP pwplus--don't use.
2687 :
2688 else
2689 rm -rf conftest.one conftest.two conftest.dir
2690 echo one > conftest.one
2691 echo two > conftest.two
2692 mkdir conftest.dir
2693 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2694 test -s conftest.one && test -s conftest.two &&
2695 test -s conftest.dir/conftest.one &&
2696 test -s conftest.dir/conftest.two
2697 then
2698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2699 break 3
2700 fi
2701 fi
2702 fi
2703 done
2704 done
2705 ;;
2706 esac
2707
2708 done
2709 IFS=$as_save_IFS
2710
2711 rm -rf conftest.one conftest.two conftest.dir
2712
2713 fi
2714 if test "${ac_cv_path_install+set}" = set; then
2715 INSTALL=$ac_cv_path_install
2716 else
2717 # As a last resort, use the slow shell script. Don't cache a
2718 # value for INSTALL within a source directory, because that will
2719 # break other packages using the cache if that directory is
2720 # removed, or if the value is a relative name.
2721 INSTALL=$ac_install_sh
2722 fi
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2725 $as_echo "$INSTALL" >&6; }
2726
2727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2728 # It thinks the first close brace ends the variable substitution.
2729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2730
2731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2732
2733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2734
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2736 $as_echo_n "checking whether build environment is sane... " >&6; }
2737 # Reject unsafe characters in $srcdir or the absolute working directory
2738 # name. Accept space and tab only in the latter.
2739 am_lf='
2740 '
2741 case `pwd` in
2742 *[\\\"\#\$\&\'\`$am_lf]*)
2743 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2744 esac
2745 case $srcdir in
2746 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2747 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2748 esac
2749
2750 # Do 'set' in a subshell so we don't clobber the current shell's
2751 # arguments. Must try -L first in case configure is actually a
2752 # symlink; some systems play weird games with the mod time of symlinks
2753 # (eg FreeBSD returns the mod time of the symlink's containing
2754 # directory).
2755 if (
2756 am_has_slept=no
2757 for am_try in 1 2; do
2758 echo "timestamp, slept: $am_has_slept" > conftest.file
2759 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2760 if test "$*" = "X"; then
2761 # -L didn't work.
2762 set X `ls -t "$srcdir/configure" conftest.file`
2763 fi
2764 if test "$*" != "X $srcdir/configure conftest.file" \
2765 && test "$*" != "X conftest.file $srcdir/configure"; then
2766
2767 # If neither matched, then we have a broken ls. This can happen
2768 # if, for instance, CONFIG_SHELL is bash and it inherits a
2769 # broken ls alias from the environment. This has actually
2770 # happened. Such a system could not be considered "sane".
2771 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2772 alias in your environment" "$LINENO" 5
2773 fi
2774 if test "$2" = conftest.file || test $am_try -eq 2; then
2775 break
2776 fi
2777 # Just in case.
2778 sleep 1
2779 am_has_slept=yes
2780 done
2781 test "$2" = conftest.file
2782 )
2783 then
2784 # Ok.
2785 :
2786 else
2787 as_fn_error $? "newly created file is older than distributed files!
2788 Check your system clock" "$LINENO" 5
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2791 $as_echo "yes" >&6; }
2792 # If we didn't sleep, we still need to ensure time stamps of config.status and
2793 # generated files are strictly newer.
2794 am_sleep_pid=
2795 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2796 ( sleep 1 ) &
2797 am_sleep_pid=$!
2798 fi
2799
2800 rm -f conftest.file
2801
2802 test "$program_prefix" != NONE &&
2803 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2804 # Use a double $ so make ignores it.
2805 test "$program_suffix" != NONE &&
2806 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2807 # Double any \ or $.
2808 # By default was `s,x,x', remove it if useless.
2809 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2810 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2811
2812 # Expand $ac_aux_dir to an absolute path.
2813 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2814
2815 if test x"${MISSING+set}" != xset; then
2816 case $am_aux_dir in
2817 *\ * | *\ *)
2818 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2819 *)
2820 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2821 esac
2822 fi
2823 # Use eval to expand $SHELL
2824 if eval "$MISSING --is-lightweight"; then
2825 am_missing_run="$MISSING "
2826 else
2827 am_missing_run=
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2829 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2830 fi
2831
2832 if test x"${install_sh+set}" != xset; then
2833 case $am_aux_dir in
2834 *\ * | *\ *)
2835 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2836 *)
2837 install_sh="\${SHELL} $am_aux_dir/install-sh"
2838 esac
2839 fi
2840
2841 # Installed binaries are usually stripped using 'strip' when the user
2842 # run "make install-strip". However 'strip' might not be the right
2843 # tool to use in cross-compilation environments, therefore Automake
2844 # will honor the 'STRIP' environment variable to overrule this program.
2845 if test "$cross_compiling" != no; then
2846 if test -n "$ac_tool_prefix"; then
2847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2848 set dummy ${ac_tool_prefix}strip; ac_word=$2
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2850 $as_echo_n "checking for $ac_word... " >&6; }
2851 if ${ac_cv_prog_STRIP+:} false; then :
2852 $as_echo_n "(cached) " >&6
2853 else
2854 if test -n "$STRIP"; then
2855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2856 else
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868 done
2869 done
2870 IFS=$as_save_IFS
2871
2872 fi
2873 fi
2874 STRIP=$ac_cv_prog_STRIP
2875 if test -n "$STRIP"; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2877 $as_echo "$STRIP" >&6; }
2878 else
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2880 $as_echo "no" >&6; }
2881 fi
2882
2883
2884 fi
2885 if test -z "$ac_cv_prog_STRIP"; then
2886 ac_ct_STRIP=$STRIP
2887 # Extract the first word of "strip", so it can be a program name with args.
2888 set dummy strip; ac_word=$2
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2890 $as_echo_n "checking for $ac_word... " >&6; }
2891 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2892 $as_echo_n "(cached) " >&6
2893 else
2894 if test -n "$ac_ct_STRIP"; then
2895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2896 else
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2904 ac_cv_prog_ac_ct_STRIP="strip"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 fi
2913 fi
2914 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2915 if test -n "$ac_ct_STRIP"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2917 $as_echo "$ac_ct_STRIP" >&6; }
2918 else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920 $as_echo "no" >&6; }
2921 fi
2922
2923 if test "x$ac_ct_STRIP" = x; then
2924 STRIP=":"
2925 else
2926 case $cross_compiling:$ac_tool_warned in
2927 yes:)
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2930 ac_tool_warned=yes ;;
2931 esac
2932 STRIP=$ac_ct_STRIP
2933 fi
2934 else
2935 STRIP="$ac_cv_prog_STRIP"
2936 fi
2937
2938 fi
2939 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2940
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2942 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2943 if test -z "$MKDIR_P"; then
2944 if ${ac_cv_path_mkdir+:} false; then :
2945 $as_echo_n "(cached) " >&6
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_prog in mkdir gmkdir; do
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2955 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2956 'mkdir (GNU coreutils) '* | \
2957 'mkdir (coreutils) '* | \
2958 'mkdir (fileutils) '4.1*)
2959 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2960 break 3;;
2961 esac
2962 done
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968
2969 test -d ./--version && rmdir ./--version
2970 if test "${ac_cv_path_mkdir+set}" = set; then
2971 MKDIR_P="$ac_cv_path_mkdir -p"
2972 else
2973 # As a last resort, use the slow shell script. Don't cache a
2974 # value for MKDIR_P within a source directory, because that will
2975 # break other packages using the cache if that directory is
2976 # removed, or if the value is a relative name.
2977 MKDIR_P="$ac_install_sh -d"
2978 fi
2979 fi
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2981 $as_echo "$MKDIR_P" >&6; }
2982
2983 for ac_prog in gawk mawk nawk awk
2984 do
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_AWK+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$AWK"; then
2993 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_AWK="$ac_prog"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 AWK=$ac_cv_prog_AWK
3013 if test -n "$AWK"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3015 $as_echo "$AWK" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 test -n "$AWK" && break
3023 done
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3026 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3027 set x ${MAKE-make}
3028 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3029 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 cat >conftest.make <<\_ACEOF
3033 SHELL = /bin/sh
3034 all:
3035 @echo '@@@%%%=$(MAKE)=@@@%%%'
3036 _ACEOF
3037 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3038 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3039 *@@@%%%=?*=@@@%%%*)
3040 eval ac_cv_prog_make_${ac_make}_set=yes;;
3041 *)
3042 eval ac_cv_prog_make_${ac_make}_set=no;;
3043 esac
3044 rm -f conftest.make
3045 fi
3046 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3048 $as_echo "yes" >&6; }
3049 SET_MAKE=
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 SET_MAKE="MAKE=${MAKE-make}"
3054 fi
3055
3056 rm -rf .tst 2>/dev/null
3057 mkdir .tst 2>/dev/null
3058 if test -d .tst; then
3059 am__leading_dot=.
3060 else
3061 am__leading_dot=_
3062 fi
3063 rmdir .tst 2>/dev/null
3064
3065 # Check whether --enable-silent-rules was given.
3066 if test "${enable_silent_rules+set}" = set; then :
3067 enableval=$enable_silent_rules;
3068 fi
3069
3070 case $enable_silent_rules in # (((
3071 yes) AM_DEFAULT_VERBOSITY=0;;
3072 no) AM_DEFAULT_VERBOSITY=1;;
3073 *) AM_DEFAULT_VERBOSITY=1;;
3074 esac
3075 am_make=${MAKE-make}
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3077 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3078 if ${am_cv_make_support_nested_variables+:} false; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if $as_echo 'TRUE=$(BAR$(V))
3082 BAR0=false
3083 BAR1=true
3084 V=1
3085 am__doit:
3086 @$(TRUE)
3087 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3088 am_cv_make_support_nested_variables=yes
3089 else
3090 am_cv_make_support_nested_variables=no
3091 fi
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3094 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3095 if test $am_cv_make_support_nested_variables = yes; then
3096 AM_V='$(V)'
3097 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3098 else
3099 AM_V=$AM_DEFAULT_VERBOSITY
3100 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3101 fi
3102 AM_BACKSLASH='\'
3103
3104 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3105 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3106 # is not polluted with repeated "-I."
3107 am__isrc=' -I$(srcdir)'
3108 # test to see if srcdir already configured
3109 if test -f $srcdir/config.status; then
3110 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3111 fi
3112 fi
3113
3114 # test whether we have cygpath
3115 if test -z "$CYGPATH_W"; then
3116 if (cygpath --version) >/dev/null 2>/dev/null; then
3117 CYGPATH_W='cygpath -w'
3118 else
3119 CYGPATH_W=echo
3120 fi
3121 fi
3122
3123
3124 # Define the identity of the package.
3125 PACKAGE='pam-afs-session'
3126 VERSION='2.6'
3127
3128
3129 cat >>confdefs.h <<_ACEOF
3130 #define PACKAGE "$PACKAGE"
3131 _ACEOF
3132
3133
3134 cat >>confdefs.h <<_ACEOF
3135 #define VERSION "$VERSION"
3136 _ACEOF
3137
3138 # Some tools Automake needs.
3139
3140 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3141
3142
3143 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3144
3145
3146 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3147
3148
3149 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3150
3151
3152 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3153
3154 # For better backward compatibility. To be removed once Automake 1.9.x
3155 # dies out for good. For more background, see:
3156 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3157 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3158 mkdir_p='$(MKDIR_P)'
3159
3160 # We need awk for the "check" target (and possibly the TAP driver). The
3161 # system "awk" is bad on some platforms.
3162 # Always define AMTAR for backward compatibility. Yes, it's still used
3163 # in the wild :-( We should find a proper way to deprecate it ...
3164 AMTAR='$${TAR-tar}'
3165
3166
3167 # We'll loop over all known methods to create a tar archive until one works.
3168 _am_tools='gnutar pax cpio none'
3169
3170 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3171
3172
3173
3174
3175
3176
3177 # POSIX will say in a future version that running "rm -f" with no argument
3178 # is OK; and we want to be able to make that assumption in our Makefile
3179 # recipes. So use an aggressive probe to check that the usage we want is
3180 # actually supported "in the wild" to an acceptable degree.
3181 # See automake bug#10828.
3182 # To make any issue more visible, cause the running configure to be aborted
3183 # by default if the 'rm' program in use doesn't match our expectations; the
3184 # user can still override this though.
3185 if rm -f && rm -fr && rm -rf; then : OK; else
3186 cat >&2 <<'END'
3187 Oops!
3188
3189 Your 'rm' program seems unable to run without file operands specified
3190 on the command line, even when the '-f' option is present. This is contrary
3191 to the behaviour of most rm programs out there, and not conforming with
3192 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3193
3194 Please tell [email protected] about your system, including the value
3195 of your $PATH and any error possibly output before this message. This
3196 can help us improve future automake versions.
3197
3198 END
3199 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3200 echo 'Configuration will proceed anyway, since you have set the' >&2
3201 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3202 echo >&2
3203 else
3204 cat >&2 <<'END'
3205 Aborting the configuration process, to ensure you take notice of the issue.
3206
3207 You can download and install GNU coreutils to get an 'rm' implementation
3208 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3209
3210 If you want to complete the configuration process using your problematic
3211 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3212 to "yes", and re-run configure.
3213
3214 END
3215 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3216 fi
3217 fi
3218
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3221 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3222 # Check whether --enable-maintainer-mode was given.
3223 if test "${enable_maintainer_mode+set}" = set; then :
3224 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3225 else
3226 USE_MAINTAINER_MODE=no
3227 fi
3228
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3230 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3231 if test $USE_MAINTAINER_MODE = yes; then
3232 MAINTAINER_MODE_TRUE=
3233 MAINTAINER_MODE_FALSE='#'
3234 else
3235 MAINTAINER_MODE_TRUE='#'
3236 MAINTAINER_MODE_FALSE=
3237 fi
3238
3239 MAINT=$MAINTAINER_MODE_TRUE
3240
3241
3242
3243
3244
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 if test -n "$ac_tool_prefix"; then
3251 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3252 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_CC+:} false; then :
3256 $as_echo_n "(cached) " >&6
3257 else
3258 if test -n "$CC"; then
3259 ac_cv_prog_CC="$CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264 IFS=$as_save_IFS
3265 test -z "$as_dir" && as_dir=.
3266 for ac_exec_ext in '' $ac_executable_extensions; do
3267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 break 2
3271 fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 fi
3289 if test -z "$ac_cv_prog_CC"; then
3290 ac_ct_CC=$CC
3291 # Extract the first word of "gcc", so it can be a program name with args.
3292 set dummy gcc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test -n "$ac_ct_CC"; then
3299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_ac_ct_CC="gcc"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3311 fi
3312 done
3313 done
3314 IFS=$as_save_IFS
3315
3316 fi
3317 fi
3318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319 if test -n "$ac_ct_CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3321 $as_echo "$ac_ct_CC" >&6; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327 if test "x$ac_ct_CC" = x; then
3328 CC=""
3329 else
3330 case $cross_compiling:$ac_tool_warned in
3331 yes:)
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned=yes ;;
3335 esac
3336 CC=$ac_ct_CC
3337 fi
3338 else
3339 CC="$ac_cv_prog_CC"
3340 fi
3341
3342 if test -z "$CC"; then
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}cc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="${ac_tool_prefix}cc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381 fi
3382 fi
3383 if test -z "$CC"; then
3384 # Extract the first word of "cc", so it can be a program name with args.
3385 set dummy cc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 ac_prog_rejected=no
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3403 ac_prog_rejected=yes
3404 continue
3405 fi
3406 ac_cv_prog_CC="cc"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 if test $ac_prog_rejected = yes; then
3415 # We found a bogon in the path, so make sure we never use it.
3416 set dummy $ac_cv_prog_CC
3417 shift
3418 if test $# != 0; then
3419 # We chose a different compiler from the bogus one.
3420 # However, it has the same basename, so the bogon will be chosen
3421 # first if we set CC to just the basename; use the full file name.
3422 shift
3423 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3424 fi
3425 fi
3426 fi
3427 fi
3428 CC=$ac_cv_prog_CC
3429 if test -n "$CC"; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3431 $as_echo "$CC" >&6; }
3432 else
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434 $as_echo "no" >&6; }
3435 fi
3436
3437
3438 fi
3439 if test -z "$CC"; then
3440 if test -n "$ac_tool_prefix"; then
3441 for ac_prog in cl.exe
3442 do
3443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446 $as_echo_n "checking for $ac_word... " >&6; }
3447 if ${ac_cv_prog_CC+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464 done
3465 done
3466 IFS=$as_save_IFS
3467
3468 fi
3469 fi
3470 CC=$ac_cv_prog_CC
3471 if test -n "$CC"; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473 $as_echo "$CC" >&6; }
3474 else
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476 $as_echo "no" >&6; }
3477 fi
3478
3479
3480 test -n "$CC" && break
3481 done
3482 fi
3483 if test -z "$CC"; then
3484 ac_ct_CC=$CC
3485 for ac_prog in cl.exe
3486 do
3487 # Extract the first word of "$ac_prog", so it can be a program name with args.
3488 set dummy $ac_prog; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 if test -n "$ac_ct_CC"; then
3495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_prog_ac_ct_CC="$ac_prog"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3507 fi
3508 done
3509 done
3510 IFS=$as_save_IFS
3511
3512 fi
3513 fi
3514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3515 if test -n "$ac_ct_CC"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3517 $as_echo "$ac_ct_CC" >&6; }
3518 else
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3521 fi
3522
3523
3524 test -n "$ac_ct_CC" && break
3525 done
3526
3527 if test "x$ac_ct_CC" = x; then
3528 CC=""
3529 else
3530 case $cross_compiling:$ac_tool_warned in
3531 yes:)
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3534 ac_tool_warned=yes ;;
3535 esac
3536 CC=$ac_ct_CC
3537 fi
3538 fi
3539
3540 fi
3541
3542
3543 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details" "$LINENO" 5; }
3547
3548 # Provide some information about the compiler.
3549 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3550 set X $ac_compile
3551 ac_compiler=$2
3552 for ac_option in --version -v -V -qversion; do
3553 { { ac_try="$ac_compiler $ac_option >&5"
3554 case "(($ac_try" in
3555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3561 ac_status=$?
3562 if test -s conftest.err; then
3563 sed '10a\
3564 ... rest of stderr output deleted ...
3565 10q' conftest.err >conftest.er1
3566 cat conftest.er1 >&5
3567 fi
3568 rm -f conftest.er1 conftest.err
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }
3571 done
3572
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575
3576 int
3577 main ()
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 ac_clean_files_save=$ac_clean_files
3585 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3586 # Try to create an executable without -o first, disregard a.out.
3587 # It will help us diagnose broken compilers, and finding out an intuition
3588 # of exeext.
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3590 $as_echo_n "checking whether the C compiler works... " >&6; }
3591 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3592
3593 # The possible output files:
3594 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3595
3596 ac_rmfiles=
3597 for ac_file in $ac_files
3598 do
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3601 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3602 esac
3603 done
3604 rm -f $ac_rmfiles
3605
3606 if { { ac_try="$ac_link_default"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_link_default") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3618 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3619 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3620 # so that the user can short-circuit this test for compilers unknown to
3621 # Autoconf.
3622 for ac_file in $ac_files ''
3623 do
3624 test -f "$ac_file" || continue
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3627 ;;
3628 [ab].out )
3629 # We found the default executable, but exeext='' is most
3630 # certainly right.
3631 break;;
3632 *.* )
3633 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3634 then :; else
3635 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3636 fi
3637 # We set ac_cv_exeext here because the later test for it is not
3638 # safe: cross compilers may not add the suffix if given an `-o'
3639 # argument, so we may need to know it at that point already.
3640 # Even if this section looks crufty: it has the advantage of
3641 # actually working.
3642 break;;
3643 * )
3644 break;;
3645 esac
3646 done
3647 test "$ac_cv_exeext" = no && ac_cv_exeext=
3648
3649 else
3650 ac_file=''
3651 fi
3652 if test -z "$ac_file"; then :
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3655 $as_echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3660 as_fn_error 77 "C compiler cannot create executables
3661 See \`config.log' for more details" "$LINENO" 5; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664 $as_echo "yes" >&6; }
3665 fi
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3667 $as_echo_n "checking for C compiler default output file name... " >&6; }
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3669 $as_echo "$ac_file" >&6; }
3670 ac_exeext=$ac_cv_exeext
3671
3672 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3673 ac_clean_files=$ac_clean_files_save
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3675 $as_echo_n "checking for suffix of executables... " >&6; }
3676 if { { ac_try="$ac_link"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_link") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3688 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3689 # work properly (i.e., refer to `conftest.exe'), while it won't with
3690 # `rm'.
3691 for ac_file in conftest.exe conftest conftest.*; do
3692 test -f "$ac_file" || continue
3693 case $ac_file in
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3695 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3696 break;;
3697 * ) break;;
3698 esac
3699 done
3700 else
3701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3703 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3704 See \`config.log' for more details" "$LINENO" 5; }
3705 fi
3706 rm -f conftest conftest$ac_cv_exeext
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3708 $as_echo "$ac_cv_exeext" >&6; }
3709
3710 rm -f conftest.$ac_ext
3711 EXEEXT=$ac_cv_exeext
3712 ac_exeext=$EXEEXT
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3715 #include <stdio.h>
3716 int
3717 main ()
3718 {
3719 FILE *f = fopen ("conftest.out", "w");
3720 return ferror (f) || fclose (f) != 0;
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 ac_clean_files="$ac_clean_files conftest.out"
3727 # Check that the compiler produces executables we can run. If not, either
3728 # the compiler is broken, or we cross compile.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3730 $as_echo_n "checking whether we are cross compiling... " >&6; }
3731 if test "$cross_compiling" != yes; then
3732 { { ac_try="$ac_link"
3733 case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739 (eval "$ac_link") 2>&5
3740 ac_status=$?
3741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }
3743 if { ac_try='./conftest$ac_cv_exeext'
3744 { { case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_try") 2>&5
3751 ac_status=$?
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; }; then
3754 cross_compiling=no
3755 else
3756 if test "$cross_compiling" = maybe; then
3757 cross_compiling=yes
3758 else
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot run C compiled programs.
3762 If you meant to cross compile, use \`--host'.
3763 See \`config.log' for more details" "$LINENO" 5; }
3764 fi
3765 fi
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3768 $as_echo "$cross_compiling" >&6; }
3769
3770 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3771 ac_clean_files=$ac_clean_files_save
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3773 $as_echo_n "checking for suffix of object files... " >&6; }
3774 if ${ac_cv_objext+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.o conftest.obj
3789 if { { ac_try="$ac_compile"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3795 $as_echo "$ac_try_echo"; } >&5
3796 (eval "$ac_compile") 2>&5
3797 ac_status=$?
3798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3799 test $ac_status = 0; }; then :
3800 for ac_file in conftest.o conftest.obj conftest.*; do
3801 test -f "$ac_file" || continue;
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3805 break;;
3806 esac
3807 done
3808 else
3809 $as_echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3814 as_fn_error $? "cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details" "$LINENO" 5; }
3816 fi
3817 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3820 $as_echo "$ac_cv_objext" >&6; }
3821 OBJEXT=$ac_cv_objext
3822 ac_objext=$OBJEXT
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3824 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3825 if ${ac_cv_c_compiler_gnu+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834 #ifndef __GNUC__
3835 choke me
3836 #endif
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_compiler_gnu=yes
3844 else
3845 ac_compiler_gnu=no
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3849
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3852 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3853 if test $ac_compiler_gnu = yes; then
3854 GCC=yes
3855 else
3856 GCC=
3857 fi
3858 ac_test_CFLAGS=${CFLAGS+set}
3859 ac_save_CFLAGS=$CFLAGS
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3861 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3862 if ${ac_cv_prog_cc_g+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864 else
3865 ac_save_c_werror_flag=$ac_c_werror_flag
3866 ac_c_werror_flag=yes
3867 ac_cv_prog_cc_g=no
3868 CFLAGS="-g"
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3871
3872 int
3873 main ()
3874 {
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881 ac_cv_prog_cc_g=yes
3882 else
3883 CFLAGS=""
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890
3891 ;
3892 return 0;
3893 }
3894 _ACEOF
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896
3897 else
3898 ac_c_werror_flag=$ac_save_c_werror_flag
3899 CFLAGS="-g"
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3902
3903 int
3904 main ()
3905 {
3906
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_g=yes
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_c_werror_flag=$ac_save_c_werror_flag
3920 fi
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3922 $as_echo "$ac_cv_prog_cc_g" >&6; }
3923 if test "$ac_test_CFLAGS" = set; then
3924 CFLAGS=$ac_save_CFLAGS
3925 elif test $ac_cv_prog_cc_g = yes; then
3926 if test "$GCC" = yes; then
3927 CFLAGS="-g -O2"
3928 else
3929 CFLAGS="-g"
3930 fi
3931 else
3932 if test "$GCC" = yes; then
3933 CFLAGS="-O2"
3934 else
3935 CFLAGS=
3936 fi
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3939 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3940 if ${ac_cv_prog_cc_c89+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 ac_cv_prog_cc_c89=no
3944 ac_save_CC=$CC
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3947 #include <stdarg.h>
3948 #include <stdio.h>
3949 struct stat;
3950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3951 struct buf { int x; };
3952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3953 static char *e (p, i)
3954 char **p;
3955 int i;
3956 {
3957 return p[i];
3958 }
3959 static char *f (char * (*g) (char **, int), char **p, ...)
3960 {
3961 char *s;
3962 va_list v;
3963 va_start (v,p);
3964 s = g (p, va_arg (v,int));
3965 va_end (v);
3966 return s;
3967 }
3968
3969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3970 function prototypes and stuff, but not '\xHH' hex character constants.
3971 These don't provoke an error unfortunately, instead are silently treated
3972 as 'x'. The following induces an error, until -std is added to get
3973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3974 array size at least. It's necessary to write '\x00'==0 to get something
3975 that's true only with -std. */
3976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3977
3978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3979 inside strings and character constants. */
3980 #define FOO(x) 'x'
3981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3982
3983 int test (int i, double x);
3984 struct s1 {int (*f) (int a);};
3985 struct s2 {int (*f) (double a);};
3986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3987 int argc;
3988 char **argv;
3989 int
3990 main ()
3991 {
3992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3993 ;
3994 return 0;
3995 }
3996 _ACEOF
3997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3999 do
4000 CC="$ac_save_CC $ac_arg"
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002 ac_cv_prog_cc_c89=$ac_arg
4003 fi
4004 rm -f core conftest.err conftest.$ac_objext
4005 test "x$ac_cv_prog_cc_c89" != "xno" && break
4006 done
4007 rm -f conftest.$ac_ext
4008 CC=$ac_save_CC
4009
4010 fi
4011 # AC_CACHE_VAL
4012 case "x$ac_cv_prog_cc_c89" in
4013 x)
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4015 $as_echo "none needed" >&6; } ;;
4016 xno)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4018 $as_echo "unsupported" >&6; } ;;
4019 *)
4020 CC="$CC $ac_cv_prog_cc_c89"
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4022 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4023 esac
4024 if test "x$ac_cv_prog_cc_c89" != xno; then :
4025
4026 fi
4027
4028 ac_ext=c
4029 ac_cpp='$CPP $CPPFLAGS'
4030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4040 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4041 if ${am_cv_prog_cc_c_o+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046
4047 int
4048 main ()
4049 {
4050
4051 ;
4052 return 0;
4053 }
4054 _ACEOF
4055 # Make sure it works both with $CC and with simple cc.
4056 # Following AC_PROG_CC_C_O, we do the test twice because some
4057 # compilers refuse to overwrite an existing .o file with -o,
4058 # though they will create one.
4059 am_cv_prog_cc_c_o=yes
4060 for am_i in 1 2; do
4061 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4062 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } \
4066 && test -f conftest2.$ac_objext; then
4067 : OK
4068 else
4069 am_cv_prog_cc_c_o=no
4070 break
4071 fi
4072 done
4073 rm -f core conftest*
4074 unset am_i
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4077 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4078 if test "$am_cv_prog_cc_c_o" != yes; then
4079 # Losing compiler, so override with the script.
4080 # FIXME: It is wrong to rewrite CC.
4081 # But if we don't then we get into trouble of one sort or another.
4082 # A longer-term fix would be to have automake use am__CC in this case,
4083 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4084 CC="$am_aux_dir/compile $CC"
4085 fi
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092 DEPDIR="${am__leading_dot}deps"
4093
4094 ac_config_commands="$ac_config_commands depfiles"
4095
4096
4097 am_make=${MAKE-make}
4098 cat > confinc << 'END'
4099 am__doit:
4100 @echo this is the am__doit target
4101 .PHONY: am__doit
4102 END
4103 # If we don't find an include directive, just comment out the code.
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4105 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4106 am__include="#"
4107 am__quote=
4108 _am_result=none
4109 # First try GNU make style include.
4110 echo "include confinc" > confmf
4111 # Ignore all kinds of additional output from 'make'.
4112 case `$am_make -s -f confmf 2> /dev/null` in #(
4113 *the\ am__doit\ target*)
4114 am__include=include
4115 am__quote=
4116 _am_result=GNU
4117 ;;
4118 esac
4119 # Now try BSD make style include.
4120 if test "$am__include" = "#"; then
4121 echo '.include "confinc"' > confmf
4122 case `$am_make -s -f confmf 2> /dev/null` in #(
4123 *the\ am__doit\ target*)
4124 am__include=.include
4125 am__quote="\""
4126 _am_result=BSD
4127 ;;
4128 esac
4129 fi
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4133 $as_echo "$_am_result" >&6; }
4134 rm -f confinc confmf
4135
4136 # Check whether --enable-dependency-tracking was given.
4137 if test "${enable_dependency_tracking+set}" = set; then :
4138 enableval=$enable_dependency_tracking;
4139 fi
4140
4141 if test "x$enable_dependency_tracking" != xno; then
4142 am_depcomp="$ac_aux_dir/depcomp"
4143 AMDEPBACKSLASH='\'
4144 am__nodep='_no'
4145 fi
4146 if test "x$enable_dependency_tracking" != xno; then
4147 AMDEP_TRUE=
4148 AMDEP_FALSE='#'
4149 else
4150 AMDEP_TRUE='#'
4151 AMDEP_FALSE=
4152 fi
4153
4154
4155
4156 depcc="$CC" am_compiler_list=
4157
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4159 $as_echo_n "checking dependency style of $depcc... " >&6; }
4160 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4164 # We make a subdir and do the tests there. Otherwise we can end up
4165 # making bogus files that we don't know about and never remove. For
4166 # instance it was reported that on HP-UX the gcc test will end up
4167 # making a dummy file named 'D' -- because '-MD' means "put the output
4168 # in D".
4169 rm -rf conftest.dir
4170 mkdir conftest.dir
4171 # Copy depcomp to subdir because otherwise we won't find it if we're
4172 # using a relative directory.
4173 cp "$am_depcomp" conftest.dir
4174 cd conftest.dir
4175 # We will build objects and dependencies in a subdirectory because
4176 # it helps to detect inapplicable dependency modes. For instance
4177 # both Tru64's cc and ICC support -MD to output dependencies as a
4178 # side effect of compilation, but ICC will put the dependencies in
4179 # the current directory while Tru64 will put them in the object
4180 # directory.
4181 mkdir sub
4182
4183 am_cv_CC_dependencies_compiler_type=none
4184 if test "$am_compiler_list" = ""; then
4185 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4186 fi
4187 am__universal=false
4188 case " $depcc " in #(
4189 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4190 esac
4191
4192 for depmode in $am_compiler_list; do
4193 # Setup a source with many dependencies, because some compilers
4194 # like to wrap large dependency lists on column 80 (with \), and
4195 # we should not choose a depcomp mode which is confused by this.
4196 #
4197 # We need to recreate these files for each test, as the compiler may
4198 # overwrite some of them when testing with obscure command lines.
4199 # This happens at least with the AIX C compiler.
4200 : > sub/conftest.c
4201 for i in 1 2 3 4 5 6; do
4202 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4203 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4204 # Solaris 10 /bin/sh.
4205 echo '/* dummy */' > sub/conftst$i.h
4206 done
4207 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4208
4209 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4210 # mode. It turns out that the SunPro C++ compiler does not properly
4211 # handle '-M -o', and we need to detect this. Also, some Intel
4212 # versions had trouble with output in subdirs.
4213 am__obj=sub/conftest.${OBJEXT-o}
4214 am__minus_obj="-o $am__obj"
4215 case $depmode in
4216 gcc)
4217 # This depmode causes a compiler race in universal mode.
4218 test "$am__universal" = false || continue
4219 ;;
4220 nosideeffect)
4221 # After this tag, mechanisms are not by side-effect, so they'll
4222 # only be used when explicitly requested.
4223 if test "x$enable_dependency_tracking" = xyes; then
4224 continue
4225 else
4226 break
4227 fi
4228 ;;
4229 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4230 # This compiler won't grok '-c -o', but also, the minuso test has
4231 # not run yet. These depmodes are late enough in the game, and
4232 # so weak that their functioning should not be impacted.
4233 am__obj=conftest.${OBJEXT-o}
4234 am__minus_obj=
4235 ;;
4236 none) break ;;
4237 esac
4238 if depmode=$depmode \
4239 source=sub/conftest.c object=$am__obj \
4240 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4241 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4242 >/dev/null 2>conftest.err &&
4243 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4244 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4245 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4246 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4247 # icc doesn't choke on unknown options, it will just issue warnings
4248 # or remarks (even with -Werror). So we grep stderr for any message
4249 # that says an option was ignored or not supported.
4250 # When given -MP, icc 7.0 and 7.1 complain thusly:
4251 # icc: Command line warning: ignoring option '-M'; no argument required
4252 # The diagnosis changed in icc 8.0:
4253 # icc: Command line remark: option '-MP' not supported
4254 if (grep 'ignoring option' conftest.err ||
4255 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4256 am_cv_CC_dependencies_compiler_type=$depmode
4257 break
4258 fi
4259 fi
4260 done
4261
4262 cd ..
4263 rm -rf conftest.dir
4264 else
4265 am_cv_CC_dependencies_compiler_type=none
4266 fi
4267
4268 fi
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4270 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4271 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4272
4273 if
4274 test "x$enable_dependency_tracking" != xno \
4275 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4276 am__fastdepCC_TRUE=
4277 am__fastdepCC_FALSE='#'
4278 else
4279 am__fastdepCC_TRUE='#'
4280 am__fastdepCC_FALSE=
4281 fi
4282
4283
4284
4285 ac_ext=c
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4291 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4292 # On Suns, sometimes $CPP names a directory.
4293 if test -n "$CPP" && test -d "$CPP"; then
4294 CPP=
4295 fi
4296 if test -z "$CPP"; then
4297 if ${ac_cv_prog_CPP+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 # Double quotes because CPP needs to be expanded
4301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4302 do
4303 ac_preproc_ok=false
4304 for ac_c_preproc_warn_flag in '' yes
4305 do
4306 # Use a header file that comes with gcc, so configuring glibc
4307 # with a fresh cross-compiler works.
4308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4309 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #ifdef __STDC__
4315 # include <limits.h>
4316 #else
4317 # include <assert.h>
4318 #endif
4319 Syntax error
4320 _ACEOF
4321 if ac_fn_c_try_cpp "$LINENO"; then :
4322
4323 else
4324 # Broken: fails on valid input.
4325 continue
4326 fi
4327 rm -f conftest.err conftest.i conftest.$ac_ext
4328
4329 # OK, works on sane cases. Now check whether nonexistent headers
4330 # can be detected and how.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <ac_nonexistent.h>
4334 _ACEOF
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4336 # Broken: success on invalid input.
4337 continue
4338 else
4339 # Passes both tests.
4340 ac_preproc_ok=:
4341 break
4342 fi
4343 rm -f conftest.err conftest.i conftest.$ac_ext
4344
4345 done
4346 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4347 rm -f conftest.i conftest.err conftest.$ac_ext
4348 if $ac_preproc_ok; then :
4349 break
4350 fi
4351
4352 done
4353 ac_cv_prog_CPP=$CPP
4354
4355 fi
4356 CPP=$ac_cv_prog_CPP
4357 else
4358 ac_cv_prog_CPP=$CPP
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4361 $as_echo "$CPP" >&6; }
4362 ac_preproc_ok=false
4363 for ac_c_preproc_warn_flag in '' yes
4364 do
4365 # Use a header file that comes with gcc, so configuring glibc
4366 # with a fresh cross-compiler works.
4367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4368 # <limits.h> exists even on freestanding compilers.
4369 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 #ifdef __STDC__
4374 # include <limits.h>
4375 #else
4376 # include <assert.h>
4377 #endif
4378 Syntax error
4379 _ACEOF
4380 if ac_fn_c_try_cpp "$LINENO"; then :
4381
4382 else
4383 # Broken: fails on valid input.
4384 continue
4385 fi
4386 rm -f conftest.err conftest.i conftest.$ac_ext
4387
4388 # OK, works on sane cases. Now check whether nonexistent headers
4389 # can be detected and how.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392 #include <ac_nonexistent.h>
4393 _ACEOF
4394 if ac_fn_c_try_cpp "$LINENO"; then :
4395 # Broken: success on invalid input.
4396 continue
4397 else
4398 # Passes both tests.
4399 ac_preproc_ok=:
4400 break
4401 fi
4402 rm -f conftest.err conftest.i conftest.$ac_ext
4403
4404 done
4405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406 rm -f conftest.i conftest.err conftest.$ac_ext
4407 if $ac_preproc_ok; then :
4408
4409 else
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4413 See \`config.log' for more details" "$LINENO" 5; }
4414 fi
4415
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421
4422
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4424 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4425 if ${ac_cv_path_GREP+:} false; then :
4426 $as_echo_n "(cached) " >&6
4427 else
4428 if test -z "$GREP"; then
4429 ac_path_GREP_found=false
4430 # Loop through the user's path and test for each of PROGNAME-LIST
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4433 do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_prog in grep ggrep; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4439 as_fn_executable_p "$ac_path_GREP" || continue
4440 # Check for GNU ac_path_GREP and select it if it is found.
4441 # Check for GNU $ac_path_GREP
4442 case `"$ac_path_GREP" --version 2>&1` in
4443 *GNU*)
4444 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4445 *)
4446 ac_count=0
4447 $as_echo_n 0123456789 >"conftest.in"
4448 while :
4449 do
4450 cat "conftest.in" "conftest.in" >"conftest.tmp"
4451 mv "conftest.tmp" "conftest.in"
4452 cp "conftest.in" "conftest.nl"
4453 $as_echo 'GREP' >> "conftest.nl"
4454 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val
4457 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4458 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_GREP="$ac_path_GREP"
4460 ac_path_GREP_max=$ac_count
4461 fi
4462 # 10*(2^10) chars as input seems more than enough
4463 test $ac_count -gt 10 && break
4464 done
4465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4466 esac
4467
4468 $ac_path_GREP_found && break 3
4469 done
4470 done
4471 done
4472 IFS=$as_save_IFS
4473 if test -z "$ac_cv_path_GREP"; then
4474 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4475 fi
4476 else
4477 ac_cv_path_GREP=$GREP
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4482 $as_echo "$ac_cv_path_GREP" >&6; }
4483 GREP="$ac_cv_path_GREP"
4484
4485
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4487 $as_echo_n "checking for egrep... " >&6; }
4488 if ${ac_cv_path_EGREP+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4492 then ac_cv_path_EGREP="$GREP -E"
4493 else
4494 if test -z "$EGREP"; then
4495 ac_path_EGREP_found=false
4496 # Loop through the user's path and test for each of PROGNAME-LIST
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_prog in egrep; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4505 as_fn_executable_p "$ac_path_EGREP" || continue
4506 # Check for GNU ac_path_EGREP and select it if it is found.
4507 # Check for GNU $ac_path_EGREP
4508 case `"$ac_path_EGREP" --version 2>&1` in
4509 *GNU*)
4510 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4511 *)
4512 ac_count=0
4513 $as_echo_n 0123456789 >"conftest.in"
4514 while :
4515 do
4516 cat "conftest.in" "conftest.in" >"conftest.tmp"
4517 mv "conftest.tmp" "conftest.in"
4518 cp "conftest.in" "conftest.nl"
4519 $as_echo 'EGREP' >> "conftest.nl"
4520 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522 as_fn_arith $ac_count + 1 && ac_count=$as_val
4523 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4524 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_EGREP="$ac_path_EGREP"
4526 ac_path_EGREP_max=$ac_count
4527 fi
4528 # 10*(2^10) chars as input seems more than enough
4529 test $ac_count -gt 10 && break
4530 done
4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 esac
4533
4534 $ac_path_EGREP_found && break 3
4535 done
4536 done
4537 done
4538 IFS=$as_save_IFS
4539 if test -z "$ac_cv_path_EGREP"; then
4540 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4541 fi
4542 else
4543 ac_cv_path_EGREP=$EGREP
4544 fi
4545
4546 fi
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4549 $as_echo "$ac_cv_path_EGREP" >&6; }
4550 EGREP="$ac_cv_path_EGREP"
4551
4552
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4554 $as_echo_n "checking for ANSI C header files... " >&6; }
4555 if ${ac_cv_header_stdc+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <stdlib.h>
4561 #include <stdarg.h>
4562 #include <string.h>
4563 #include <float.h>
4564
4565 int
4566 main ()
4567 {
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 if ac_fn_c_try_compile "$LINENO"; then :
4574 ac_cv_header_stdc=yes
4575 else
4576 ac_cv_header_stdc=no
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579
4580 if test $ac_cv_header_stdc = yes; then
4581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4584 #include <string.h>
4585
4586 _ACEOF
4587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4588 $EGREP "memchr" >/dev/null 2>&1; then :
4589
4590 else
4591 ac_cv_header_stdc=no
4592 fi
4593 rm -f conftest*
4594
4595 fi
4596
4597 if test $ac_cv_header_stdc = yes; then
4598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4601 #include <stdlib.h>
4602
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "free" >/dev/null 2>&1; then :
4606
4607 else
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f conftest*
4611
4612 fi
4613
4614 if test $ac_cv_header_stdc = yes; then
4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616 if test "$cross_compiling" = yes; then :
4617 :
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621 #include <ctype.h>
4622 #include <stdlib.h>
4623 #if ((' ' & 0x0FF) == 0x020)
4624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4626 #else
4627 # define ISLOWER(c) \
4628 (('a' <= (c) && (c) <= 'i') \
4629 || ('j' <= (c) && (c) <= 'r') \
4630 || ('s' <= (c) && (c) <= 'z'))
4631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4632 #endif
4633
4634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4635 int
4636 main ()
4637 {
4638 int i;
4639 for (i = 0; i < 256; i++)
4640 if (XOR (islower (i), ISLOWER (i))
4641 || toupper (i) != TOUPPER (i))
4642 return 2;
4643 return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_run "$LINENO"; then :
4647
4648 else
4649 ac_cv_header_stdc=no
4650 fi
4651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4652 conftest.$ac_objext conftest.beam conftest.$ac_ext
4653 fi
4654
4655 fi
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4658 $as_echo "$ac_cv_header_stdc" >&6; }
4659 if test $ac_cv_header_stdc = yes; then
4660
4661 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4662
4663 fi
4664
4665 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4667 inttypes.h stdint.h unistd.h
4668 do :
4669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4671 "
4672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4673 cat >>confdefs.h <<_ACEOF
4674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4675 _ACEOF
4676
4677 fi
4678
4679 done
4680
4681
4682
4683 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4684 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4685 MINIX=yes
4686 else
4687 MINIX=
4688 fi
4689
4690
4691 if test "$MINIX" = yes; then
4692
4693 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4694
4695
4696 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4697
4698
4699 $as_echo "#define _MINIX 1" >>confdefs.h
4700
4701 fi
4702
4703
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4705 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4706 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4707 $as_echo_n "(cached) " >&6
4708 else
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711
4712 # define __EXTENSIONS__ 1
4713 $ac_includes_default
4714 int
4715 main ()
4716 {
4717
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 ac_cv_safe_to_define___extensions__=yes
4724 else
4725 ac_cv_safe_to_define___extensions__=no
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4730 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4731 test $ac_cv_safe_to_define___extensions__ = yes &&
4732 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4733
4734 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4735
4736 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4737
4738 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4739
4740 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler is Clang" >&5
4744 $as_echo_n "checking if the compiler is Clang... " >&6; }
4745 if ${rra_cv_prog_cc_clang+:} false; then :
4746 $as_echo_n "(cached) " >&6
4747 else
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4750
4751 #if ! __clang__
4752 #error
4753 #endif
4754
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 rra_cv_prog_cc_clang=yes
4758 else
4759 rra_cv_prog_cc_clang=no
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_prog_cc_clang" >&5
4764 $as_echo "$rra_cv_prog_cc_clang" >&6; }
4765 if test x"$rra_cv_prog_cc_clang" = xyes; then :
4766 CLANG=yes
4767 fi
4768 # Check whether --enable-largefile was given.
4769 if test "${enable_largefile+set}" = set; then :
4770 enableval=$enable_largefile;
4771 fi
4772
4773 if test "$enable_largefile" != no; then
4774
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4776 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4777 if ${ac_cv_sys_largefile_CC+:} false; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 ac_cv_sys_largefile_CC=no
4781 if test "$GCC" != yes; then
4782 ac_save_CC=$CC
4783 while :; do
4784 # IRIX 6.2 and later do not support large files by default,
4785 # so use the C compiler's -n32 option if that helps.
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4788 #include <sys/types.h>
4789 /* Check that off_t can represent 2**63 - 1 correctly.
4790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4791 since some C++ compilers masquerading as C compilers
4792 incorrectly reject 9223372036854775807. */
4793 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4795 && LARGE_OFF_T % 2147483647 == 1)
4796 ? 1 : -1];
4797 int
4798 main ()
4799 {
4800
4801 ;
4802 return 0;
4803 }
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 break
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext
4809 CC="$CC -n32"
4810 if ac_fn_c_try_compile "$LINENO"; then :
4811 ac_cv_sys_largefile_CC=' -n32'; break
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext
4814 break
4815 done
4816 CC=$ac_save_CC
4817 rm -f conftest.$ac_ext
4818 fi
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4821 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4822 if test "$ac_cv_sys_largefile_CC" != no; then
4823 CC=$CC$ac_cv_sys_largefile_CC
4824 fi
4825
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4827 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4828 if ${ac_cv_sys_file_offset_bits+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 while :; do
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <sys/types.h>
4835 /* Check that off_t can represent 2**63 - 1 correctly.
4836 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4837 since some C++ compilers masquerading as C compilers
4838 incorrectly reject 9223372036854775807. */
4839 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4840 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4841 && LARGE_OFF_T % 2147483647 == 1)
4842 ? 1 : -1];
4843 int
4844 main ()
4845 {
4846
4847 ;
4848 return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 ac_cv_sys_file_offset_bits=no; break
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h. */
4857 #define _FILE_OFFSET_BITS 64
4858 #include <sys/types.h>
4859 /* Check that off_t can represent 2**63 - 1 correctly.
4860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4861 since some C++ compilers masquerading as C compilers
4862 incorrectly reject 9223372036854775807. */
4863 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4865 && LARGE_OFF_T % 2147483647 == 1)
4866 ? 1 : -1];
4867 int
4868 main ()
4869 {
4870
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 ac_cv_sys_file_offset_bits=64; break
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 ac_cv_sys_file_offset_bits=unknown
4880 break
4881 done
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4884 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4885 case $ac_cv_sys_file_offset_bits in #(
4886 no | unknown) ;;
4887 *)
4888 cat >>confdefs.h <<_ACEOF
4889 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4890 _ACEOF
4891 ;;
4892 esac
4893 rm -rf conftest*
4894 if test $ac_cv_sys_file_offset_bits = unknown; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4896 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4897 if ${ac_cv_sys_large_files+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 while :; do
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4903 #include <sys/types.h>
4904 /* Check that off_t can represent 2**63 - 1 correctly.
4905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4906 since some C++ compilers masquerading as C compilers
4907 incorrectly reject 9223372036854775807. */
4908 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4910 && LARGE_OFF_T % 2147483647 == 1)
4911 ? 1 : -1];
4912 int
4913 main ()
4914 {
4915
4916 ;
4917 return 0;
4918 }
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_sys_large_files=no; break
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4926 #define _LARGE_FILES 1
4927 #include <sys/types.h>
4928 /* Check that off_t can represent 2**63 - 1 correctly.
4929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4930 since some C++ compilers masquerading as C compilers
4931 incorrectly reject 9223372036854775807. */
4932 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4934 && LARGE_OFF_T % 2147483647 == 1)
4935 ? 1 : -1];
4936 int
4937 main ()
4938 {
4939
4940 ;
4941 return 0;
4942 }
4943 _ACEOF
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 ac_cv_sys_large_files=1; break
4946 fi
4947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4948 ac_cv_sys_large_files=unknown
4949 break
4950 done
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4953 $as_echo "$ac_cv_sys_large_files" >&6; }
4954 case $ac_cv_sys_large_files in #(
4955 no | unknown) ;;
4956 *)
4957 cat >>confdefs.h <<_ACEOF
4958 #define _LARGE_FILES $ac_cv_sys_large_files
4959 _ACEOF
4960 ;;
4961 esac
4962 rm -rf conftest*
4963 fi
4964
4965
4966 fi
4967
4968
4969 if test -n "$ac_tool_prefix"; then
4970 for ac_prog in ar lib "link -lib"
4971 do
4972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_prog_AR+:} false; then :
4977 $as_echo_n "(cached) " >&6
4978 else
4979 if test -n "$AR"; then
4980 ac_cv_prog_AR="$AR" # Let the user override the test.
4981 else
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH
4984 do
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 break 2
4992 fi
4993 done
4994 done
4995 IFS=$as_save_IFS
4996
4997 fi
4998 fi
4999 AR=$ac_cv_prog_AR
5000 if test -n "$AR"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5002 $as_echo "$AR" >&6; }
5003 else
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5006 fi
5007
5008
5009 test -n "$AR" && break
5010 done
5011 fi
5012 if test -z "$AR"; then
5013 ac_ct_AR=$AR
5014 for ac_prog in ar lib "link -lib"
5015 do
5016 # Extract the first word of "$ac_prog", so it can be a program name with args.
5017 set dummy $ac_prog; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$ac_ct_AR"; then
5024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033 ac_cv_prog_ac_ct_AR="$ac_prog"
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041 fi
5042 fi
5043 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5044 if test -n "$ac_ct_AR"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5046 $as_echo "$ac_ct_AR" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051
5052
5053 test -n "$ac_ct_AR" && break
5054 done
5055
5056 if test "x$ac_ct_AR" = x; then
5057 AR="false"
5058 else
5059 case $cross_compiling:$ac_tool_warned in
5060 yes:)
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5063 ac_tool_warned=yes ;;
5064 esac
5065 AR=$ac_ct_AR
5066 fi
5067 fi
5068
5069 : ${AR=ar}
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5072 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5073 if ${am_cv_ar_interface+:} false; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082 am_cv_ar_interface=ar
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5085 int some_variable = 0;
5086 _ACEOF
5087 if ac_fn_c_try_compile "$LINENO"; then :
5088 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5090 (eval $am_ar_try) 2>&5
5091 ac_status=$?
5092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5093 test $ac_status = 0; }
5094 if test "$ac_status" -eq 0; then
5095 am_cv_ar_interface=ar
5096 else
5097 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5099 (eval $am_ar_try) 2>&5
5100 ac_status=$?
5101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5102 test $ac_status = 0; }
5103 if test "$ac_status" -eq 0; then
5104 am_cv_ar_interface=lib
5105 else
5106 am_cv_ar_interface=unknown
5107 fi
5108 fi
5109 rm -f conftest.lib libconftest.a
5110
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119 fi
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5121 $as_echo "$am_cv_ar_interface" >&6; }
5122
5123 case $am_cv_ar_interface in
5124 ar)
5125 ;;
5126 lib)
5127 # Microsoft lib, so override with the ar-lib wrapper script.
5128 # FIXME: It is wrong to rewrite AR.
5129 # But if we don't then we get into trouble of one sort or another.
5130 # A longer-term fix would be to have automake use am__AR in this case,
5131 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5132 # similar.
5133 AR="$am_aux_dir/ar-lib $AR"
5134 ;;
5135 unknown)
5136 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5137 ;;
5138 esac
5139
5140
5141 case `pwd` in
5142 *\ * | *\ *)
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5144 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5145 esac
5146
5147
5148
5149 macro_version='2.4.2'
5150 macro_revision='1.3337'
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 ltmain="$ac_aux_dir/ltmain.sh"
5165
5166 # Make sure we can run config.sub.
5167 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5168 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5171 $as_echo_n "checking build system type... " >&6; }
5172 if ${ac_cv_build+:} false; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 ac_build_alias=$build_alias
5176 test "x$ac_build_alias" = x &&
5177 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5178 test "x$ac_build_alias" = x &&
5179 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5180 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5181 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5182
5183 fi
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5185 $as_echo "$ac_cv_build" >&6; }
5186 case $ac_cv_build in
5187 *-*-*) ;;
5188 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5189 esac
5190 build=$ac_cv_build
5191 ac_save_IFS=$IFS; IFS='-'
5192 set x $ac_cv_build
5193 shift
5194 build_cpu=$1
5195 build_vendor=$2
5196 shift; shift
5197 # Remember, the first character of IFS is used to create $*,
5198 # except with old shells:
5199 build_os=$*
5200 IFS=$ac_save_IFS
5201 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5202
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5205 $as_echo_n "checking host system type... " >&6; }
5206 if ${ac_cv_host+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if test "x$host_alias" = x; then
5210 ac_cv_host=$ac_cv_build
5211 else
5212 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5213 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5214 fi
5215
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5218 $as_echo "$ac_cv_host" >&6; }
5219 case $ac_cv_host in
5220 *-*-*) ;;
5221 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5222 esac
5223 host=$ac_cv_host
5224 ac_save_IFS=$IFS; IFS='-'
5225 set x $ac_cv_host
5226 shift
5227 host_cpu=$1
5228 host_vendor=$2
5229 shift; shift
5230 # Remember, the first character of IFS is used to create $*,
5231 # except with old shells:
5232 host_os=$*
5233 IFS=$ac_save_IFS
5234 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5235
5236
5237 # Backslashify metacharacters that are still active within
5238 # double-quoted strings.
5239 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5240
5241 # Same as above, but do not quote variable references.
5242 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5243
5244 # Sed substitution to delay expansion of an escaped shell variable in a
5245 # double_quote_subst'ed string.
5246 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5247
5248 # Sed substitution to delay expansion of an escaped single quote.
5249 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5250
5251 # Sed substitution to avoid accidental globbing in evaled expressions
5252 no_glob_subst='s/\*/\\\*/g'
5253
5254 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5255 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5256 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5259 $as_echo_n "checking how to print strings... " >&6; }
5260 # Test print first, because it will be a builtin if present.
5261 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5262 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5263 ECHO='print -r --'
5264 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5265 ECHO='printf %s\n'
5266 else
5267 # Use this function as a fallback that always works.
5268 func_fallback_echo ()
5269 {
5270 eval 'cat <<_LTECHO_EOF
5271 $1
5272 _LTECHO_EOF'
5273 }
5274 ECHO='func_fallback_echo'
5275 fi
5276
5277 # func_echo_all arg...
5278 # Invoke $ECHO with all args, space-separated.
5279 func_echo_all ()
5280 {
5281 $ECHO ""
5282 }
5283
5284 case "$ECHO" in
5285 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5286 $as_echo "printf" >&6; } ;;
5287 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5288 $as_echo "print -r" >&6; } ;;
5289 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5290 $as_echo "cat" >&6; } ;;
5291 esac
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5307 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5308 if ${ac_cv_path_SED+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5312 for ac_i in 1 2 3 4 5 6 7; do
5313 ac_script="$ac_script$as_nl$ac_script"
5314 done
5315 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5316 { ac_script=; unset ac_script;}
5317 if test -z "$SED"; then
5318 ac_path_SED_found=false
5319 # Loop through the user's path and test for each of PROGNAME-LIST
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_prog in sed gsed; do
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5328 as_fn_executable_p "$ac_path_SED" || continue
5329 # Check for GNU ac_path_SED and select it if it is found.
5330 # Check for GNU $ac_path_SED
5331 case `"$ac_path_SED" --version 2>&1` in
5332 *GNU*)
5333 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5334 *)
5335 ac_count=0
5336 $as_echo_n 0123456789 >"conftest.in"
5337 while :
5338 do
5339 cat "conftest.in" "conftest.in" >"conftest.tmp"
5340 mv "conftest.tmp" "conftest.in"
5341 cp "conftest.in" "conftest.nl"
5342 $as_echo '' >> "conftest.nl"
5343 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5345 as_fn_arith $ac_count + 1 && ac_count=$as_val
5346 if test $ac_count -gt ${ac_path_SED_max-0}; then
5347 # Best one so far, save it but keep looking for a better one
5348 ac_cv_path_SED="$ac_path_SED"
5349 ac_path_SED_max=$ac_count
5350 fi
5351 # 10*(2^10) chars as input seems more than enough
5352 test $ac_count -gt 10 && break
5353 done
5354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5355 esac
5356
5357 $ac_path_SED_found && break 3
5358 done
5359 done
5360 done
5361 IFS=$as_save_IFS
5362 if test -z "$ac_cv_path_SED"; then
5363 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5364 fi
5365 else
5366 ac_cv_path_SED=$SED
5367 fi
5368
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5371 $as_echo "$ac_cv_path_SED" >&6; }
5372 SED="$ac_cv_path_SED"
5373 rm -f conftest.sed
5374
5375 test -z "$SED" && SED=sed
5376 Xsed="$SED -e 1s/^X//"
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5389 $as_echo_n "checking for fgrep... " >&6; }
5390 if ${ac_cv_path_FGREP+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5394 then ac_cv_path_FGREP="$GREP -F"
5395 else
5396 if test -z "$FGREP"; then
5397 ac_path_FGREP_found=false
5398 # Loop through the user's path and test for each of PROGNAME-LIST
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5401 do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_prog in fgrep; do
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5407 as_fn_executable_p "$ac_path_FGREP" || continue
5408 # Check for GNU ac_path_FGREP and select it if it is found.
5409 # Check for GNU $ac_path_FGREP
5410 case `"$ac_path_FGREP" --version 2>&1` in
5411 *GNU*)
5412 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5413 *)
5414 ac_count=0
5415 $as_echo_n 0123456789 >"conftest.in"
5416 while :
5417 do
5418 cat "conftest.in" "conftest.in" >"conftest.tmp"
5419 mv "conftest.tmp" "conftest.in"
5420 cp "conftest.in" "conftest.nl"
5421 $as_echo 'FGREP' >> "conftest.nl"
5422 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5424 as_fn_arith $ac_count + 1 && ac_count=$as_val
5425 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5426 # Best one so far, save it but keep looking for a better one
5427 ac_cv_path_FGREP="$ac_path_FGREP"
5428 ac_path_FGREP_max=$ac_count
5429 fi
5430 # 10*(2^10) chars as input seems more than enough
5431 test $ac_count -gt 10 && break
5432 done
5433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5434 esac
5435
5436 $ac_path_FGREP_found && break 3
5437 done
5438 done
5439 done
5440 IFS=$as_save_IFS
5441 if test -z "$ac_cv_path_FGREP"; then
5442 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5443 fi
5444 else
5445 ac_cv_path_FGREP=$FGREP
5446 fi
5447
5448 fi
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5451 $as_echo "$ac_cv_path_FGREP" >&6; }
5452 FGREP="$ac_cv_path_FGREP"
5453
5454
5455 test -z "$GREP" && GREP=grep
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475 # Check whether --with-gnu-ld was given.
5476 if test "${with_gnu_ld+set}" = set; then :
5477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5478 else
5479 with_gnu_ld=no
5480 fi
5481
5482 ac_prog=ld
5483 if test "$GCC" = yes; then
5484 # Check if gcc -print-prog-name=ld gives a path.
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5486 $as_echo_n "checking for ld used by $CC... " >&6; }
5487 case $host in
5488 *-*-mingw*)
5489 # gcc leaves a trailing carriage return which upsets mingw
5490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5491 *)
5492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5493 esac
5494 case $ac_prog in
5495 # Accept absolute paths.
5496 [\\/]* | ?:[\\/]*)
5497 re_direlt='/[^/][^/]*/\.\./'
5498 # Canonicalize the pathname of ld
5499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5502 done
5503 test -z "$LD" && LD="$ac_prog"
5504 ;;
5505 "")
5506 # If it fails, then pretend we aren't using GCC.
5507 ac_prog=ld
5508 ;;
5509 *)
5510 # If it is relative, then search for the first ld in PATH.
5511 with_gnu_ld=unknown
5512 ;;
5513 esac
5514 elif test "$with_gnu_ld" = yes; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5516 $as_echo_n "checking for GNU ld... " >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5519 $as_echo_n "checking for non-GNU ld... " >&6; }
5520 fi
5521 if ${lt_cv_path_LD+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -z "$LD"; then
5525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5526 for ac_dir in $PATH; do
5527 IFS="$lt_save_ifs"
5528 test -z "$ac_dir" && ac_dir=.
5529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5530 lt_cv_path_LD="$ac_dir/$ac_prog"
5531 # Check to see if the program is GNU ld. I'd rather use --version,
5532 # but apparently some variants of GNU ld only accept -v.
5533 # Break only if it was the GNU/non-GNU ld that we prefer.
5534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5535 *GNU* | *'with BFD'*)
5536 test "$with_gnu_ld" != no && break
5537 ;;
5538 *)
5539 test "$with_gnu_ld" != yes && break
5540 ;;
5541 esac
5542 fi
5543 done
5544 IFS="$lt_save_ifs"
5545 else
5546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5547 fi
5548 fi
5549
5550 LD="$lt_cv_path_LD"
5551 if test -n "$LD"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5553 $as_echo "$LD" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5561 if ${lt_cv_prog_gnu_ld+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5565 case `$LD -v 2>&1 </dev/null` in
5566 *GNU* | *'with BFD'*)
5567 lt_cv_prog_gnu_ld=yes
5568 ;;
5569 *)
5570 lt_cv_prog_gnu_ld=no
5571 ;;
5572 esac
5573 fi
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5576 with_gnu_ld=$lt_cv_prog_gnu_ld
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5587 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5588 if ${lt_cv_path_NM+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$NM"; then
5592 # Let the user override the test.
5593 lt_cv_path_NM="$NM"
5594 else
5595 lt_nm_to_check="${ac_tool_prefix}nm"
5596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5597 lt_nm_to_check="$lt_nm_to_check nm"
5598 fi
5599 for lt_tmp_nm in $lt_nm_to_check; do
5600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5602 IFS="$lt_save_ifs"
5603 test -z "$ac_dir" && ac_dir=.
5604 tmp_nm="$ac_dir/$lt_tmp_nm"
5605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5606 # Check to see if the nm accepts a BSD-compat flag.
5607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5608 # nm: unknown option "B" ignored
5609 # Tru64's nm complains that /dev/null is an invalid object file
5610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5611 */dev/null* | *'Invalid file or object type'*)
5612 lt_cv_path_NM="$tmp_nm -B"
5613 break
5614 ;;
5615 *)
5616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5617 */dev/null*)
5618 lt_cv_path_NM="$tmp_nm -p"
5619 break
5620 ;;
5621 *)
5622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5623 continue # so that we can try to find one that supports BSD flags
5624 ;;
5625 esac
5626 ;;
5627 esac
5628 fi
5629 done
5630 IFS="$lt_save_ifs"
5631 done
5632 : ${lt_cv_path_NM=no}
5633 fi
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5636 $as_echo "$lt_cv_path_NM" >&6; }
5637 if test "$lt_cv_path_NM" != "no"; then
5638 NM="$lt_cv_path_NM"
5639 else
5640 # Didn't find any BSD compatible name lister, look for dumpbin.
5641 if test -n "$DUMPBIN"; then :
5642 # Let the user override the test.
5643 else
5644 if test -n "$ac_tool_prefix"; then
5645 for ac_prog in dumpbin "link -dump"
5646 do
5647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_DUMPBIN+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$DUMPBIN"; then
5655 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668 done
5669 done
5670 IFS=$as_save_IFS
5671
5672 fi
5673 fi
5674 DUMPBIN=$ac_cv_prog_DUMPBIN
5675 if test -n "$DUMPBIN"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5677 $as_echo "$DUMPBIN" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682
5683
5684 test -n "$DUMPBIN" && break
5685 done
5686 fi
5687 if test -z "$DUMPBIN"; then
5688 ac_ct_DUMPBIN=$DUMPBIN
5689 for ac_prog in dumpbin "link -dump"
5690 do
5691 # Extract the first word of "$ac_prog", so it can be a program name with args.
5692 set dummy $ac_prog; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$ac_ct_DUMPBIN"; then
5699 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5711 fi
5712 done
5713 done
5714 IFS=$as_save_IFS
5715
5716 fi
5717 fi
5718 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5719 if test -n "$ac_ct_DUMPBIN"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5721 $as_echo "$ac_ct_DUMPBIN" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5725 fi
5726
5727
5728 test -n "$ac_ct_DUMPBIN" && break
5729 done
5730
5731 if test "x$ac_ct_DUMPBIN" = x; then
5732 DUMPBIN=":"
5733 else
5734 case $cross_compiling:$ac_tool_warned in
5735 yes:)
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5738 ac_tool_warned=yes ;;
5739 esac
5740 DUMPBIN=$ac_ct_DUMPBIN
5741 fi
5742 fi
5743
5744 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5745 *COFF*)
5746 DUMPBIN="$DUMPBIN -symbols"
5747 ;;
5748 *)
5749 DUMPBIN=:
5750 ;;
5751 esac
5752 fi
5753
5754 if test "$DUMPBIN" != ":"; then
5755 NM="$DUMPBIN"
5756 fi
5757 fi
5758 test -z "$NM" && NM=nm
5759
5760
5761
5762
5763
5764
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5766 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5767 if ${lt_cv_nm_interface+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 lt_cv_nm_interface="BSD nm"
5771 echo "int some_variable = 0;" > conftest.$ac_ext
5772 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5773 (eval "$ac_compile" 2>conftest.err)
5774 cat conftest.err >&5
5775 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5776 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5777 cat conftest.err >&5
5778 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5779 cat conftest.out >&5
5780 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5781 lt_cv_nm_interface="MS dumpbin"
5782 fi
5783 rm -f conftest*
5784 fi
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5786 $as_echo "$lt_cv_nm_interface" >&6; }
5787
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5789 $as_echo_n "checking whether ln -s works... " >&6; }
5790 LN_S=$as_ln_s
5791 if test "$LN_S" = "ln -s"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793 $as_echo "yes" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5796 $as_echo "no, using $LN_S" >&6; }
5797 fi
5798
5799 # find the maximum length of command line arguments
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5801 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5802 if ${lt_cv_sys_max_cmd_len+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 i=0
5806 teststring="ABCD"
5807
5808 case $build_os in
5809 msdosdjgpp*)
5810 # On DJGPP, this test can blow up pretty badly due to problems in libc
5811 # (any single argument exceeding 2000 bytes causes a buffer overrun
5812 # during glob expansion). Even if it were fixed, the result of this
5813 # check would be larger than it should be.
5814 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5815 ;;
5816
5817 gnu*)
5818 # Under GNU Hurd, this test is not required because there is
5819 # no limit to the length of command line arguments.
5820 # Libtool will interpret -1 as no limit whatsoever
5821 lt_cv_sys_max_cmd_len=-1;
5822 ;;
5823
5824 cygwin* | mingw* | cegcc*)
5825 # On Win9x/ME, this test blows up -- it succeeds, but takes
5826 # about 5 minutes as the teststring grows exponentially.
5827 # Worse, since 9x/ME are not pre-emptively multitasking,
5828 # you end up with a "frozen" computer, even though with patience
5829 # the test eventually succeeds (with a max line length of 256k).
5830 # Instead, let's just punt: use the minimum linelength reported by
5831 # all of the supported platforms: 8192 (on NT/2K/XP).
5832 lt_cv_sys_max_cmd_len=8192;
5833 ;;
5834
5835 mint*)
5836 # On MiNT this can take a long time and run out of memory.
5837 lt_cv_sys_max_cmd_len=8192;
5838 ;;
5839
5840 amigaos*)
5841 # On AmigaOS with pdksh, this test takes hours, literally.
5842 # So we just punt and use a minimum line length of 8192.
5843 lt_cv_sys_max_cmd_len=8192;
5844 ;;
5845
5846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5847 # This has been around since 386BSD, at least. Likely further.
5848 if test -x /sbin/sysctl; then
5849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5850 elif test -x /usr/sbin/sysctl; then
5851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5852 else
5853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5854 fi
5855 # And add a safety zone
5856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5858 ;;
5859
5860 interix*)
5861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5862 lt_cv_sys_max_cmd_len=196608
5863 ;;
5864
5865 os2*)
5866 # The test takes a long time on OS/2.
5867 lt_cv_sys_max_cmd_len=8192
5868 ;;
5869
5870 osf*)
5871 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5872 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5873 # nice to cause kernel panics so lets avoid the loop below.
5874 # First set a reasonable default.
5875 lt_cv_sys_max_cmd_len=16384
5876 #
5877 if test -x /sbin/sysconfig; then
5878 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5879 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5880 esac
5881 fi
5882 ;;
5883 sco3.2v5*)
5884 lt_cv_sys_max_cmd_len=102400
5885 ;;
5886 sysv5* | sco5v6* | sysv4.2uw2*)
5887 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5888 if test -n "$kargmax"; then
5889 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5890 else
5891 lt_cv_sys_max_cmd_len=32768
5892 fi
5893 ;;
5894 *)
5895 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5896 if test -n "$lt_cv_sys_max_cmd_len" && \
5897 test undefined != "$lt_cv_sys_max_cmd_len"; then
5898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5900 else
5901 # Make teststring a little bigger before we do anything with it.
5902 # a 1K string should be a reasonable start.
5903 for i in 1 2 3 4 5 6 7 8 ; do
5904 teststring=$teststring$teststring
5905 done
5906 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5907 # If test is not a shell built-in, we'll probably end up computing a
5908 # maximum length that is only half of the actual maximum length, but
5909 # we can't tell.
5910 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5911 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5912 test $i != 17 # 1/2 MB should be enough
5913 do
5914 i=`expr $i + 1`
5915 teststring=$teststring$teststring
5916 done
5917 # Only check the string length outside the loop.
5918 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5919 teststring=
5920 # Add a significant safety factor because C++ compilers can tack on
5921 # massive amounts of additional arguments before passing them to the
5922 # linker. It appears as though 1/2 is a usable value.
5923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5924 fi
5925 ;;
5926 esac
5927
5928 fi
5929
5930 if test -n $lt_cv_sys_max_cmd_len ; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5932 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5933 else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5935 $as_echo "none" >&6; }
5936 fi
5937 max_cmd_len=$lt_cv_sys_max_cmd_len
5938
5939
5940
5941
5942
5943
5944 : ${CP="cp -f"}
5945 : ${MV="mv -f"}
5946 : ${RM="rm -f"}
5947
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5949 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5950 # Try some XSI features
5951 xsi_shell=no
5952 ( _lt_dummy="a/b/c"
5953 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5954 = c,a/b,b/c, \
5955 && eval 'test $(( 1 + 1 )) -eq 2 \
5956 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5957 && xsi_shell=yes
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5959 $as_echo "$xsi_shell" >&6; }
5960
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5963 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5964 lt_shell_append=no
5965 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5966 >/dev/null 2>&1 \
5967 && lt_shell_append=yes
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5969 $as_echo "$lt_shell_append" >&6; }
5970
5971
5972 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5973 lt_unset=unset
5974 else
5975 lt_unset=false
5976 fi
5977
5978
5979
5980
5981
5982 # test EBCDIC or ASCII
5983 case `echo X|tr X '\101'` in
5984 A) # ASCII based system
5985 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5986 lt_SP2NL='tr \040 \012'
5987 lt_NL2SP='tr \015\012 \040\040'
5988 ;;
5989 *) # EBCDIC based system
5990 lt_SP2NL='tr \100 \n'
5991 lt_NL2SP='tr \r\n \100\100'
5992 ;;
5993 esac
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6004 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6005 if ${lt_cv_to_host_file_cmd+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 case $host in
6009 *-*-mingw* )
6010 case $build in
6011 *-*-mingw* ) # actually msys
6012 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6013 ;;
6014 *-*-cygwin* )
6015 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6016 ;;
6017 * ) # otherwise, assume *nix
6018 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6019 ;;
6020 esac
6021 ;;
6022 *-*-cygwin* )
6023 case $build in
6024 *-*-mingw* ) # actually msys
6025 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6026 ;;
6027 *-*-cygwin* )
6028 lt_cv_to_host_file_cmd=func_convert_file_noop
6029 ;;
6030 * ) # otherwise, assume *nix
6031 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6032 ;;
6033 esac
6034 ;;
6035 * ) # unhandled hosts (and "normal" native builds)
6036 lt_cv_to_host_file_cmd=func_convert_file_noop
6037 ;;
6038 esac
6039
6040 fi
6041
6042 to_host_file_cmd=$lt_cv_to_host_file_cmd
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6044 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6045
6046
6047
6048
6049
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6051 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6052 if ${lt_cv_to_tool_file_cmd+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 #assume ordinary cross tools, or native build.
6056 lt_cv_to_tool_file_cmd=func_convert_file_noop
6057 case $host in
6058 *-*-mingw* )
6059 case $build in
6060 *-*-mingw* ) # actually msys
6061 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6062 ;;
6063 esac
6064 ;;
6065 esac
6066
6067 fi
6068
6069 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6071 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6072
6073
6074
6075
6076
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6078 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6079 if ${lt_cv_ld_reload_flag+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 lt_cv_ld_reload_flag='-r'
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6085 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6086 reload_flag=$lt_cv_ld_reload_flag
6087 case $reload_flag in
6088 "" | " "*) ;;
6089 *) reload_flag=" $reload_flag" ;;
6090 esac
6091 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6092 case $host_os in
6093 cygwin* | mingw* | pw32* | cegcc*)
6094 if test "$GCC" != yes; then
6095 reload_cmds=false
6096 fi
6097 ;;
6098 darwin*)
6099 if test "$GCC" = yes; then
6100 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6101 else
6102 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6103 fi
6104 ;;
6105 esac
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115 if test -n "$ac_tool_prefix"; then
6116 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if ${ac_cv_prog_OBJDUMP+:} false; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if test -n "$OBJDUMP"; then
6124 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 OBJDUMP=$ac_cv_prog_OBJDUMP
6144 if test -n "$OBJDUMP"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6146 $as_echo "$OBJDUMP" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6150 fi
6151
6152
6153 fi
6154 if test -z "$ac_cv_prog_OBJDUMP"; then
6155 ac_ct_OBJDUMP=$OBJDUMP
6156 # Extract the first word of "objdump", so it can be a program name with args.
6157 set dummy objdump; ac_word=$2
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6159 $as_echo_n "checking for $ac_word... " >&6; }
6160 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 if test -n "$ac_ct_OBJDUMP"; then
6164 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6165 else
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6168 do
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_exec_ext in '' $ac_executable_extensions; do
6172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6173 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 break 2
6176 fi
6177 done
6178 done
6179 IFS=$as_save_IFS
6180
6181 fi
6182 fi
6183 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6184 if test -n "$ac_ct_OBJDUMP"; then
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6186 $as_echo "$ac_ct_OBJDUMP" >&6; }
6187 else
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189 $as_echo "no" >&6; }
6190 fi
6191
6192 if test "x$ac_ct_OBJDUMP" = x; then
6193 OBJDUMP="false"
6194 else
6195 case $cross_compiling:$ac_tool_warned in
6196 yes:)
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6199 ac_tool_warned=yes ;;
6200 esac
6201 OBJDUMP=$ac_ct_OBJDUMP
6202 fi
6203 else
6204 OBJDUMP="$ac_cv_prog_OBJDUMP"
6205 fi
6206
6207 test -z "$OBJDUMP" && OBJDUMP=objdump
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6218 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6219 if ${lt_cv_deplibs_check_method+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 lt_cv_file_magic_cmd='$MAGIC_CMD'
6223 lt_cv_file_magic_test_file=
6224 lt_cv_deplibs_check_method='unknown'
6225 # Need to set the preceding variable on all platforms that support
6226 # interlibrary dependencies.
6227 # 'none' -- dependencies not supported.
6228 # `unknown' -- same as none, but documents that we really don't know.
6229 # 'pass_all' -- all dependencies passed with no checks.
6230 # 'test_compile' -- check by making test program.
6231 # 'file_magic [[regex]]' -- check by looking for files in library path
6232 # which responds to the $file_magic_cmd with a given extended regex.
6233 # If you have `file' or equivalent on your system and you're not sure
6234 # whether `pass_all' will *always* work, you probably want this one.
6235
6236 case $host_os in
6237 aix[4-9]*)
6238 lt_cv_deplibs_check_method=pass_all
6239 ;;
6240
6241 beos*)
6242 lt_cv_deplibs_check_method=pass_all
6243 ;;
6244
6245 bsdi[45]*)
6246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6247 lt_cv_file_magic_cmd='/usr/bin/file -L'
6248 lt_cv_file_magic_test_file=/shlib/libc.so
6249 ;;
6250
6251 cygwin*)
6252 # func_win32_libid is a shell function defined in ltmain.sh
6253 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6254 lt_cv_file_magic_cmd='func_win32_libid'
6255 ;;
6256
6257 mingw* | pw32*)
6258 # Base MSYS/MinGW do not provide the 'file' command needed by
6259 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6260 # unless we find 'file', for example because we are cross-compiling.
6261 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6262 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6263 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6264 lt_cv_file_magic_cmd='func_win32_libid'
6265 else
6266 # Keep this pattern in sync with the one in func_win32_libid.
6267 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6268 lt_cv_file_magic_cmd='$OBJDUMP -f'
6269 fi
6270 ;;
6271
6272 cegcc*)
6273 # use the weaker test based on 'objdump'. See mingw*.
6274 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6275 lt_cv_file_magic_cmd='$OBJDUMP -f'
6276 ;;
6277
6278 darwin* | rhapsody*)
6279 lt_cv_deplibs_check_method=pass_all
6280 ;;
6281
6282 freebsd* | dragonfly*)
6283 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6284 case $host_cpu in
6285 i*86 )
6286 # Not sure whether the presence of OpenBSD here was a mistake.
6287 # Let's accept both of them until this is cleared up.
6288 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6289 lt_cv_file_magic_cmd=/usr/bin/file
6290 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6291 ;;
6292 esac
6293 else
6294 lt_cv_deplibs_check_method=pass_all
6295 fi
6296 ;;
6297
6298 haiku*)
6299 lt_cv_deplibs_check_method=pass_all
6300 ;;
6301
6302 hpux10.20* | hpux11*)
6303 lt_cv_file_magic_cmd=/usr/bin/file
6304 case $host_cpu in
6305 ia64*)
6306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6307 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6308 ;;
6309 hppa*64*)
6310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6311 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6312 ;;
6313 *)
6314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6315 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6316 ;;
6317 esac
6318 ;;
6319
6320 interix[3-9]*)
6321 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6323 ;;
6324
6325 irix5* | irix6* | nonstopux*)
6326 case $LD in
6327 *-32|*"-32 ") libmagic=32-bit;;
6328 *-n32|*"-n32 ") libmagic=N32;;
6329 *-64|*"-64 ") libmagic=64-bit;;
6330 *) libmagic=never-match;;
6331 esac
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334
6335 # This must be glibc/ELF.
6336 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6337 lt_cv_deplibs_check_method=pass_all
6338 ;;
6339
6340 netbsd* | netbsdelf*-gnu)
6341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6343 else
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6345 fi
6346 ;;
6347
6348 newos6*)
6349 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6350 lt_cv_file_magic_cmd=/usr/bin/file
6351 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6352 ;;
6353
6354 *nto* | *qnx*)
6355 lt_cv_deplibs_check_method=pass_all
6356 ;;
6357
6358 openbsd*)
6359 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6360 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6361 else
6362 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6363 fi
6364 ;;
6365
6366 osf3* | osf4* | osf5*)
6367 lt_cv_deplibs_check_method=pass_all
6368 ;;
6369
6370 rdos*)
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
6373
6374 solaris*)
6375 lt_cv_deplibs_check_method=pass_all
6376 ;;
6377
6378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381
6382 sysv4 | sysv4.3*)
6383 case $host_vendor in
6384 motorola)
6385 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]'
6386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6387 ;;
6388 ncr)
6389 lt_cv_deplibs_check_method=pass_all
6390 ;;
6391 sequent)
6392 lt_cv_file_magic_cmd='/bin/file'
6393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6394 ;;
6395 sni)
6396 lt_cv_file_magic_cmd='/bin/file'
6397 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6398 lt_cv_file_magic_test_file=/lib/libc.so
6399 ;;
6400 siemens)
6401 lt_cv_deplibs_check_method=pass_all
6402 ;;
6403 pc)
6404 lt_cv_deplibs_check_method=pass_all
6405 ;;
6406 esac
6407 ;;
6408
6409 tpf*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
6412 esac
6413
6414 fi
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6416 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6417
6418 file_magic_glob=
6419 want_nocaseglob=no
6420 if test "$build" = "$host"; then
6421 case $host_os in
6422 mingw* | pw32*)
6423 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6424 want_nocaseglob=yes
6425 else
6426 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6427 fi
6428 ;;
6429 esac
6430 fi
6431
6432 file_magic_cmd=$lt_cv_file_magic_cmd
6433 deplibs_check_method=$lt_cv_deplibs_check_method
6434 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457 if test -n "$ac_tool_prefix"; then
6458 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6459 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_DLLTOOL+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 if test -n "$DLLTOOL"; then
6466 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471 IFS=$as_save_IFS
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 break 2
6478 fi
6479 done
6480 done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 DLLTOOL=$ac_cv_prog_DLLTOOL
6486 if test -n "$DLLTOOL"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6488 $as_echo "$DLLTOOL" >&6; }
6489 else
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494
6495 fi
6496 if test -z "$ac_cv_prog_DLLTOOL"; then
6497 ac_ct_DLLTOOL=$DLLTOOL
6498 # Extract the first word of "dlltool", so it can be a program name with args.
6499 set dummy dlltool; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 $as_echo_n "checking for $ac_word... " >&6; }
6502 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6503 $as_echo_n "(cached) " >&6
6504 else
6505 if test -n "$ac_ct_DLLTOOL"; then
6506 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519 done
6520 done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6526 if test -n "$ac_ct_DLLTOOL"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6528 $as_echo "$ac_ct_DLLTOOL" >&6; }
6529 else
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533
6534 if test "x$ac_ct_DLLTOOL" = x; then
6535 DLLTOOL="false"
6536 else
6537 case $cross_compiling:$ac_tool_warned in
6538 yes:)
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6541 ac_tool_warned=yes ;;
6542 esac
6543 DLLTOOL=$ac_ct_DLLTOOL
6544 fi
6545 else
6546 DLLTOOL="$ac_cv_prog_DLLTOOL"
6547 fi
6548
6549 test -z "$DLLTOOL" && DLLTOOL=dlltool
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6561 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6562 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 lt_cv_sharedlib_from_linklib_cmd='unknown'
6566
6567 case $host_os in
6568 cygwin* | mingw* | pw32* | cegcc*)
6569 # two different shell functions defined in ltmain.sh
6570 # decide which to use based on capabilities of $DLLTOOL
6571 case `$DLLTOOL --help 2>&1` in
6572 *--identify-strict*)
6573 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6574 ;;
6575 *)
6576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6577 ;;
6578 esac
6579 ;;
6580 *)
6581 # fallback: assume linklib IS sharedlib
6582 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6583 ;;
6584 esac
6585
6586 fi
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6588 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6589 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6590 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6591
6592
6593
6594
6595
6596
6597
6598 if test -n "$ac_tool_prefix"; then
6599 for ac_prog in ar
6600 do
6601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_AR+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$AR"; then
6609 ac_cv_prog_AR="$AR" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 AR=$ac_cv_prog_AR
6629 if test -n "$AR"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6631 $as_echo "$AR" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637
6638 test -n "$AR" && break
6639 done
6640 fi
6641 if test -z "$AR"; then
6642 ac_ct_AR=$AR
6643 for ac_prog in ar
6644 do
6645 # Extract the first word of "$ac_prog", so it can be a program name with args.
6646 set dummy $ac_prog; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6650 $as_echo_n "(cached) " >&6
6651 else
6652 if test -n "$ac_ct_AR"; then
6653 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6654 else
6655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 for as_dir in $PATH
6657 do
6658 IFS=$as_save_IFS
6659 test -z "$as_dir" && as_dir=.
6660 for ac_exec_ext in '' $ac_executable_extensions; do
6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662 ac_cv_prog_ac_ct_AR="$ac_prog"
6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 break 2
6665 fi
6666 done
6667 done
6668 IFS=$as_save_IFS
6669
6670 fi
6671 fi
6672 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6673 if test -n "$ac_ct_AR"; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6675 $as_echo "$ac_ct_AR" >&6; }
6676 else
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680
6681
6682 test -n "$ac_ct_AR" && break
6683 done
6684
6685 if test "x$ac_ct_AR" = x; then
6686 AR="false"
6687 else
6688 case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694 AR=$ac_ct_AR
6695 fi
6696 fi
6697
6698 : ${AR=ar}
6699 : ${AR_FLAGS=cru}
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6712 $as_echo_n "checking for archiver @FILE support... " >&6; }
6713 if ${lt_cv_ar_at_file+:} false; then :
6714 $as_echo_n "(cached) " >&6
6715 else
6716 lt_cv_ar_at_file=no
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719
6720 int
6721 main ()
6722 {
6723
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"; then :
6729 echo conftest.$ac_objext > conftest.lst
6730 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6732 (eval $lt_ar_try) 2>&5
6733 ac_status=$?
6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735 test $ac_status = 0; }
6736 if test "$ac_status" -eq 0; then
6737 # Ensure the archiver fails upon bogus file names.
6738 rm -f conftest.$ac_objext libconftest.a
6739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6740 (eval $lt_ar_try) 2>&5
6741 ac_status=$?
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }
6744 if test "$ac_status" -ne 0; then
6745 lt_cv_ar_at_file=@
6746 fi
6747 fi
6748 rm -f conftest.* libconftest.a
6749
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752
6753 fi
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6755 $as_echo "$lt_cv_ar_at_file" >&6; }
6756
6757 if test "x$lt_cv_ar_at_file" = xno; then
6758 archiver_list_spec=
6759 else
6760 archiver_list_spec=$lt_cv_ar_at_file
6761 fi
6762
6763
6764
6765
6766
6767
6768
6769 if test -n "$ac_tool_prefix"; then
6770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6771 set dummy ${ac_tool_prefix}strip; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if ${ac_cv_prog_STRIP+:} false; then :
6775 $as_echo_n "(cached) " >&6
6776 else
6777 if test -n "$STRIP"; then
6778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783 IFS=$as_save_IFS
6784 test -z "$as_dir" && as_dir=.
6785 for ac_exec_ext in '' $ac_executable_extensions; do
6786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 break 2
6790 fi
6791 done
6792 done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 STRIP=$ac_cv_prog_STRIP
6798 if test -n "$STRIP"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6800 $as_echo "$STRIP" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806
6807 fi
6808 if test -z "$ac_cv_prog_STRIP"; then
6809 ac_ct_STRIP=$STRIP
6810 # Extract the first word of "strip", so it can be a program name with args.
6811 set dummy strip; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6815 $as_echo_n "(cached) " >&6
6816 else
6817 if test -n "$ac_ct_STRIP"; then
6818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6819 else
6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 for as_dir in $PATH
6822 do
6823 IFS=$as_save_IFS
6824 test -z "$as_dir" && as_dir=.
6825 for ac_exec_ext in '' $ac_executable_extensions; do
6826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6827 ac_cv_prog_ac_ct_STRIP="strip"
6828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 break 2
6830 fi
6831 done
6832 done
6833 IFS=$as_save_IFS
6834
6835 fi
6836 fi
6837 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6838 if test -n "$ac_ct_STRIP"; then
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6840 $as_echo "$ac_ct_STRIP" >&6; }
6841 else
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6843 $as_echo "no" >&6; }
6844 fi
6845
6846 if test "x$ac_ct_STRIP" = x; then
6847 STRIP=":"
6848 else
6849 case $cross_compiling:$ac_tool_warned in
6850 yes:)
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6852 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6853 ac_tool_warned=yes ;;
6854 esac
6855 STRIP=$ac_ct_STRIP
6856 fi
6857 else
6858 STRIP="$ac_cv_prog_STRIP"
6859 fi
6860
6861 test -z "$STRIP" && STRIP=:
6862
6863
6864
6865
6866
6867
6868 if test -n "$ac_tool_prefix"; then
6869 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_RANLIB+:} false; then :
6874 $as_echo_n "(cached) " >&6
6875 else
6876 if test -n "$RANLIB"; then
6877 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882 IFS=$as_save_IFS
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6886 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888 break 2
6889 fi
6890 done
6891 done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 RANLIB=$ac_cv_prog_RANLIB
6897 if test -n "$RANLIB"; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6899 $as_echo "$RANLIB" >&6; }
6900 else
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_RANLIB"; then
6908 ac_ct_RANLIB=$RANLIB
6909 # Extract the first word of "ranlib", so it can be a program name with args.
6910 set dummy ranlib; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 if test -n "$ac_ct_RANLIB"; then
6917 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_prog_ac_ct_RANLIB="ranlib"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6929 fi
6930 done
6931 done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6937 if test -n "$ac_ct_RANLIB"; then
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6939 $as_echo "$ac_ct_RANLIB" >&6; }
6940 else
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945 if test "x$ac_ct_RANLIB" = x; then
6946 RANLIB=":"
6947 else
6948 case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954 RANLIB=$ac_ct_RANLIB
6955 fi
6956 else
6957 RANLIB="$ac_cv_prog_RANLIB"
6958 fi
6959
6960 test -z "$RANLIB" && RANLIB=:
6961
6962
6963
6964
6965
6966
6967 # Determine commands to create old-style static archives.
6968 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6969 old_postinstall_cmds='chmod 644 $oldlib'
6970 old_postuninstall_cmds=
6971
6972 if test -n "$RANLIB"; then
6973 case $host_os in
6974 openbsd*)
6975 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6976 ;;
6977 *)
6978 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6979 ;;
6980 esac
6981 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6982 fi
6983
6984 case $host_os in
6985 darwin*)
6986 lock_old_archive_extraction=yes ;;
6987 *)
6988 lock_old_archive_extraction=no ;;
6989 esac
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 # If no C compiler was specified, use CC.
7030 LTCC=${LTCC-"$CC"}
7031
7032 # If no C compiler flags were specified, use CFLAGS.
7033 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7034
7035 # Allow CC to be a program name with arguments.
7036 compiler=$CC
7037
7038
7039 # Check for command to grab the raw symbol name followed by C symbol from nm.
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7041 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7042 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045
7046 # These are sane defaults that work on at least a few old systems.
7047 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7048
7049 # Character class describing NM global symbol codes.
7050 symcode='[BCDEGRST]'
7051
7052 # Regexp to match symbols that can be accessed directly from C.
7053 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7054
7055 # Define system-specific variables.
7056 case $host_os in
7057 aix*)
7058 symcode='[BCDT]'
7059 ;;
7060 cygwin* | mingw* | pw32* | cegcc*)
7061 symcode='[ABCDGISTW]'
7062 ;;
7063 hpux*)
7064 if test "$host_cpu" = ia64; then
7065 symcode='[ABCDEGRST]'
7066 fi
7067 ;;
7068 irix* | nonstopux*)
7069 symcode='[BCDEGRST]'
7070 ;;
7071 osf*)
7072 symcode='[BCDEGQRST]'
7073 ;;
7074 solaris*)
7075 symcode='[BDRT]'
7076 ;;
7077 sco3.2v5*)
7078 symcode='[DT]'
7079 ;;
7080 sysv4.2uw2*)
7081 symcode='[DT]'
7082 ;;
7083 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7084 symcode='[ABDT]'
7085 ;;
7086 sysv4)
7087 symcode='[DFNSTU]'
7088 ;;
7089 esac
7090
7091 # If we're using GNU nm, then use its standard symbol codes.
7092 case `$NM -V 2>&1` in
7093 *GNU* | *'with BFD'*)
7094 symcode='[ABCDGIRSTW]' ;;
7095 esac
7096
7097 # Transform an extracted symbol line into a proper C declaration.
7098 # Some systems (esp. on ia64) link data and code symbols differently,
7099 # so use this general approach.
7100 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7101
7102 # Transform an extracted symbol line into symbol name and symbol address
7103 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7104 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7105
7106 # Handle CRLF in mingw tool chain
7107 opt_cr=
7108 case $build_os in
7109 mingw*)
7110 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7111 ;;
7112 esac
7113
7114 # Try without a prefix underscore, then with it.
7115 for ac_symprfx in "" "_"; do
7116
7117 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7118 symxfrm="\\1 $ac_symprfx\\2 \\2"
7119
7120 # Write the raw and C identifiers.
7121 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7122 # Fake it for dumpbin and say T for any non-static function
7123 # and D for any global variable.
7124 # Also find C++ and __fastcall symbols from MSVC++,
7125 # which start with @ or ?.
7126 lt_cv_sys_global_symbol_pipe="$AWK '"\
7127 " {last_section=section; section=\$ 3};"\
7128 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7129 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7130 " \$ 0!~/External *\|/{next};"\
7131 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7132 " {if(hide[section]) next};"\
7133 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7134 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7135 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7136 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7137 " ' prfx=^$ac_symprfx"
7138 else
7139 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7140 fi
7141 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7142
7143 # Check to see that the pipe works correctly.
7144 pipe_works=no
7145
7146 rm -f conftest*
7147 cat > conftest.$ac_ext <<_LT_EOF
7148 #ifdef __cplusplus
7149 extern "C" {
7150 #endif
7151 char nm_test_var;
7152 void nm_test_func(void);
7153 void nm_test_func(void){}
7154 #ifdef __cplusplus
7155 }
7156 #endif
7157 int main(){nm_test_var='a';nm_test_func();return(0);}
7158 _LT_EOF
7159
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7161 (eval $ac_compile) 2>&5
7162 ac_status=$?
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; }; then
7165 # Now try to grab the symbols.
7166 nlist=conftest.nm
7167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7168 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7169 ac_status=$?
7170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7171 test $ac_status = 0; } && test -s "$nlist"; then
7172 # Try sorting and uniquifying the output.
7173 if sort "$nlist" | uniq > "$nlist"T; then
7174 mv -f "$nlist"T "$nlist"
7175 else
7176 rm -f "$nlist"T
7177 fi
7178
7179 # Make sure that we snagged all the symbols we need.
7180 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7181 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7182 cat <<_LT_EOF > conftest.$ac_ext
7183 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7184 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7185 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7186 relocations are performed -- see ld's documentation on pseudo-relocs. */
7187 # define LT_DLSYM_CONST
7188 #elif defined(__osf__)
7189 /* This system does not cope well with relocations in const data. */
7190 # define LT_DLSYM_CONST
7191 #else
7192 # define LT_DLSYM_CONST const
7193 #endif
7194
7195 #ifdef __cplusplus
7196 extern "C" {
7197 #endif
7198
7199 _LT_EOF
7200 # Now generate the symbol file.
7201 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7202
7203 cat <<_LT_EOF >> conftest.$ac_ext
7204
7205 /* The mapping between symbol names and symbols. */
7206 LT_DLSYM_CONST struct {
7207 const char *name;
7208 void *address;
7209 }
7210 lt__PROGRAM__LTX_preloaded_symbols[] =
7211 {
7212 { "@PROGRAM@", (void *) 0 },
7213 _LT_EOF
7214 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7215 cat <<\_LT_EOF >> conftest.$ac_ext
7216 {0, (void *) 0}
7217 };
7218
7219 /* This works around a problem in FreeBSD linker */
7220 #ifdef FREEBSD_WORKAROUND
7221 static const void *lt_preloaded_setup() {
7222 return lt__PROGRAM__LTX_preloaded_symbols;
7223 }
7224 #endif
7225
7226 #ifdef __cplusplus
7227 }
7228 #endif
7229 _LT_EOF
7230 # Now try linking the two files.
7231 mv conftest.$ac_objext conftstm.$ac_objext
7232 lt_globsym_save_LIBS=$LIBS
7233 lt_globsym_save_CFLAGS=$CFLAGS
7234 LIBS="conftstm.$ac_objext"
7235 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7237 (eval $ac_link) 2>&5
7238 ac_status=$?
7239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7240 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7241 pipe_works=yes
7242 fi
7243 LIBS=$lt_globsym_save_LIBS
7244 CFLAGS=$lt_globsym_save_CFLAGS
7245 else
7246 echo "cannot find nm_test_func in $nlist" >&5
7247 fi
7248 else
7249 echo "cannot find nm_test_var in $nlist" >&5
7250 fi
7251 else
7252 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7253 fi
7254 else
7255 echo "$progname: failed program was:" >&5
7256 cat conftest.$ac_ext >&5
7257 fi
7258 rm -rf conftest* conftst*
7259
7260 # Do not use the global_symbol_pipe unless it works.
7261 if test "$pipe_works" = yes; then
7262 break
7263 else
7264 lt_cv_sys_global_symbol_pipe=
7265 fi
7266 done
7267
7268 fi
7269
7270 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7271 lt_cv_sys_global_symbol_to_cdecl=
7272 fi
7273 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7275 $as_echo "failed" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7278 $as_echo "ok" >&6; }
7279 fi
7280
7281 # Response file support.
7282 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7283 nm_file_list_spec='@'
7284 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7285 nm_file_list_spec='@'
7286 fi
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7315 $as_echo_n "checking for sysroot... " >&6; }
7316
7317 # Check whether --with-sysroot was given.
7318 if test "${with_sysroot+set}" = set; then :
7319 withval=$with_sysroot;
7320 else
7321 with_sysroot=no
7322 fi
7323
7324
7325 lt_sysroot=
7326 case ${with_sysroot} in #(
7327 yes)
7328 if test "$GCC" = yes; then
7329 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7330 fi
7331 ;; #(
7332 /*)
7333 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7334 ;; #(
7335 no|'')
7336 ;; #(
7337 *)
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7339 $as_echo "${with_sysroot}" >&6; }
7340 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7341 ;;
7342 esac
7343
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7345 $as_echo "${lt_sysroot:-no}" >&6; }
7346
7347
7348
7349
7350
7351 # Check whether --enable-libtool-lock was given.
7352 if test "${enable_libtool_lock+set}" = set; then :
7353 enableval=$enable_libtool_lock;
7354 fi
7355
7356 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7357
7358 # Some flags need to be propagated to the compiler or linker for good
7359 # libtool support.
7360 case $host in
7361 ia64-*-hpux*)
7362 # Find out which ABI we are using.
7363 echo 'int i;' > conftest.$ac_ext
7364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365 (eval $ac_compile) 2>&5
7366 ac_status=$?
7367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368 test $ac_status = 0; }; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7370 *ELF-32*)
7371 HPUX_IA64_MODE="32"
7372 ;;
7373 *ELF-64*)
7374 HPUX_IA64_MODE="64"
7375 ;;
7376 esac
7377 fi
7378 rm -rf conftest*
7379 ;;
7380 *-*-irix6*)
7381 # Find out which ABI we are using.
7382 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 if test "$lt_cv_prog_gnu_ld" = yes; then
7389 case `/usr/bin/file conftest.$ac_objext` in
7390 *32-bit*)
7391 LD="${LD-ld} -melf32bsmip"
7392 ;;
7393 *N32*)
7394 LD="${LD-ld} -melf32bmipn32"
7395 ;;
7396 *64-bit*)
7397 LD="${LD-ld} -melf64bmip"
7398 ;;
7399 esac
7400 else
7401 case `/usr/bin/file conftest.$ac_objext` in
7402 *32-bit*)
7403 LD="${LD-ld} -32"
7404 ;;
7405 *N32*)
7406 LD="${LD-ld} -n32"
7407 ;;
7408 *64-bit*)
7409 LD="${LD-ld} -64"
7410 ;;
7411 esac
7412 fi
7413 fi
7414 rm -rf conftest*
7415 ;;
7416
7417 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7418 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7419 # Find out which ABI we are using.
7420 echo 'int i;' > conftest.$ac_ext
7421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7422 (eval $ac_compile) 2>&5
7423 ac_status=$?
7424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7425 test $ac_status = 0; }; then
7426 case `/usr/bin/file conftest.o` in
7427 *32-bit*)
7428 case $host in
7429 x86_64-*kfreebsd*-gnu)
7430 LD="${LD-ld} -m elf_i386_fbsd"
7431 ;;
7432 x86_64-*linux*)
7433 case `/usr/bin/file conftest.o` in
7434 *x86-64*)
7435 LD="${LD-ld} -m elf32_x86_64"
7436 ;;
7437 *)
7438 LD="${LD-ld} -m elf_i386"
7439 ;;
7440 esac
7441 ;;
7442 powerpc64le-*)
7443 LD="${LD-ld} -m elf32lppclinux"
7444 ;;
7445 powerpc64-*)
7446 LD="${LD-ld} -m elf32ppclinux"
7447 ;;
7448 s390x-*linux*)
7449 LD="${LD-ld} -m elf_s390"
7450 ;;
7451 sparc64-*linux*)
7452 LD="${LD-ld} -m elf32_sparc"
7453 ;;
7454 esac
7455 ;;
7456 *64-bit*)
7457 case $host in
7458 x86_64-*kfreebsd*-gnu)
7459 LD="${LD-ld} -m elf_x86_64_fbsd"
7460 ;;
7461 x86_64-*linux*)
7462 LD="${LD-ld} -m elf_x86_64"
7463 ;;
7464 powerpcle-*)
7465 LD="${LD-ld} -m elf64lppc"
7466 ;;
7467 powerpc-*)
7468 LD="${LD-ld} -m elf64ppc"
7469 ;;
7470 s390*-*linux*|s390*-*tpf*)
7471 LD="${LD-ld} -m elf64_s390"
7472 ;;
7473 sparc*-*linux*)
7474 LD="${LD-ld} -m elf64_sparc"
7475 ;;
7476 esac
7477 ;;
7478 esac
7479 fi
7480 rm -rf conftest*
7481 ;;
7482
7483 *-*-sco3.2v5*)
7484 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7485 SAVE_CFLAGS="$CFLAGS"
7486 CFLAGS="$CFLAGS -belf"
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7488 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7489 if ${lt_cv_cc_needs_belf+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 ac_ext=c
7493 ac_cpp='$CPP $CPPFLAGS'
7494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500
7501 int
7502 main ()
7503 {
7504
7505 ;
7506 return 0;
7507 }
7508 _ACEOF
7509 if ac_fn_c_try_link "$LINENO"; then :
7510 lt_cv_cc_needs_belf=yes
7511 else
7512 lt_cv_cc_needs_belf=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext \
7515 conftest$ac_exeext conftest.$ac_ext
7516 ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521
7522 fi
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7524 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7525 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7526 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7527 CFLAGS="$SAVE_CFLAGS"
7528 fi
7529 ;;
7530 *-*solaris*)
7531 # Find out which ABI we are using.
7532 echo 'int i;' > conftest.$ac_ext
7533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7534 (eval $ac_compile) 2>&5
7535 ac_status=$?
7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537 test $ac_status = 0; }; then
7538 case `/usr/bin/file conftest.o` in
7539 *64-bit*)
7540 case $lt_cv_prog_gnu_ld in
7541 yes*)
7542 case $host in
7543 i?86-*-solaris*)
7544 LD="${LD-ld} -m elf_x86_64"
7545 ;;
7546 sparc*-*-solaris*)
7547 LD="${LD-ld} -m elf64_sparc"
7548 ;;
7549 esac
7550 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7551 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7552 LD="${LD-ld}_sol2"
7553 fi
7554 ;;
7555 *)
7556 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7557 LD="${LD-ld} -64"
7558 fi
7559 ;;
7560 esac
7561 ;;
7562 esac
7563 fi
7564 rm -rf conftest*
7565 ;;
7566 esac
7567
7568 need_locks="$enable_libtool_lock"
7569
7570 if test -n "$ac_tool_prefix"; then
7571 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7572 set dummy ${ac_tool_prefix}mt; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 if test -n "$MANIFEST_TOOL"; then
7579 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7599 if test -n "$MANIFEST_TOOL"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7601 $as_echo "$MANIFEST_TOOL" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607
7608 fi
7609 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7610 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7611 # Extract the first word of "mt", so it can be a program name with args.
7612 set dummy mt; ac_word=$2
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7614 $as_echo_n "checking for $ac_word... " >&6; }
7615 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7616 $as_echo_n "(cached) " >&6
7617 else
7618 if test -n "$ac_ct_MANIFEST_TOOL"; then
7619 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7620 else
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636 fi
7637 fi
7638 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7639 if test -n "$ac_ct_MANIFEST_TOOL"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7641 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7642 else
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7645 fi
7646
7647 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7648 MANIFEST_TOOL=":"
7649 else
7650 case $cross_compiling:$ac_tool_warned in
7651 yes:)
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7654 ac_tool_warned=yes ;;
7655 esac
7656 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7657 fi
7658 else
7659 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7660 fi
7661
7662 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7664 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7665 if ${lt_cv_path_mainfest_tool+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 lt_cv_path_mainfest_tool=no
7669 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7670 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7671 cat conftest.err >&5
7672 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7673 lt_cv_path_mainfest_tool=yes
7674 fi
7675 rm -f conftest*
7676 fi
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7678 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7679 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7680 MANIFEST_TOOL=:
7681 fi
7682
7683
7684
7685
7686
7687
7688 case $host_os in
7689 rhapsody* | darwin*)
7690 if test -n "$ac_tool_prefix"; then
7691 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7692 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test -n "$DSYMUTIL"; then
7699 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7711 fi
7712 done
7713 done
7714 IFS=$as_save_IFS
7715
7716 fi
7717 fi
7718 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7719 if test -n "$DSYMUTIL"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7721 $as_echo "$DSYMUTIL" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727
7728 fi
7729 if test -z "$ac_cv_prog_DSYMUTIL"; then
7730 ac_ct_DSYMUTIL=$DSYMUTIL
7731 # Extract the first word of "dsymutil", so it can be a program name with args.
7732 set dummy dsymutil; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test -n "$ac_ct_DSYMUTIL"; then
7739 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7759 if test -n "$ac_ct_DSYMUTIL"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7761 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767 if test "x$ac_ct_DSYMUTIL" = x; then
7768 DSYMUTIL=":"
7769 else
7770 case $cross_compiling:$ac_tool_warned in
7771 yes:)
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7775 esac
7776 DSYMUTIL=$ac_ct_DSYMUTIL
7777 fi
7778 else
7779 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7780 fi
7781
7782 if test -n "$ac_tool_prefix"; then
7783 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if ${ac_cv_prog_NMEDIT+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$NMEDIT"; then
7791 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808 fi
7809 fi
7810 NMEDIT=$ac_cv_prog_NMEDIT
7811 if test -n "$NMEDIT"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7813 $as_echo "$NMEDIT" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819
7820 fi
7821 if test -z "$ac_cv_prog_NMEDIT"; then
7822 ac_ct_NMEDIT=$NMEDIT
7823 # Extract the first word of "nmedit", so it can be a program name with args.
7824 set dummy nmedit; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$ac_ct_NMEDIT"; then
7831 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7851 if test -n "$ac_ct_NMEDIT"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7853 $as_echo "$ac_ct_NMEDIT" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859 if test "x$ac_ct_NMEDIT" = x; then
7860 NMEDIT=":"
7861 else
7862 case $cross_compiling:$ac_tool_warned in
7863 yes:)
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866 ac_tool_warned=yes ;;
7867 esac
7868 NMEDIT=$ac_ct_NMEDIT
7869 fi
7870 else
7871 NMEDIT="$ac_cv_prog_NMEDIT"
7872 fi
7873
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if ${ac_cv_prog_LIPO+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$LIPO"; then
7883 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7895 fi
7896 done
7897 done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 LIPO=$ac_cv_prog_LIPO
7903 if test -n "$LIPO"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7905 $as_echo "$LIPO" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911
7912 fi
7913 if test -z "$ac_cv_prog_LIPO"; then
7914 ac_ct_LIPO=$LIPO
7915 # Extract the first word of "lipo", so it can be a program name with args.
7916 set dummy lipo; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test -n "$ac_ct_LIPO"; then
7923 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932 ac_cv_prog_ac_ct_LIPO="lipo"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936 done
7937 done
7938 IFS=$as_save_IFS
7939
7940 fi
7941 fi
7942 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7943 if test -n "$ac_ct_LIPO"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7945 $as_echo "$ac_ct_LIPO" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951 if test "x$ac_ct_LIPO" = x; then
7952 LIPO=":"
7953 else
7954 case $cross_compiling:$ac_tool_warned in
7955 yes:)
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958 ac_tool_warned=yes ;;
7959 esac
7960 LIPO=$ac_ct_LIPO
7961 fi
7962 else
7963 LIPO="$ac_cv_prog_LIPO"
7964 fi
7965
7966 if test -n "$ac_tool_prefix"; then
7967 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7968 set dummy ${ac_tool_prefix}otool; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_prog_OTOOL+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$OTOOL"; then
7975 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7979 do
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7984 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7987 fi
7988 done
7989 done
7990 IFS=$as_save_IFS
7991
7992 fi
7993 fi
7994 OTOOL=$ac_cv_prog_OTOOL
7995 if test -n "$OTOOL"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7997 $as_echo "$OTOOL" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8001 fi
8002
8003
8004 fi
8005 if test -z "$ac_cv_prog_OTOOL"; then
8006 ac_ct_OTOOL=$OTOOL
8007 # Extract the first word of "otool", so it can be a program name with args.
8008 set dummy otool; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 if test -n "$ac_ct_OTOOL"; then
8015 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_ac_ct_OTOOL="otool"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 fi
8033 fi
8034 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8035 if test -n "$ac_ct_OTOOL"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8037 $as_echo "$ac_ct_OTOOL" >&6; }
8038 else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043 if test "x$ac_ct_OTOOL" = x; then
8044 OTOOL=":"
8045 else
8046 case $cross_compiling:$ac_tool_warned in
8047 yes:)
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8050 ac_tool_warned=yes ;;
8051 esac
8052 OTOOL=$ac_ct_OTOOL
8053 fi
8054 else
8055 OTOOL="$ac_cv_prog_OTOOL"
8056 fi
8057
8058 if test -n "$ac_tool_prefix"; then
8059 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8060 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if ${ac_cv_prog_OTOOL64+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 if test -n "$OTOOL64"; then
8067 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8071 do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 OTOOL64=$ac_cv_prog_OTOOL64
8087 if test -n "$OTOOL64"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8089 $as_echo "$OTOOL64" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8093 fi
8094
8095
8096 fi
8097 if test -z "$ac_cv_prog_OTOOL64"; then
8098 ac_ct_OTOOL64=$OTOOL64
8099 # Extract the first word of "otool64", so it can be a program name with args.
8100 set dummy otool64; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 if test -n "$ac_ct_OTOOL64"; then
8107 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_prog_ac_ct_OTOOL64="otool64"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8119 fi
8120 done
8121 done
8122 IFS=$as_save_IFS
8123
8124 fi
8125 fi
8126 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8127 if test -n "$ac_ct_OTOOL64"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8129 $as_echo "$ac_ct_OTOOL64" >&6; }
8130 else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 fi
8134
8135 if test "x$ac_ct_OTOOL64" = x; then
8136 OTOOL64=":"
8137 else
8138 case $cross_compiling:$ac_tool_warned in
8139 yes:)
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142 ac_tool_warned=yes ;;
8143 esac
8144 OTOOL64=$ac_ct_OTOOL64
8145 fi
8146 else
8147 OTOOL64="$ac_cv_prog_OTOOL64"
8148 fi
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8177 $as_echo_n "checking for -single_module linker flag... " >&6; }
8178 if ${lt_cv_apple_cc_single_mod+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 lt_cv_apple_cc_single_mod=no
8182 if test -z "${LT_MULTI_MODULE}"; then
8183 # By default we will add the -single_module flag. You can override
8184 # by either setting the environment variable LT_MULTI_MODULE
8185 # non-empty at configure time, or by adding -multi_module to the
8186 # link flags.
8187 rm -rf libconftest.dylib*
8188 echo "int foo(void){return 1;}" > conftest.c
8189 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8190 -dynamiclib -Wl,-single_module conftest.c" >&5
8191 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8192 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8193 _lt_result=$?
8194 # If there is a non-empty error log, and "single_module"
8195 # appears in it, assume the flag caused a linker warning
8196 if test -s conftest.err && $GREP single_module conftest.err; then
8197 cat conftest.err >&5
8198 # Otherwise, if the output was created with a 0 exit code from
8199 # the compiler, it worked.
8200 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8201 lt_cv_apple_cc_single_mod=yes
8202 else
8203 cat conftest.err >&5
8204 fi
8205 rm -rf libconftest.dylib*
8206 rm -f conftest.*
8207 fi
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8210 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8211
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8213 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8214 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 lt_cv_ld_exported_symbols_list=no
8218 save_LDFLAGS=$LDFLAGS
8219 echo "_main" > conftest.sym
8220 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223
8224 int
8225 main ()
8226 {
8227
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 lt_cv_ld_exported_symbols_list=yes
8234 else
8235 lt_cv_ld_exported_symbols_list=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LDFLAGS="$save_LDFLAGS"
8240
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8243 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8244
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8246 $as_echo_n "checking for -force_load linker flag... " >&6; }
8247 if ${lt_cv_ld_force_load+:} false; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 lt_cv_ld_force_load=no
8251 cat > conftest.c << _LT_EOF
8252 int forced_loaded() { return 2;}
8253 _LT_EOF
8254 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8255 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8256 echo "$AR cru libconftest.a conftest.o" >&5
8257 $AR cru libconftest.a conftest.o 2>&5
8258 echo "$RANLIB libconftest.a" >&5
8259 $RANLIB libconftest.a 2>&5
8260 cat > conftest.c << _LT_EOF
8261 int main() { return 0;}
8262 _LT_EOF
8263 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8264 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8265 _lt_result=$?
8266 if test -s conftest.err && $GREP force_load conftest.err; then
8267 cat conftest.err >&5
8268 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8269 lt_cv_ld_force_load=yes
8270 else
8271 cat conftest.err >&5
8272 fi
8273 rm -f conftest.err libconftest.a conftest conftest.c
8274 rm -rf conftest.dSYM
8275
8276 fi
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8278 $as_echo "$lt_cv_ld_force_load" >&6; }
8279 case $host_os in
8280 rhapsody* | darwin1.[012])
8281 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8282 darwin1.*)
8283 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8284 darwin*) # darwin 5.x on
8285 # if running on 10.5 or later, the deployment target defaults
8286 # to the OS version, if on x86, and 10.4, the deployment
8287 # target defaults to 10.4. Don't you love it?
8288 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8289 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8290 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8291 10.[012]*)
8292 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8293 10.*)
8294 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8295 esac
8296 ;;
8297 esac
8298 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8299 _lt_dar_single_mod='$single_module'
8300 fi
8301 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8302 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8303 else
8304 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8305 fi
8306 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8307 _lt_dsymutil='~$DSYMUTIL $lib || :'
8308 else
8309 _lt_dsymutil=
8310 fi
8311 ;;
8312 esac
8313
8314 for ac_header in dlfcn.h
8315 do :
8316 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8317 "
8318 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8319 cat >>confdefs.h <<_ACEOF
8320 #define HAVE_DLFCN_H 1
8321 _ACEOF
8322
8323 fi
8324
8325 done
8326
8327
8328
8329
8330
8331 # Set options
8332 # Check whether --enable-static was given.
8333 if test "${enable_static+set}" = set; then :
8334 enableval=$enable_static; p=${PACKAGE-default}
8335 case $enableval in
8336 yes) enable_static=yes ;;
8337 no) enable_static=no ;;
8338 *)
8339 enable_static=no
8340 # Look at the argument we got. We use all the common list separators.
8341 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8342 for pkg in $enableval; do
8343 IFS="$lt_save_ifs"
8344 if test "X$pkg" = "X$p"; then
8345 enable_static=yes
8346 fi
8347 done
8348 IFS="$lt_save_ifs"
8349 ;;
8350 esac
8351 else
8352 enable_static=no
8353 fi
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364 enable_dlopen=no
8365
8366
8367 enable_win32_dll=no
8368
8369
8370 # Check whether --enable-shared was given.
8371 if test "${enable_shared+set}" = set; then :
8372 enableval=$enable_shared; p=${PACKAGE-default}
8373 case $enableval in
8374 yes) enable_shared=yes ;;
8375 no) enable_shared=no ;;
8376 *)
8377 enable_shared=no
8378 # Look at the argument we got. We use all the common list separators.
8379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8380 for pkg in $enableval; do
8381 IFS="$lt_save_ifs"
8382 if test "X$pkg" = "X$p"; then
8383 enable_shared=yes
8384 fi
8385 done
8386 IFS="$lt_save_ifs"
8387 ;;
8388 esac
8389 else
8390 enable_shared=yes
8391 fi
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403 # Check whether --with-pic was given.
8404 if test "${with_pic+set}" = set; then :
8405 withval=$with_pic; lt_p=${PACKAGE-default}
8406 case $withval in
8407 yes|no) pic_mode=$withval ;;
8408 *)
8409 pic_mode=default
8410 # Look at the argument we got. We use all the common list separators.
8411 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8412 for lt_pkg in $withval; do
8413 IFS="$lt_save_ifs"
8414 if test "X$lt_pkg" = "X$lt_p"; then
8415 pic_mode=yes
8416 fi
8417 done
8418 IFS="$lt_save_ifs"
8419 ;;
8420 esac
8421 else
8422 pic_mode=default
8423 fi
8424
8425
8426 test -z "$pic_mode" && pic_mode=default
8427
8428
8429
8430
8431
8432
8433
8434 # Check whether --enable-fast-install was given.
8435 if test "${enable_fast_install+set}" = set; then :
8436 enableval=$enable_fast_install; p=${PACKAGE-default}
8437 case $enableval in
8438 yes) enable_fast_install=yes ;;
8439 no) enable_fast_install=no ;;
8440 *)
8441 enable_fast_install=no
8442 # Look at the argument we got. We use all the common list separators.
8443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8444 for pkg in $enableval; do
8445 IFS="$lt_save_ifs"
8446 if test "X$pkg" = "X$p"; then
8447 enable_fast_install=yes
8448 fi
8449 done
8450 IFS="$lt_save_ifs"
8451 ;;
8452 esac
8453 else
8454 enable_fast_install=yes
8455 fi
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467 # This can be used to rebuild libtool when needed
8468 LIBTOOL_DEPS="$ltmain"
8469
8470 # Always use our own libtool.
8471 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502 test -z "$LN_S" && LN_S="ln -s"
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 if test -n "${ZSH_VERSION+set}" ; then
8518 setopt NO_GLOB_SUBST
8519 fi
8520
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8522 $as_echo_n "checking for objdir... " >&6; }
8523 if ${lt_cv_objdir+:} false; then :
8524 $as_echo_n "(cached) " >&6
8525 else
8526 rm -f .libs 2>/dev/null
8527 mkdir .libs 2>/dev/null
8528 if test -d .libs; then
8529 lt_cv_objdir=.libs
8530 else
8531 # MS-DOS does not allow filenames that begin with a dot.
8532 lt_cv_objdir=_libs
8533 fi
8534 rmdir .libs 2>/dev/null
8535 fi
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8537 $as_echo "$lt_cv_objdir" >&6; }
8538 objdir=$lt_cv_objdir
8539
8540
8541
8542
8543
8544 cat >>confdefs.h <<_ACEOF
8545 #define LT_OBJDIR "$lt_cv_objdir/"
8546 _ACEOF
8547
8548
8549
8550
8551 case $host_os in
8552 aix3*)
8553 # AIX sometimes has problems with the GCC collect2 program. For some
8554 # reason, if we set the COLLECT_NAMES environment variable, the problems
8555 # vanish in a puff of smoke.
8556 if test "X${COLLECT_NAMES+set}" != Xset; then
8557 COLLECT_NAMES=
8558 export COLLECT_NAMES
8559 fi
8560 ;;
8561 esac
8562
8563 # Global variables:
8564 ofile=libtool
8565 can_build_shared=yes
8566
8567 # All known linkers require a `.a' archive for static linking (except MSVC,
8568 # which needs '.lib').
8569 libext=a
8570
8571 with_gnu_ld="$lt_cv_prog_gnu_ld"
8572
8573 old_CC="$CC"
8574 old_CFLAGS="$CFLAGS"
8575
8576 # Set sane defaults for various variables
8577 test -z "$CC" && CC=cc
8578 test -z "$LTCC" && LTCC=$CC
8579 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8580 test -z "$LD" && LD=ld
8581 test -z "$ac_objext" && ac_objext=o
8582
8583 for cc_temp in $compiler""; do
8584 case $cc_temp in
8585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8587 \-*) ;;
8588 *) break;;
8589 esac
8590 done
8591 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8592
8593
8594 # Only perform the check for file, if the check method requires it
8595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8596 case $deplibs_check_method in
8597 file_magic*)
8598 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8600 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8601 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 case $MAGIC_CMD in
8605 [\\/*] | ?:[\\/]*)
8606 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8607 ;;
8608 *)
8609 lt_save_MAGIC_CMD="$MAGIC_CMD"
8610 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8611 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8612 for ac_dir in $ac_dummy; do
8613 IFS="$lt_save_ifs"
8614 test -z "$ac_dir" && ac_dir=.
8615 if test -f $ac_dir/${ac_tool_prefix}file; then
8616 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8617 if test -n "$file_magic_test_file"; then
8618 case $deplibs_check_method in
8619 "file_magic "*)
8620 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8623 $EGREP "$file_magic_regex" > /dev/null; then
8624 :
8625 else
8626 cat <<_LT_EOF 1>&2
8627
8628 *** Warning: the command libtool uses to detect shared libraries,
8629 *** $file_magic_cmd, produces output that libtool cannot recognize.
8630 *** The result is that libtool may fail to recognize shared libraries
8631 *** as such. This will affect the creation of libtool libraries that
8632 *** depend on shared libraries, but programs linked with such libtool
8633 *** libraries will work regardless of this problem. Nevertheless, you
8634 *** may want to report the problem to your system manager and/or to
8635 *** [email protected]
8636
8637 _LT_EOF
8638 fi ;;
8639 esac
8640 fi
8641 break
8642 fi
8643 done
8644 IFS="$lt_save_ifs"
8645 MAGIC_CMD="$lt_save_MAGIC_CMD"
8646 ;;
8647 esac
8648 fi
8649
8650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8651 if test -n "$MAGIC_CMD"; then
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8653 $as_echo "$MAGIC_CMD" >&6; }
8654 else
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659
8660
8661
8662
8663 if test -z "$lt_cv_path_MAGIC_CMD"; then
8664 if test -n "$ac_tool_prefix"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8666 $as_echo_n "checking for file... " >&6; }
8667 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 case $MAGIC_CMD in
8671 [\\/*] | ?:[\\/]*)
8672 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8673 ;;
8674 *)
8675 lt_save_MAGIC_CMD="$MAGIC_CMD"
8676 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8677 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8678 for ac_dir in $ac_dummy; do
8679 IFS="$lt_save_ifs"
8680 test -z "$ac_dir" && ac_dir=.
8681 if test -f $ac_dir/file; then
8682 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8683 if test -n "$file_magic_test_file"; then
8684 case $deplibs_check_method in
8685 "file_magic "*)
8686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8689 $EGREP "$file_magic_regex" > /dev/null; then
8690 :
8691 else
8692 cat <<_LT_EOF 1>&2
8693
8694 *** Warning: the command libtool uses to detect shared libraries,
8695 *** $file_magic_cmd, produces output that libtool cannot recognize.
8696 *** The result is that libtool may fail to recognize shared libraries
8697 *** as such. This will affect the creation of libtool libraries that
8698 *** depend on shared libraries, but programs linked with such libtool
8699 *** libraries will work regardless of this problem. Nevertheless, you
8700 *** may want to report the problem to your system manager and/or to
8701 *** [email protected]
8702
8703 _LT_EOF
8704 fi ;;
8705 esac
8706 fi
8707 break
8708 fi
8709 done
8710 IFS="$lt_save_ifs"
8711 MAGIC_CMD="$lt_save_MAGIC_CMD"
8712 ;;
8713 esac
8714 fi
8715
8716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8717 if test -n "$MAGIC_CMD"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8719 $as_echo "$MAGIC_CMD" >&6; }
8720 else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 fi
8724
8725
8726 else
8727 MAGIC_CMD=:
8728 fi
8729 fi
8730
8731 fi
8732 ;;
8733 esac
8734
8735 # Use C for the default configuration in the libtool script
8736
8737 lt_save_CC="$CC"
8738 ac_ext=c
8739 ac_cpp='$CPP $CPPFLAGS'
8740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8743
8744
8745 # Source file extension for C test sources.
8746 ac_ext=c
8747
8748 # Object file extension for compiled C test sources.
8749 objext=o
8750 objext=$objext
8751
8752 # Code to be used in simple compile tests
8753 lt_simple_compile_test_code="int some_variable = 0;"
8754
8755 # Code to be used in simple link tests
8756 lt_simple_link_test_code='int main(){return(0);}'
8757
8758
8759
8760
8761
8762
8763
8764 # If no C compiler was specified, use CC.
8765 LTCC=${LTCC-"$CC"}
8766
8767 # If no C compiler flags were specified, use CFLAGS.
8768 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8769
8770 # Allow CC to be a program name with arguments.
8771 compiler=$CC
8772
8773 # Save the default compiler, since it gets overwritten when the other
8774 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8775 compiler_DEFAULT=$CC
8776
8777 # save warnings/boilerplate of simple test code
8778 ac_outfile=conftest.$ac_objext
8779 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8781 _lt_compiler_boilerplate=`cat conftest.err`
8782 $RM conftest*
8783
8784 ac_outfile=conftest.$ac_objext
8785 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8787 _lt_linker_boilerplate=`cat conftest.err`
8788 $RM -r conftest*
8789
8790
8791 ## CAVEAT EMPTOR:
8792 ## There is no encapsulation within the following macros, do not change
8793 ## the running order or otherwise move them around unless you know exactly
8794 ## what you are doing...
8795 if test -n "$compiler"; then
8796
8797 lt_prog_compiler_no_builtin_flag=
8798
8799 if test "$GCC" = yes; then
8800 case $cc_basename in
8801 nvcc*)
8802 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8803 *)
8804 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8805 esac
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8808 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8809 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 lt_cv_prog_compiler_rtti_exceptions=no
8813 ac_outfile=conftest.$ac_objext
8814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815 lt_compiler_flag="-fno-rtti -fno-exceptions"
8816 # Insert the option either (1) after the last *FLAGS variable, or
8817 # (2) before a word containing "conftest.", or (3) at the end.
8818 # Note that $ac_compile itself does not contain backslashes and begins
8819 # with a dollar sign (not a hyphen), so the echo should work correctly.
8820 # The option is referenced via a variable to avoid confusing sed.
8821 lt_compile=`echo "$ac_compile" | $SED \
8822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824 -e 's:$: $lt_compiler_flag:'`
8825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826 (eval "$lt_compile" 2>conftest.err)
8827 ac_status=$?
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 if (exit $ac_status) && test -s "$ac_outfile"; then
8831 # The compiler can only warn and ignore the option if not recognized
8832 # So say no if there are warnings other than the usual output.
8833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8836 lt_cv_prog_compiler_rtti_exceptions=yes
8837 fi
8838 fi
8839 $RM conftest*
8840
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8843 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8844
8845 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8846 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8847 else
8848 :
8849 fi
8850
8851 fi
8852
8853
8854
8855
8856
8857
8858 lt_prog_compiler_wl=
8859 lt_prog_compiler_pic=
8860 lt_prog_compiler_static=
8861
8862
8863 if test "$GCC" = yes; then
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_static='-static'
8866
8867 case $host_os in
8868 aix*)
8869 # All AIX code is PIC.
8870 if test "$host_cpu" = ia64; then
8871 # AIX 5 now supports IA64 processor
8872 lt_prog_compiler_static='-Bstatic'
8873 fi
8874 ;;
8875
8876 amigaos*)
8877 case $host_cpu in
8878 powerpc)
8879 # see comment about AmigaOS4 .so support
8880 lt_prog_compiler_pic='-fPIC'
8881 ;;
8882 m68k)
8883 # FIXME: we need at least 68020 code to build shared libraries, but
8884 # adding the `-m68020' flag to GCC prevents building anything better,
8885 # like `-m68040'.
8886 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8887 ;;
8888 esac
8889 ;;
8890
8891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8892 # PIC is the default for these OSes.
8893 ;;
8894
8895 mingw* | cygwin* | pw32* | os2* | cegcc*)
8896 # This hack is so that the source file can tell whether it is being
8897 # built for inclusion in a dll (and should export symbols for example).
8898 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8899 # (--disable-auto-import) libraries
8900 lt_prog_compiler_pic='-DDLL_EXPORT'
8901 ;;
8902
8903 darwin* | rhapsody*)
8904 # PIC is the default on this platform
8905 # Common symbols not allowed in MH_DYLIB files
8906 lt_prog_compiler_pic='-fno-common'
8907 ;;
8908
8909 haiku*)
8910 # PIC is the default for Haiku.
8911 # The "-static" flag exists, but is broken.
8912 lt_prog_compiler_static=
8913 ;;
8914
8915 hpux*)
8916 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8917 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8918 # sets the default TLS model and affects inlining.
8919 case $host_cpu in
8920 hppa*64*)
8921 # +Z the default
8922 ;;
8923 *)
8924 lt_prog_compiler_pic='-fPIC'
8925 ;;
8926 esac
8927 ;;
8928
8929 interix[3-9]*)
8930 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8931 # Instead, we relocate shared libraries at runtime.
8932 ;;
8933
8934 msdosdjgpp*)
8935 # Just because we use GCC doesn't mean we suddenly get shared libraries
8936 # on systems that don't support them.
8937 lt_prog_compiler_can_build_shared=no
8938 enable_shared=no
8939 ;;
8940
8941 *nto* | *qnx*)
8942 # QNX uses GNU C++, but need to define -shared option too, otherwise
8943 # it will coredump.
8944 lt_prog_compiler_pic='-fPIC -shared'
8945 ;;
8946
8947 sysv4*MP*)
8948 if test -d /usr/nec; then
8949 lt_prog_compiler_pic=-Kconform_pic
8950 fi
8951 ;;
8952
8953 *)
8954 lt_prog_compiler_pic='-fPIC'
8955 ;;
8956 esac
8957
8958 case $cc_basename in
8959 nvcc*) # Cuda Compiler Driver 2.2
8960 lt_prog_compiler_wl='-Xlinker '
8961 if test -n "$lt_prog_compiler_pic"; then
8962 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8963 fi
8964 ;;
8965 esac
8966 else
8967 # PORTME Check for flag to pass linker flags through the system compiler.
8968 case $host_os in
8969 aix*)
8970 lt_prog_compiler_wl='-Wl,'
8971 if test "$host_cpu" = ia64; then
8972 # AIX 5 now supports IA64 processor
8973 lt_prog_compiler_static='-Bstatic'
8974 else
8975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8976 fi
8977 ;;
8978
8979 mingw* | cygwin* | pw32* | os2* | cegcc*)
8980 # This hack is so that the source file can tell whether it is being
8981 # built for inclusion in a dll (and should export symbols for example).
8982 lt_prog_compiler_pic='-DDLL_EXPORT'
8983 ;;
8984
8985 hpux9* | hpux10* | hpux11*)
8986 lt_prog_compiler_wl='-Wl,'
8987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8988 # not for PA HP-UX.
8989 case $host_cpu in
8990 hppa*64*|ia64*)
8991 # +Z the default
8992 ;;
8993 *)
8994 lt_prog_compiler_pic='+Z'
8995 ;;
8996 esac
8997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8998 lt_prog_compiler_static='${wl}-a ${wl}archive'
8999 ;;
9000
9001 irix5* | irix6* | nonstopux*)
9002 lt_prog_compiler_wl='-Wl,'
9003 # PIC (with -KPIC) is the default.
9004 lt_prog_compiler_static='-non_shared'
9005 ;;
9006
9007 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9008 case $cc_basename in
9009 # old Intel for x86_64 which still supported -KPIC.
9010 ecc*)
9011 lt_prog_compiler_wl='-Wl,'
9012 lt_prog_compiler_pic='-KPIC'
9013 lt_prog_compiler_static='-static'
9014 ;;
9015 # icc used to be incompatible with GCC.
9016 # ICC 10 doesn't accept -KPIC any more.
9017 icc* | ifort*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-fPIC'
9020 lt_prog_compiler_static='-static'
9021 ;;
9022 # Lahey Fortran 8.1.
9023 lf95*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_pic='--shared'
9026 lt_prog_compiler_static='--static'
9027 ;;
9028 nagfor*)
9029 # NAG Fortran compiler
9030 lt_prog_compiler_wl='-Wl,-Wl,,'
9031 lt_prog_compiler_pic='-PIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 ;;
9034 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9035 # Portland Group compilers (*not* the Pentium gcc compiler,
9036 # which looks to be a dead project)
9037 lt_prog_compiler_wl='-Wl,'
9038 lt_prog_compiler_pic='-fpic'
9039 lt_prog_compiler_static='-Bstatic'
9040 ;;
9041 ccc*)
9042 lt_prog_compiler_wl='-Wl,'
9043 # All Alpha code is PIC.
9044 lt_prog_compiler_static='-non_shared'
9045 ;;
9046 xl* | bgxl* | bgf* | mpixl*)
9047 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9048 lt_prog_compiler_wl='-Wl,'
9049 lt_prog_compiler_pic='-qpic'
9050 lt_prog_compiler_static='-qstaticlink'
9051 ;;
9052 *)
9053 case `$CC -V 2>&1 | sed 5q` in
9054 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9056 lt_prog_compiler_pic='-KPIC'
9057 lt_prog_compiler_static='-Bstatic'
9058 lt_prog_compiler_wl=''
9059 ;;
9060 *Sun\ F* | *Sun*Fortran*)
9061 lt_prog_compiler_pic='-KPIC'
9062 lt_prog_compiler_static='-Bstatic'
9063 lt_prog_compiler_wl='-Qoption ld '
9064 ;;
9065 *Sun\ C*)
9066 # Sun C 5.9
9067 lt_prog_compiler_pic='-KPIC'
9068 lt_prog_compiler_static='-Bstatic'
9069 lt_prog_compiler_wl='-Wl,'
9070 ;;
9071 *Intel*\ [CF]*Compiler*)
9072 lt_prog_compiler_wl='-Wl,'
9073 lt_prog_compiler_pic='-fPIC'
9074 lt_prog_compiler_static='-static'
9075 ;;
9076 *Portland\ Group*)
9077 lt_prog_compiler_wl='-Wl,'
9078 lt_prog_compiler_pic='-fpic'
9079 lt_prog_compiler_static='-Bstatic'
9080 ;;
9081 esac
9082 ;;
9083 esac
9084 ;;
9085
9086 newsos6)
9087 lt_prog_compiler_pic='-KPIC'
9088 lt_prog_compiler_static='-Bstatic'
9089 ;;
9090
9091 *nto* | *qnx*)
9092 # QNX uses GNU C++, but need to define -shared option too, otherwise
9093 # it will coredump.
9094 lt_prog_compiler_pic='-fPIC -shared'
9095 ;;
9096
9097 osf3* | osf4* | osf5*)
9098 lt_prog_compiler_wl='-Wl,'
9099 # All OSF/1 code is PIC.
9100 lt_prog_compiler_static='-non_shared'
9101 ;;
9102
9103 rdos*)
9104 lt_prog_compiler_static='-non_shared'
9105 ;;
9106
9107 solaris*)
9108 lt_prog_compiler_pic='-KPIC'
9109 lt_prog_compiler_static='-Bstatic'
9110 case $cc_basename in
9111 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9112 lt_prog_compiler_wl='-Qoption ld ';;
9113 *)
9114 lt_prog_compiler_wl='-Wl,';;
9115 esac
9116 ;;
9117
9118 sunos4*)
9119 lt_prog_compiler_wl='-Qoption ld '
9120 lt_prog_compiler_pic='-PIC'
9121 lt_prog_compiler_static='-Bstatic'
9122 ;;
9123
9124 sysv4 | sysv4.2uw2* | sysv4.3*)
9125 lt_prog_compiler_wl='-Wl,'
9126 lt_prog_compiler_pic='-KPIC'
9127 lt_prog_compiler_static='-Bstatic'
9128 ;;
9129
9130 sysv4*MP*)
9131 if test -d /usr/nec ;then
9132 lt_prog_compiler_pic='-Kconform_pic'
9133 lt_prog_compiler_static='-Bstatic'
9134 fi
9135 ;;
9136
9137 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9138 lt_prog_compiler_wl='-Wl,'
9139 lt_prog_compiler_pic='-KPIC'
9140 lt_prog_compiler_static='-Bstatic'
9141 ;;
9142
9143 unicos*)
9144 lt_prog_compiler_wl='-Wl,'
9145 lt_prog_compiler_can_build_shared=no
9146 ;;
9147
9148 uts4*)
9149 lt_prog_compiler_pic='-pic'
9150 lt_prog_compiler_static='-Bstatic'
9151 ;;
9152
9153 *)
9154 lt_prog_compiler_can_build_shared=no
9155 ;;
9156 esac
9157 fi
9158
9159 case $host_os in
9160 # For platforms which do not support PIC, -DPIC is meaningless:
9161 *djgpp*)
9162 lt_prog_compiler_pic=
9163 ;;
9164 *)
9165 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9166 ;;
9167 esac
9168
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9170 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9171 if ${lt_cv_prog_compiler_pic+:} false; then :
9172 $as_echo_n "(cached) " >&6
9173 else
9174 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9175 fi
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9177 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9179
9180 #
9181 # Check to make sure the PIC flag actually works.
9182 #
9183 if test -n "$lt_prog_compiler_pic"; then
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9185 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9186 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 lt_cv_prog_compiler_pic_works=no
9190 ac_outfile=conftest.$ac_objext
9191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9192 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9193 # Insert the option either (1) after the last *FLAGS variable, or
9194 # (2) before a word containing "conftest.", or (3) at the end.
9195 # Note that $ac_compile itself does not contain backslashes and begins
9196 # with a dollar sign (not a hyphen), so the echo should work correctly.
9197 # The option is referenced via a variable to avoid confusing sed.
9198 lt_compile=`echo "$ac_compile" | $SED \
9199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9201 -e 's:$: $lt_compiler_flag:'`
9202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9203 (eval "$lt_compile" 2>conftest.err)
9204 ac_status=$?
9205 cat conftest.err >&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 if (exit $ac_status) && test -s "$ac_outfile"; then
9208 # The compiler can only warn and ignore the option if not recognized
9209 # So say no if there are warnings other than the usual output.
9210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9213 lt_cv_prog_compiler_pic_works=yes
9214 fi
9215 fi
9216 $RM conftest*
9217
9218 fi
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9220 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9221
9222 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9223 case $lt_prog_compiler_pic in
9224 "" | " "*) ;;
9225 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9226 esac
9227 else
9228 lt_prog_compiler_pic=
9229 lt_prog_compiler_can_build_shared=no
9230 fi
9231
9232 fi
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244 #
9245 # Check to make sure the static flag actually works.
9246 #
9247 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9249 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9250 if ${lt_cv_prog_compiler_static_works+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 lt_cv_prog_compiler_static_works=no
9254 save_LDFLAGS="$LDFLAGS"
9255 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9256 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9257 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9258 # The linker can only warn and ignore the option if not recognized
9259 # So say no if there are warnings
9260 if test -s conftest.err; then
9261 # Append any errors to the config.log.
9262 cat conftest.err 1>&5
9263 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9265 if diff conftest.exp conftest.er2 >/dev/null; then
9266 lt_cv_prog_compiler_static_works=yes
9267 fi
9268 else
9269 lt_cv_prog_compiler_static_works=yes
9270 fi
9271 fi
9272 $RM -r conftest*
9273 LDFLAGS="$save_LDFLAGS"
9274
9275 fi
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9277 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9278
9279 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9280 :
9281 else
9282 lt_prog_compiler_static=
9283 fi
9284
9285
9286
9287
9288
9289
9290
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9292 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9293 if ${lt_cv_prog_compiler_c_o+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 lt_cv_prog_compiler_c_o=no
9297 $RM -r conftest 2>/dev/null
9298 mkdir conftest
9299 cd conftest
9300 mkdir out
9301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302
9303 lt_compiler_flag="-o out/conftest2.$ac_objext"
9304 # Insert the option either (1) after the last *FLAGS variable, or
9305 # (2) before a word containing "conftest.", or (3) at the end.
9306 # Note that $ac_compile itself does not contain backslashes and begins
9307 # with a dollar sign (not a hyphen), so the echo should work correctly.
9308 lt_compile=`echo "$ac_compile" | $SED \
9309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9311 -e 's:$: $lt_compiler_flag:'`
9312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9313 (eval "$lt_compile" 2>out/conftest.err)
9314 ac_status=$?
9315 cat out/conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9318 then
9319 # The compiler can only warn and ignore the option if not recognized
9320 # So say no if there are warnings
9321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9322 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9323 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9324 lt_cv_prog_compiler_c_o=yes
9325 fi
9326 fi
9327 chmod u+w . 2>&5
9328 $RM conftest*
9329 # SGI C++ compiler will create directory out/ii_files/ for
9330 # template instantiation
9331 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9332 $RM out/* && rmdir out
9333 cd ..
9334 $RM -r conftest
9335 $RM conftest*
9336
9337 fi
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9339 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9340
9341
9342
9343
9344
9345
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9348 if ${lt_cv_prog_compiler_c_o+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 lt_cv_prog_compiler_c_o=no
9352 $RM -r conftest 2>/dev/null
9353 mkdir conftest
9354 cd conftest
9355 mkdir out
9356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9357
9358 lt_compiler_flag="-o out/conftest2.$ac_objext"
9359 # Insert the option either (1) after the last *FLAGS variable, or
9360 # (2) before a word containing "conftest.", or (3) at the end.
9361 # Note that $ac_compile itself does not contain backslashes and begins
9362 # with a dollar sign (not a hyphen), so the echo should work correctly.
9363 lt_compile=`echo "$ac_compile" | $SED \
9364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9366 -e 's:$: $lt_compiler_flag:'`
9367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9368 (eval "$lt_compile" 2>out/conftest.err)
9369 ac_status=$?
9370 cat out/conftest.err >&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9373 then
9374 # The compiler can only warn and ignore the option if not recognized
9375 # So say no if there are warnings
9376 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9377 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9378 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9379 lt_cv_prog_compiler_c_o=yes
9380 fi
9381 fi
9382 chmod u+w . 2>&5
9383 $RM conftest*
9384 # SGI C++ compiler will create directory out/ii_files/ for
9385 # template instantiation
9386 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9387 $RM out/* && rmdir out
9388 cd ..
9389 $RM -r conftest
9390 $RM conftest*
9391
9392 fi
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9394 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9395
9396
9397
9398
9399 hard_links="nottested"
9400 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9401 # do not overwrite the value of need_locks provided by the user
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9403 $as_echo_n "checking if we can lock with hard links... " >&6; }
9404 hard_links=yes
9405 $RM conftest*
9406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9407 touch conftest.a
9408 ln conftest.a conftest.b 2>&5 || hard_links=no
9409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9411 $as_echo "$hard_links" >&6; }
9412 if test "$hard_links" = no; then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9414 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9415 need_locks=warn
9416 fi
9417 else
9418 need_locks=no
9419 fi
9420
9421
9422
9423
9424
9425
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9427 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9428
9429 runpath_var=
9430 allow_undefined_flag=
9431 always_export_symbols=no
9432 archive_cmds=
9433 archive_expsym_cmds=
9434 compiler_needs_object=no
9435 enable_shared_with_static_runtimes=no
9436 export_dynamic_flag_spec=
9437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9438 hardcode_automatic=no
9439 hardcode_direct=no
9440 hardcode_direct_absolute=no
9441 hardcode_libdir_flag_spec=
9442 hardcode_libdir_separator=
9443 hardcode_minus_L=no
9444 hardcode_shlibpath_var=unsupported
9445 inherit_rpath=no
9446 link_all_deplibs=unknown
9447 module_cmds=
9448 module_expsym_cmds=
9449 old_archive_from_new_cmds=
9450 old_archive_from_expsyms_cmds=
9451 thread_safe_flag_spec=
9452 whole_archive_flag_spec=
9453 # include_expsyms should be a list of space-separated symbols to be *always*
9454 # included in the symbol list
9455 include_expsyms=
9456 # exclude_expsyms can be an extended regexp of symbols to exclude
9457 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9458 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9459 # as well as any symbol that contains `d'.
9460 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9461 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9462 # platforms (ab)use it in PIC code, but their linkers get confused if
9463 # the symbol is explicitly referenced. Since portable code cannot
9464 # rely on this symbol name, it's probably fine to never include it in
9465 # preloaded symbol tables.
9466 # Exclude shared library initialization/finalization symbols.
9467 extract_expsyms_cmds=
9468
9469 case $host_os in
9470 cygwin* | mingw* | pw32* | cegcc*)
9471 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9472 # When not using gcc, we currently assume that we are using
9473 # Microsoft Visual C++.
9474 if test "$GCC" != yes; then
9475 with_gnu_ld=no
9476 fi
9477 ;;
9478 interix*)
9479 # we just hope/assume this is gcc and not c89 (= MSVC++)
9480 with_gnu_ld=yes
9481 ;;
9482 openbsd*)
9483 with_gnu_ld=no
9484 ;;
9485 linux* | k*bsd*-gnu | gnu*)
9486 link_all_deplibs=no
9487 ;;
9488 esac
9489
9490 ld_shlibs=yes
9491
9492 # On some targets, GNU ld is compatible enough with the native linker
9493 # that we're better off using the native interface for both.
9494 lt_use_gnu_ld_interface=no
9495 if test "$with_gnu_ld" = yes; then
9496 case $host_os in
9497 aix*)
9498 # The AIX port of GNU ld has always aspired to compatibility
9499 # with the native linker. However, as the warning in the GNU ld
9500 # block says, versions before 2.19.5* couldn't really create working
9501 # shared libraries, regardless of the interface used.
9502 case `$LD -v 2>&1` in
9503 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9504 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9505 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9506 *)
9507 lt_use_gnu_ld_interface=yes
9508 ;;
9509 esac
9510 ;;
9511 *)
9512 lt_use_gnu_ld_interface=yes
9513 ;;
9514 esac
9515 fi
9516
9517 if test "$lt_use_gnu_ld_interface" = yes; then
9518 # If archive_cmds runs LD, not CC, wlarc should be empty
9519 wlarc='${wl}'
9520
9521 # Set some defaults for GNU ld with shared library support. These
9522 # are reset later if shared libraries are not supported. Putting them
9523 # here allows them to be overridden if necessary.
9524 runpath_var=LD_RUN_PATH
9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 export_dynamic_flag_spec='${wl}--export-dynamic'
9527 # ancient GNU ld didn't support --whole-archive et. al.
9528 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9529 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9530 else
9531 whole_archive_flag_spec=
9532 fi
9533 supports_anon_versioning=no
9534 case `$LD -v 2>&1` in
9535 *GNU\ gold*) supports_anon_versioning=yes ;;
9536 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9537 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9538 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9539 *\ 2.11.*) ;; # other 2.11 versions
9540 *) supports_anon_versioning=yes ;;
9541 esac
9542
9543 # See if GNU ld supports shared libraries.
9544 case $host_os in
9545 aix[3-9]*)
9546 # On AIX/PPC, the GNU linker is very broken
9547 if test "$host_cpu" != ia64; then
9548 ld_shlibs=no
9549 cat <<_LT_EOF 1>&2
9550
9551 *** Warning: the GNU linker, at least up to release 2.19, is reported
9552 *** to be unable to reliably create shared libraries on AIX.
9553 *** Therefore, libtool is disabling shared libraries support. If you
9554 *** really care for shared libraries, you may want to install binutils
9555 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9556 *** You will then need to restart the configuration process.
9557
9558 _LT_EOF
9559 fi
9560 ;;
9561
9562 amigaos*)
9563 case $host_cpu in
9564 powerpc)
9565 # see comment about AmigaOS4 .so support
9566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9567 archive_expsym_cmds=''
9568 ;;
9569 m68k)
9570 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)'
9571 hardcode_libdir_flag_spec='-L$libdir'
9572 hardcode_minus_L=yes
9573 ;;
9574 esac
9575 ;;
9576
9577 beos*)
9578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9579 allow_undefined_flag=unsupported
9580 # Joseph Beckenbach <[email protected]> says some releases of gcc
9581 # support --undefined. This deserves some investigation. FIXME
9582 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 else
9584 ld_shlibs=no
9585 fi
9586 ;;
9587
9588 cygwin* | mingw* | pw32* | cegcc*)
9589 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9590 # as there is no search path for DLLs.
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 export_dynamic_flag_spec='${wl}--export-all-symbols'
9593 allow_undefined_flag=unsupported
9594 always_export_symbols=no
9595 enable_shared_with_static_runtimes=yes
9596 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9597 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9598
9599 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9601 # If the export-symbols file already is a .def file (1st line
9602 # is EXPORTS), use it as is; otherwise, prepend...
9603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9604 cp $export_symbols $output_objdir/$soname.def;
9605 else
9606 echo EXPORTS > $output_objdir/$soname.def;
9607 cat $export_symbols >> $output_objdir/$soname.def;
9608 fi~
9609 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9610 else
9611 ld_shlibs=no
9612 fi
9613 ;;
9614
9615 haiku*)
9616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617 link_all_deplibs=yes
9618 ;;
9619
9620 interix[3-9]*)
9621 hardcode_direct=no
9622 hardcode_shlibpath_var=no
9623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9624 export_dynamic_flag_spec='${wl}-E'
9625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9626 # Instead, shared libraries are loaded at an image base (0x10000000 by
9627 # default) and relocated if they conflict, which is a slow very memory
9628 # consuming and fragmenting process. To avoid this, we pick a random,
9629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9632 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9633 ;;
9634
9635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9636 tmp_diet=no
9637 if test "$host_os" = linux-dietlibc; then
9638 case $cc_basename in
9639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9640 esac
9641 fi
9642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9643 && test "$tmp_diet" = no
9644 then
9645 tmp_addflag=' $pic_flag'
9646 tmp_sharedflag='-shared'
9647 case $cc_basename,$host_cpu in
9648 pgcc*) # Portland Group C compiler
9649 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9650 tmp_addflag=' $pic_flag'
9651 ;;
9652 pgf77* | pgf90* | pgf95* | pgfortran*)
9653 # Portland Group f77 and f90 compilers
9654 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9655 tmp_addflag=' $pic_flag -Mnomain' ;;
9656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9657 tmp_addflag=' -i_dynamic' ;;
9658 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9659 tmp_addflag=' -i_dynamic -nofor_main' ;;
9660 ifc* | ifort*) # Intel Fortran compiler
9661 tmp_addflag=' -nofor_main' ;;
9662 lf95*) # Lahey Fortran 8.1
9663 whole_archive_flag_spec=
9664 tmp_sharedflag='--shared' ;;
9665 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9666 tmp_sharedflag='-qmkshrobj'
9667 tmp_addflag= ;;
9668 nvcc*) # Cuda Compiler Driver 2.2
9669 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9670 compiler_needs_object=yes
9671 ;;
9672 esac
9673 case `$CC -V 2>&1 | sed 5q` in
9674 *Sun\ C*) # Sun C 5.9
9675 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9676 compiler_needs_object=yes
9677 tmp_sharedflag='-G' ;;
9678 *Sun\ F*) # Sun Fortran 8.3
9679 tmp_sharedflag='-G' ;;
9680 esac
9681 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682
9683 if test "x$supports_anon_versioning" = xyes; then
9684 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9686 echo "local: *; };" >> $output_objdir/$libname.ver~
9687 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9688 fi
9689
9690 case $cc_basename in
9691 xlf* | bgf* | bgxlf* | mpixlf*)
9692 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9693 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9696 if test "x$supports_anon_versioning" = xyes; then
9697 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9698 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9699 echo "local: *; };" >> $output_objdir/$libname.ver~
9700 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9701 fi
9702 ;;
9703 esac
9704 else
9705 ld_shlibs=no
9706 fi
9707 ;;
9708
9709 netbsd* | netbsdelf*-gnu)
9710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9711 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9712 wlarc=
9713 else
9714 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9716 fi
9717 ;;
9718
9719 solaris*)
9720 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9721 ld_shlibs=no
9722 cat <<_LT_EOF 1>&2
9723
9724 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9725 *** create shared libraries on Solaris systems. Therefore, libtool
9726 *** is disabling shared libraries support. We urge you to upgrade GNU
9727 *** binutils to release 2.9.1 or newer. Another option is to modify
9728 *** your PATH or compiler configuration so that the native linker is
9729 *** used, and then restart.
9730
9731 _LT_EOF
9732 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9733 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9734 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9735 else
9736 ld_shlibs=no
9737 fi
9738 ;;
9739
9740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9741 case `$LD -v 2>&1` in
9742 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9743 ld_shlibs=no
9744 cat <<_LT_EOF 1>&2
9745
9746 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9747 *** reliably create shared libraries on SCO systems. Therefore, libtool
9748 *** is disabling shared libraries support. We urge you to upgrade GNU
9749 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9750 *** your PATH or compiler configuration so that the native linker is
9751 *** used, and then restart.
9752
9753 _LT_EOF
9754 ;;
9755 *)
9756 # For security reasons, it is highly recommended that you always
9757 # use absolute paths for naming shared libraries, and exclude the
9758 # DT_RUNPATH tag from executables and libraries. But doing so
9759 # requires that you compile everything twice, which is a pain.
9760 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9764 else
9765 ld_shlibs=no
9766 fi
9767 ;;
9768 esac
9769 ;;
9770
9771 sunos4*)
9772 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9773 wlarc=
9774 hardcode_direct=yes
9775 hardcode_shlibpath_var=no
9776 ;;
9777
9778 *)
9779 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9780 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9782 else
9783 ld_shlibs=no
9784 fi
9785 ;;
9786 esac
9787
9788 if test "$ld_shlibs" = no; then
9789 runpath_var=
9790 hardcode_libdir_flag_spec=
9791 export_dynamic_flag_spec=
9792 whole_archive_flag_spec=
9793 fi
9794 else
9795 # PORTME fill in a description of your system's linker (not GNU ld)
9796 case $host_os in
9797 aix3*)
9798 allow_undefined_flag=unsupported
9799 always_export_symbols=yes
9800 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'
9801 # Note: this linker hardcodes the directories in LIBPATH if there
9802 # are no directories specified by -L.
9803 hardcode_minus_L=yes
9804 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9805 # Neither direct hardcoding nor static linking is supported with a
9806 # broken collect2.
9807 hardcode_direct=unsupported
9808 fi
9809 ;;
9810
9811 aix[4-9]*)
9812 if test "$host_cpu" = ia64; then
9813 # On IA64, the linker does run time linking by default, so we don't
9814 # have to do anything special.
9815 aix_use_runtimelinking=no
9816 exp_sym_flag='-Bexport'
9817 no_entry_flag=""
9818 else
9819 # If we're using GNU nm, then we don't want the "-C" option.
9820 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9821 # Also, AIX nm treats weak defined symbols like other global
9822 # defined symbols, whereas GNU nm marks them as "W".
9823 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9824 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9825 else
9826 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'
9827 fi
9828 aix_use_runtimelinking=no
9829
9830 # Test if we are trying to use run time linking or normal
9831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9832 # need to do runtime linking.
9833 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9834 for ld_flag in $LDFLAGS; do
9835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9836 aix_use_runtimelinking=yes
9837 break
9838 fi
9839 done
9840 ;;
9841 esac
9842
9843 exp_sym_flag='-bexport'
9844 no_entry_flag='-bnoentry'
9845 fi
9846
9847 # When large executables or shared objects are built, AIX ld can
9848 # have problems creating the table of contents. If linking a library
9849 # or program results in "error TOC overflow" add -mminimal-toc to
9850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9852
9853 archive_cmds=''
9854 hardcode_direct=yes
9855 hardcode_direct_absolute=yes
9856 hardcode_libdir_separator=':'
9857 link_all_deplibs=yes
9858 file_list_spec='${wl}-f,'
9859
9860 if test "$GCC" = yes; then
9861 case $host_os in aix4.[012]|aix4.[012].*)
9862 # We only want to do this on AIX 4.2 and lower, the check
9863 # below for broken collect2 doesn't work under 4.3+
9864 collect2name=`${CC} -print-prog-name=collect2`
9865 if test -f "$collect2name" &&
9866 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9867 then
9868 # We have reworked collect2
9869 :
9870 else
9871 # We have old collect2
9872 hardcode_direct=unsupported
9873 # It fails to find uninstalled libraries when the uninstalled
9874 # path is not listed in the libpath. Setting hardcode_minus_L
9875 # to unsupported forces relinking
9876 hardcode_minus_L=yes
9877 hardcode_libdir_flag_spec='-L$libdir'
9878 hardcode_libdir_separator=
9879 fi
9880 ;;
9881 esac
9882 shared_flag='-shared'
9883 if test "$aix_use_runtimelinking" = yes; then
9884 shared_flag="$shared_flag "'${wl}-G'
9885 fi
9886 link_all_deplibs=no
9887 else
9888 # not using gcc
9889 if test "$host_cpu" = ia64; then
9890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9891 # chokes on -Wl,-G. The following line is correct:
9892 shared_flag='-G'
9893 else
9894 if test "$aix_use_runtimelinking" = yes; then
9895 shared_flag='${wl}-G'
9896 else
9897 shared_flag='${wl}-bM:SRE'
9898 fi
9899 fi
9900 fi
9901
9902 export_dynamic_flag_spec='${wl}-bexpall'
9903 # It seems that -bexpall does not export symbols beginning with
9904 # underscore (_), so it is better to generate a list of symbols to export.
9905 always_export_symbols=yes
9906 if test "$aix_use_runtimelinking" = yes; then
9907 # Warning - without using the other runtime loading flags (-brtl),
9908 # -berok will link without error, but may produce a broken library.
9909 allow_undefined_flag='-berok'
9910 # Determine the default libpath from the value encoded in an
9911 # empty executable.
9912 if test "${lt_cv_aix_libpath+set}" = set; then
9913 aix_libpath=$lt_cv_aix_libpath
9914 else
9915 if ${lt_cv_aix_libpath_+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9920
9921 int
9922 main ()
9923 {
9924
9925 ;
9926 return 0;
9927 }
9928 _ACEOF
9929 if ac_fn_c_try_link "$LINENO"; then :
9930
9931 lt_aix_libpath_sed='
9932 /Import File Strings/,/^$/ {
9933 /^0/ {
9934 s/^0 *\([^ ]*\) *$/\1/
9935 p
9936 }
9937 }'
9938 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9939 # Check for a 64-bit object if we didn't find anything.
9940 if test -z "$lt_cv_aix_libpath_"; then
9941 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9942 fi
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 if test -z "$lt_cv_aix_libpath_"; then
9947 lt_cv_aix_libpath_="/usr/lib:/lib"
9948 fi
9949
9950 fi
9951
9952 aix_libpath=$lt_cv_aix_libpath_
9953 fi
9954
9955 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9956 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9957 else
9958 if test "$host_cpu" = ia64; then
9959 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9960 allow_undefined_flag="-z nodefs"
9961 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9962 else
9963 # Determine the default libpath from the value encoded in an
9964 # empty executable.
9965 if test "${lt_cv_aix_libpath+set}" = set; then
9966 aix_libpath=$lt_cv_aix_libpath
9967 else
9968 if ${lt_cv_aix_libpath_+:} false; then :
9969 $as_echo_n "(cached) " >&6
9970 else
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973
9974 int
9975 main ()
9976 {
9977
9978 ;
9979 return 0;
9980 }
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"; then :
9983
9984 lt_aix_libpath_sed='
9985 /Import File Strings/,/^$/ {
9986 /^0/ {
9987 s/^0 *\([^ ]*\) *$/\1/
9988 p
9989 }
9990 }'
9991 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9992 # Check for a 64-bit object if we didn't find anything.
9993 if test -z "$lt_cv_aix_libpath_"; then
9994 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9995 fi
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998 conftest$ac_exeext conftest.$ac_ext
9999 if test -z "$lt_cv_aix_libpath_"; then
10000 lt_cv_aix_libpath_="/usr/lib:/lib"
10001 fi
10002
10003 fi
10004
10005 aix_libpath=$lt_cv_aix_libpath_
10006 fi
10007
10008 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10009 # Warning - without using the other run time loading flags,
10010 # -berok will link without error, but may produce a broken library.
10011 no_undefined_flag=' ${wl}-bernotok'
10012 allow_undefined_flag=' ${wl}-berok'
10013 if test "$with_gnu_ld" = yes; then
10014 # We only use this code for GNU lds that support --whole-archive.
10015 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10016 else
10017 # Exported symbols can be pulled into shared objects from archives
10018 whole_archive_flag_spec='$convenience'
10019 fi
10020 archive_cmds_need_lc=yes
10021 # This is similar to how AIX traditionally builds its shared libraries.
10022 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10023 fi
10024 fi
10025 ;;
10026
10027 amigaos*)
10028 case $host_cpu in
10029 powerpc)
10030 # see comment about AmigaOS4 .so support
10031 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10032 archive_expsym_cmds=''
10033 ;;
10034 m68k)
10035 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)'
10036 hardcode_libdir_flag_spec='-L$libdir'
10037 hardcode_minus_L=yes
10038 ;;
10039 esac
10040 ;;
10041
10042 bsdi[45]*)
10043 export_dynamic_flag_spec=-rdynamic
10044 ;;
10045
10046 cygwin* | mingw* | pw32* | cegcc*)
10047 # When not using gcc, we currently assume that we are using
10048 # Microsoft Visual C++.
10049 # hardcode_libdir_flag_spec is actually meaningless, as there is
10050 # no search path for DLLs.
10051 case $cc_basename in
10052 cl*)
10053 # Native MSVC
10054 hardcode_libdir_flag_spec=' '
10055 allow_undefined_flag=unsupported
10056 always_export_symbols=yes
10057 file_list_spec='@'
10058 # Tell ltmain to make .lib files, not .a files.
10059 libext=lib
10060 # Tell ltmain to make .dll files, not .so files.
10061 shrext_cmds=".dll"
10062 # FIXME: Setting linknames here is a bad hack.
10063 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10064 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10065 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10066 else
10067 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10068 fi~
10069 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10070 linknames='
10071 # The linker will not automatically build a static lib if we build a DLL.
10072 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10073 enable_shared_with_static_runtimes=yes
10074 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10076 # Don't use ranlib
10077 old_postinstall_cmds='chmod 644 $oldlib'
10078 postlink_cmds='lt_outputfile="@OUTPUT@"~
10079 lt_tool_outputfile="@TOOL_OUTPUT@"~
10080 case $lt_outputfile in
10081 *.exe|*.EXE) ;;
10082 *)
10083 lt_outputfile="$lt_outputfile.exe"
10084 lt_tool_outputfile="$lt_tool_outputfile.exe"
10085 ;;
10086 esac~
10087 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10088 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10089 $RM "$lt_outputfile.manifest";
10090 fi'
10091 ;;
10092 *)
10093 # Assume MSVC wrapper
10094 hardcode_libdir_flag_spec=' '
10095 allow_undefined_flag=unsupported
10096 # Tell ltmain to make .lib files, not .a files.
10097 libext=lib
10098 # Tell ltmain to make .dll files, not .so files.
10099 shrext_cmds=".dll"
10100 # FIXME: Setting linknames here is a bad hack.
10101 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10102 # The linker will automatically build a .lib file if we build a DLL.
10103 old_archive_from_new_cmds='true'
10104 # FIXME: Should let the user specify the lib program.
10105 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10106 enable_shared_with_static_runtimes=yes
10107 ;;
10108 esac
10109 ;;
10110
10111 darwin* | rhapsody*)
10112
10113
10114 archive_cmds_need_lc=no
10115 hardcode_direct=no
10116 hardcode_automatic=yes
10117 hardcode_shlibpath_var=unsupported
10118 if test "$lt_cv_ld_force_load" = "yes"; then
10119 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10120
10121 else
10122 whole_archive_flag_spec=''
10123 fi
10124 link_all_deplibs=yes
10125 allow_undefined_flag="$_lt_dar_allow_undefined"
10126 case $cc_basename in
10127 ifort*) _lt_dar_can_shared=yes ;;
10128 *) _lt_dar_can_shared=$GCC ;;
10129 esac
10130 if test "$_lt_dar_can_shared" = "yes"; then
10131 output_verbose_link_cmd=func_echo_all
10132 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10133 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10134 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10135 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10136
10137 else
10138 ld_shlibs=no
10139 fi
10140
10141 ;;
10142
10143 dgux*)
10144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_libdir_flag_spec='-L$libdir'
10146 hardcode_shlibpath_var=no
10147 ;;
10148
10149 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10150 # support. Future versions do this automatically, but an explicit c++rt0.o
10151 # does not break anything, and helps significantly (at the cost of a little
10152 # extra space).
10153 freebsd2.2*)
10154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10155 hardcode_libdir_flag_spec='-R$libdir'
10156 hardcode_direct=yes
10157 hardcode_shlibpath_var=no
10158 ;;
10159
10160 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10161 freebsd2.*)
10162 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_direct=yes
10164 hardcode_minus_L=yes
10165 hardcode_shlibpath_var=no
10166 ;;
10167
10168 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10169 freebsd* | dragonfly*)
10170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10171 hardcode_libdir_flag_spec='-R$libdir'
10172 hardcode_direct=yes
10173 hardcode_shlibpath_var=no
10174 ;;
10175
10176 hpux9*)
10177 if test "$GCC" = yes; then
10178 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10179 else
10180 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'
10181 fi
10182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10183 hardcode_libdir_separator=:
10184 hardcode_direct=yes
10185
10186 # hardcode_minus_L: Not really in the search PATH,
10187 # but as the default location of the library.
10188 hardcode_minus_L=yes
10189 export_dynamic_flag_spec='${wl}-E'
10190 ;;
10191
10192 hpux10*)
10193 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10194 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10195 else
10196 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10197 fi
10198 if test "$with_gnu_ld" = no; then
10199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10200 hardcode_libdir_separator=:
10201 hardcode_direct=yes
10202 hardcode_direct_absolute=yes
10203 export_dynamic_flag_spec='${wl}-E'
10204 # hardcode_minus_L: Not really in the search PATH,
10205 # but as the default location of the library.
10206 hardcode_minus_L=yes
10207 fi
10208 ;;
10209
10210 hpux11*)
10211 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10212 case $host_cpu in
10213 hppa*64*)
10214 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10215 ;;
10216 ia64*)
10217 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10218 ;;
10219 *)
10220 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10221 ;;
10222 esac
10223 else
10224 case $host_cpu in
10225 hppa*64*)
10226 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10227 ;;
10228 ia64*)
10229 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10230 ;;
10231 *)
10232
10233 # Older versions of the 11.00 compiler do not understand -b yet
10234 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10236 $as_echo_n "checking if $CC understands -b... " >&6; }
10237 if ${lt_cv_prog_compiler__b+:} false; then :
10238 $as_echo_n "(cached) " >&6
10239 else
10240 lt_cv_prog_compiler__b=no
10241 save_LDFLAGS="$LDFLAGS"
10242 LDFLAGS="$LDFLAGS -b"
10243 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10244 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10245 # The linker can only warn and ignore the option if not recognized
10246 # So say no if there are warnings
10247 if test -s conftest.err; then
10248 # Append any errors to the config.log.
10249 cat conftest.err 1>&5
10250 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10252 if diff conftest.exp conftest.er2 >/dev/null; then
10253 lt_cv_prog_compiler__b=yes
10254 fi
10255 else
10256 lt_cv_prog_compiler__b=yes
10257 fi
10258 fi
10259 $RM -r conftest*
10260 LDFLAGS="$save_LDFLAGS"
10261
10262 fi
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10264 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10265
10266 if test x"$lt_cv_prog_compiler__b" = xyes; then
10267 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10268 else
10269 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10270 fi
10271
10272 ;;
10273 esac
10274 fi
10275 if test "$with_gnu_ld" = no; then
10276 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10277 hardcode_libdir_separator=:
10278
10279 case $host_cpu in
10280 hppa*64*|ia64*)
10281 hardcode_direct=no
10282 hardcode_shlibpath_var=no
10283 ;;
10284 *)
10285 hardcode_direct=yes
10286 hardcode_direct_absolute=yes
10287 export_dynamic_flag_spec='${wl}-E'
10288
10289 # hardcode_minus_L: Not really in the search PATH,
10290 # but as the default location of the library.
10291 hardcode_minus_L=yes
10292 ;;
10293 esac
10294 fi
10295 ;;
10296
10297 irix5* | irix6* | nonstopux*)
10298 if test "$GCC" = yes; then
10299 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10300 # Try to use the -exported_symbol ld option, if it does not
10301 # work, assume that -exports_file does not work either and
10302 # implicitly export all symbols.
10303 # This should be the same for all languages, so no per-tag cache variable.
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10305 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10306 if ${lt_cv_irix_exported_symbol+:} false; then :
10307 $as_echo_n "(cached) " >&6
10308 else
10309 save_LDFLAGS="$LDFLAGS"
10310 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 int foo (void) { return 0; }
10314 _ACEOF
10315 if ac_fn_c_try_link "$LINENO"; then :
10316 lt_cv_irix_exported_symbol=yes
10317 else
10318 lt_cv_irix_exported_symbol=no
10319 fi
10320 rm -f core conftest.err conftest.$ac_objext \
10321 conftest$ac_exeext conftest.$ac_ext
10322 LDFLAGS="$save_LDFLAGS"
10323 fi
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10325 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10326 if test "$lt_cv_irix_exported_symbol" = yes; then
10327 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10328 fi
10329 else
10330 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10331 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10332 fi
10333 archive_cmds_need_lc='no'
10334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10335 hardcode_libdir_separator=:
10336 inherit_rpath=yes
10337 link_all_deplibs=yes
10338 ;;
10339
10340 netbsd* | netbsdelf*-gnu)
10341 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10343 else
10344 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10345 fi
10346 hardcode_libdir_flag_spec='-R$libdir'
10347 hardcode_direct=yes
10348 hardcode_shlibpath_var=no
10349 ;;
10350
10351 newsos6)
10352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_direct=yes
10354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10355 hardcode_libdir_separator=:
10356 hardcode_shlibpath_var=no
10357 ;;
10358
10359 *nto* | *qnx*)
10360 ;;
10361
10362 openbsd*)
10363 if test -f /usr/libexec/ld.so; then
10364 hardcode_direct=yes
10365 hardcode_shlibpath_var=no
10366 hardcode_direct_absolute=yes
10367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10368 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10370 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10371 export_dynamic_flag_spec='${wl}-E'
10372 else
10373 case $host_os in
10374 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_libdir_flag_spec='-R$libdir'
10377 ;;
10378 *)
10379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10380 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10381 ;;
10382 esac
10383 fi
10384 else
10385 ld_shlibs=no
10386 fi
10387 ;;
10388
10389 os2*)
10390 hardcode_libdir_flag_spec='-L$libdir'
10391 hardcode_minus_L=yes
10392 allow_undefined_flag=unsupported
10393 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'
10394 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10395 ;;
10396
10397 osf3*)
10398 if test "$GCC" = yes; then
10399 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10400 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10401 else
10402 allow_undefined_flag=' -expect_unresolved \*'
10403 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10404 fi
10405 archive_cmds_need_lc='no'
10406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10407 hardcode_libdir_separator=:
10408 ;;
10409
10410 osf4* | osf5*) # as osf3* with the addition of -msym flag
10411 if test "$GCC" = yes; then
10412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10413 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10415 else
10416 allow_undefined_flag=' -expect_unresolved \*'
10417 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10418 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10419 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10420
10421 # Both c and cxx compiler support -rpath directly
10422 hardcode_libdir_flag_spec='-rpath $libdir'
10423 fi
10424 archive_cmds_need_lc='no'
10425 hardcode_libdir_separator=:
10426 ;;
10427
10428 solaris*)
10429 no_undefined_flag=' -z defs'
10430 if test "$GCC" = yes; then
10431 wlarc='${wl}'
10432 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10433 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10434 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10435 else
10436 case `$CC -V 2>&1` in
10437 *"Compilers 5.0"*)
10438 wlarc=''
10439 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10440 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10441 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10442 ;;
10443 *)
10444 wlarc='${wl}'
10445 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10447 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10448 ;;
10449 esac
10450 fi
10451 hardcode_libdir_flag_spec='-R$libdir'
10452 hardcode_shlibpath_var=no
10453 case $host_os in
10454 solaris2.[0-5] | solaris2.[0-5].*) ;;
10455 *)
10456 # The compiler driver will combine and reorder linker options,
10457 # but understands `-z linker_flag'. GCC discards it without `$wl',
10458 # but is careful enough not to reorder.
10459 # Supported since Solaris 2.6 (maybe 2.5.1?)
10460 if test "$GCC" = yes; then
10461 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10462 else
10463 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10464 fi
10465 ;;
10466 esac
10467 link_all_deplibs=yes
10468 ;;
10469
10470 sunos4*)
10471 if test "x$host_vendor" = xsequent; then
10472 # Use $CC to link under sequent, because it throws in some extra .o
10473 # files that make .init and .fini sections work.
10474 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10475 else
10476 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10477 fi
10478 hardcode_libdir_flag_spec='-L$libdir'
10479 hardcode_direct=yes
10480 hardcode_minus_L=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 sysv4)
10485 case $host_vendor in
10486 sni)
10487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10488 hardcode_direct=yes # is this really true???
10489 ;;
10490 siemens)
10491 ## LD is ld it makes a PLAMLIB
10492 ## CC just makes a GrossModule.
10493 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10494 reload_cmds='$CC -r -o $output$reload_objs'
10495 hardcode_direct=no
10496 ;;
10497 motorola)
10498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10499 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10500 ;;
10501 esac
10502 runpath_var='LD_RUN_PATH'
10503 hardcode_shlibpath_var=no
10504 ;;
10505
10506 sysv4.3*)
10507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10508 hardcode_shlibpath_var=no
10509 export_dynamic_flag_spec='-Bexport'
10510 ;;
10511
10512 sysv4*MP*)
10513 if test -d /usr/nec; then
10514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10515 hardcode_shlibpath_var=no
10516 runpath_var=LD_RUN_PATH
10517 hardcode_runpath_var=yes
10518 ld_shlibs=yes
10519 fi
10520 ;;
10521
10522 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10523 no_undefined_flag='${wl}-z,text'
10524 archive_cmds_need_lc=no
10525 hardcode_shlibpath_var=no
10526 runpath_var='LD_RUN_PATH'
10527
10528 if test "$GCC" = yes; then
10529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10531 else
10532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10534 fi
10535 ;;
10536
10537 sysv5* | sco3.2v5* | sco5v6*)
10538 # Note: We can NOT use -z defs as we might desire, because we do not
10539 # link with -lc, and that would cause any symbols used from libc to
10540 # always be unresolved, which means just about no library would
10541 # ever link correctly. If we're not using GNU ld we use -z text
10542 # though, which does catch some bad symbols but isn't as heavy-handed
10543 # as -z defs.
10544 no_undefined_flag='${wl}-z,text'
10545 allow_undefined_flag='${wl}-z,nodefs'
10546 archive_cmds_need_lc=no
10547 hardcode_shlibpath_var=no
10548 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10549 hardcode_libdir_separator=':'
10550 link_all_deplibs=yes
10551 export_dynamic_flag_spec='${wl}-Bexport'
10552 runpath_var='LD_RUN_PATH'
10553
10554 if test "$GCC" = yes; then
10555 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10557 else
10558 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560 fi
10561 ;;
10562
10563 uts4*)
10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_libdir_flag_spec='-L$libdir'
10566 hardcode_shlibpath_var=no
10567 ;;
10568
10569 *)
10570 ld_shlibs=no
10571 ;;
10572 esac
10573
10574 if test x$host_vendor = xsni; then
10575 case $host in
10576 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10577 export_dynamic_flag_spec='${wl}-Blargedynsym'
10578 ;;
10579 esac
10580 fi
10581 fi
10582
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10584 $as_echo "$ld_shlibs" >&6; }
10585 test "$ld_shlibs" = no && can_build_shared=no
10586
10587 with_gnu_ld=$with_gnu_ld
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603 #
10604 # Do we need to explicitly link libc?
10605 #
10606 case "x$archive_cmds_need_lc" in
10607 x|xyes)
10608 # Assume -lc should be added
10609 archive_cmds_need_lc=yes
10610
10611 if test "$enable_shared" = yes && test "$GCC" = yes; then
10612 case $archive_cmds in
10613 *'~'*)
10614 # FIXME: we may have to deal with multi-command sequences.
10615 ;;
10616 '$CC '*)
10617 # Test whether the compiler implicitly links with -lc since on some
10618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10619 # to ld, don't add -lc before -lgcc.
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10621 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10622 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10623 $as_echo_n "(cached) " >&6
10624 else
10625 $RM conftest*
10626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10627
10628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10629 (eval $ac_compile) 2>&5
10630 ac_status=$?
10631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10632 test $ac_status = 0; } 2>conftest.err; then
10633 soname=conftest
10634 lib=conftest
10635 libobjs=conftest.$ac_objext
10636 deplibs=
10637 wl=$lt_prog_compiler_wl
10638 pic_flag=$lt_prog_compiler_pic
10639 compiler_flags=-v
10640 linker_flags=-v
10641 verstring=
10642 output_objdir=.
10643 libname=conftest
10644 lt_save_allow_undefined_flag=$allow_undefined_flag
10645 allow_undefined_flag=
10646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10647 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10648 ac_status=$?
10649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10650 test $ac_status = 0; }
10651 then
10652 lt_cv_archive_cmds_need_lc=no
10653 else
10654 lt_cv_archive_cmds_need_lc=yes
10655 fi
10656 allow_undefined_flag=$lt_save_allow_undefined_flag
10657 else
10658 cat conftest.err 1>&5
10659 fi
10660 $RM conftest*
10661
10662 fi
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10664 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10665 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10666 ;;
10667 esac
10668 fi
10669 ;;
10670 esac
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10824 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10825
10826 if test "$GCC" = yes; then
10827 case $host_os in
10828 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10829 *) lt_awk_arg="/^libraries:/" ;;
10830 esac
10831 case $host_os in
10832 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10833 *) lt_sed_strip_eq="s,=/,/,g" ;;
10834 esac
10835 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10836 case $lt_search_path_spec in
10837 *\;*)
10838 # if the path contains ";" then we assume it to be the separator
10839 # otherwise default to the standard path separator (i.e. ":") - it is
10840 # assumed that no part of a normal pathname contains ";" but that should
10841 # okay in the real world where ";" in dirpaths is itself problematic.
10842 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10843 ;;
10844 *)
10845 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10846 ;;
10847 esac
10848 # Ok, now we have the path, separated by spaces, we can step through it
10849 # and add multilib dir if necessary.
10850 lt_tmp_lt_search_path_spec=
10851 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10852 for lt_sys_path in $lt_search_path_spec; do
10853 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10854 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10855 else
10856 test -d "$lt_sys_path" && \
10857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10858 fi
10859 done
10860 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10861 BEGIN {RS=" "; FS="/|\n";} {
10862 lt_foo="";
10863 lt_count=0;
10864 for (lt_i = NF; lt_i > 0; lt_i--) {
10865 if ($lt_i != "" && $lt_i != ".") {
10866 if ($lt_i == "..") {
10867 lt_count++;
10868 } else {
10869 if (lt_count == 0) {
10870 lt_foo="/" $lt_i lt_foo;
10871 } else {
10872 lt_count--;
10873 }
10874 }
10875 }
10876 }
10877 if (lt_foo != "") { lt_freq[lt_foo]++; }
10878 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10879 }'`
10880 # AWK program above erroneously prepends '/' to C:/dos/paths
10881 # for these hosts.
10882 case $host_os in
10883 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10884 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10885 esac
10886 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10887 else
10888 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10889 fi
10890 library_names_spec=
10891 libname_spec='lib$name'
10892 soname_spec=
10893 shrext_cmds=".so"
10894 postinstall_cmds=
10895 postuninstall_cmds=
10896 finish_cmds=
10897 finish_eval=
10898 shlibpath_var=
10899 shlibpath_overrides_runpath=unknown
10900 version_type=none
10901 dynamic_linker="$host_os ld.so"
10902 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10903 need_lib_prefix=unknown
10904 hardcode_into_libs=no
10905
10906 # when you set need_version to no, make sure it does not cause -set_version
10907 # flags to be left without arguments
10908 need_version=unknown
10909
10910 case $host_os in
10911 aix3*)
10912 version_type=linux # correct to gnu/linux during the next big refactor
10913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10914 shlibpath_var=LIBPATH
10915
10916 # AIX 3 has no versioning support, so we append a major version to the name.
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 ;;
10919
10920 aix[4-9]*)
10921 version_type=linux # correct to gnu/linux during the next big refactor
10922 need_lib_prefix=no
10923 need_version=no
10924 hardcode_into_libs=yes
10925 if test "$host_cpu" = ia64; then
10926 # AIX 5 supports IA64
10927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 else
10930 # With GCC up to 2.95.x, collect2 would create an import file
10931 # for dependence libraries. The import file would start with
10932 # the line `#! .'. This would cause the generated library to
10933 # depend on `.', always an invalid library. This was fixed in
10934 # development snapshots of GCC prior to 3.0.
10935 case $host_os in
10936 aix4 | aix4.[01] | aix4.[01].*)
10937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10938 echo ' yes '
10939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10940 :
10941 else
10942 can_build_shared=no
10943 fi
10944 ;;
10945 esac
10946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10947 # soname into executable. Probably we can add versioning support to
10948 # collect2, so additional links can be useful in future.
10949 if test "$aix_use_runtimelinking" = yes; then
10950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10951 # instead of lib<name>.a to let people know that these are not
10952 # typical AIX shared libraries.
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954 else
10955 # We preserve .a as extension for shared libraries through AIX4.2
10956 # and later when we are not doing run time linking.
10957 library_names_spec='${libname}${release}.a $libname.a'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 fi
10960 shlibpath_var=LIBPATH
10961 fi
10962 ;;
10963
10964 amigaos*)
10965 case $host_cpu in
10966 powerpc)
10967 # Since July 2007 AmigaOS4 officially supports .so libraries.
10968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10970 ;;
10971 m68k)
10972 library_names_spec='$libname.ixlibrary $libname.a'
10973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10974 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10975 ;;
10976 esac
10977 ;;
10978
10979 beos*)
10980 library_names_spec='${libname}${shared_ext}'
10981 dynamic_linker="$host_os ld.so"
10982 shlibpath_var=LIBRARY_PATH
10983 ;;
10984
10985 bsdi[45]*)
10986 version_type=linux # correct to gnu/linux during the next big refactor
10987 need_version=no
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10994 # the default ld.so.conf also contains /usr/contrib/lib and
10995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10996 # libtool to hard-code these into programs
10997 ;;
10998
10999 cygwin* | mingw* | pw32* | cegcc*)
11000 version_type=windows
11001 shrext_cmds=".dll"
11002 need_version=no
11003 need_lib_prefix=no
11004
11005 case $GCC,$cc_basename in
11006 yes,*)
11007 # gcc
11008 library_names_spec='$libname.dll.a'
11009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11010 postinstall_cmds='base_file=`basename \${file}`~
11011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11012 dldir=$destdir/`dirname \$dlpath`~
11013 test -d \$dldir || mkdir -p \$dldir~
11014 $install_prog $dir/$dlname \$dldir/$dlname~
11015 chmod a+x \$dldir/$dlname~
11016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11018 fi'
11019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11020 dlpath=$dir/\$dldll~
11021 $RM \$dlpath'
11022 shlibpath_overrides_runpath=yes
11023
11024 case $host_os in
11025 cygwin*)
11026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11028
11029 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11030 ;;
11031 mingw* | cegcc*)
11032 # MinGW DLLs use traditional 'lib' prefix
11033 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11034 ;;
11035 pw32*)
11036 # pw32 DLLs use 'pw' prefix rather than 'lib'
11037 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11038 ;;
11039 esac
11040 dynamic_linker='Win32 ld.exe'
11041 ;;
11042
11043 *,cl*)
11044 # Native MSVC
11045 libname_spec='$name'
11046 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11047 library_names_spec='${libname}.dll.lib'
11048
11049 case $build_os in
11050 mingw*)
11051 sys_lib_search_path_spec=
11052 lt_save_ifs=$IFS
11053 IFS=';'
11054 for lt_path in $LIB
11055 do
11056 IFS=$lt_save_ifs
11057 # Let DOS variable expansion print the short 8.3 style file name.
11058 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11059 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11060 done
11061 IFS=$lt_save_ifs
11062 # Convert to MSYS style.
11063 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11064 ;;
11065 cygwin*)
11066 # Convert to unix form, then to dos form, then back to unix form
11067 # but this time dos style (no spaces!) so that the unix form looks
11068 # like /cygdrive/c/PROGRA~1:/cygdr...
11069 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11070 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11071 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11072 ;;
11073 *)
11074 sys_lib_search_path_spec="$LIB"
11075 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11076 # It is most probably a Windows format PATH.
11077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11078 else
11079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11080 fi
11081 # FIXME: find the short name or the path components, as spaces are
11082 # common. (e.g. "Program Files" -> "PROGRA~1")
11083 ;;
11084 esac
11085
11086 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11087 postinstall_cmds='base_file=`basename \${file}`~
11088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11089 dldir=$destdir/`dirname \$dlpath`~
11090 test -d \$dldir || mkdir -p \$dldir~
11091 $install_prog $dir/$dlname \$dldir/$dlname'
11092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11093 dlpath=$dir/\$dldll~
11094 $RM \$dlpath'
11095 shlibpath_overrides_runpath=yes
11096 dynamic_linker='Win32 link.exe'
11097 ;;
11098
11099 *)
11100 # Assume MSVC wrapper
11101 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11102 dynamic_linker='Win32 ld.exe'
11103 ;;
11104 esac
11105 # FIXME: first we should search . and the directory the executable is in
11106 shlibpath_var=PATH
11107 ;;
11108
11109 darwin* | rhapsody*)
11110 dynamic_linker="$host_os dyld"
11111 version_type=darwin
11112 need_lib_prefix=no
11113 need_version=no
11114 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11115 soname_spec='${libname}${release}${major}$shared_ext'
11116 shlibpath_overrides_runpath=yes
11117 shlibpath_var=DYLD_LIBRARY_PATH
11118 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11119
11120 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11121 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11122 ;;
11123
11124 dgux*)
11125 version_type=linux # correct to gnu/linux during the next big refactor
11126 need_lib_prefix=no
11127 need_version=no
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 ;;
11132
11133 freebsd* | dragonfly*)
11134 # DragonFly does not have aout. When/if they implement a new
11135 # versioning mechanism, adjust this.
11136 if test -x /usr/bin/objformat; then
11137 objformat=`/usr/bin/objformat`
11138 else
11139 case $host_os in
11140 freebsd[23].*) objformat=aout ;;
11141 *) objformat=elf ;;
11142 esac
11143 fi
11144 version_type=freebsd-$objformat
11145 case $version_type in
11146 freebsd-elf*)
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11148 need_version=no
11149 need_lib_prefix=no
11150 ;;
11151 freebsd-*)
11152 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11153 need_version=yes
11154 ;;
11155 esac
11156 shlibpath_var=LD_LIBRARY_PATH
11157 case $host_os in
11158 freebsd2.*)
11159 shlibpath_overrides_runpath=yes
11160 ;;
11161 freebsd3.[01]* | freebsdelf3.[01]*)
11162 shlibpath_overrides_runpath=yes
11163 hardcode_into_libs=yes
11164 ;;
11165 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11166 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11167 shlibpath_overrides_runpath=no
11168 hardcode_into_libs=yes
11169 ;;
11170 *) # from 4.6 on, and DragonFly
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 ;;
11174 esac
11175 ;;
11176
11177 haiku*)
11178 version_type=linux # correct to gnu/linux during the next big refactor
11179 need_lib_prefix=no
11180 need_version=no
11181 dynamic_linker="$host_os runtime_loader"
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 shlibpath_var=LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11187 hardcode_into_libs=yes
11188 ;;
11189
11190 hpux9* | hpux10* | hpux11*)
11191 # Give a soname corresponding to the major version so that dld.sl refuses to
11192 # link against other versions.
11193 version_type=sunos
11194 need_lib_prefix=no
11195 need_version=no
11196 case $host_cpu in
11197 ia64*)
11198 shrext_cmds='.so'
11199 hardcode_into_libs=yes
11200 dynamic_linker="$host_os dld.so"
11201 shlibpath_var=LD_LIBRARY_PATH
11202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11205 if test "X$HPUX_IA64_MODE" = X32; then
11206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11207 else
11208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11209 fi
11210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11211 ;;
11212 hppa*64*)
11213 shrext_cmds='.sl'
11214 hardcode_into_libs=yes
11215 dynamic_linker="$host_os dld.sl"
11216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11222 ;;
11223 *)
11224 shrext_cmds='.sl'
11225 dynamic_linker="$host_os dld.sl"
11226 shlibpath_var=SHLIB_PATH
11227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11229 soname_spec='${libname}${release}${shared_ext}$major'
11230 ;;
11231 esac
11232 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11233 postinstall_cmds='chmod 555 $lib'
11234 # or fails outright, so override atomically:
11235 install_override_mode=555
11236 ;;
11237
11238 interix[3-9]*)
11239 version_type=linux # correct to gnu/linux during the next big refactor
11240 need_lib_prefix=no
11241 need_version=no
11242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=no
11247 hardcode_into_libs=yes
11248 ;;
11249
11250 irix5* | irix6* | nonstopux*)
11251 case $host_os in
11252 nonstopux*) version_type=nonstopux ;;
11253 *)
11254 if test "$lt_cv_prog_gnu_ld" = yes; then
11255 version_type=linux # correct to gnu/linux during the next big refactor
11256 else
11257 version_type=irix
11258 fi ;;
11259 esac
11260 need_lib_prefix=no
11261 need_version=no
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11264 case $host_os in
11265 irix5* | nonstopux*)
11266 libsuff= shlibsuff=
11267 ;;
11268 *)
11269 case $LD in # libtool.m4 will add one of these switches to LD
11270 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11271 libsuff= shlibsuff= libmagic=32-bit;;
11272 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11273 libsuff=32 shlibsuff=N32 libmagic=N32;;
11274 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11275 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11276 *) libsuff= shlibsuff= libmagic=never-match;;
11277 esac
11278 ;;
11279 esac
11280 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11281 shlibpath_overrides_runpath=no
11282 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11283 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11284 hardcode_into_libs=yes
11285 ;;
11286
11287 # No shared lib support for Linux oldld, aout, or coff.
11288 linux*oldld* | linux*aout* | linux*coff*)
11289 dynamic_linker=no
11290 ;;
11291
11292 # This must be glibc/ELF.
11293 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11294 version_type=linux # correct to gnu/linux during the next big refactor
11295 need_lib_prefix=no
11296 need_version=no
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11300 shlibpath_var=LD_LIBRARY_PATH
11301 shlibpath_overrides_runpath=no
11302
11303 # Some binutils ld are patched to set DT_RUNPATH
11304 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 lt_cv_shlibpath_overrides_runpath=no
11308 save_LDFLAGS=$LDFLAGS
11309 save_libdir=$libdir
11310 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11311 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314
11315 int
11316 main ()
11317 {
11318
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11325 lt_cv_shlibpath_overrides_runpath=yes
11326 fi
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LDFLAGS=$save_LDFLAGS
11331 libdir=$save_libdir
11332
11333 fi
11334
11335 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11336
11337 # This implies no fast_install, which is unacceptable.
11338 # Some rework will be needed to allow for fast_install
11339 # before this can be enabled.
11340 hardcode_into_libs=yes
11341
11342 # Append ld.so.conf contents to the search path
11343 if test -f /etc/ld.so.conf; then
11344 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11345 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11346 fi
11347
11348 # We used to test for /lib/ld.so.1 and disable shared libraries on
11349 # powerpc, because MkLinux only supported shared libraries with the
11350 # GNU dynamic linker. Since this was broken with cross compilers,
11351 # most powerpc-linux boxes support dynamic linking these days and
11352 # people can always --disable-shared, the test was removed, and we
11353 # assume the GNU/Linux dynamic linker is in use.
11354 dynamic_linker='GNU/Linux ld.so'
11355 ;;
11356
11357 netbsdelf*-gnu)
11358 version_type=linux
11359 need_lib_prefix=no
11360 need_version=no
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11362 soname_spec='${libname}${release}${shared_ext}$major'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=no
11365 hardcode_into_libs=yes
11366 dynamic_linker='NetBSD ld.elf_so'
11367 ;;
11368
11369 netbsd*)
11370 version_type=sunos
11371 need_lib_prefix=no
11372 need_version=no
11373 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11376 dynamic_linker='NetBSD (a.out) ld.so'
11377 else
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 dynamic_linker='NetBSD ld.elf_so'
11381 fi
11382 shlibpath_var=LD_LIBRARY_PATH
11383 shlibpath_overrides_runpath=yes
11384 hardcode_into_libs=yes
11385 ;;
11386
11387 newsos6)
11388 version_type=linux # correct to gnu/linux during the next big refactor
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes
11392 ;;
11393
11394 *nto* | *qnx*)
11395 version_type=qnx
11396 need_lib_prefix=no
11397 need_version=no
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=no
11402 hardcode_into_libs=yes
11403 dynamic_linker='ldqnx.so'
11404 ;;
11405
11406 openbsd*)
11407 version_type=sunos
11408 sys_lib_dlsearch_path_spec="/usr/lib"
11409 need_lib_prefix=no
11410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11411 case $host_os in
11412 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11413 *) need_version=no ;;
11414 esac
11415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11419 case $host_os in
11420 openbsd2.[89] | openbsd2.[89].*)
11421 shlibpath_overrides_runpath=no
11422 ;;
11423 *)
11424 shlibpath_overrides_runpath=yes
11425 ;;
11426 esac
11427 else
11428 shlibpath_overrides_runpath=yes
11429 fi
11430 ;;
11431
11432 os2*)
11433 libname_spec='$name'
11434 shrext_cmds=".dll"
11435 need_lib_prefix=no
11436 library_names_spec='$libname${shared_ext} $libname.a'
11437 dynamic_linker='OS/2 ld.exe'
11438 shlibpath_var=LIBPATH
11439 ;;
11440
11441 osf3* | osf4* | osf5*)
11442 version_type=osf
11443 need_lib_prefix=no
11444 need_version=no
11445 soname_spec='${libname}${release}${shared_ext}$major'
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11450 ;;
11451
11452 rdos*)
11453 dynamic_linker=no
11454 ;;
11455
11456 solaris*)
11457 version_type=linux # correct to gnu/linux during the next big refactor
11458 need_lib_prefix=no
11459 need_version=no
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 shlibpath_var=LD_LIBRARY_PATH
11463 shlibpath_overrides_runpath=yes
11464 hardcode_into_libs=yes
11465 # ldd complains unless libraries are executable
11466 postinstall_cmds='chmod +x $lib'
11467 ;;
11468
11469 sunos4*)
11470 version_type=sunos
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11473 shlibpath_var=LD_LIBRARY_PATH
11474 shlibpath_overrides_runpath=yes
11475 if test "$with_gnu_ld" = yes; then
11476 need_lib_prefix=no
11477 fi
11478 need_version=yes
11479 ;;
11480
11481 sysv4 | sysv4.3*)
11482 version_type=linux # correct to gnu/linux during the next big refactor
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484 soname_spec='${libname}${release}${shared_ext}$major'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 case $host_vendor in
11487 sni)
11488 shlibpath_overrides_runpath=no
11489 need_lib_prefix=no
11490 runpath_var=LD_RUN_PATH
11491 ;;
11492 siemens)
11493 need_lib_prefix=no
11494 ;;
11495 motorola)
11496 need_lib_prefix=no
11497 need_version=no
11498 shlibpath_overrides_runpath=no
11499 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11500 ;;
11501 esac
11502 ;;
11503
11504 sysv4*MP*)
11505 if test -d /usr/nec ;then
11506 version_type=linux # correct to gnu/linux during the next big refactor
11507 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11508 soname_spec='$libname${shared_ext}.$major'
11509 shlibpath_var=LD_LIBRARY_PATH
11510 fi
11511 ;;
11512
11513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11514 version_type=freebsd-elf
11515 need_lib_prefix=no
11516 need_version=no
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11520 shlibpath_overrides_runpath=yes
11521 hardcode_into_libs=yes
11522 if test "$with_gnu_ld" = yes; then
11523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11524 else
11525 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11526 case $host_os in
11527 sco3.2v5*)
11528 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11529 ;;
11530 esac
11531 fi
11532 sys_lib_dlsearch_path_spec='/usr/lib'
11533 ;;
11534
11535 tpf*)
11536 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11537 version_type=linux # correct to gnu/linux during the next big refactor
11538 need_lib_prefix=no
11539 need_version=no
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 shlibpath_var=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath=no
11543 hardcode_into_libs=yes
11544 ;;
11545
11546 uts4*)
11547 version_type=linux # correct to gnu/linux during the next big refactor
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 ;;
11552
11553 *)
11554 dynamic_linker=no
11555 ;;
11556 esac
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11558 $as_echo "$dynamic_linker" >&6; }
11559 test "$dynamic_linker" = no && can_build_shared=no
11560
11561 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11562 if test "$GCC" = yes; then
11563 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11564 fi
11565
11566 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11567 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11568 fi
11569 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11570 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11571 fi
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11665 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11666 hardcode_action=
11667 if test -n "$hardcode_libdir_flag_spec" ||
11668 test -n "$runpath_var" ||
11669 test "X$hardcode_automatic" = "Xyes" ; then
11670
11671 # We can hardcode non-existent directories.
11672 if test "$hardcode_direct" != no &&
11673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11674 # have to relink, otherwise we might link with an installed library
11675 # when we should be linking with a yet-to-be-installed one
11676 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11677 test "$hardcode_minus_L" != no; then
11678 # Linking always hardcodes the temporary library directory.
11679 hardcode_action=relink
11680 else
11681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11682 hardcode_action=immediate
11683 fi
11684 else
11685 # We cannot hardcode anything, or else we can only hardcode existing
11686 # directories.
11687 hardcode_action=unsupported
11688 fi
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11690 $as_echo "$hardcode_action" >&6; }
11691
11692 if test "$hardcode_action" = relink ||
11693 test "$inherit_rpath" = yes; then
11694 # Fast installation is not supported
11695 enable_fast_install=no
11696 elif test "$shlibpath_overrides_runpath" = yes ||
11697 test "$enable_shared" = no; then
11698 # Fast installation is not necessary
11699 enable_fast_install=needless
11700 fi
11701
11702
11703
11704
11705
11706
11707 if test "x$enable_dlopen" != xyes; then
11708 enable_dlopen=unknown
11709 enable_dlopen_self=unknown
11710 enable_dlopen_self_static=unknown
11711 else
11712 lt_cv_dlopen=no
11713 lt_cv_dlopen_libs=
11714
11715 case $host_os in
11716 beos*)
11717 lt_cv_dlopen="load_add_on"
11718 lt_cv_dlopen_libs=
11719 lt_cv_dlopen_self=yes
11720 ;;
11721
11722 mingw* | pw32* | cegcc*)
11723 lt_cv_dlopen="LoadLibrary"
11724 lt_cv_dlopen_libs=
11725 ;;
11726
11727 cygwin*)
11728 lt_cv_dlopen="dlopen"
11729 lt_cv_dlopen_libs=
11730 ;;
11731
11732 darwin*)
11733 # if libdl is installed we need to link against it
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11735 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11736 if ${ac_cv_lib_dl_dlopen+:} false; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 ac_check_lib_save_LIBS=$LIBS
11740 LIBS="-ldl $LIBS"
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char dlopen ();
11751 int
11752 main ()
11753 {
11754 return dlopen ();
11755 ;
11756 return 0;
11757 }
11758 _ACEOF
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 ac_cv_lib_dl_dlopen=yes
11761 else
11762 ac_cv_lib_dl_dlopen=no
11763 fi
11764 rm -f core conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11767 fi
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11769 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11770 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11772 else
11773
11774 lt_cv_dlopen="dyld"
11775 lt_cv_dlopen_libs=
11776 lt_cv_dlopen_self=yes
11777
11778 fi
11779
11780 ;;
11781
11782 *)
11783 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11784 if test "x$ac_cv_func_shl_load" = xyes; then :
11785 lt_cv_dlopen="shl_load"
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11788 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11789 if ${ac_cv_lib_dld_shl_load+:} false; then :
11790 $as_echo_n "(cached) " >&6
11791 else
11792 ac_check_lib_save_LIBS=$LIBS
11793 LIBS="-ldld $LIBS"
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796
11797 /* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800 #ifdef __cplusplus
11801 extern "C"
11802 #endif
11803 char shl_load ();
11804 int
11805 main ()
11806 {
11807 return shl_load ();
11808 ;
11809 return 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 ac_cv_lib_dld_shl_load=yes
11814 else
11815 ac_cv_lib_dld_shl_load=no
11816 fi
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 LIBS=$ac_check_lib_save_LIBS
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11822 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11823 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11824 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11825 else
11826 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11827 if test "x$ac_cv_func_dlopen" = xyes; then :
11828 lt_cv_dlopen="dlopen"
11829 else
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11831 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11832 if ${ac_cv_lib_dl_dlopen+:} false; then :
11833 $as_echo_n "(cached) " >&6
11834 else
11835 ac_check_lib_save_LIBS=$LIBS
11836 LIBS="-ldl $LIBS"
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h. */
11839
11840 /* Override any GCC internal prototype to avoid an error.
11841 Use char because int might match the return type of a GCC
11842 builtin and then its argument prototype would still apply. */
11843 #ifdef __cplusplus
11844 extern "C"
11845 #endif
11846 char dlopen ();
11847 int
11848 main ()
11849 {
11850 return dlopen ();
11851 ;
11852 return 0;
11853 }
11854 _ACEOF
11855 if ac_fn_c_try_link "$LINENO"; then :
11856 ac_cv_lib_dl_dlopen=yes
11857 else
11858 ac_cv_lib_dl_dlopen=no
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 LIBS=$ac_check_lib_save_LIBS
11863 fi
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11866 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11870 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11871 if ${ac_cv_lib_svld_dlopen+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lsvld $LIBS"
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878
11879 /* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
11882 #ifdef __cplusplus
11883 extern "C"
11884 #endif
11885 char dlopen ();
11886 int
11887 main ()
11888 {
11889 return dlopen ();
11890 ;
11891 return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_c_try_link "$LINENO"; then :
11895 ac_cv_lib_svld_dlopen=yes
11896 else
11897 ac_cv_lib_svld_dlopen=no
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11902 fi
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11904 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11905 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11907 else
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11909 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11910 if ${ac_cv_lib_dld_dld_link+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 ac_check_lib_save_LIBS=$LIBS
11914 LIBS="-ldld $LIBS"
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11917
11918 /* Override any GCC internal prototype to avoid an error.
11919 Use char because int might match the return type of a GCC
11920 builtin and then its argument prototype would still apply. */
11921 #ifdef __cplusplus
11922 extern "C"
11923 #endif
11924 char dld_link ();
11925 int
11926 main ()
11927 {
11928 return dld_link ();
11929 ;
11930 return 0;
11931 }
11932 _ACEOF
11933 if ac_fn_c_try_link "$LINENO"; then :
11934 ac_cv_lib_dld_dld_link=yes
11935 else
11936 ac_cv_lib_dld_dld_link=no
11937 fi
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LIBS=$ac_check_lib_save_LIBS
11941 fi
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11943 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11944 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11945 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11946 fi
11947
11948
11949 fi
11950
11951
11952 fi
11953
11954
11955 fi
11956
11957
11958 fi
11959
11960
11961 fi
11962
11963 ;;
11964 esac
11965
11966 if test "x$lt_cv_dlopen" != xno; then
11967 enable_dlopen=yes
11968 else
11969 enable_dlopen=no
11970 fi
11971
11972 case $lt_cv_dlopen in
11973 dlopen)
11974 save_CPPFLAGS="$CPPFLAGS"
11975 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11976
11977 save_LDFLAGS="$LDFLAGS"
11978 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11979
11980 save_LIBS="$LIBS"
11981 LIBS="$lt_cv_dlopen_libs $LIBS"
11982
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11984 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11985 if ${lt_cv_dlopen_self+:} false; then :
11986 $as_echo_n "(cached) " >&6
11987 else
11988 if test "$cross_compiling" = yes; then :
11989 lt_cv_dlopen_self=cross
11990 else
11991 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11992 lt_status=$lt_dlunknown
11993 cat > conftest.$ac_ext <<_LT_EOF
11994 #line $LINENO "configure"
11995 #include "confdefs.h"
11996
11997 #if HAVE_DLFCN_H
11998 #include <dlfcn.h>
11999 #endif
12000
12001 #include <stdio.h>
12002
12003 #ifdef RTLD_GLOBAL
12004 # define LT_DLGLOBAL RTLD_GLOBAL
12005 #else
12006 # ifdef DL_GLOBAL
12007 # define LT_DLGLOBAL DL_GLOBAL
12008 # else
12009 # define LT_DLGLOBAL 0
12010 # endif
12011 #endif
12012
12013 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12014 find out it does not work in some platform. */
12015 #ifndef LT_DLLAZY_OR_NOW
12016 # ifdef RTLD_LAZY
12017 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12018 # else
12019 # ifdef DL_LAZY
12020 # define LT_DLLAZY_OR_NOW DL_LAZY
12021 # else
12022 # ifdef RTLD_NOW
12023 # define LT_DLLAZY_OR_NOW RTLD_NOW
12024 # else
12025 # ifdef DL_NOW
12026 # define LT_DLLAZY_OR_NOW DL_NOW
12027 # else
12028 # define LT_DLLAZY_OR_NOW 0
12029 # endif
12030 # endif
12031 # endif
12032 # endif
12033 #endif
12034
12035 /* When -fvisbility=hidden is used, assume the code has been annotated
12036 correspondingly for the symbols needed. */
12037 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12038 int fnord () __attribute__((visibility("default")));
12039 #endif
12040
12041 int fnord () { return 42; }
12042 int main ()
12043 {
12044 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12045 int status = $lt_dlunknown;
12046
12047 if (self)
12048 {
12049 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12050 else
12051 {
12052 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12053 else puts (dlerror ());
12054 }
12055 /* dlclose (self); */
12056 }
12057 else
12058 puts (dlerror ());
12059
12060 return status;
12061 }
12062 _LT_EOF
12063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12064 (eval $ac_link) 2>&5
12065 ac_status=$?
12066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12068 (./conftest; exit; ) >&5 2>/dev/null
12069 lt_status=$?
12070 case x$lt_status in
12071 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12072 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12073 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12074 esac
12075 else :
12076 # compilation failed
12077 lt_cv_dlopen_self=no
12078 fi
12079 fi
12080 rm -fr conftest*
12081
12082
12083 fi
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12085 $as_echo "$lt_cv_dlopen_self" >&6; }
12086
12087 if test "x$lt_cv_dlopen_self" = xyes; then
12088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12090 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12091 if ${lt_cv_dlopen_self_static+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 if test "$cross_compiling" = yes; then :
12095 lt_cv_dlopen_self_static=cross
12096 else
12097 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12098 lt_status=$lt_dlunknown
12099 cat > conftest.$ac_ext <<_LT_EOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102
12103 #if HAVE_DLFCN_H
12104 #include <dlfcn.h>
12105 #endif
12106
12107 #include <stdio.h>
12108
12109 #ifdef RTLD_GLOBAL
12110 # define LT_DLGLOBAL RTLD_GLOBAL
12111 #else
12112 # ifdef DL_GLOBAL
12113 # define LT_DLGLOBAL DL_GLOBAL
12114 # else
12115 # define LT_DLGLOBAL 0
12116 # endif
12117 #endif
12118
12119 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12120 find out it does not work in some platform. */
12121 #ifndef LT_DLLAZY_OR_NOW
12122 # ifdef RTLD_LAZY
12123 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12124 # else
12125 # ifdef DL_LAZY
12126 # define LT_DLLAZY_OR_NOW DL_LAZY
12127 # else
12128 # ifdef RTLD_NOW
12129 # define LT_DLLAZY_OR_NOW RTLD_NOW
12130 # else
12131 # ifdef DL_NOW
12132 # define LT_DLLAZY_OR_NOW DL_NOW
12133 # else
12134 # define LT_DLLAZY_OR_NOW 0
12135 # endif
12136 # endif
12137 # endif
12138 # endif
12139 #endif
12140
12141 /* When -fvisbility=hidden is used, assume the code has been annotated
12142 correspondingly for the symbols needed. */
12143 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12144 int fnord () __attribute__((visibility("default")));
12145 #endif
12146
12147 int fnord () { return 42; }
12148 int main ()
12149 {
12150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12151 int status = $lt_dlunknown;
12152
12153 if (self)
12154 {
12155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12156 else
12157 {
12158 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12159 else puts (dlerror ());
12160 }
12161 /* dlclose (self); */
12162 }
12163 else
12164 puts (dlerror ());
12165
12166 return status;
12167 }
12168 _LT_EOF
12169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12170 (eval $ac_link) 2>&5
12171 ac_status=$?
12172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12173 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12174 (./conftest; exit; ) >&5 2>/dev/null
12175 lt_status=$?
12176 case x$lt_status in
12177 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12178 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12179 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12180 esac
12181 else :
12182 # compilation failed
12183 lt_cv_dlopen_self_static=no
12184 fi
12185 fi
12186 rm -fr conftest*
12187
12188
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12191 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12192 fi
12193
12194 CPPFLAGS="$save_CPPFLAGS"
12195 LDFLAGS="$save_LDFLAGS"
12196 LIBS="$save_LIBS"
12197 ;;
12198 esac
12199
12200 case $lt_cv_dlopen_self in
12201 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12202 *) enable_dlopen_self=unknown ;;
12203 esac
12204
12205 case $lt_cv_dlopen_self_static in
12206 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12207 *) enable_dlopen_self_static=unknown ;;
12208 esac
12209 fi
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227 striplib=
12228 old_striplib=
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12230 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12231 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12232 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12233 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12235 $as_echo "yes" >&6; }
12236 else
12237 # FIXME - insert some real tests, host_os isn't really good enough
12238 case $host_os in
12239 darwin*)
12240 if test -n "$STRIP" ; then
12241 striplib="$STRIP -x"
12242 old_striplib="$STRIP -S"
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12244 $as_echo "yes" >&6; }
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249 ;;
12250 *)
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253 ;;
12254 esac
12255 fi
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268 # Report which library types will actually be built
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12270 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12272 $as_echo "$can_build_shared" >&6; }
12273
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12275 $as_echo_n "checking whether to build shared libraries... " >&6; }
12276 test "$can_build_shared" = "no" && enable_shared=no
12277
12278 # On AIX, shared libraries and static libraries use the same namespace, and
12279 # are all built from PIC.
12280 case $host_os in
12281 aix3*)
12282 test "$enable_shared" = yes && enable_static=no
12283 if test -n "$RANLIB"; then
12284 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12285 postinstall_cmds='$RANLIB $lib'
12286 fi
12287 ;;
12288
12289 aix[4-9]*)
12290 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12291 test "$enable_shared" = yes && enable_static=no
12292 fi
12293 ;;
12294 esac
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12296 $as_echo "$enable_shared" >&6; }
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12299 $as_echo_n "checking whether to build static libraries... " >&6; }
12300 # Make sure either enable_shared or enable_static is yes.
12301 test "$enable_shared" = yes || enable_static=yes
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12303 $as_echo "$enable_static" >&6; }
12304
12305
12306
12307
12308 fi
12309 ac_ext=c
12310 ac_cpp='$CPP $CPPFLAGS'
12311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12314
12315 CC="$lt_save_CC"
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331 ac_config_commands="$ac_config_commands libtool"
12332
12333
12334
12335
12336 # Only expand once:
12337
12338
12339
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wl,--version-script works" >&5
12341 $as_echo_n "checking if -Wl,--version-script works... " >&6; }
12342 if ${rra_cv_ld_version_script+:} false; then :
12343 $as_echo_n "(cached) " >&6
12344 else
12345 save_LDFLAGS="$LDFLAGS"
12346 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
12347 cat > conftest.map <<EOF
12348 VERSION_1 {
12349 global:
12350 sym;
12351
12352 local:
12353 *;
12354 };
12355 EOF
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358
12359 int
12360 main ()
12361 {
12362
12363 ;
12364 return 0;
12365 }
12366 _ACEOF
12367 if ac_fn_c_try_link "$LINENO"; then :
12368 rra_cv_ld_version_script=yes
12369 else
12370 rra_cv_ld_version_script=no
12371 fi
12372 rm -f core conftest.err conftest.$ac_objext \
12373 conftest$ac_exeext conftest.$ac_ext
12374 rm -f conftest.map
12375 LDFLAGS="$save_LDFLAGS"
12376 fi
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_ld_version_script" >&5
12378 $as_echo "$rra_cv_ld_version_script" >&6; }
12379 if test x"$rra_cv_ld_version_script" = xyes; then
12380 HAVE_LD_VERSION_SCRIPT_TRUE=
12381 HAVE_LD_VERSION_SCRIPT_FALSE='#'
12382 else
12383 HAVE_LD_VERSION_SCRIPT_TRUE='#'
12384 HAVE_LD_VERSION_SCRIPT_FALSE=
12385 fi
12386
12387
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pam_set_data" >&5
12389 $as_echo_n "checking for library containing pam_set_data... " >&6; }
12390 if ${ac_cv_search_pam_set_data+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 ac_func_search_save_LIBS=$LIBS
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396
12397 /* Override any GCC internal prototype to avoid an error.
12398 Use char because int might match the return type of a GCC
12399 builtin and then its argument prototype would still apply. */
12400 #ifdef __cplusplus
12401 extern "C"
12402 #endif
12403 char pam_set_data ();
12404 int
12405 main ()
12406 {
12407 return pam_set_data ();
12408 ;
12409 return 0;
12410 }
12411 _ACEOF
12412 for ac_lib in '' pam; do
12413 if test -z "$ac_lib"; then
12414 ac_res="none required"
12415 else
12416 ac_res=-l$ac_lib
12417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12418 fi
12419 if ac_fn_c_try_link "$LINENO"; then :
12420 ac_cv_search_pam_set_data=$ac_res
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext
12424 if ${ac_cv_search_pam_set_data+:} false; then :
12425 break
12426 fi
12427 done
12428 if ${ac_cv_search_pam_set_data+:} false; then :
12429
12430 else
12431 ac_cv_search_pam_set_data=no
12432 fi
12433 rm conftest.$ac_ext
12434 LIBS=$ac_func_search_save_LIBS
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_set_data" >&5
12437 $as_echo "$ac_cv_search_pam_set_data" >&6; }
12438 ac_res=$ac_cv_search_pam_set_data
12439 if test "$ac_res" != no; then :
12440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12441
12442 fi
12443
12444 for ac_func in pam_getenv pam_getenvlist pam_modutil_getpwnam
12445 do :
12446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12449 cat >>confdefs.h <<_ACEOF
12450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12451 _ACEOF
12452
12453 fi
12454 done
12455
12456 ac_fn_c_check_func "$LINENO" "pam_syslog" "ac_cv_func_pam_syslog"
12457 if test "x$ac_cv_func_pam_syslog" = xyes; then :
12458 $as_echo "#define HAVE_PAM_SYSLOG 1" >>confdefs.h
12459
12460 else
12461 case " $LIBOBJS " in
12462 *" pam_syslog.$ac_objext "* ) ;;
12463 *) LIBOBJS="$LIBOBJS pam_syslog.$ac_objext"
12464 ;;
12465 esac
12466
12467 fi
12468
12469 ac_fn_c_check_func "$LINENO" "pam_vsyslog" "ac_cv_func_pam_vsyslog"
12470 if test "x$ac_cv_func_pam_vsyslog" = xyes; then :
12471 $as_echo "#define HAVE_PAM_VSYSLOG 1" >>confdefs.h
12472
12473 else
12474 case " $LIBOBJS " in
12475 *" pam_vsyslog.$ac_objext "* ) ;;
12476 *) LIBOBJS="$LIBOBJS pam_vsyslog.$ac_objext"
12477 ;;
12478 esac
12479
12480 fi
12481
12482
12483 for ac_header in security/pam_modutil.h
12484 do :
12485 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_modutil.h" "ac_cv_header_security_pam_modutil_h" "$ac_includes_default"
12486 if test "x$ac_cv_header_security_pam_modutil_h" = xyes; then :
12487 cat >>confdefs.h <<_ACEOF
12488 #define HAVE_SECURITY_PAM_MODUTIL_H 1
12489 _ACEOF
12490
12491 else
12492 for ac_header in pam/pam_modutil.h
12493 do :
12494 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_modutil.h" "ac_cv_header_pam_pam_modutil_h" "$ac_includes_default"
12495 if test "x$ac_cv_header_pam_pam_modutil_h" = xyes; then :
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_PAM_PAM_MODUTIL_H 1
12498 _ACEOF
12499
12500 fi
12501
12502 done
12503
12504 fi
12505
12506 done
12507
12508 for ac_header in security/pam_appl.h
12509 do :
12510 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
12511 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
12512 cat >>confdefs.h <<_ACEOF
12513 #define HAVE_SECURITY_PAM_APPL_H 1
12514 _ACEOF
12515
12516 else
12517 for ac_header in pam/pam_appl.h
12518 do :
12519 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
12520 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
12521 cat >>confdefs.h <<_ACEOF
12522 #define HAVE_PAM_PAM_APPL_H 1
12523 _ACEOF
12524
12525 else
12526 as_fn_error $? "No PAM header files found" "$LINENO" 5
12527 fi
12528
12529 done
12530
12531 fi
12532
12533 done
12534
12535 for ac_header in security/pam_ext.h
12536 do :
12537 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_ext.h" "ac_cv_header_security_pam_ext_h" "$ac_includes_default"
12538 if test "x$ac_cv_header_security_pam_ext_h" = xyes; then :
12539 cat >>confdefs.h <<_ACEOF
12540 #define HAVE_SECURITY_PAM_EXT_H 1
12541 _ACEOF
12542
12543 else
12544 for ac_header in pam/pam_ext.h
12545 do :
12546 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_ext.h" "ac_cv_header_pam_pam_ext_h" "$ac_includes_default"
12547 if test "x$ac_cv_header_pam_pam_ext_h" = xyes; then :
12548 cat >>confdefs.h <<_ACEOF
12549 #define HAVE_PAM_PAM_EXT_H 1
12550 _ACEOF
12551
12552 fi
12553
12554 done
12555
12556 fi
12557
12558 done
12559
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PAM prefers const" >&5
12561 $as_echo_n "checking whether PAM prefers const... " >&6; }
12562 if ${rra_cv_header_pam_const+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 #ifdef HAVE_SECURITY_PAM_APPL_H
12568 # include <security/pam_appl.h>
12569 #else
12570 # include <pam/pam_appl.h>
12571 #endif
12572
12573 _ACEOF
12574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12575 $EGREP "const void \*\* *_?item" >/dev/null 2>&1; then :
12576 rra_cv_header_pam_const=yes
12577 else
12578 rra_cv_header_pam_const=no
12579 fi
12580 rm -f conftest*
12581
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_header_pam_const" >&5
12584 $as_echo "$rra_cv_header_pam_const" >&6; }
12585 if test x"$rra_cv_header_pam_const" = xyes; then :
12586 rra_header_pam_const=const
12587 else
12588 rra_header_pam_const=
12589 fi
12590
12591 cat >>confdefs.h <<_ACEOF
12592 #define PAM_CONST $rra_header_pam_const
12593 _ACEOF
12594
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror uses const" >&5
12596 $as_echo_n "checking whether pam_strerror uses const... " >&6; }
12597 if ${rra_cv_header_pam_strerror_const+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12602 #ifdef HAVE_SECURITY_PAM_APPL_H
12603 # include <security/pam_appl.h>
12604 #else
12605 # include <pam/pam_appl.h>
12606 #endif
12607
12608 _ACEOF
12609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12610 $EGREP "pam_strerror *\(const" >/dev/null 2>&1; then :
12611 rra_cv_header_pam_strerror_const=yes
12612 else
12613 rra_cv_header_pam_strerror_const=no
12614 fi
12615 rm -f conftest*
12616
12617 fi
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_header_pam_strerror_const" >&5
12619 $as_echo "$rra_cv_header_pam_strerror_const" >&6; }
12620 if test x"$rra_cv_header_pam_strerror_const" = xyes; then :
12621 rra_header_pam_strerror_const=const
12622 else
12623 rra_header_pam_strerror_const=
12624 fi
12625
12626 cat >>confdefs.h <<_ACEOF
12627 #define PAM_STRERROR_CONST $rra_header_pam_strerror_const
12628 _ACEOF
12629
12630
12631
12632 $as_echo "#define MODULE_NAME \"pam_afs_session\"" >>confdefs.h
12633
12634
12635
12636 # Check whether --with-aklog was given.
12637 if test "${with_aklog+set}" = set; then :
12638 withval=$with_aklog; if test x"$withval" != xno; then :
12639 PATH_AKLOG="$withval"
12640 fi
12641 else
12642 for ac_prog in aklog
12643 do
12644 # Extract the first word of "$ac_prog", so it can be a program name with args.
12645 set dummy $ac_prog; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_path_PATH_AKLOG+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650 else
12651 case $PATH_AKLOG in
12652 [\\/]* | ?:[\\/]*)
12653 ac_cv_path_PATH_AKLOG="$PATH_AKLOG" # Let the user override the test with a path.
12654 ;;
12655 *)
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12658 do
12659 IFS=$as_save_IFS
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663 ac_cv_path_PATH_AKLOG="$as_dir/$ac_word$ac_exec_ext"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665 break 2
12666 fi
12667 done
12668 done
12669 IFS=$as_save_IFS
12670
12671 ;;
12672 esac
12673 fi
12674 PATH_AKLOG=$ac_cv_path_PATH_AKLOG
12675 if test -n "$PATH_AKLOG"; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_AKLOG" >&5
12677 $as_echo "$PATH_AKLOG" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681 fi
12682
12683
12684 test -n "$PATH_AKLOG" && break
12685 done
12686
12687 fi
12688
12689 if test -n "$PATH_AKLOG"; then :
12690
12691 cat >>confdefs.h <<_ACEOF
12692 #define PATH_AKLOG "$PATH_AKLOG"
12693 _ACEOF
12694
12695 fi
12696
12697 if test "$GCC" = "yes"; then :
12698 CFLAGS="-Wall $CFLAGS"
12699 fi
12700
12701 rra_reduced_depends=false
12702 # Check whether --enable-reduced-depends was given.
12703 if test "${enable_reduced_depends+set}" = set; then :
12704 enableval=$enable_reduced_depends; if test x"$enableval" = xyes; then :
12705 rra_reduced_depends=true
12706 fi
12707 fi
12708
12709 rra_lib_arch_name=lib
12710 # The cast to long int works around a bug in the HP C Compiler
12711 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12712 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12713 # This bug is HP SR number 8606223364.
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12715 $as_echo_n "checking size of long... " >&6; }
12716 if ${ac_cv_sizeof_long+:} false; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12720
12721 else
12722 if test "$ac_cv_type_long" = yes; then
12723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12725 as_fn_error 77 "cannot compute sizeof (long)
12726 See \`config.log' for more details" "$LINENO" 5; }
12727 else
12728 ac_cv_sizeof_long=0
12729 fi
12730 fi
12731
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12734 $as_echo "$ac_cv_sizeof_long" >&6; }
12735
12736
12737
12738 cat >>confdefs.h <<_ACEOF
12739 #define SIZEOF_LONG $ac_cv_sizeof_long
12740 _ACEOF
12741
12742
12743 if test "$ac_cv_sizeof_long" -eq 4 && test -d /usr/lib32; then :
12744 rra_lib_arch_name=lib32
12745 else
12746 if test "$ac_cv_sizeof_long" -eq 8 && test -d /usr/lib64; then :
12747 rra_lib_arch_name=lib64
12748 fi
12749 fi
12750
12751 # Extract the first word of "krb5-config", so it can be a program name with args.
12752 set dummy krb5-config; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_PATH_KRB5_CONFIG+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 case $PATH_KRB5_CONFIG in
12759 [\\/]* | ?:[\\/]*)
12760 ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
12761 ;;
12762 *)
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 as_dummy="${PATH}:/usr/kerberos/bin"
12765 for as_dir in $as_dummy
12766 do
12767 IFS=$as_save_IFS
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_path_PATH_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773 break 2
12774 fi
12775 done
12776 done
12777 IFS=$as_save_IFS
12778
12779 ;;
12780 esac
12781 fi
12782 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
12783 if test -n "$PATH_KRB5_CONFIG"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
12785 $as_echo "$PATH_KRB5_CONFIG" >&6; }
12786 else
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789 fi
12790
12791
12792 rra_krb5_root=
12793 rra_krb5_libdir=
12794 rra_krb5_includedir=
12795 rra_use_KRB5=
12796
12797
12798 # Check whether --with-krb5 was given.
12799 if test "${with_krb5+set}" = set; then :
12800 withval=$with_krb5; if test x"$withval" = xno; then :
12801 rra_use_KRB5=false
12802 else
12803 if test x"$withval" != xyes; then :
12804 rra_krb5_root="$withval"
12805 fi
12806 rra_use_KRB5=true
12807 fi
12808 fi
12809
12810
12811 # Check whether --with-krb5-include was given.
12812 if test "${with_krb5_include+set}" = set; then :
12813 withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
12814 rra_krb5_includedir="$withval"
12815 fi
12816 fi
12817
12818
12819 # Check whether --with-krb5-lib was given.
12820 if test "${with_krb5_lib+set}" = set; then :
12821 withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
12822 rra_krb5_libdir="$withval"
12823 fi
12824 fi
12825
12826
12827 if test x"$rra_use_KRB5" != xfalse; then :
12828 if test x"$rra_use_KRB5" = xtrue; then :
12829
12830 rra_krb5_incroot=
12831
12832
12833
12834
12835 if test x"$rra_krb5_includedir" != x; then :
12836 rra_krb5_incroot="$rra_krb5_includedir"
12837 else
12838 if test x"$rra_krb5_root" != x; then :
12839 rra_krb5_incroot="${rra_krb5_root}/include"
12840 fi
12841 fi
12842 if test x"$rra_reduced_depends" = xtrue; then :
12843 if test x"$rra_krb5_libdir" != x; then :
12844 KRB5_LDFLAGS="-L$rra_krb5_libdir"
12845 else
12846 if test x"$rra_krb5_root" != x; then :
12847
12848 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
12849 if test x"" = x; then :
12850 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
12851 else
12852 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
12853 fi
12854 else
12855 if test x"" = x; then :
12856 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
12857 else
12858 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
12859 fi
12860 fi
12861 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
12862 fi
12863 fi
12864 if test x"$rra_krb5_includedir" != x; then :
12865 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
12866 else
12867 if test x"$rra_krb5_root" != x; then :
12868 if test x"$rra_krb5_root" != x/usr; then :
12869 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
12870 fi
12871 fi
12872 fi
12873 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
12874 rra_krb5_save_LDFLAGS="$LDFLAGS"
12875 rra_krb5_save_LIBS="$LIBS"
12876 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
12877 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
12878 LIBS="$KRB5_LIBS $LIBS"
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
12880 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12881 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
12882 $as_echo_n "(cached) " >&6
12883 else
12884 ac_check_lib_save_LIBS=$LIBS
12885 LIBS="-lkrb5 $LIBS"
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12887 /* end confdefs.h. */
12888
12889 /* Override any GCC internal prototype to avoid an error.
12890 Use char because int might match the return type of a GCC
12891 builtin and then its argument prototype would still apply. */
12892 #ifdef __cplusplus
12893 extern "C"
12894 #endif
12895 char krb5_init_context ();
12896 int
12897 main ()
12898 {
12899 return krb5_init_context ();
12900 ;
12901 return 0;
12902 }
12903 _ACEOF
12904 if ac_fn_c_try_link "$LINENO"; then :
12905 ac_cv_lib_krb5_krb5_init_context=yes
12906 else
12907 ac_cv_lib_krb5_krb5_init_context=no
12908 fi
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext conftest.$ac_ext
12911 LIBS=$ac_check_lib_save_LIBS
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12914 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12915 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
12916 KRB5_LIBS="-lkrb5"
12917 else
12918 if test x"true" = xtrue; then :
12919 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
12920 fi
12921 fi
12922
12923 LIBS="$KRB5_LIBS $LIBS"
12924 if test x"$rra_krb5_incroot" = x; then :
12925 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
12926 do :
12927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12930 cat >>confdefs.h <<_ACEOF
12931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12932 _ACEOF
12933
12934 fi
12935
12936 done
12937
12938 else
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
12940 $as_echo_n "checking for krb5.h... " >&6; }
12941 if test -f "${rra_krb5_incroot}/krb5.h"; then :
12942
12943 cat >>confdefs.h <<_ACEOF
12944 #define HAVE_KRB5_H 1
12945 _ACEOF
12946
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12948 $as_echo "yes" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
12954 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
12955 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
12956
12957 cat >>confdefs.h <<_ACEOF
12958 #define HAVE_KERBEROSV5_KRB5_H 1
12959 _ACEOF
12960
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12962 $as_echo "yes" >&6; }
12963 else
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
12968 $as_echo_n "checking for krb5/krb5.h... " >&6; }
12969 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
12970
12971 cat >>confdefs.h <<_ACEOF
12972 #define HAVE_KRB5_KRB5_H 1
12973 _ACEOF
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 $as_echo "yes" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12980 fi
12981 fi
12982 for ac_func in krb5_get_error_message
12983 do :
12984 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
12985 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
12986 cat >>confdefs.h <<_ACEOF
12987 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
12988 _ACEOF
12989 for ac_func in krb5_free_error_message
12990 do :
12991 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
12992 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
12995 _ACEOF
12996
12997 fi
12998 done
12999
13000 else
13001 for ac_func in krb5_get_error_string
13002 do :
13003 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
13004 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
13005 cat >>confdefs.h <<_ACEOF
13006 #define HAVE_KRB5_GET_ERROR_STRING 1
13007 _ACEOF
13008
13009 else
13010 for ac_func in krb5_get_err_txt
13011 do :
13012 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
13013 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_KRB5_GET_ERR_TXT 1
13016 _ACEOF
13017
13018 else
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
13020 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
13021 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
13022 $as_echo_n "(cached) " >&6
13023 else
13024 ac_check_lib_save_LIBS=$LIBS
13025 LIBS="-lksvc $LIBS"
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028
13029 /* Override any GCC internal prototype to avoid an error.
13030 Use char because int might match the return type of a GCC
13031 builtin and then its argument prototype would still apply. */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 char krb5_svc_get_msg ();
13036 int
13037 main ()
13038 {
13039 return krb5_svc_get_msg ();
13040 ;
13041 return 0;
13042 }
13043 _ACEOF
13044 if ac_fn_c_try_link "$LINENO"; then :
13045 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
13046 else
13047 ac_cv_lib_ksvc_krb5_svc_get_msg=no
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext \
13050 conftest$ac_exeext conftest.$ac_ext
13051 LIBS=$ac_check_lib_save_LIBS
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
13054 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
13055 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
13056 KRB5_LIBS="$KRB5_LIBS -lksvc"
13057 $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
13058
13059 for ac_header in ibm_svc/krb5_svc.h
13060 do :
13061 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
13062 #if HAVE_KRB5_H
13063 # include <krb5.h>
13064 #elif HAVE_KERBEROSV5_KRB5_H
13065 # include <kerberosv5/krb5.h>
13066 #else
13067 # include <krb5/krb5.h>
13068 #endif
13069
13070 "
13071 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
13072 cat >>confdefs.h <<_ACEOF
13073 #define HAVE_IBM_SVC_KRB5_SVC_H 1
13074 _ACEOF
13075
13076 fi
13077
13078 done
13079
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
13082 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
13083 if ${ac_cv_lib_com_err_com_err+:} false; then :
13084 $as_echo_n "(cached) " >&6
13085 else
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lcom_err $LIBS"
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char com_err ();
13098 int
13099 main ()
13100 {
13101 return com_err ();
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 if ac_fn_c_try_link "$LINENO"; then :
13107 ac_cv_lib_com_err_com_err=yes
13108 else
13109 ac_cv_lib_com_err_com_err=no
13110 fi
13111 rm -f core conftest.err conftest.$ac_objext \
13112 conftest$ac_exeext conftest.$ac_ext
13113 LIBS=$ac_check_lib_save_LIBS
13114 fi
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
13116 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
13117 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
13118 KRB5_LIBS="$KRB5_LIBS -lcom_err"
13119 else
13120 if test x"true" = xtrue; then :
13121 as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
13122 else
13123 KRB5_LIBS=""
13124 fi
13125 fi
13126
13127 if test x"$rra_krb5_incroot" = x; then :
13128 for ac_header in et/com_err.h kerberosv5/com_err.h
13129 do :
13130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13131 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13133 cat >>confdefs.h <<_ACEOF
13134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13135 _ACEOF
13136
13137 fi
13138
13139 done
13140
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
13143 $as_echo_n "checking for et/com_err.h... " >&6; }
13144 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
13145
13146 cat >>confdefs.h <<_ACEOF
13147 #define HAVE_ET_COM_ERR_H 1
13148 _ACEOF
13149
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13151 $as_echo "yes" >&6; }
13152 else
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154 $as_echo "no" >&6; }
13155 fi
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
13157 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
13158 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
13159
13160 cat >>confdefs.h <<_ACEOF
13161 #define HAVE_KERBEROSV5_COM_ERR_H 1
13162 _ACEOF
13163
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13165 $as_echo "yes" >&6; }
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168 $as_echo "no" >&6; }
13169 fi
13170 fi
13171 fi
13172
13173 fi
13174 done
13175
13176 fi
13177 done
13178
13179 fi
13180 done
13181
13182 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13183 LDFLAGS="$rra_krb5_save_LDFLAGS"
13184 LIBS="$rra_krb5_save_LIBS"
13185 else
13186 if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
13187
13188 rra_krb5_config_KRB5=
13189 rra_krb5_config_KRB5_ok=
13190 if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
13191 rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
13192 else
13193 rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
13194 fi
13195 if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
13197 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
13198 if ${rra_cv_lib_KRB5_config+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
13202 rra_cv_lib_KRB5_config=yes
13203 else
13204 rra_cv_lib_KRB5_config=no
13205 fi
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
13208 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
13209 if test "$rra_cv_lib_KRB5_config" = yes; then :
13210 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
13211
13212
13213
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
13215 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
13216 if ${rra_cv_krb5_config_deps+:} false; then :
13217 $as_echo_n "(cached) " >&6
13218 else
13219 if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
13220 rra_cv_krb5_config_deps=yes
13221 else
13222 rra_cv_krb5_config_deps=no
13223 fi
13224 fi
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
13226 $as_echo "$rra_cv_krb5_config_deps" >&6; }
13227 if test x"$rra_reduced_depends" = xfalse \
13228 && test x"$rra_cv_krb5_config_deps" = xyes; then :
13229 KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
13230 else
13231 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13232 fi
13233 rra_krb5_config_KRB5_ok=yes
13234 else
13235 if test x"krb5" = xkrb5; then :
13236 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
13237 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
13238 rra_krb5_config_KRB5_ok=yes
13239 fi
13240 fi
13241 fi
13242 if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
13243 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
13244 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
13245 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13246 rra_krb5_save_LDFLAGS="$LDFLAGS"
13247 rra_krb5_save_LIBS="$LIBS"
13248 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13249 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13250 LIBS="$KRB5_LIBS $LIBS"
13251 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
13252 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
13253 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13254 LDFLAGS="$rra_krb5_save_LDFLAGS"
13255 LIBS="$rra_krb5_save_LIBS"
13256 else
13257 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
13258 LDFLAGS="$rra_krb5_save_LDFLAGS"
13259 LIBS="$rra_krb5_save_LIBS"
13260 KRB5_CPPFLAGS=
13261 KRB5_LIBS=
13262 if test x"$rra_krb5_libdir" != x; then :
13263 KRB5_LDFLAGS="-L$rra_krb5_libdir"
13264 else
13265 if test x"$rra_krb5_root" != x; then :
13266
13267 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
13268 if test x"" = x; then :
13269 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
13270 else
13271 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
13272 fi
13273 else
13274 if test x"" = x; then :
13275 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
13276 else
13277 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
13278 fi
13279 fi
13280 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
13281 fi
13282 fi
13283 if test x"$rra_krb5_includedir" != x; then :
13284 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
13285 else
13286 if test x"$rra_krb5_root" != x; then :
13287 if test x"$rra_krb5_root" != x/usr; then :
13288 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
13289 fi
13290 fi
13291 fi
13292 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
13293 rra_krb5_save_LDFLAGS="$LDFLAGS"
13294 rra_krb5_save_LIBS="$LIBS"
13295 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
13296 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
13297 LIBS="$KRB5_LIBS $LIBS"
13298 rra_krb5_extra=
13299 LIBS=
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
13301 $as_echo_n "checking for library containing res_search... " >&6; }
13302 if ${ac_cv_search_res_search+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 ac_func_search_save_LIBS=$LIBS
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308
13309 /* Override any GCC internal prototype to avoid an error.
13310 Use char because int might match the return type of a GCC
13311 builtin and then its argument prototype would still apply. */
13312 #ifdef __cplusplus
13313 extern "C"
13314 #endif
13315 char res_search ();
13316 int
13317 main ()
13318 {
13319 return res_search ();
13320 ;
13321 return 0;
13322 }
13323 _ACEOF
13324 for ac_lib in '' resolv; do
13325 if test -z "$ac_lib"; then
13326 ac_res="none required"
13327 else
13328 ac_res=-l$ac_lib
13329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13330 fi
13331 if ac_fn_c_try_link "$LINENO"; then :
13332 ac_cv_search_res_search=$ac_res
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext
13336 if ${ac_cv_search_res_search+:} false; then :
13337 break
13338 fi
13339 done
13340 if ${ac_cv_search_res_search+:} false; then :
13341
13342 else
13343 ac_cv_search_res_search=no
13344 fi
13345 rm conftest.$ac_ext
13346 LIBS=$ac_func_search_save_LIBS
13347 fi
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
13349 $as_echo "$ac_cv_search_res_search" >&6; }
13350 ac_res=$ac_cv_search_res_search
13351 if test "$ac_res" != no; then :
13352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13353
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
13356 $as_echo_n "checking for library containing __res_search... " >&6; }
13357 if ${ac_cv_search___res_search+:} false; then :
13358 $as_echo_n "(cached) " >&6
13359 else
13360 ac_func_search_save_LIBS=$LIBS
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363
13364 /* Override any GCC internal prototype to avoid an error.
13365 Use char because int might match the return type of a GCC
13366 builtin and then its argument prototype would still apply. */
13367 #ifdef __cplusplus
13368 extern "C"
13369 #endif
13370 char __res_search ();
13371 int
13372 main ()
13373 {
13374 return __res_search ();
13375 ;
13376 return 0;
13377 }
13378 _ACEOF
13379 for ac_lib in '' resolv; do
13380 if test -z "$ac_lib"; then
13381 ac_res="none required"
13382 else
13383 ac_res=-l$ac_lib
13384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13385 fi
13386 if ac_fn_c_try_link "$LINENO"; then :
13387 ac_cv_search___res_search=$ac_res
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext
13391 if ${ac_cv_search___res_search+:} false; then :
13392 break
13393 fi
13394 done
13395 if ${ac_cv_search___res_search+:} false; then :
13396
13397 else
13398 ac_cv_search___res_search=no
13399 fi
13400 rm conftest.$ac_ext
13401 LIBS=$ac_func_search_save_LIBS
13402 fi
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
13404 $as_echo "$ac_cv_search___res_search" >&6; }
13405 ac_res=$ac_cv_search___res_search
13406 if test "$ac_res" != no; then :
13407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13408
13409 fi
13410
13411 fi
13412
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13414 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13415 if ${ac_cv_search_gethostbyname+:} false; then :
13416 $as_echo_n "(cached) " >&6
13417 else
13418 ac_func_search_save_LIBS=$LIBS
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421
13422 /* Override any GCC internal prototype to avoid an error.
13423 Use char because int might match the return type of a GCC
13424 builtin and then its argument prototype would still apply. */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 char gethostbyname ();
13429 int
13430 main ()
13431 {
13432 return gethostbyname ();
13433 ;
13434 return 0;
13435 }
13436 _ACEOF
13437 for ac_lib in '' nsl; do
13438 if test -z "$ac_lib"; then
13439 ac_res="none required"
13440 else
13441 ac_res=-l$ac_lib
13442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13443 fi
13444 if ac_fn_c_try_link "$LINENO"; then :
13445 ac_cv_search_gethostbyname=$ac_res
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext
13449 if ${ac_cv_search_gethostbyname+:} false; then :
13450 break
13451 fi
13452 done
13453 if ${ac_cv_search_gethostbyname+:} false; then :
13454
13455 else
13456 ac_cv_search_gethostbyname=no
13457 fi
13458 rm conftest.$ac_ext
13459 LIBS=$ac_func_search_save_LIBS
13460 fi
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13462 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13463 ac_res=$ac_cv_search_gethostbyname
13464 if test "$ac_res" != no; then :
13465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13466
13467 fi
13468
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13470 $as_echo_n "checking for library containing socket... " >&6; }
13471 if ${ac_cv_search_socket+:} false; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 ac_func_search_save_LIBS=$LIBS
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477
13478 /* Override any GCC internal prototype to avoid an error.
13479 Use char because int might match the return type of a GCC
13480 builtin and then its argument prototype would still apply. */
13481 #ifdef __cplusplus
13482 extern "C"
13483 #endif
13484 char socket ();
13485 int
13486 main ()
13487 {
13488 return socket ();
13489 ;
13490 return 0;
13491 }
13492 _ACEOF
13493 for ac_lib in '' socket; do
13494 if test -z "$ac_lib"; then
13495 ac_res="none required"
13496 else
13497 ac_res=-l$ac_lib
13498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13499 fi
13500 if ac_fn_c_try_link "$LINENO"; then :
13501 ac_cv_search_socket=$ac_res
13502 fi
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext
13505 if ${ac_cv_search_socket+:} false; then :
13506 break
13507 fi
13508 done
13509 if ${ac_cv_search_socket+:} false; then :
13510
13511 else
13512 ac_cv_search_socket=no
13513 fi
13514 rm conftest.$ac_ext
13515 LIBS=$ac_func_search_save_LIBS
13516 fi
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13518 $as_echo "$ac_cv_search_socket" >&6; }
13519 ac_res=$ac_cv_search_socket
13520 if test "$ac_res" != no; then :
13521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13522
13523 else
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
13525 $as_echo_n "checking for socket in -lnsl... " >&6; }
13526 if ${ac_cv_lib_nsl_socket+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 ac_check_lib_save_LIBS=$LIBS
13530 LIBS="-lnsl -lsocket $LIBS"
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533
13534 /* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
13537 #ifdef __cplusplus
13538 extern "C"
13539 #endif
13540 char socket ();
13541 int
13542 main ()
13543 {
13544 return socket ();
13545 ;
13546 return 0;
13547 }
13548 _ACEOF
13549 if ac_fn_c_try_link "$LINENO"; then :
13550 ac_cv_lib_nsl_socket=yes
13551 else
13552 ac_cv_lib_nsl_socket=no
13553 fi
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 LIBS=$ac_check_lib_save_LIBS
13557 fi
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
13559 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
13560 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
13561 LIBS="-lnsl -lsocket $LIBS"
13562 fi
13563
13564 fi
13565
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13567 $as_echo_n "checking for library containing crypt... " >&6; }
13568 if ${ac_cv_search_crypt+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 ac_func_search_save_LIBS=$LIBS
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574
13575 /* Override any GCC internal prototype to avoid an error.
13576 Use char because int might match the return type of a GCC
13577 builtin and then its argument prototype would still apply. */
13578 #ifdef __cplusplus
13579 extern "C"
13580 #endif
13581 char crypt ();
13582 int
13583 main ()
13584 {
13585 return crypt ();
13586 ;
13587 return 0;
13588 }
13589 _ACEOF
13590 for ac_lib in '' crypt; do
13591 if test -z "$ac_lib"; then
13592 ac_res="none required"
13593 else
13594 ac_res=-l$ac_lib
13595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13596 fi
13597 if ac_fn_c_try_link "$LINENO"; then :
13598 ac_cv_search_crypt=$ac_res
13599 fi
13600 rm -f core conftest.err conftest.$ac_objext \
13601 conftest$ac_exeext
13602 if ${ac_cv_search_crypt+:} false; then :
13603 break
13604 fi
13605 done
13606 if ${ac_cv_search_crypt+:} false; then :
13607
13608 else
13609 ac_cv_search_crypt=no
13610 fi
13611 rm conftest.$ac_ext
13612 LIBS=$ac_func_search_save_LIBS
13613 fi
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13615 $as_echo "$ac_cv_search_crypt" >&6; }
13616 ac_res=$ac_cv_search_crypt
13617 if test "$ac_res" != no; then :
13618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13619
13620 fi
13621
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
13623 $as_echo_n "checking for library containing roken_concat... " >&6; }
13624 if ${ac_cv_search_roken_concat+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 ac_func_search_save_LIBS=$LIBS
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13630
13631 /* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
13634 #ifdef __cplusplus
13635 extern "C"
13636 #endif
13637 char roken_concat ();
13638 int
13639 main ()
13640 {
13641 return roken_concat ();
13642 ;
13643 return 0;
13644 }
13645 _ACEOF
13646 for ac_lib in '' roken; do
13647 if test -z "$ac_lib"; then
13648 ac_res="none required"
13649 else
13650 ac_res=-l$ac_lib
13651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13652 fi
13653 if ac_fn_c_try_link "$LINENO"; then :
13654 ac_cv_search_roken_concat=$ac_res
13655 fi
13656 rm -f core conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext
13658 if ${ac_cv_search_roken_concat+:} false; then :
13659 break
13660 fi
13661 done
13662 if ${ac_cv_search_roken_concat+:} false; then :
13663
13664 else
13665 ac_cv_search_roken_concat=no
13666 fi
13667 rm conftest.$ac_ext
13668 LIBS=$ac_func_search_save_LIBS
13669 fi
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
13671 $as_echo "$ac_cv_search_roken_concat" >&6; }
13672 ac_res=$ac_cv_search_roken_concat
13673 if test "$ac_res" != no; then :
13674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13675
13676 fi
13677
13678 rra_krb5_extra="$LIBS"
13679 LIBS="$rra_krb5_save_LIBS"
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
13681 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
13682 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
13683 $as_echo_n "(cached) " >&6
13684 else
13685 ac_check_lib_save_LIBS=$LIBS
13686 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 #endif
13696 char krb5_init_context ();
13697 int
13698 main ()
13699 {
13700 return krb5_init_context ();
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 if ac_fn_c_try_link "$LINENO"; then :
13706 ac_cv_lib_krb5_krb5_init_context=yes
13707 else
13708 ac_cv_lib_krb5_krb5_init_context=no
13709 fi
13710 rm -f core conftest.err conftest.$ac_objext \
13711 conftest$ac_exeext conftest.$ac_ext
13712 LIBS=$ac_check_lib_save_LIBS
13713 fi
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13715 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
13716 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
13717 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
13718 else
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
13720 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
13721 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 ac_check_lib_save_LIBS=$LIBS
13725 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728
13729 /* Override any GCC internal prototype to avoid an error.
13730 Use char because int might match the return type of a GCC
13731 builtin and then its argument prototype would still apply. */
13732 #ifdef __cplusplus
13733 extern "C"
13734 #endif
13735 char krb5int_getspecific ();
13736 int
13737 main ()
13738 {
13739 return krb5int_getspecific ();
13740 ;
13741 return 0;
13742 }
13743 _ACEOF
13744 if ac_fn_c_try_link "$LINENO"; then :
13745 ac_cv_lib_krb5support_krb5int_getspecific=yes
13746 else
13747 ac_cv_lib_krb5support_krb5int_getspecific=no
13748 fi
13749 rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 LIBS=$ac_check_lib_save_LIBS
13752 fi
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
13754 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
13755 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
13756 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
13757 else
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
13759 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
13760 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 ac_check_lib_save_LIBS=$LIBS
13764 LIBS="-lpthreads $LIBS"
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13771 #ifdef __cplusplus
13772 extern "C"
13773 #endif
13774 char pthread_setspecific ();
13775 int
13776 main ()
13777 {
13778 return pthread_setspecific ();
13779 ;
13780 return 0;
13781 }
13782 _ACEOF
13783 if ac_fn_c_try_link "$LINENO"; then :
13784 ac_cv_lib_pthreads_pthread_setspecific=yes
13785 else
13786 ac_cv_lib_pthreads_pthread_setspecific=no
13787 fi
13788 rm -f core conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13790 LIBS=$ac_check_lib_save_LIBS
13791 fi
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
13793 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
13794 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
13795 rra_krb5_pthread="-lpthreads"
13796 else
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
13798 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
13799 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 ac_check_lib_save_LIBS=$LIBS
13803 LIBS="-lpthread $LIBS"
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806
13807 /* Override any GCC internal prototype to avoid an error.
13808 Use char because int might match the return type of a GCC
13809 builtin and then its argument prototype would still apply. */
13810 #ifdef __cplusplus
13811 extern "C"
13812 #endif
13813 char pthread_setspecific ();
13814 int
13815 main ()
13816 {
13817 return pthread_setspecific ();
13818 ;
13819 return 0;
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_link "$LINENO"; then :
13823 ac_cv_lib_pthread_pthread_setspecific=yes
13824 else
13825 ac_cv_lib_pthread_pthread_setspecific=no
13826 fi
13827 rm -f core conftest.err conftest.$ac_objext \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13830 fi
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
13832 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
13833 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
13834 rra_krb5_pthread="-lpthread"
13835 fi
13836
13837 fi
13838
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
13840 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
13841 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 ac_check_lib_save_LIBS=$LIBS
13845 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848
13849 /* Override any GCC internal prototype to avoid an error.
13850 Use char because int might match the return type of a GCC
13851 builtin and then its argument prototype would still apply. */
13852 #ifdef __cplusplus
13853 extern "C"
13854 #endif
13855 char krb5int_setspecific ();
13856 int
13857 main ()
13858 {
13859 return krb5int_setspecific ();
13860 ;
13861 return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_link "$LINENO"; then :
13865 ac_cv_lib_krb5support_krb5int_setspecific=yes
13866 else
13867 ac_cv_lib_krb5support_krb5int_setspecific=no
13868 fi
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 LIBS=$ac_check_lib_save_LIBS
13872 fi
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
13874 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
13875 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
13876 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
13877 fi
13878
13879 fi
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
13882 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
13883 if ${ac_cv_lib_com_err_error_message+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 ac_check_lib_save_LIBS=$LIBS
13887 LIBS="-lcom_err $rra_krb5_extra $LIBS"
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13894 #ifdef __cplusplus
13895 extern "C"
13896 #endif
13897 char error_message ();
13898 int
13899 main ()
13900 {
13901 return error_message ();
13902 ;
13903 return 0;
13904 }
13905 _ACEOF
13906 if ac_fn_c_try_link "$LINENO"; then :
13907 ac_cv_lib_com_err_error_message=yes
13908 else
13909 ac_cv_lib_com_err_error_message=no
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13913 LIBS=$ac_check_lib_save_LIBS
13914 fi
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
13916 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
13917 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
13918 rra_krb5_extra="-lcom_err $rra_krb5_extra"
13919 fi
13920
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
13922 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
13923 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
13924 $as_echo_n "(cached) " >&6
13925 else
13926 ac_check_lib_save_LIBS=$LIBS
13927 LIBS="-lksvc $rra_krb5_extra $LIBS"
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930
13931 /* Override any GCC internal prototype to avoid an error.
13932 Use char because int might match the return type of a GCC
13933 builtin and then its argument prototype would still apply. */
13934 #ifdef __cplusplus
13935 extern "C"
13936 #endif
13937 char krb5_svc_get_msg ();
13938 int
13939 main ()
13940 {
13941 return krb5_svc_get_msg ();
13942 ;
13943 return 0;
13944 }
13945 _ACEOF
13946 if ac_fn_c_try_link "$LINENO"; then :
13947 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
13948 else
13949 ac_cv_lib_ksvc_krb5_svc_get_msg=no
13950 fi
13951 rm -f core conftest.err conftest.$ac_objext \
13952 conftest$ac_exeext conftest.$ac_ext
13953 LIBS=$ac_check_lib_save_LIBS
13954 fi
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
13956 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
13957 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
13958 rra_krb5_extra="-lksvc $rra_krb5_extra"
13959 fi
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
13962 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
13963 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 ac_check_lib_save_LIBS=$LIBS
13967 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char krb5int_hash_md5 ();
13978 int
13979 main ()
13980 {
13981 return krb5int_hash_md5 ();
13982 ;
13983 return 0;
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_link "$LINENO"; then :
13987 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
13988 else
13989 ac_cv_lib_k5crypto_krb5int_hash_md5=no
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LIBS=$ac_check_lib_save_LIBS
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
13996 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
13997 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
13998 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
13999 fi
14000
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
14002 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
14003 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
14004 $as_echo_n "(cached) " >&6
14005 else
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-lk5profile $rra_krb5_extra $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14014 #ifdef __cplusplus
14015 extern "C"
14016 #endif
14017 char profile_get_values ();
14018 int
14019 main ()
14020 {
14021 return profile_get_values ();
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_link "$LINENO"; then :
14027 ac_cv_lib_k5profile_profile_get_values=yes
14028 else
14029 ac_cv_lib_k5profile_profile_get_values=no
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 LIBS=$ac_check_lib_save_LIBS
14034 fi
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
14036 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
14037 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
14038 rra_krb5_extra="-lk5profile $rra_krb5_extra"
14039 fi
14040
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
14042 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
14043 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 ac_check_lib_save_LIBS=$LIBS
14047 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050
14051 /* Override any GCC internal prototype to avoid an error.
14052 Use char because int might match the return type of a GCC
14053 builtin and then its argument prototype would still apply. */
14054 #ifdef __cplusplus
14055 extern "C"
14056 #endif
14057 char krb5_cc_default ();
14058 int
14059 main ()
14060 {
14061 return krb5_cc_default ();
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_c_try_link "$LINENO"; then :
14067 ac_cv_lib_krb5_krb5_cc_default=yes
14068 else
14069 ac_cv_lib_krb5_krb5_cc_default=no
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LIBS=$ac_check_lib_save_LIBS
14074 fi
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
14076 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
14077 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
14078 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
14079 else
14080 if test x"true" = xtrue; then :
14081 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
14082 fi
14083 fi
14084
14085 fi
14086
14087 LIBS="$KRB5_LIBS $LIBS"
14088 if test x"$rra_krb5_incroot" = x; then :
14089 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
14090 do :
14091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14093 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14094 cat >>confdefs.h <<_ACEOF
14095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14096 _ACEOF
14097
14098 fi
14099
14100 done
14101
14102 else
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14104 $as_echo_n "checking for krb5.h... " >&6; }
14105 if test -f "${rra_krb5_incroot}/krb5.h"; then :
14106
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_KRB5_H 1
14109 _ACEOF
14110
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14112 $as_echo "yes" >&6; }
14113 else
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14115 $as_echo "no" >&6; }
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
14118 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
14119 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
14120
14121 cat >>confdefs.h <<_ACEOF
14122 #define HAVE_KERBEROSV5_KRB5_H 1
14123 _ACEOF
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14126 $as_echo "yes" >&6; }
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14132 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14133 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14134
14135 cat >>confdefs.h <<_ACEOF
14136 #define HAVE_KRB5_KRB5_H 1
14137 _ACEOF
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14140 $as_echo "yes" >&6; }
14141 else
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143 $as_echo "no" >&6; }
14144 fi
14145 fi
14146 for ac_func in krb5_get_error_message
14147 do :
14148 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14149 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14150 cat >>confdefs.h <<_ACEOF
14151 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14152 _ACEOF
14153 for ac_func in krb5_free_error_message
14154 do :
14155 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14156 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14157 cat >>confdefs.h <<_ACEOF
14158 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14159 _ACEOF
14160
14161 fi
14162 done
14163
14164 else
14165 for ac_func in krb5_get_error_string
14166 do :
14167 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14168 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14169 cat >>confdefs.h <<_ACEOF
14170 #define HAVE_KRB5_GET_ERROR_STRING 1
14171 _ACEOF
14172
14173 else
14174 for ac_func in krb5_get_err_txt
14175 do :
14176 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14177 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define HAVE_KRB5_GET_ERR_TXT 1
14180 _ACEOF
14181
14182 else
14183 for ac_func in krb5_svc_get_msg
14184 do :
14185 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14186 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14187 cat >>confdefs.h <<_ACEOF
14188 #define HAVE_KRB5_SVC_GET_MSG 1
14189 _ACEOF
14190 for ac_header in ibm_svc/krb5_svc.h
14191 do :
14192 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14193 #if HAVE_KRB5_H
14194 # include <krb5.h>
14195 #elif HAVE_KERBEROSV5_KRB5_H
14196 # include <kerberosv5/krb5.h>
14197 #else
14198 # include <krb5/krb5.h>
14199 #endif
14200
14201 "
14202 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14203 cat >>confdefs.h <<_ACEOF
14204 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14205 _ACEOF
14206
14207 fi
14208
14209 done
14210
14211 else
14212 if test x"$rra_krb5_incroot" = x; then :
14213 for ac_header in et/com_err.h kerberosv5/com_err.h
14214 do :
14215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14216 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14217 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14218 cat >>confdefs.h <<_ACEOF
14219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220 _ACEOF
14221
14222 fi
14223
14224 done
14225
14226 else
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
14228 $as_echo_n "checking for et/com_err.h... " >&6; }
14229 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
14230
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_ET_COM_ERR_H 1
14233 _ACEOF
14234
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14236 $as_echo "yes" >&6; }
14237 else
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239 $as_echo "no" >&6; }
14240 fi
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
14242 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
14243 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
14244
14245 cat >>confdefs.h <<_ACEOF
14246 #define HAVE_KERBEROSV5_COM_ERR_H 1
14247 _ACEOF
14248
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14250 $as_echo "yes" >&6; }
14251 else
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253 $as_echo "no" >&6; }
14254 fi
14255 fi
14256 fi
14257 done
14258
14259 fi
14260 done
14261
14262 fi
14263 done
14264
14265 fi
14266 done
14267
14268 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14269 LDFLAGS="$rra_krb5_save_LDFLAGS"
14270 LIBS="$rra_krb5_save_LIBS"
14271 fi
14272
14273 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14274 rra_krb5_save_LDFLAGS="$LDFLAGS"
14275 rra_krb5_save_LIBS="$LIBS"
14276 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14277 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14278 LIBS="$KRB5_LIBS $LIBS"
14279 if test x"$rra_krb5_incroot" = x; then :
14280 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
14281 do :
14282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14283 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14285 cat >>confdefs.h <<_ACEOF
14286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14287 _ACEOF
14288
14289 fi
14290
14291 done
14292
14293 else
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
14295 $as_echo_n "checking for krb5.h... " >&6; }
14296 if test -f "${rra_krb5_incroot}/krb5.h"; then :
14297
14298 cat >>confdefs.h <<_ACEOF
14299 #define HAVE_KRB5_H 1
14300 _ACEOF
14301
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303 $as_echo "yes" >&6; }
14304 else
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14307 fi
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
14309 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
14310 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
14311
14312 cat >>confdefs.h <<_ACEOF
14313 #define HAVE_KERBEROSV5_KRB5_H 1
14314 _ACEOF
14315
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14317 $as_echo "yes" >&6; }
14318 else
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14321 fi
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
14323 $as_echo_n "checking for krb5/krb5.h... " >&6; }
14324 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
14325
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_KRB5_KRB5_H 1
14328 _ACEOF
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14331 $as_echo "yes" >&6; }
14332 else
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14335 fi
14336 fi
14337 for ac_func in krb5_get_error_message
14338 do :
14339 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
14340 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
14341 cat >>confdefs.h <<_ACEOF
14342 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
14343 _ACEOF
14344 for ac_func in krb5_free_error_message
14345 do :
14346 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
14347 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
14350 _ACEOF
14351
14352 fi
14353 done
14354
14355 else
14356 for ac_func in krb5_get_error_string
14357 do :
14358 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
14359 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
14360 cat >>confdefs.h <<_ACEOF
14361 #define HAVE_KRB5_GET_ERROR_STRING 1
14362 _ACEOF
14363
14364 else
14365 for ac_func in krb5_get_err_txt
14366 do :
14367 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
14368 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_KRB5_GET_ERR_TXT 1
14371 _ACEOF
14372
14373 else
14374 for ac_func in krb5_svc_get_msg
14375 do :
14376 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
14377 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
14378 cat >>confdefs.h <<_ACEOF
14379 #define HAVE_KRB5_SVC_GET_MSG 1
14380 _ACEOF
14381 for ac_header in ibm_svc/krb5_svc.h
14382 do :
14383 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
14384 #if HAVE_KRB5_H
14385 # include <krb5.h>
14386 #elif HAVE_KERBEROSV5_KRB5_H
14387 # include <kerberosv5/krb5.h>
14388 #else
14389 # include <krb5/krb5.h>
14390 #endif
14391
14392 "
14393 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
14394 cat >>confdefs.h <<_ACEOF
14395 #define HAVE_IBM_SVC_KRB5_SVC_H 1
14396 _ACEOF
14397
14398 fi
14399
14400 done
14401
14402 else
14403 if test x"$rra_krb5_incroot" = x; then :
14404 for ac_header in et/com_err.h kerberosv5/com_err.h
14405 do :
14406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14409 cat >>confdefs.h <<_ACEOF
14410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14411 _ACEOF
14412
14413 fi
14414
14415 done
14416
14417 else
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
14419 $as_echo_n "checking for et/com_err.h... " >&6; }
14420 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
14421
14422 cat >>confdefs.h <<_ACEOF
14423 #define HAVE_ET_COM_ERR_H 1
14424 _ACEOF
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14427 $as_echo "yes" >&6; }
14428 else
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14430 $as_echo "no" >&6; }
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
14433 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
14434 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
14435
14436 cat >>confdefs.h <<_ACEOF
14437 #define HAVE_KERBEROSV5_COM_ERR_H 1
14438 _ACEOF
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14441 $as_echo "yes" >&6; }
14442 else
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14444 $as_echo "no" >&6; }
14445 fi
14446 fi
14447 fi
14448 done
14449
14450 fi
14451 done
14452
14453 fi
14454 done
14455
14456 fi
14457 done
14458
14459 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
14460 LDFLAGS="$rra_krb5_save_LDFLAGS"
14461 LIBS="$rra_krb5_save_LIBS"
14462 else
14463 if test x"$rra_krb5_libdir" != x; then :
14464 KRB5_LDFLAGS="-L$rra_krb5_libdir"
14465 else
14466 if test x"$rra_krb5_root" != x; then :
14467
14468 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
14469 if test x"" = x; then :
14470 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
14471 else
14472 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
14473 fi
14474 else
14475 if test x"" = x; then :
14476 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
14477 else
14478 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
14479 fi
14480 fi
14481 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
14482 fi
14483 fi
14484 if test x"$rra_krb5_includedir" != x; then :
14485 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
14486 else
14487 if test x"$rra_krb5_root" != x; then :
14488 if test x"$rra_krb5_root" != x/usr; then :
14489 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
14490 fi
14491 fi
14492 fi
14493 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
14494 rra_krb5_save_LDFLAGS="$LDFLAGS"
14495 rra_krb5_save_LIBS="$LIBS"
14496 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
14497 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
14498 LIBS="$KRB5_LIBS $LIBS"
14499 rra_krb5_extra=
14500 LIBS=
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
14502 $as_echo_n "checking for library containing res_search... " >&6; }
14503 if ${ac_cv_search_res_search+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 ac_func_search_save_LIBS=$LIBS
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509
14510 /* Override any GCC internal prototype to avoid an error.
14511 Use char because int might match the return type of a GCC
14512 builtin and then its argument prototype would still apply. */
14513 #ifdef __cplusplus
14514 extern "C"
14515 #endif
14516 char res_search ();
14517 int
14518 main ()
14519 {
14520 return res_search ();
14521 ;
14522 return 0;
14523 }
14524 _ACEOF
14525 for ac_lib in '' resolv; do
14526 if test -z "$ac_lib"; then
14527 ac_res="none required"
14528 else
14529 ac_res=-l$ac_lib
14530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14531 fi
14532 if ac_fn_c_try_link "$LINENO"; then :
14533 ac_cv_search_res_search=$ac_res
14534 fi
14535 rm -f core conftest.err conftest.$ac_objext \
14536 conftest$ac_exeext
14537 if ${ac_cv_search_res_search+:} false; then :
14538 break
14539 fi
14540 done
14541 if ${ac_cv_search_res_search+:} false; then :
14542
14543 else
14544 ac_cv_search_res_search=no
14545 fi
14546 rm conftest.$ac_ext
14547 LIBS=$ac_func_search_save_LIBS
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
14550 $as_echo "$ac_cv_search_res_search" >&6; }
14551 ac_res=$ac_cv_search_res_search
14552 if test "$ac_res" != no; then :
14553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14554
14555 else
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
14557 $as_echo_n "checking for library containing __res_search... " >&6; }
14558 if ${ac_cv_search___res_search+:} false; then :
14559 $as_echo_n "(cached) " >&6
14560 else
14561 ac_func_search_save_LIBS=$LIBS
14562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h. */
14564
14565 /* Override any GCC internal prototype to avoid an error.
14566 Use char because int might match the return type of a GCC
14567 builtin and then its argument prototype would still apply. */
14568 #ifdef __cplusplus
14569 extern "C"
14570 #endif
14571 char __res_search ();
14572 int
14573 main ()
14574 {
14575 return __res_search ();
14576 ;
14577 return 0;
14578 }
14579 _ACEOF
14580 for ac_lib in '' resolv; do
14581 if test -z "$ac_lib"; then
14582 ac_res="none required"
14583 else
14584 ac_res=-l$ac_lib
14585 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14586 fi
14587 if ac_fn_c_try_link "$LINENO"; then :
14588 ac_cv_search___res_search=$ac_res
14589 fi
14590 rm -f core conftest.err conftest.$ac_objext \
14591 conftest$ac_exeext
14592 if ${ac_cv_search___res_search+:} false; then :
14593 break
14594 fi
14595 done
14596 if ${ac_cv_search___res_search+:} false; then :
14597
14598 else
14599 ac_cv_search___res_search=no
14600 fi
14601 rm conftest.$ac_ext
14602 LIBS=$ac_func_search_save_LIBS
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
14605 $as_echo "$ac_cv_search___res_search" >&6; }
14606 ac_res=$ac_cv_search___res_search
14607 if test "$ac_res" != no; then :
14608 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14609
14610 fi
14611
14612 fi
14613
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14615 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14616 if ${ac_cv_search_gethostbyname+:} false; then :
14617 $as_echo_n "(cached) " >&6
14618 else
14619 ac_func_search_save_LIBS=$LIBS
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14622
14623 /* Override any GCC internal prototype to avoid an error.
14624 Use char because int might match the return type of a GCC
14625 builtin and then its argument prototype would still apply. */
14626 #ifdef __cplusplus
14627 extern "C"
14628 #endif
14629 char gethostbyname ();
14630 int
14631 main ()
14632 {
14633 return gethostbyname ();
14634 ;
14635 return 0;
14636 }
14637 _ACEOF
14638 for ac_lib in '' nsl; do
14639 if test -z "$ac_lib"; then
14640 ac_res="none required"
14641 else
14642 ac_res=-l$ac_lib
14643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14644 fi
14645 if ac_fn_c_try_link "$LINENO"; then :
14646 ac_cv_search_gethostbyname=$ac_res
14647 fi
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext
14650 if ${ac_cv_search_gethostbyname+:} false; then :
14651 break
14652 fi
14653 done
14654 if ${ac_cv_search_gethostbyname+:} false; then :
14655
14656 else
14657 ac_cv_search_gethostbyname=no
14658 fi
14659 rm conftest.$ac_ext
14660 LIBS=$ac_func_search_save_LIBS
14661 fi
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14663 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14664 ac_res=$ac_cv_search_gethostbyname
14665 if test "$ac_res" != no; then :
14666 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14667
14668 fi
14669
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14671 $as_echo_n "checking for library containing socket... " >&6; }
14672 if ${ac_cv_search_socket+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 ac_func_search_save_LIBS=$LIBS
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14678
14679 /* Override any GCC internal prototype to avoid an error.
14680 Use char because int might match the return type of a GCC
14681 builtin and then its argument prototype would still apply. */
14682 #ifdef __cplusplus
14683 extern "C"
14684 #endif
14685 char socket ();
14686 int
14687 main ()
14688 {
14689 return socket ();
14690 ;
14691 return 0;
14692 }
14693 _ACEOF
14694 for ac_lib in '' socket; do
14695 if test -z "$ac_lib"; then
14696 ac_res="none required"
14697 else
14698 ac_res=-l$ac_lib
14699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14700 fi
14701 if ac_fn_c_try_link "$LINENO"; then :
14702 ac_cv_search_socket=$ac_res
14703 fi
14704 rm -f core conftest.err conftest.$ac_objext \
14705 conftest$ac_exeext
14706 if ${ac_cv_search_socket+:} false; then :
14707 break
14708 fi
14709 done
14710 if ${ac_cv_search_socket+:} false; then :
14711
14712 else
14713 ac_cv_search_socket=no
14714 fi
14715 rm conftest.$ac_ext
14716 LIBS=$ac_func_search_save_LIBS
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14719 $as_echo "$ac_cv_search_socket" >&6; }
14720 ac_res=$ac_cv_search_socket
14721 if test "$ac_res" != no; then :
14722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14723
14724 else
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
14726 $as_echo_n "checking for socket in -lnsl... " >&6; }
14727 if ${ac_cv_lib_nsl_socket+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 ac_check_lib_save_LIBS=$LIBS
14731 LIBS="-lnsl -lsocket $LIBS"
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14734
14735 /* Override any GCC internal prototype to avoid an error.
14736 Use char because int might match the return type of a GCC
14737 builtin and then its argument prototype would still apply. */
14738 #ifdef __cplusplus
14739 extern "C"
14740 #endif
14741 char socket ();
14742 int
14743 main ()
14744 {
14745 return socket ();
14746 ;
14747 return 0;
14748 }
14749 _ACEOF
14750 if ac_fn_c_try_link "$LINENO"; then :
14751 ac_cv_lib_nsl_socket=yes
14752 else
14753 ac_cv_lib_nsl_socket=no
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext \
14756 conftest$ac_exeext conftest.$ac_ext
14757 LIBS=$ac_check_lib_save_LIBS
14758 fi
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
14760 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
14761 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
14762 LIBS="-lnsl -lsocket $LIBS"
14763 fi
14764
14765 fi
14766
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
14768 $as_echo_n "checking for library containing crypt... " >&6; }
14769 if ${ac_cv_search_crypt+:} false; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 ac_func_search_save_LIBS=$LIBS
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 char crypt ();
14783 int
14784 main ()
14785 {
14786 return crypt ();
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 for ac_lib in '' crypt; do
14792 if test -z "$ac_lib"; then
14793 ac_res="none required"
14794 else
14795 ac_res=-l$ac_lib
14796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14797 fi
14798 if ac_fn_c_try_link "$LINENO"; then :
14799 ac_cv_search_crypt=$ac_res
14800 fi
14801 rm -f core conftest.err conftest.$ac_objext \
14802 conftest$ac_exeext
14803 if ${ac_cv_search_crypt+:} false; then :
14804 break
14805 fi
14806 done
14807 if ${ac_cv_search_crypt+:} false; then :
14808
14809 else
14810 ac_cv_search_crypt=no
14811 fi
14812 rm conftest.$ac_ext
14813 LIBS=$ac_func_search_save_LIBS
14814 fi
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
14816 $as_echo "$ac_cv_search_crypt" >&6; }
14817 ac_res=$ac_cv_search_crypt
14818 if test "$ac_res" != no; then :
14819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14820
14821 fi
14822
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
14824 $as_echo_n "checking for library containing roken_concat... " >&6; }
14825 if ${ac_cv_search_roken_concat+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827 else
14828 ac_func_search_save_LIBS=$LIBS
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831
14832 /* Override any GCC internal prototype to avoid an error.
14833 Use char because int might match the return type of a GCC
14834 builtin and then its argument prototype would still apply. */
14835 #ifdef __cplusplus
14836 extern "C"
14837 #endif
14838 char roken_concat ();
14839 int
14840 main ()
14841 {
14842 return roken_concat ();
14843 ;
14844 return 0;
14845 }
14846 _ACEOF
14847 for ac_lib in '' roken; do
14848 if test -z "$ac_lib"; then
14849 ac_res="none required"
14850 else
14851 ac_res=-l$ac_lib
14852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14853 fi
14854 if ac_fn_c_try_link "$LINENO"; then :
14855 ac_cv_search_roken_concat=$ac_res
14856 fi
14857 rm -f core conftest.err conftest.$ac_objext \
14858 conftest$ac_exeext
14859 if ${ac_cv_search_roken_concat+:} false; then :
14860 break
14861 fi
14862 done
14863 if ${ac_cv_search_roken_concat+:} false; then :
14864
14865 else
14866 ac_cv_search_roken_concat=no
14867 fi
14868 rm conftest.$ac_ext
14869 LIBS=$ac_func_search_save_LIBS
14870 fi
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
14872 $as_echo "$ac_cv_search_roken_concat" >&6; }
14873 ac_res=$ac_cv_search_roken_concat
14874 if test "$ac_res" != no; then :
14875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14876
14877 fi
14878
14879 rra_krb5_extra="$LIBS"
14880 LIBS="$rra_krb5_save_LIBS"
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
14882 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
14883 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char krb5_init_context ();
14898 int
14899 main ()
14900 {
14901 return krb5_init_context ();
14902 ;
14903 return 0;
14904 }
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907 ac_cv_lib_krb5_krb5_init_context=yes
14908 else
14909 ac_cv_lib_krb5_krb5_init_context=no
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14914 fi
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
14916 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
14917 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
14918 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
14919 else
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
14921 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
14922 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 ac_check_lib_save_LIBS=$LIBS
14926 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929
14930 /* Override any GCC internal prototype to avoid an error.
14931 Use char because int might match the return type of a GCC
14932 builtin and then its argument prototype would still apply. */
14933 #ifdef __cplusplus
14934 extern "C"
14935 #endif
14936 char krb5int_getspecific ();
14937 int
14938 main ()
14939 {
14940 return krb5int_getspecific ();
14941 ;
14942 return 0;
14943 }
14944 _ACEOF
14945 if ac_fn_c_try_link "$LINENO"; then :
14946 ac_cv_lib_krb5support_krb5int_getspecific=yes
14947 else
14948 ac_cv_lib_krb5support_krb5int_getspecific=no
14949 fi
14950 rm -f core conftest.err conftest.$ac_objext \
14951 conftest$ac_exeext conftest.$ac_ext
14952 LIBS=$ac_check_lib_save_LIBS
14953 fi
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
14955 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
14956 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
14957 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
14958 else
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
14960 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
14961 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 ac_check_lib_save_LIBS=$LIBS
14965 LIBS="-lpthreads $LIBS"
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 char pthread_setspecific ();
14976 int
14977 main ()
14978 {
14979 return pthread_setspecific ();
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 ac_cv_lib_pthreads_pthread_setspecific=yes
14986 else
14987 ac_cv_lib_pthreads_pthread_setspecific=no
14988 fi
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 LIBS=$ac_check_lib_save_LIBS
14992 fi
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
14994 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
14995 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
14996 rra_krb5_pthread="-lpthreads"
14997 else
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
14999 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
15000 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
15001 $as_echo_n "(cached) " >&6
15002 else
15003 ac_check_lib_save_LIBS=$LIBS
15004 LIBS="-lpthread $LIBS"
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15007
15008 /* Override any GCC internal prototype to avoid an error.
15009 Use char because int might match the return type of a GCC
15010 builtin and then its argument prototype would still apply. */
15011 #ifdef __cplusplus
15012 extern "C"
15013 #endif
15014 char pthread_setspecific ();
15015 int
15016 main ()
15017 {
15018 return pthread_setspecific ();
15019 ;
15020 return 0;
15021 }
15022 _ACEOF
15023 if ac_fn_c_try_link "$LINENO"; then :
15024 ac_cv_lib_pthread_pthread_setspecific=yes
15025 else
15026 ac_cv_lib_pthread_pthread_setspecific=no
15027 fi
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15030 LIBS=$ac_check_lib_save_LIBS
15031 fi
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
15033 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
15034 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
15035 rra_krb5_pthread="-lpthread"
15036 fi
15037
15038 fi
15039
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
15041 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
15042 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 ac_check_lib_save_LIBS=$LIBS
15046 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15053 #ifdef __cplusplus
15054 extern "C"
15055 #endif
15056 char krb5int_setspecific ();
15057 int
15058 main ()
15059 {
15060 return krb5int_setspecific ();
15061 ;
15062 return 0;
15063 }
15064 _ACEOF
15065 if ac_fn_c_try_link "$LINENO"; then :
15066 ac_cv_lib_krb5support_krb5int_setspecific=yes
15067 else
15068 ac_cv_lib_krb5support_krb5int_setspecific=no
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext \
15071 conftest$ac_exeext conftest.$ac_ext
15072 LIBS=$ac_check_lib_save_LIBS
15073 fi
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
15075 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
15076 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
15077 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
15078 fi
15079
15080 fi
15081
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
15083 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
15084 if ${ac_cv_lib_com_err_error_message+:} false; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 ac_check_lib_save_LIBS=$LIBS
15088 LIBS="-lcom_err $rra_krb5_extra $LIBS"
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091
15092 /* Override any GCC internal prototype to avoid an error.
15093 Use char because int might match the return type of a GCC
15094 builtin and then its argument prototype would still apply. */
15095 #ifdef __cplusplus
15096 extern "C"
15097 #endif
15098 char error_message ();
15099 int
15100 main ()
15101 {
15102 return error_message ();
15103 ;
15104 return 0;
15105 }
15106 _ACEOF
15107 if ac_fn_c_try_link "$LINENO"; then :
15108 ac_cv_lib_com_err_error_message=yes
15109 else
15110 ac_cv_lib_com_err_error_message=no
15111 fi
15112 rm -f core conftest.err conftest.$ac_objext \
15113 conftest$ac_exeext conftest.$ac_ext
15114 LIBS=$ac_check_lib_save_LIBS
15115 fi
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
15117 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
15118 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
15119 rra_krb5_extra="-lcom_err $rra_krb5_extra"
15120 fi
15121
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
15123 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
15124 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 ac_check_lib_save_LIBS=$LIBS
15128 LIBS="-lksvc $rra_krb5_extra $LIBS"
15129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15130 /* end confdefs.h. */
15131
15132 /* Override any GCC internal prototype to avoid an error.
15133 Use char because int might match the return type of a GCC
15134 builtin and then its argument prototype would still apply. */
15135 #ifdef __cplusplus
15136 extern "C"
15137 #endif
15138 char krb5_svc_get_msg ();
15139 int
15140 main ()
15141 {
15142 return krb5_svc_get_msg ();
15143 ;
15144 return 0;
15145 }
15146 _ACEOF
15147 if ac_fn_c_try_link "$LINENO"; then :
15148 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
15149 else
15150 ac_cv_lib_ksvc_krb5_svc_get_msg=no
15151 fi
15152 rm -f core conftest.err conftest.$ac_objext \
15153 conftest$ac_exeext conftest.$ac_ext
15154 LIBS=$ac_check_lib_save_LIBS
15155 fi
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
15157 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
15158 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
15159 rra_krb5_extra="-lksvc $rra_krb5_extra"
15160 fi
15161
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
15163 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
15164 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
15165 $as_echo_n "(cached) " >&6
15166 else
15167 ac_check_lib_save_LIBS=$LIBS
15168 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171
15172 /* Override any GCC internal prototype to avoid an error.
15173 Use char because int might match the return type of a GCC
15174 builtin and then its argument prototype would still apply. */
15175 #ifdef __cplusplus
15176 extern "C"
15177 #endif
15178 char krb5int_hash_md5 ();
15179 int
15180 main ()
15181 {
15182 return krb5int_hash_md5 ();
15183 ;
15184 return 0;
15185 }
15186 _ACEOF
15187 if ac_fn_c_try_link "$LINENO"; then :
15188 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
15189 else
15190 ac_cv_lib_k5crypto_krb5int_hash_md5=no
15191 fi
15192 rm -f core conftest.err conftest.$ac_objext \
15193 conftest$ac_exeext conftest.$ac_ext
15194 LIBS=$ac_check_lib_save_LIBS
15195 fi
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
15197 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
15198 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
15199 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
15200 fi
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
15203 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
15204 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
15205 $as_echo_n "(cached) " >&6
15206 else
15207 ac_check_lib_save_LIBS=$LIBS
15208 LIBS="-lk5profile $rra_krb5_extra $LIBS"
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211
15212 /* Override any GCC internal prototype to avoid an error.
15213 Use char because int might match the return type of a GCC
15214 builtin and then its argument prototype would still apply. */
15215 #ifdef __cplusplus
15216 extern "C"
15217 #endif
15218 char profile_get_values ();
15219 int
15220 main ()
15221 {
15222 return profile_get_values ();
15223 ;
15224 return 0;
15225 }
15226 _ACEOF
15227 if ac_fn_c_try_link "$LINENO"; then :
15228 ac_cv_lib_k5profile_profile_get_values=yes
15229 else
15230 ac_cv_lib_k5profile_profile_get_values=no
15231 fi
15232 rm -f core conftest.err conftest.$ac_objext \
15233 conftest$ac_exeext conftest.$ac_ext
15234 LIBS=$ac_check_lib_save_LIBS
15235 fi
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
15237 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
15238 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
15239 rra_krb5_extra="-lk5profile $rra_krb5_extra"
15240 fi
15241
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
15243 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
15244 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
15245 $as_echo_n "(cached) " >&6
15246 else
15247 ac_check_lib_save_LIBS=$LIBS
15248 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
15249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h. */
15251
15252 /* Override any GCC internal prototype to avoid an error.
15253 Use char because int might match the return type of a GCC
15254 builtin and then its argument prototype would still apply. */
15255 #ifdef __cplusplus
15256 extern "C"
15257 #endif
15258 char krb5_cc_default ();
15259 int
15260 main ()
15261 {
15262 return krb5_cc_default ();
15263 ;
15264 return 0;
15265 }
15266 _ACEOF
15267 if ac_fn_c_try_link "$LINENO"; then :
15268 ac_cv_lib_krb5_krb5_cc_default=yes
15269 else
15270 ac_cv_lib_krb5_krb5_cc_default=no
15271 fi
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15274 LIBS=$ac_check_lib_save_LIBS
15275 fi
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
15277 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
15278 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
15279 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
15280 else
15281 if test x"true" = xtrue; then :
15282 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
15283 fi
15284 fi
15285
15286 fi
15287
15288 LIBS="$KRB5_LIBS $LIBS"
15289 if test x"$rra_krb5_incroot" = x; then :
15290 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
15291 do :
15292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15293 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15295 cat >>confdefs.h <<_ACEOF
15296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15297 _ACEOF
15298
15299 fi
15300
15301 done
15302
15303 else
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
15305 $as_echo_n "checking for krb5.h... " >&6; }
15306 if test -f "${rra_krb5_incroot}/krb5.h"; then :
15307
15308 cat >>confdefs.h <<_ACEOF
15309 #define HAVE_KRB5_H 1
15310 _ACEOF
15311
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15313 $as_echo "yes" >&6; }
15314 else
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15316 $as_echo "no" >&6; }
15317 fi
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
15319 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
15320 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
15321
15322 cat >>confdefs.h <<_ACEOF
15323 #define HAVE_KERBEROSV5_KRB5_H 1
15324 _ACEOF
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15327 $as_echo "yes" >&6; }
15328 else
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15330 $as_echo "no" >&6; }
15331 fi
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
15333 $as_echo_n "checking for krb5/krb5.h... " >&6; }
15334 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
15335
15336 cat >>confdefs.h <<_ACEOF
15337 #define HAVE_KRB5_KRB5_H 1
15338 _ACEOF
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15341 $as_echo "yes" >&6; }
15342 else
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15345 fi
15346 fi
15347 for ac_func in krb5_get_error_message
15348 do :
15349 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
15350 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
15351 cat >>confdefs.h <<_ACEOF
15352 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
15353 _ACEOF
15354 for ac_func in krb5_free_error_message
15355 do :
15356 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
15357 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
15358 cat >>confdefs.h <<_ACEOF
15359 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
15360 _ACEOF
15361
15362 fi
15363 done
15364
15365 else
15366 for ac_func in krb5_get_error_string
15367 do :
15368 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
15369 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define HAVE_KRB5_GET_ERROR_STRING 1
15372 _ACEOF
15373
15374 else
15375 for ac_func in krb5_get_err_txt
15376 do :
15377 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
15378 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
15379 cat >>confdefs.h <<_ACEOF
15380 #define HAVE_KRB5_GET_ERR_TXT 1
15381 _ACEOF
15382
15383 else
15384 for ac_func in krb5_svc_get_msg
15385 do :
15386 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
15387 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
15388 cat >>confdefs.h <<_ACEOF
15389 #define HAVE_KRB5_SVC_GET_MSG 1
15390 _ACEOF
15391 for ac_header in ibm_svc/krb5_svc.h
15392 do :
15393 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
15394 #if HAVE_KRB5_H
15395 # include <krb5.h>
15396 #elif HAVE_KERBEROSV5_KRB5_H
15397 # include <kerberosv5/krb5.h>
15398 #else
15399 # include <krb5/krb5.h>
15400 #endif
15401
15402 "
15403 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
15404 cat >>confdefs.h <<_ACEOF
15405 #define HAVE_IBM_SVC_KRB5_SVC_H 1
15406 _ACEOF
15407
15408 fi
15409
15410 done
15411
15412 else
15413 if test x"$rra_krb5_incroot" = x; then :
15414 for ac_header in et/com_err.h kerberosv5/com_err.h
15415 do :
15416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15417 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15418 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15419 cat >>confdefs.h <<_ACEOF
15420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15421 _ACEOF
15422
15423 fi
15424
15425 done
15426
15427 else
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
15429 $as_echo_n "checking for et/com_err.h... " >&6; }
15430 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
15431
15432 cat >>confdefs.h <<_ACEOF
15433 #define HAVE_ET_COM_ERR_H 1
15434 _ACEOF
15435
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15437 $as_echo "yes" >&6; }
15438 else
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15440 $as_echo "no" >&6; }
15441 fi
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
15443 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
15444 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
15445
15446 cat >>confdefs.h <<_ACEOF
15447 #define HAVE_KERBEROSV5_COM_ERR_H 1
15448 _ACEOF
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15451 $as_echo "yes" >&6; }
15452 else
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15454 $as_echo "no" >&6; }
15455 fi
15456 fi
15457 fi
15458 done
15459
15460 fi
15461 done
15462
15463 fi
15464 done
15465
15466 fi
15467 done
15468
15469 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
15470 LDFLAGS="$rra_krb5_save_LDFLAGS"
15471 LIBS="$rra_krb5_save_LIBS"
15472 fi
15473 else
15474 if test x"$rra_krb5_libdir" != x; then :
15475 KRB5_LDFLAGS="-L$rra_krb5_libdir"
15476 else
15477 if test x"$rra_krb5_root" != x; then :
15478
15479 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
15480 if test x"" = x; then :
15481 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
15482 else
15483 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
15484 fi
15485 else
15486 if test x"" = x; then :
15487 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
15488 else
15489 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
15490 fi
15491 fi
15492 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
15493 fi
15494 fi
15495 if test x"$rra_krb5_includedir" != x; then :
15496 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
15497 else
15498 if test x"$rra_krb5_root" != x; then :
15499 if test x"$rra_krb5_root" != x/usr; then :
15500 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
15501 fi
15502 fi
15503 fi
15504 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
15505 rra_krb5_save_LDFLAGS="$LDFLAGS"
15506 rra_krb5_save_LIBS="$LIBS"
15507 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
15508 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
15509 LIBS="$KRB5_LIBS $LIBS"
15510 rra_krb5_extra=
15511 LIBS=
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
15513 $as_echo_n "checking for library containing res_search... " >&6; }
15514 if ${ac_cv_search_res_search+:} false; then :
15515 $as_echo_n "(cached) " >&6
15516 else
15517 ac_func_search_save_LIBS=$LIBS
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520
15521 /* Override any GCC internal prototype to avoid an error.
15522 Use char because int might match the return type of a GCC
15523 builtin and then its argument prototype would still apply. */
15524 #ifdef __cplusplus
15525 extern "C"
15526 #endif
15527 char res_search ();
15528 int
15529 main ()
15530 {
15531 return res_search ();
15532 ;
15533 return 0;
15534 }
15535 _ACEOF
15536 for ac_lib in '' resolv; do
15537 if test -z "$ac_lib"; then
15538 ac_res="none required"
15539 else
15540 ac_res=-l$ac_lib
15541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15542 fi
15543 if ac_fn_c_try_link "$LINENO"; then :
15544 ac_cv_search_res_search=$ac_res
15545 fi
15546 rm -f core conftest.err conftest.$ac_objext \
15547 conftest$ac_exeext
15548 if ${ac_cv_search_res_search+:} false; then :
15549 break
15550 fi
15551 done
15552 if ${ac_cv_search_res_search+:} false; then :
15553
15554 else
15555 ac_cv_search_res_search=no
15556 fi
15557 rm conftest.$ac_ext
15558 LIBS=$ac_func_search_save_LIBS
15559 fi
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
15561 $as_echo "$ac_cv_search_res_search" >&6; }
15562 ac_res=$ac_cv_search_res_search
15563 if test "$ac_res" != no; then :
15564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15565
15566 else
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
15568 $as_echo_n "checking for library containing __res_search... " >&6; }
15569 if ${ac_cv_search___res_search+:} false; then :
15570 $as_echo_n "(cached) " >&6
15571 else
15572 ac_func_search_save_LIBS=$LIBS
15573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15574 /* end confdefs.h. */
15575
15576 /* Override any GCC internal prototype to avoid an error.
15577 Use char because int might match the return type of a GCC
15578 builtin and then its argument prototype would still apply. */
15579 #ifdef __cplusplus
15580 extern "C"
15581 #endif
15582 char __res_search ();
15583 int
15584 main ()
15585 {
15586 return __res_search ();
15587 ;
15588 return 0;
15589 }
15590 _ACEOF
15591 for ac_lib in '' resolv; do
15592 if test -z "$ac_lib"; then
15593 ac_res="none required"
15594 else
15595 ac_res=-l$ac_lib
15596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15597 fi
15598 if ac_fn_c_try_link "$LINENO"; then :
15599 ac_cv_search___res_search=$ac_res
15600 fi
15601 rm -f core conftest.err conftest.$ac_objext \
15602 conftest$ac_exeext
15603 if ${ac_cv_search___res_search+:} false; then :
15604 break
15605 fi
15606 done
15607 if ${ac_cv_search___res_search+:} false; then :
15608
15609 else
15610 ac_cv_search___res_search=no
15611 fi
15612 rm conftest.$ac_ext
15613 LIBS=$ac_func_search_save_LIBS
15614 fi
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
15616 $as_echo "$ac_cv_search___res_search" >&6; }
15617 ac_res=$ac_cv_search___res_search
15618 if test "$ac_res" != no; then :
15619 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15620
15621 fi
15622
15623 fi
15624
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15626 $as_echo_n "checking for library containing gethostbyname... " >&6; }
15627 if ${ac_cv_search_gethostbyname+:} false; then :
15628 $as_echo_n "(cached) " >&6
15629 else
15630 ac_func_search_save_LIBS=$LIBS
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15633
15634 /* Override any GCC internal prototype to avoid an error.
15635 Use char because int might match the return type of a GCC
15636 builtin and then its argument prototype would still apply. */
15637 #ifdef __cplusplus
15638 extern "C"
15639 #endif
15640 char gethostbyname ();
15641 int
15642 main ()
15643 {
15644 return gethostbyname ();
15645 ;
15646 return 0;
15647 }
15648 _ACEOF
15649 for ac_lib in '' nsl; do
15650 if test -z "$ac_lib"; then
15651 ac_res="none required"
15652 else
15653 ac_res=-l$ac_lib
15654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15655 fi
15656 if ac_fn_c_try_link "$LINENO"; then :
15657 ac_cv_search_gethostbyname=$ac_res
15658 fi
15659 rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext
15661 if ${ac_cv_search_gethostbyname+:} false; then :
15662 break
15663 fi
15664 done
15665 if ${ac_cv_search_gethostbyname+:} false; then :
15666
15667 else
15668 ac_cv_search_gethostbyname=no
15669 fi
15670 rm conftest.$ac_ext
15671 LIBS=$ac_func_search_save_LIBS
15672 fi
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15674 $as_echo "$ac_cv_search_gethostbyname" >&6; }
15675 ac_res=$ac_cv_search_gethostbyname
15676 if test "$ac_res" != no; then :
15677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15678
15679 fi
15680
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15682 $as_echo_n "checking for library containing socket... " >&6; }
15683 if ${ac_cv_search_socket+:} false; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 ac_func_search_save_LIBS=$LIBS
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689
15690 /* Override any GCC internal prototype to avoid an error.
15691 Use char because int might match the return type of a GCC
15692 builtin and then its argument prototype would still apply. */
15693 #ifdef __cplusplus
15694 extern "C"
15695 #endif
15696 char socket ();
15697 int
15698 main ()
15699 {
15700 return socket ();
15701 ;
15702 return 0;
15703 }
15704 _ACEOF
15705 for ac_lib in '' socket; do
15706 if test -z "$ac_lib"; then
15707 ac_res="none required"
15708 else
15709 ac_res=-l$ac_lib
15710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15711 fi
15712 if ac_fn_c_try_link "$LINENO"; then :
15713 ac_cv_search_socket=$ac_res
15714 fi
15715 rm -f core conftest.err conftest.$ac_objext \
15716 conftest$ac_exeext
15717 if ${ac_cv_search_socket+:} false; then :
15718 break
15719 fi
15720 done
15721 if ${ac_cv_search_socket+:} false; then :
15722
15723 else
15724 ac_cv_search_socket=no
15725 fi
15726 rm conftest.$ac_ext
15727 LIBS=$ac_func_search_save_LIBS
15728 fi
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15730 $as_echo "$ac_cv_search_socket" >&6; }
15731 ac_res=$ac_cv_search_socket
15732 if test "$ac_res" != no; then :
15733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15734
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
15737 $as_echo_n "checking for socket in -lnsl... " >&6; }
15738 if ${ac_cv_lib_nsl_socket+:} false; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 ac_check_lib_save_LIBS=$LIBS
15742 LIBS="-lnsl -lsocket $LIBS"
15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15745
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15749 #ifdef __cplusplus
15750 extern "C"
15751 #endif
15752 char socket ();
15753 int
15754 main ()
15755 {
15756 return socket ();
15757 ;
15758 return 0;
15759 }
15760 _ACEOF
15761 if ac_fn_c_try_link "$LINENO"; then :
15762 ac_cv_lib_nsl_socket=yes
15763 else
15764 ac_cv_lib_nsl_socket=no
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext \
15767 conftest$ac_exeext conftest.$ac_ext
15768 LIBS=$ac_check_lib_save_LIBS
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
15771 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
15772 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
15773 LIBS="-lnsl -lsocket $LIBS"
15774 fi
15775
15776 fi
15777
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
15779 $as_echo_n "checking for library containing crypt... " >&6; }
15780 if ${ac_cv_search_crypt+:} false; then :
15781 $as_echo_n "(cached) " >&6
15782 else
15783 ac_func_search_save_LIBS=$LIBS
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15786
15787 /* Override any GCC internal prototype to avoid an error.
15788 Use char because int might match the return type of a GCC
15789 builtin and then its argument prototype would still apply. */
15790 #ifdef __cplusplus
15791 extern "C"
15792 #endif
15793 char crypt ();
15794 int
15795 main ()
15796 {
15797 return crypt ();
15798 ;
15799 return 0;
15800 }
15801 _ACEOF
15802 for ac_lib in '' crypt; do
15803 if test -z "$ac_lib"; then
15804 ac_res="none required"
15805 else
15806 ac_res=-l$ac_lib
15807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15808 fi
15809 if ac_fn_c_try_link "$LINENO"; then :
15810 ac_cv_search_crypt=$ac_res
15811 fi
15812 rm -f core conftest.err conftest.$ac_objext \
15813 conftest$ac_exeext
15814 if ${ac_cv_search_crypt+:} false; then :
15815 break
15816 fi
15817 done
15818 if ${ac_cv_search_crypt+:} false; then :
15819
15820 else
15821 ac_cv_search_crypt=no
15822 fi
15823 rm conftest.$ac_ext
15824 LIBS=$ac_func_search_save_LIBS
15825 fi
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
15827 $as_echo "$ac_cv_search_crypt" >&6; }
15828 ac_res=$ac_cv_search_crypt
15829 if test "$ac_res" != no; then :
15830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15831
15832 fi
15833
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
15835 $as_echo_n "checking for library containing roken_concat... " >&6; }
15836 if ${ac_cv_search_roken_concat+:} false; then :
15837 $as_echo_n "(cached) " >&6
15838 else
15839 ac_func_search_save_LIBS=$LIBS
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842
15843 /* Override any GCC internal prototype to avoid an error.
15844 Use char because int might match the return type of a GCC
15845 builtin and then its argument prototype would still apply. */
15846 #ifdef __cplusplus
15847 extern "C"
15848 #endif
15849 char roken_concat ();
15850 int
15851 main ()
15852 {
15853 return roken_concat ();
15854 ;
15855 return 0;
15856 }
15857 _ACEOF
15858 for ac_lib in '' roken; do
15859 if test -z "$ac_lib"; then
15860 ac_res="none required"
15861 else
15862 ac_res=-l$ac_lib
15863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15864 fi
15865 if ac_fn_c_try_link "$LINENO"; then :
15866 ac_cv_search_roken_concat=$ac_res
15867 fi
15868 rm -f core conftest.err conftest.$ac_objext \
15869 conftest$ac_exeext
15870 if ${ac_cv_search_roken_concat+:} false; then :
15871 break
15872 fi
15873 done
15874 if ${ac_cv_search_roken_concat+:} false; then :
15875
15876 else
15877 ac_cv_search_roken_concat=no
15878 fi
15879 rm conftest.$ac_ext
15880 LIBS=$ac_func_search_save_LIBS
15881 fi
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
15883 $as_echo "$ac_cv_search_roken_concat" >&6; }
15884 ac_res=$ac_cv_search_roken_concat
15885 if test "$ac_res" != no; then :
15886 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15887
15888 fi
15889
15890 rra_krb5_extra="$LIBS"
15891 LIBS="$rra_krb5_save_LIBS"
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
15893 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
15894 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
15895 $as_echo_n "(cached) " >&6
15896 else
15897 ac_check_lib_save_LIBS=$LIBS
15898 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15901
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 char krb5_init_context ();
15909 int
15910 main ()
15911 {
15912 return krb5_init_context ();
15913 ;
15914 return 0;
15915 }
15916 _ACEOF
15917 if ac_fn_c_try_link "$LINENO"; then :
15918 ac_cv_lib_krb5_krb5_init_context=yes
15919 else
15920 ac_cv_lib_krb5_krb5_init_context=no
15921 fi
15922 rm -f core conftest.err conftest.$ac_objext \
15923 conftest$ac_exeext conftest.$ac_ext
15924 LIBS=$ac_check_lib_save_LIBS
15925 fi
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
15927 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
15928 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
15929 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
15930 else
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
15932 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
15933 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
15934 $as_echo_n "(cached) " >&6
15935 else
15936 ac_check_lib_save_LIBS=$LIBS
15937 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940
15941 /* Override any GCC internal prototype to avoid an error.
15942 Use char because int might match the return type of a GCC
15943 builtin and then its argument prototype would still apply. */
15944 #ifdef __cplusplus
15945 extern "C"
15946 #endif
15947 char krb5int_getspecific ();
15948 int
15949 main ()
15950 {
15951 return krb5int_getspecific ();
15952 ;
15953 return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_link "$LINENO"; then :
15957 ac_cv_lib_krb5support_krb5int_getspecific=yes
15958 else
15959 ac_cv_lib_krb5support_krb5int_getspecific=no
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext \
15962 conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15964 fi
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
15966 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
15967 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
15968 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
15969 else
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
15971 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
15972 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 ac_check_lib_save_LIBS=$LIBS
15976 LIBS="-lpthreads $LIBS"
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979
15980 /* Override any GCC internal prototype to avoid an error.
15981 Use char because int might match the return type of a GCC
15982 builtin and then its argument prototype would still apply. */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 char pthread_setspecific ();
15987 int
15988 main ()
15989 {
15990 return pthread_setspecific ();
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 if ac_fn_c_try_link "$LINENO"; then :
15996 ac_cv_lib_pthreads_pthread_setspecific=yes
15997 else
15998 ac_cv_lib_pthreads_pthread_setspecific=no
15999 fi
16000 rm -f core conftest.err conftest.$ac_objext \
16001 conftest$ac_exeext conftest.$ac_ext
16002 LIBS=$ac_check_lib_save_LIBS
16003 fi
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
16005 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
16006 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
16007 rra_krb5_pthread="-lpthreads"
16008 else
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
16010 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
16011 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
16012 $as_echo_n "(cached) " >&6
16013 else
16014 ac_check_lib_save_LIBS=$LIBS
16015 LIBS="-lpthread $LIBS"
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16018
16019 /* Override any GCC internal prototype to avoid an error.
16020 Use char because int might match the return type of a GCC
16021 builtin and then its argument prototype would still apply. */
16022 #ifdef __cplusplus
16023 extern "C"
16024 #endif
16025 char pthread_setspecific ();
16026 int
16027 main ()
16028 {
16029 return pthread_setspecific ();
16030 ;
16031 return 0;
16032 }
16033 _ACEOF
16034 if ac_fn_c_try_link "$LINENO"; then :
16035 ac_cv_lib_pthread_pthread_setspecific=yes
16036 else
16037 ac_cv_lib_pthread_pthread_setspecific=no
16038 fi
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
16044 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
16045 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
16046 rra_krb5_pthread="-lpthread"
16047 fi
16048
16049 fi
16050
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
16052 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
16053 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16056 ac_check_lib_save_LIBS=$LIBS
16057 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16060
16061 /* Override any GCC internal prototype to avoid an error.
16062 Use char because int might match the return type of a GCC
16063 builtin and then its argument prototype would still apply. */
16064 #ifdef __cplusplus
16065 extern "C"
16066 #endif
16067 char krb5int_setspecific ();
16068 int
16069 main ()
16070 {
16071 return krb5int_setspecific ();
16072 ;
16073 return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"; then :
16077 ac_cv_lib_krb5support_krb5int_setspecific=yes
16078 else
16079 ac_cv_lib_krb5support_krb5int_setspecific=no
16080 fi
16081 rm -f core conftest.err conftest.$ac_objext \
16082 conftest$ac_exeext conftest.$ac_ext
16083 LIBS=$ac_check_lib_save_LIBS
16084 fi
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
16086 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
16087 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
16088 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
16089 fi
16090
16091 fi
16092
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
16094 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
16095 if ${ac_cv_lib_com_err_error_message+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 ac_check_lib_save_LIBS=$LIBS
16099 LIBS="-lcom_err $rra_krb5_extra $LIBS"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102
16103 /* Override any GCC internal prototype to avoid an error.
16104 Use char because int might match the return type of a GCC
16105 builtin and then its argument prototype would still apply. */
16106 #ifdef __cplusplus
16107 extern "C"
16108 #endif
16109 char error_message ();
16110 int
16111 main ()
16112 {
16113 return error_message ();
16114 ;
16115 return 0;
16116 }
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_lib_com_err_error_message=yes
16120 else
16121 ac_cv_lib_com_err_error_message=no
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16126 fi
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
16128 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
16129 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
16130 rra_krb5_extra="-lcom_err $rra_krb5_extra"
16131 fi
16132
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
16134 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
16135 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
16136 $as_echo_n "(cached) " >&6
16137 else
16138 ac_check_lib_save_LIBS=$LIBS
16139 LIBS="-lksvc $rra_krb5_extra $LIBS"
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142
16143 /* Override any GCC internal prototype to avoid an error.
16144 Use char because int might match the return type of a GCC
16145 builtin and then its argument prototype would still apply. */
16146 #ifdef __cplusplus
16147 extern "C"
16148 #endif
16149 char krb5_svc_get_msg ();
16150 int
16151 main ()
16152 {
16153 return krb5_svc_get_msg ();
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"; then :
16159 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
16160 else
16161 ac_cv_lib_ksvc_krb5_svc_get_msg=no
16162 fi
16163 rm -f core conftest.err conftest.$ac_objext \
16164 conftest$ac_exeext conftest.$ac_ext
16165 LIBS=$ac_check_lib_save_LIBS
16166 fi
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
16168 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
16169 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
16170 rra_krb5_extra="-lksvc $rra_krb5_extra"
16171 fi
16172
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
16174 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
16175 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
16176 $as_echo_n "(cached) " >&6
16177 else
16178 ac_check_lib_save_LIBS=$LIBS
16179 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16181 /* end confdefs.h. */
16182
16183 /* Override any GCC internal prototype to avoid an error.
16184 Use char because int might match the return type of a GCC
16185 builtin and then its argument prototype would still apply. */
16186 #ifdef __cplusplus
16187 extern "C"
16188 #endif
16189 char krb5int_hash_md5 ();
16190 int
16191 main ()
16192 {
16193 return krb5int_hash_md5 ();
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"; then :
16199 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
16200 else
16201 ac_cv_lib_k5crypto_krb5int_hash_md5=no
16202 fi
16203 rm -f core conftest.err conftest.$ac_objext \
16204 conftest$ac_exeext conftest.$ac_ext
16205 LIBS=$ac_check_lib_save_LIBS
16206 fi
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
16208 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
16209 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
16210 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
16211 fi
16212
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
16214 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
16215 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 ac_check_lib_save_LIBS=$LIBS
16219 LIBS="-lk5profile $rra_krb5_extra $LIBS"
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222
16223 /* Override any GCC internal prototype to avoid an error.
16224 Use char because int might match the return type of a GCC
16225 builtin and then its argument prototype would still apply. */
16226 #ifdef __cplusplus
16227 extern "C"
16228 #endif
16229 char profile_get_values ();
16230 int
16231 main ()
16232 {
16233 return profile_get_values ();
16234 ;
16235 return 0;
16236 }
16237 _ACEOF
16238 if ac_fn_c_try_link "$LINENO"; then :
16239 ac_cv_lib_k5profile_profile_get_values=yes
16240 else
16241 ac_cv_lib_k5profile_profile_get_values=no
16242 fi
16243 rm -f core conftest.err conftest.$ac_objext \
16244 conftest$ac_exeext conftest.$ac_ext
16245 LIBS=$ac_check_lib_save_LIBS
16246 fi
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
16248 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
16249 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
16250 rra_krb5_extra="-lk5profile $rra_krb5_extra"
16251 fi
16252
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
16254 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
16255 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
16256 $as_echo_n "(cached) " >&6
16257 else
16258 ac_check_lib_save_LIBS=$LIBS
16259 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h. */
16262
16263 /* Override any GCC internal prototype to avoid an error.
16264 Use char because int might match the return type of a GCC
16265 builtin and then its argument prototype would still apply. */
16266 #ifdef __cplusplus
16267 extern "C"
16268 #endif
16269 char krb5_cc_default ();
16270 int
16271 main ()
16272 {
16273 return krb5_cc_default ();
16274 ;
16275 return 0;
16276 }
16277 _ACEOF
16278 if ac_fn_c_try_link "$LINENO"; then :
16279 ac_cv_lib_krb5_krb5_cc_default=yes
16280 else
16281 ac_cv_lib_krb5_krb5_cc_default=no
16282 fi
16283 rm -f core conftest.err conftest.$ac_objext \
16284 conftest$ac_exeext conftest.$ac_ext
16285 LIBS=$ac_check_lib_save_LIBS
16286 fi
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
16288 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
16289 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
16290 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
16291 else
16292 if test x"true" = xtrue; then :
16293 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16294 fi
16295 fi
16296
16297 fi
16298
16299 LIBS="$KRB5_LIBS $LIBS"
16300 if test x"$rra_krb5_incroot" = x; then :
16301 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16302 do :
16303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16304 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16306 cat >>confdefs.h <<_ACEOF
16307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16308 _ACEOF
16309
16310 fi
16311
16312 done
16313
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16316 $as_echo_n "checking for krb5.h... " >&6; }
16317 if test -f "${rra_krb5_incroot}/krb5.h"; then :
16318
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_KRB5_H 1
16321 _ACEOF
16322
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16324 $as_echo "yes" >&6; }
16325 else
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327 $as_echo "no" >&6; }
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16330 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
16331 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
16332
16333 cat >>confdefs.h <<_ACEOF
16334 #define HAVE_KERBEROSV5_KRB5_H 1
16335 _ACEOF
16336
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16338 $as_echo "yes" >&6; }
16339 else
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 $as_echo "no" >&6; }
16342 fi
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16344 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16345 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16346
16347 cat >>confdefs.h <<_ACEOF
16348 #define HAVE_KRB5_KRB5_H 1
16349 _ACEOF
16350
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16352 $as_echo "yes" >&6; }
16353 else
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16355 $as_echo "no" >&6; }
16356 fi
16357 fi
16358 for ac_func in krb5_get_error_message
16359 do :
16360 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16361 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16362 cat >>confdefs.h <<_ACEOF
16363 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16364 _ACEOF
16365 for ac_func in krb5_free_error_message
16366 do :
16367 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16368 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16369 cat >>confdefs.h <<_ACEOF
16370 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16371 _ACEOF
16372
16373 fi
16374 done
16375
16376 else
16377 for ac_func in krb5_get_error_string
16378 do :
16379 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16380 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16381 cat >>confdefs.h <<_ACEOF
16382 #define HAVE_KRB5_GET_ERROR_STRING 1
16383 _ACEOF
16384
16385 else
16386 for ac_func in krb5_get_err_txt
16387 do :
16388 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16389 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16390 cat >>confdefs.h <<_ACEOF
16391 #define HAVE_KRB5_GET_ERR_TXT 1
16392 _ACEOF
16393
16394 else
16395 for ac_func in krb5_svc_get_msg
16396 do :
16397 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
16398 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
16399 cat >>confdefs.h <<_ACEOF
16400 #define HAVE_KRB5_SVC_GET_MSG 1
16401 _ACEOF
16402 for ac_header in ibm_svc/krb5_svc.h
16403 do :
16404 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16405 #if HAVE_KRB5_H
16406 # include <krb5.h>
16407 #elif HAVE_KERBEROSV5_KRB5_H
16408 # include <kerberosv5/krb5.h>
16409 #else
16410 # include <krb5/krb5.h>
16411 #endif
16412
16413 "
16414 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16415 cat >>confdefs.h <<_ACEOF
16416 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16417 _ACEOF
16418
16419 fi
16420
16421 done
16422
16423 else
16424 if test x"$rra_krb5_incroot" = x; then :
16425 for ac_header in et/com_err.h kerberosv5/com_err.h
16426 do :
16427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16428 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16430 cat >>confdefs.h <<_ACEOF
16431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432 _ACEOF
16433
16434 fi
16435
16436 done
16437
16438 else
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
16440 $as_echo_n "checking for et/com_err.h... " >&6; }
16441 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
16442
16443 cat >>confdefs.h <<_ACEOF
16444 #define HAVE_ET_COM_ERR_H 1
16445 _ACEOF
16446
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448 $as_echo "yes" >&6; }
16449 else
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451 $as_echo "no" >&6; }
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
16454 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
16455 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
16456
16457 cat >>confdefs.h <<_ACEOF
16458 #define HAVE_KERBEROSV5_COM_ERR_H 1
16459 _ACEOF
16460
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16462 $as_echo "yes" >&6; }
16463 else
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16465 $as_echo "no" >&6; }
16466 fi
16467 fi
16468 fi
16469 done
16470
16471 fi
16472 done
16473
16474 fi
16475 done
16476
16477 fi
16478 done
16479
16480 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16481 LDFLAGS="$rra_krb5_save_LDFLAGS"
16482 LIBS="$rra_krb5_save_LIBS"
16483 fi
16484 fi
16485 rra_krb5_uses_com_err=false
16486 case $KRB5_LIBS in #(
16487 *-lcom_err*) :
16488 rra_krb5_uses_com_err=true ;; #(
16489 *) :
16490 ;;
16491 esac
16492 if test x"$rra_krb5_uses_com_err" = xtrue; then
16493 KRB5_USES_COM_ERR_TRUE=
16494 KRB5_USES_COM_ERR_FALSE='#'
16495 else
16496 KRB5_USES_COM_ERR_TRUE='#'
16497 KRB5_USES_COM_ERR_FALSE=
16498 fi
16499
16500 KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'`
16501 else
16502
16503 rra_krb5_incroot=
16504
16505
16506
16507
16508 if test x"$rra_krb5_includedir" != x; then :
16509 rra_krb5_incroot="$rra_krb5_includedir"
16510 else
16511 if test x"$rra_krb5_root" != x; then :
16512 rra_krb5_incroot="${rra_krb5_root}/include"
16513 fi
16514 fi
16515 if test x"$rra_reduced_depends" = xtrue; then :
16516 if test x"$rra_krb5_libdir" != x; then :
16517 KRB5_LDFLAGS="-L$rra_krb5_libdir"
16518 else
16519 if test x"$rra_krb5_root" != x; then :
16520
16521 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
16522 if test x"" = x; then :
16523 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
16524 else
16525 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
16526 fi
16527 else
16528 if test x"" = x; then :
16529 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
16530 else
16531 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
16532 fi
16533 fi
16534 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
16535 fi
16536 fi
16537 if test x"$rra_krb5_includedir" != x; then :
16538 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
16539 else
16540 if test x"$rra_krb5_root" != x; then :
16541 if test x"$rra_krb5_root" != x/usr; then :
16542 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
16543 fi
16544 fi
16545 fi
16546 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16547 rra_krb5_save_LDFLAGS="$LDFLAGS"
16548 rra_krb5_save_LIBS="$LIBS"
16549 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16550 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16551 LIBS="$KRB5_LIBS $LIBS"
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16553 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16554 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 ac_check_lib_save_LIBS=$LIBS
16558 LIBS="-lkrb5 $LIBS"
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560 /* end confdefs.h. */
16561
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16565 #ifdef __cplusplus
16566 extern "C"
16567 #endif
16568 char krb5_init_context ();
16569 int
16570 main ()
16571 {
16572 return krb5_init_context ();
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 if ac_fn_c_try_link "$LINENO"; then :
16578 ac_cv_lib_krb5_krb5_init_context=yes
16579 else
16580 ac_cv_lib_krb5_krb5_init_context=no
16581 fi
16582 rm -f core conftest.err conftest.$ac_objext \
16583 conftest$ac_exeext conftest.$ac_ext
16584 LIBS=$ac_check_lib_save_LIBS
16585 fi
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16587 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16588 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
16589 KRB5_LIBS="-lkrb5"
16590 else
16591 if test x"false" = xtrue; then :
16592 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16593 fi
16594 fi
16595
16596 LIBS="$KRB5_LIBS $LIBS"
16597 if test x"$rra_krb5_incroot" = x; then :
16598 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16599 do :
16600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16601 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16602 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16603 cat >>confdefs.h <<_ACEOF
16604 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16605 _ACEOF
16606
16607 fi
16608
16609 done
16610
16611 else
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16613 $as_echo_n "checking for krb5.h... " >&6; }
16614 if test -f "${rra_krb5_incroot}/krb5.h"; then :
16615
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_KRB5_H 1
16618 _ACEOF
16619
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16621 $as_echo "yes" >&6; }
16622 else
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16624 $as_echo "no" >&6; }
16625 fi
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16627 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
16628 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
16629
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_KERBEROSV5_KRB5_H 1
16632 _ACEOF
16633
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16635 $as_echo "yes" >&6; }
16636 else
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16639 fi
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16641 $as_echo_n "checking for krb5/krb5.h... " >&6; }
16642 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
16643
16644 cat >>confdefs.h <<_ACEOF
16645 #define HAVE_KRB5_KRB5_H 1
16646 _ACEOF
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16649 $as_echo "yes" >&6; }
16650 else
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652 $as_echo "no" >&6; }
16653 fi
16654 fi
16655 for ac_func in krb5_get_error_message
16656 do :
16657 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16658 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
16659 cat >>confdefs.h <<_ACEOF
16660 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
16661 _ACEOF
16662 for ac_func in krb5_free_error_message
16663 do :
16664 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16665 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
16666 cat >>confdefs.h <<_ACEOF
16667 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
16668 _ACEOF
16669
16670 fi
16671 done
16672
16673 else
16674 for ac_func in krb5_get_error_string
16675 do :
16676 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16677 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_KRB5_GET_ERROR_STRING 1
16680 _ACEOF
16681
16682 else
16683 for ac_func in krb5_get_err_txt
16684 do :
16685 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16686 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
16687 cat >>confdefs.h <<_ACEOF
16688 #define HAVE_KRB5_GET_ERR_TXT 1
16689 _ACEOF
16690
16691 else
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
16693 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
16694 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
16695 $as_echo_n "(cached) " >&6
16696 else
16697 ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lksvc $LIBS"
16699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h. */
16701
16702 /* Override any GCC internal prototype to avoid an error.
16703 Use char because int might match the return type of a GCC
16704 builtin and then its argument prototype would still apply. */
16705 #ifdef __cplusplus
16706 extern "C"
16707 #endif
16708 char krb5_svc_get_msg ();
16709 int
16710 main ()
16711 {
16712 return krb5_svc_get_msg ();
16713 ;
16714 return 0;
16715 }
16716 _ACEOF
16717 if ac_fn_c_try_link "$LINENO"; then :
16718 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
16719 else
16720 ac_cv_lib_ksvc_krb5_svc_get_msg=no
16721 fi
16722 rm -f core conftest.err conftest.$ac_objext \
16723 conftest$ac_exeext conftest.$ac_ext
16724 LIBS=$ac_check_lib_save_LIBS
16725 fi
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
16727 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
16728 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
16729 KRB5_LIBS="$KRB5_LIBS -lksvc"
16730 $as_echo "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
16731
16732 for ac_header in ibm_svc/krb5_svc.h
16733 do :
16734 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16735 #if HAVE_KRB5_H
16736 # include <krb5.h>
16737 #elif HAVE_KERBEROSV5_KRB5_H
16738 # include <kerberosv5/krb5.h>
16739 #else
16740 # include <krb5/krb5.h>
16741 #endif
16742
16743 "
16744 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
16745 cat >>confdefs.h <<_ACEOF
16746 #define HAVE_IBM_SVC_KRB5_SVC_H 1
16747 _ACEOF
16748
16749 fi
16750
16751 done
16752
16753 else
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16755 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
16756 if ${ac_cv_lib_com_err_com_err+:} false; then :
16757 $as_echo_n "(cached) " >&6
16758 else
16759 ac_check_lib_save_LIBS=$LIBS
16760 LIBS="-lcom_err $LIBS"
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16763
16764 /* Override any GCC internal prototype to avoid an error.
16765 Use char because int might match the return type of a GCC
16766 builtin and then its argument prototype would still apply. */
16767 #ifdef __cplusplus
16768 extern "C"
16769 #endif
16770 char com_err ();
16771 int
16772 main ()
16773 {
16774 return com_err ();
16775 ;
16776 return 0;
16777 }
16778 _ACEOF
16779 if ac_fn_c_try_link "$LINENO"; then :
16780 ac_cv_lib_com_err_com_err=yes
16781 else
16782 ac_cv_lib_com_err_com_err=no
16783 fi
16784 rm -f core conftest.err conftest.$ac_objext \
16785 conftest$ac_exeext conftest.$ac_ext
16786 LIBS=$ac_check_lib_save_LIBS
16787 fi
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16789 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
16790 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
16791 KRB5_LIBS="$KRB5_LIBS -lcom_err"
16792 else
16793 if test x"false" = xtrue; then :
16794 as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
16795 else
16796 KRB5_LIBS=""
16797 fi
16798 fi
16799
16800 if test x"$rra_krb5_incroot" = x; then :
16801 for ac_header in et/com_err.h kerberosv5/com_err.h
16802 do :
16803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16806 cat >>confdefs.h <<_ACEOF
16807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16808 _ACEOF
16809
16810 fi
16811
16812 done
16813
16814 else
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
16816 $as_echo_n "checking for et/com_err.h... " >&6; }
16817 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
16818
16819 cat >>confdefs.h <<_ACEOF
16820 #define HAVE_ET_COM_ERR_H 1
16821 _ACEOF
16822
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16824 $as_echo "yes" >&6; }
16825 else
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827 $as_echo "no" >&6; }
16828 fi
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
16830 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
16831 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
16832
16833 cat >>confdefs.h <<_ACEOF
16834 #define HAVE_KERBEROSV5_COM_ERR_H 1
16835 _ACEOF
16836
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16838 $as_echo "yes" >&6; }
16839 else
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16841 $as_echo "no" >&6; }
16842 fi
16843 fi
16844 fi
16845
16846 fi
16847 done
16848
16849 fi
16850 done
16851
16852 fi
16853 done
16854
16855 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16856 LDFLAGS="$rra_krb5_save_LDFLAGS"
16857 LIBS="$rra_krb5_save_LIBS"
16858 else
16859 if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x; then :
16860
16861 rra_krb5_config_KRB5=
16862 rra_krb5_config_KRB5_ok=
16863 if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"; then :
16864 rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
16865 else
16866 rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
16867 fi
16868 if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"; then :
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
16870 $as_echo_n "checking for krb5 support in krb5-config... " >&6; }
16871 if ${rra_cv_lib_KRB5_config+:} false; then :
16872 $as_echo_n "(cached) " >&6
16873 else
16874 if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1; then :
16875 rra_cv_lib_KRB5_config=yes
16876 else
16877 rra_cv_lib_KRB5_config=no
16878 fi
16879 fi
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
16881 $as_echo "$rra_cv_lib_KRB5_config" >&6; }
16882 if test "$rra_cv_lib_KRB5_config" = yes; then :
16883 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
16884
16885
16886
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
16888 $as_echo_n "checking for --deps support in krb5-config... " >&6; }
16889 if ${rra_cv_krb5_config_deps+:} false; then :
16890 $as_echo_n "(cached) " >&6
16891 else
16892 if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1; then :
16893 rra_cv_krb5_config_deps=yes
16894 else
16895 rra_cv_krb5_config_deps=no
16896 fi
16897 fi
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
16899 $as_echo "$rra_cv_krb5_config_deps" >&6; }
16900 if test x"$rra_reduced_depends" = xfalse \
16901 && test x"$rra_cv_krb5_config_deps" = xyes; then :
16902 KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
16903 else
16904 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
16905 fi
16906 rra_krb5_config_KRB5_ok=yes
16907 else
16908 if test x"krb5" = xkrb5; then :
16909 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
16910 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
16911 rra_krb5_config_KRB5_ok=yes
16912 fi
16913 fi
16914 fi
16915 if test x"$rra_krb5_config_KRB5_ok" = xyes; then :
16916 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
16917 KRB5_CPPFLAGS=`echo "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
16918 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16919 rra_krb5_save_LDFLAGS="$LDFLAGS"
16920 rra_krb5_save_LIBS="$LIBS"
16921 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16922 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16923 LIBS="$KRB5_LIBS $LIBS"
16924 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
16925 if test "x$ac_cv_func_krb5_init_context" = xyes; then :
16926 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16927 LDFLAGS="$rra_krb5_save_LDFLAGS"
16928 LIBS="$rra_krb5_save_LIBS"
16929 else
16930 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16931 LDFLAGS="$rra_krb5_save_LDFLAGS"
16932 LIBS="$rra_krb5_save_LIBS"
16933 KRB5_CPPFLAGS=
16934 KRB5_LIBS=
16935 if test x"$rra_krb5_libdir" != x; then :
16936 KRB5_LDFLAGS="-L$rra_krb5_libdir"
16937 else
16938 if test x"$rra_krb5_root" != x; then :
16939
16940 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
16941 if test x"" = x; then :
16942 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
16943 else
16944 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
16945 fi
16946 else
16947 if test x"" = x; then :
16948 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
16949 else
16950 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
16951 fi
16952 fi
16953 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
16954 fi
16955 fi
16956 if test x"$rra_krb5_includedir" != x; then :
16957 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
16958 else
16959 if test x"$rra_krb5_root" != x; then :
16960 if test x"$rra_krb5_root" != x/usr; then :
16961 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
16962 fi
16963 fi
16964 fi
16965 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16966 rra_krb5_save_LDFLAGS="$LDFLAGS"
16967 rra_krb5_save_LIBS="$LIBS"
16968 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16969 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16970 LIBS="$KRB5_LIBS $LIBS"
16971 rra_krb5_extra=
16972 LIBS=
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
16974 $as_echo_n "checking for library containing res_search... " >&6; }
16975 if ${ac_cv_search_res_search+:} false; then :
16976 $as_echo_n "(cached) " >&6
16977 else
16978 ac_func_search_save_LIBS=$LIBS
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981
16982 /* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
16985 #ifdef __cplusplus
16986 extern "C"
16987 #endif
16988 char res_search ();
16989 int
16990 main ()
16991 {
16992 return res_search ();
16993 ;
16994 return 0;
16995 }
16996 _ACEOF
16997 for ac_lib in '' resolv; do
16998 if test -z "$ac_lib"; then
16999 ac_res="none required"
17000 else
17001 ac_res=-l$ac_lib
17002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17003 fi
17004 if ac_fn_c_try_link "$LINENO"; then :
17005 ac_cv_search_res_search=$ac_res
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext
17009 if ${ac_cv_search_res_search+:} false; then :
17010 break
17011 fi
17012 done
17013 if ${ac_cv_search_res_search+:} false; then :
17014
17015 else
17016 ac_cv_search_res_search=no
17017 fi
17018 rm conftest.$ac_ext
17019 LIBS=$ac_func_search_save_LIBS
17020 fi
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
17022 $as_echo "$ac_cv_search_res_search" >&6; }
17023 ac_res=$ac_cv_search_res_search
17024 if test "$ac_res" != no; then :
17025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17026
17027 else
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
17029 $as_echo_n "checking for library containing __res_search... " >&6; }
17030 if ${ac_cv_search___res_search+:} false; then :
17031 $as_echo_n "(cached) " >&6
17032 else
17033 ac_func_search_save_LIBS=$LIBS
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17036
17037 /* Override any GCC internal prototype to avoid an error.
17038 Use char because int might match the return type of a GCC
17039 builtin and then its argument prototype would still apply. */
17040 #ifdef __cplusplus
17041 extern "C"
17042 #endif
17043 char __res_search ();
17044 int
17045 main ()
17046 {
17047 return __res_search ();
17048 ;
17049 return 0;
17050 }
17051 _ACEOF
17052 for ac_lib in '' resolv; do
17053 if test -z "$ac_lib"; then
17054 ac_res="none required"
17055 else
17056 ac_res=-l$ac_lib
17057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17058 fi
17059 if ac_fn_c_try_link "$LINENO"; then :
17060 ac_cv_search___res_search=$ac_res
17061 fi
17062 rm -f core conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext
17064 if ${ac_cv_search___res_search+:} false; then :
17065 break
17066 fi
17067 done
17068 if ${ac_cv_search___res_search+:} false; then :
17069
17070 else
17071 ac_cv_search___res_search=no
17072 fi
17073 rm conftest.$ac_ext
17074 LIBS=$ac_func_search_save_LIBS
17075 fi
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
17077 $as_echo "$ac_cv_search___res_search" >&6; }
17078 ac_res=$ac_cv_search___res_search
17079 if test "$ac_res" != no; then :
17080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17081
17082 fi
17083
17084 fi
17085
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
17087 $as_echo_n "checking for library containing gethostbyname... " >&6; }
17088 if ${ac_cv_search_gethostbyname+:} false; then :
17089 $as_echo_n "(cached) " >&6
17090 else
17091 ac_func_search_save_LIBS=$LIBS
17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17093 /* end confdefs.h. */
17094
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17098 #ifdef __cplusplus
17099 extern "C"
17100 #endif
17101 char gethostbyname ();
17102 int
17103 main ()
17104 {
17105 return gethostbyname ();
17106 ;
17107 return 0;
17108 }
17109 _ACEOF
17110 for ac_lib in '' nsl; do
17111 if test -z "$ac_lib"; then
17112 ac_res="none required"
17113 else
17114 ac_res=-l$ac_lib
17115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17116 fi
17117 if ac_fn_c_try_link "$LINENO"; then :
17118 ac_cv_search_gethostbyname=$ac_res
17119 fi
17120 rm -f core conftest.err conftest.$ac_objext \
17121 conftest$ac_exeext
17122 if ${ac_cv_search_gethostbyname+:} false; then :
17123 break
17124 fi
17125 done
17126 if ${ac_cv_search_gethostbyname+:} false; then :
17127
17128 else
17129 ac_cv_search_gethostbyname=no
17130 fi
17131 rm conftest.$ac_ext
17132 LIBS=$ac_func_search_save_LIBS
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
17135 $as_echo "$ac_cv_search_gethostbyname" >&6; }
17136 ac_res=$ac_cv_search_gethostbyname
17137 if test "$ac_res" != no; then :
17138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17139
17140 fi
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17143 $as_echo_n "checking for library containing socket... " >&6; }
17144 if ${ac_cv_search_socket+:} false; then :
17145 $as_echo_n "(cached) " >&6
17146 else
17147 ac_func_search_save_LIBS=$LIBS
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17150
17151 /* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
17154 #ifdef __cplusplus
17155 extern "C"
17156 #endif
17157 char socket ();
17158 int
17159 main ()
17160 {
17161 return socket ();
17162 ;
17163 return 0;
17164 }
17165 _ACEOF
17166 for ac_lib in '' socket; do
17167 if test -z "$ac_lib"; then
17168 ac_res="none required"
17169 else
17170 ac_res=-l$ac_lib
17171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17172 fi
17173 if ac_fn_c_try_link "$LINENO"; then :
17174 ac_cv_search_socket=$ac_res
17175 fi
17176 rm -f core conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext
17178 if ${ac_cv_search_socket+:} false; then :
17179 break
17180 fi
17181 done
17182 if ${ac_cv_search_socket+:} false; then :
17183
17184 else
17185 ac_cv_search_socket=no
17186 fi
17187 rm conftest.$ac_ext
17188 LIBS=$ac_func_search_save_LIBS
17189 fi
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17191 $as_echo "$ac_cv_search_socket" >&6; }
17192 ac_res=$ac_cv_search_socket
17193 if test "$ac_res" != no; then :
17194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17195
17196 else
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
17198 $as_echo_n "checking for socket in -lnsl... " >&6; }
17199 if ${ac_cv_lib_nsl_socket+:} false; then :
17200 $as_echo_n "(cached) " >&6
17201 else
17202 ac_check_lib_save_LIBS=$LIBS
17203 LIBS="-lnsl -lsocket $LIBS"
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char socket ();
17214 int
17215 main ()
17216 {
17217 return socket ();
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 if ac_fn_c_try_link "$LINENO"; then :
17223 ac_cv_lib_nsl_socket=yes
17224 else
17225 ac_cv_lib_nsl_socket=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext \
17228 conftest$ac_exeext conftest.$ac_ext
17229 LIBS=$ac_check_lib_save_LIBS
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
17232 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
17233 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
17234 LIBS="-lnsl -lsocket $LIBS"
17235 fi
17236
17237 fi
17238
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17240 $as_echo_n "checking for library containing crypt... " >&6; }
17241 if ${ac_cv_search_crypt+:} false; then :
17242 $as_echo_n "(cached) " >&6
17243 else
17244 ac_func_search_save_LIBS=$LIBS
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char crypt ();
17255 int
17256 main ()
17257 {
17258 return crypt ();
17259 ;
17260 return 0;
17261 }
17262 _ACEOF
17263 for ac_lib in '' crypt; do
17264 if test -z "$ac_lib"; then
17265 ac_res="none required"
17266 else
17267 ac_res=-l$ac_lib
17268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17269 fi
17270 if ac_fn_c_try_link "$LINENO"; then :
17271 ac_cv_search_crypt=$ac_res
17272 fi
17273 rm -f core conftest.err conftest.$ac_objext \
17274 conftest$ac_exeext
17275 if ${ac_cv_search_crypt+:} false; then :
17276 break
17277 fi
17278 done
17279 if ${ac_cv_search_crypt+:} false; then :
17280
17281 else
17282 ac_cv_search_crypt=no
17283 fi
17284 rm conftest.$ac_ext
17285 LIBS=$ac_func_search_save_LIBS
17286 fi
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17288 $as_echo "$ac_cv_search_crypt" >&6; }
17289 ac_res=$ac_cv_search_crypt
17290 if test "$ac_res" != no; then :
17291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17292
17293 fi
17294
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
17296 $as_echo_n "checking for library containing roken_concat... " >&6; }
17297 if ${ac_cv_search_roken_concat+:} false; then :
17298 $as_echo_n "(cached) " >&6
17299 else
17300 ac_func_search_save_LIBS=$LIBS
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17303
17304 /* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17307 #ifdef __cplusplus
17308 extern "C"
17309 #endif
17310 char roken_concat ();
17311 int
17312 main ()
17313 {
17314 return roken_concat ();
17315 ;
17316 return 0;
17317 }
17318 _ACEOF
17319 for ac_lib in '' roken; do
17320 if test -z "$ac_lib"; then
17321 ac_res="none required"
17322 else
17323 ac_res=-l$ac_lib
17324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17325 fi
17326 if ac_fn_c_try_link "$LINENO"; then :
17327 ac_cv_search_roken_concat=$ac_res
17328 fi
17329 rm -f core conftest.err conftest.$ac_objext \
17330 conftest$ac_exeext
17331 if ${ac_cv_search_roken_concat+:} false; then :
17332 break
17333 fi
17334 done
17335 if ${ac_cv_search_roken_concat+:} false; then :
17336
17337 else
17338 ac_cv_search_roken_concat=no
17339 fi
17340 rm conftest.$ac_ext
17341 LIBS=$ac_func_search_save_LIBS
17342 fi
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
17344 $as_echo "$ac_cv_search_roken_concat" >&6; }
17345 ac_res=$ac_cv_search_roken_concat
17346 if test "$ac_res" != no; then :
17347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17348
17349 fi
17350
17351 rra_krb5_extra="$LIBS"
17352 LIBS="$rra_krb5_save_LIBS"
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17354 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
17355 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
17356 $as_echo_n "(cached) " >&6
17357 else
17358 ac_check_lib_save_LIBS=$LIBS
17359 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361 /* end confdefs.h. */
17362
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17366 #ifdef __cplusplus
17367 extern "C"
17368 #endif
17369 char krb5_init_context ();
17370 int
17371 main ()
17372 {
17373 return krb5_init_context ();
17374 ;
17375 return 0;
17376 }
17377 _ACEOF
17378 if ac_fn_c_try_link "$LINENO"; then :
17379 ac_cv_lib_krb5_krb5_init_context=yes
17380 else
17381 ac_cv_lib_krb5_krb5_init_context=no
17382 fi
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17385 LIBS=$ac_check_lib_save_LIBS
17386 fi
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17388 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17389 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
17390 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
17391 else
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
17393 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
17394 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
17395 $as_echo_n "(cached) " >&6
17396 else
17397 ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
17399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17400 /* end confdefs.h. */
17401
17402 /* Override any GCC internal prototype to avoid an error.
17403 Use char because int might match the return type of a GCC
17404 builtin and then its argument prototype would still apply. */
17405 #ifdef __cplusplus
17406 extern "C"
17407 #endif
17408 char krb5int_getspecific ();
17409 int
17410 main ()
17411 {
17412 return krb5int_getspecific ();
17413 ;
17414 return 0;
17415 }
17416 _ACEOF
17417 if ac_fn_c_try_link "$LINENO"; then :
17418 ac_cv_lib_krb5support_krb5int_getspecific=yes
17419 else
17420 ac_cv_lib_krb5support_krb5int_getspecific=no
17421 fi
17422 rm -f core conftest.err conftest.$ac_objext \
17423 conftest$ac_exeext conftest.$ac_ext
17424 LIBS=$ac_check_lib_save_LIBS
17425 fi
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
17427 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
17428 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
17429 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
17430 else
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
17432 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
17433 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-lpthreads $LIBS"
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17440
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17444 #ifdef __cplusplus
17445 extern "C"
17446 #endif
17447 char pthread_setspecific ();
17448 int
17449 main ()
17450 {
17451 return pthread_setspecific ();
17452 ;
17453 return 0;
17454 }
17455 _ACEOF
17456 if ac_fn_c_try_link "$LINENO"; then :
17457 ac_cv_lib_pthreads_pthread_setspecific=yes
17458 else
17459 ac_cv_lib_pthreads_pthread_setspecific=no
17460 fi
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17464 fi
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
17466 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
17467 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
17468 rra_krb5_pthread="-lpthreads"
17469 else
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
17471 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
17472 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
17473 $as_echo_n "(cached) " >&6
17474 else
17475 ac_check_lib_save_LIBS=$LIBS
17476 LIBS="-lpthread $LIBS"
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17479
17480 /* Override any GCC internal prototype to avoid an error.
17481 Use char because int might match the return type of a GCC
17482 builtin and then its argument prototype would still apply. */
17483 #ifdef __cplusplus
17484 extern "C"
17485 #endif
17486 char pthread_setspecific ();
17487 int
17488 main ()
17489 {
17490 return pthread_setspecific ();
17491 ;
17492 return 0;
17493 }
17494 _ACEOF
17495 if ac_fn_c_try_link "$LINENO"; then :
17496 ac_cv_lib_pthread_pthread_setspecific=yes
17497 else
17498 ac_cv_lib_pthread_pthread_setspecific=no
17499 fi
17500 rm -f core conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17502 LIBS=$ac_check_lib_save_LIBS
17503 fi
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
17505 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
17506 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
17507 rra_krb5_pthread="-lpthread"
17508 fi
17509
17510 fi
17511
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
17513 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
17514 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
17515 $as_echo_n "(cached) " >&6
17516 else
17517 ac_check_lib_save_LIBS=$LIBS
17518 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17521
17522 /* Override any GCC internal prototype to avoid an error.
17523 Use char because int might match the return type of a GCC
17524 builtin and then its argument prototype would still apply. */
17525 #ifdef __cplusplus
17526 extern "C"
17527 #endif
17528 char krb5int_setspecific ();
17529 int
17530 main ()
17531 {
17532 return krb5int_setspecific ();
17533 ;
17534 return 0;
17535 }
17536 _ACEOF
17537 if ac_fn_c_try_link "$LINENO"; then :
17538 ac_cv_lib_krb5support_krb5int_setspecific=yes
17539 else
17540 ac_cv_lib_krb5support_krb5int_setspecific=no
17541 fi
17542 rm -f core conftest.err conftest.$ac_objext \
17543 conftest$ac_exeext conftest.$ac_ext
17544 LIBS=$ac_check_lib_save_LIBS
17545 fi
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
17547 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
17548 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
17549 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
17550 fi
17551
17552 fi
17553
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
17555 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
17556 if ${ac_cv_lib_com_err_error_message+:} false; then :
17557 $as_echo_n "(cached) " >&6
17558 else
17559 ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-lcom_err $rra_krb5_extra $LIBS"
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562 /* end confdefs.h. */
17563
17564 /* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17567 #ifdef __cplusplus
17568 extern "C"
17569 #endif
17570 char error_message ();
17571 int
17572 main ()
17573 {
17574 return error_message ();
17575 ;
17576 return 0;
17577 }
17578 _ACEOF
17579 if ac_fn_c_try_link "$LINENO"; then :
17580 ac_cv_lib_com_err_error_message=yes
17581 else
17582 ac_cv_lib_com_err_error_message=no
17583 fi
17584 rm -f core conftest.err conftest.$ac_objext \
17585 conftest$ac_exeext conftest.$ac_ext
17586 LIBS=$ac_check_lib_save_LIBS
17587 fi
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
17589 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
17590 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
17591 rra_krb5_extra="-lcom_err $rra_krb5_extra"
17592 fi
17593
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
17595 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
17596 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
17597 $as_echo_n "(cached) " >&6
17598 else
17599 ac_check_lib_save_LIBS=$LIBS
17600 LIBS="-lksvc $rra_krb5_extra $LIBS"
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17603
17604 /* Override any GCC internal prototype to avoid an error.
17605 Use char because int might match the return type of a GCC
17606 builtin and then its argument prototype would still apply. */
17607 #ifdef __cplusplus
17608 extern "C"
17609 #endif
17610 char krb5_svc_get_msg ();
17611 int
17612 main ()
17613 {
17614 return krb5_svc_get_msg ();
17615 ;
17616 return 0;
17617 }
17618 _ACEOF
17619 if ac_fn_c_try_link "$LINENO"; then :
17620 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
17621 else
17622 ac_cv_lib_ksvc_krb5_svc_get_msg=no
17623 fi
17624 rm -f core conftest.err conftest.$ac_objext \
17625 conftest$ac_exeext conftest.$ac_ext
17626 LIBS=$ac_check_lib_save_LIBS
17627 fi
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
17629 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
17630 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
17631 rra_krb5_extra="-lksvc $rra_krb5_extra"
17632 fi
17633
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
17635 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
17636 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
17637 $as_echo_n "(cached) " >&6
17638 else
17639 ac_check_lib_save_LIBS=$LIBS
17640 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
17641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17642 /* end confdefs.h. */
17643
17644 /* Override any GCC internal prototype to avoid an error.
17645 Use char because int might match the return type of a GCC
17646 builtin and then its argument prototype would still apply. */
17647 #ifdef __cplusplus
17648 extern "C"
17649 #endif
17650 char krb5int_hash_md5 ();
17651 int
17652 main ()
17653 {
17654 return krb5int_hash_md5 ();
17655 ;
17656 return 0;
17657 }
17658 _ACEOF
17659 if ac_fn_c_try_link "$LINENO"; then :
17660 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
17661 else
17662 ac_cv_lib_k5crypto_krb5int_hash_md5=no
17663 fi
17664 rm -f core conftest.err conftest.$ac_objext \
17665 conftest$ac_exeext conftest.$ac_ext
17666 LIBS=$ac_check_lib_save_LIBS
17667 fi
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
17669 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
17670 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
17671 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
17672 fi
17673
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
17675 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
17676 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 ac_check_lib_save_LIBS=$LIBS
17680 LIBS="-lk5profile $rra_krb5_extra $LIBS"
17681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h. */
17683
17684 /* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17687 #ifdef __cplusplus
17688 extern "C"
17689 #endif
17690 char profile_get_values ();
17691 int
17692 main ()
17693 {
17694 return profile_get_values ();
17695 ;
17696 return 0;
17697 }
17698 _ACEOF
17699 if ac_fn_c_try_link "$LINENO"; then :
17700 ac_cv_lib_k5profile_profile_get_values=yes
17701 else
17702 ac_cv_lib_k5profile_profile_get_values=no
17703 fi
17704 rm -f core conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17706 LIBS=$ac_check_lib_save_LIBS
17707 fi
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
17709 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
17710 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
17711 rra_krb5_extra="-lk5profile $rra_krb5_extra"
17712 fi
17713
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
17715 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
17716 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17719 ac_check_lib_save_LIBS=$LIBS
17720 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723
17724 /* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727 #ifdef __cplusplus
17728 extern "C"
17729 #endif
17730 char krb5_cc_default ();
17731 int
17732 main ()
17733 {
17734 return krb5_cc_default ();
17735 ;
17736 return 0;
17737 }
17738 _ACEOF
17739 if ac_fn_c_try_link "$LINENO"; then :
17740 ac_cv_lib_krb5_krb5_cc_default=yes
17741 else
17742 ac_cv_lib_krb5_krb5_cc_default=no
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746 LIBS=$ac_check_lib_save_LIBS
17747 fi
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
17749 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
17750 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
17751 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
17752 else
17753 if test x"false" = xtrue; then :
17754 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
17755 fi
17756 fi
17757
17758 fi
17759
17760 LIBS="$KRB5_LIBS $LIBS"
17761 if test x"$rra_krb5_incroot" = x; then :
17762 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
17763 do :
17764 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17765 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17766 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17767 cat >>confdefs.h <<_ACEOF
17768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17769 _ACEOF
17770
17771 fi
17772
17773 done
17774
17775 else
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
17777 $as_echo_n "checking for krb5.h... " >&6; }
17778 if test -f "${rra_krb5_incroot}/krb5.h"; then :
17779
17780 cat >>confdefs.h <<_ACEOF
17781 #define HAVE_KRB5_H 1
17782 _ACEOF
17783
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17785 $as_echo "yes" >&6; }
17786 else
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788 $as_echo "no" >&6; }
17789 fi
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
17791 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
17792 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
17793
17794 cat >>confdefs.h <<_ACEOF
17795 #define HAVE_KERBEROSV5_KRB5_H 1
17796 _ACEOF
17797
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17799 $as_echo "yes" >&6; }
17800 else
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17802 $as_echo "no" >&6; }
17803 fi
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
17805 $as_echo_n "checking for krb5/krb5.h... " >&6; }
17806 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
17807
17808 cat >>confdefs.h <<_ACEOF
17809 #define HAVE_KRB5_KRB5_H 1
17810 _ACEOF
17811
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17813 $as_echo "yes" >&6; }
17814 else
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17816 $as_echo "no" >&6; }
17817 fi
17818 fi
17819 for ac_func in krb5_get_error_message
17820 do :
17821 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
17822 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
17823 cat >>confdefs.h <<_ACEOF
17824 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
17825 _ACEOF
17826 for ac_func in krb5_free_error_message
17827 do :
17828 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
17829 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
17830 cat >>confdefs.h <<_ACEOF
17831 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
17832 _ACEOF
17833
17834 fi
17835 done
17836
17837 else
17838 for ac_func in krb5_get_error_string
17839 do :
17840 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
17841 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_KRB5_GET_ERROR_STRING 1
17844 _ACEOF
17845
17846 else
17847 for ac_func in krb5_get_err_txt
17848 do :
17849 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
17850 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_KRB5_GET_ERR_TXT 1
17853 _ACEOF
17854
17855 else
17856 for ac_func in krb5_svc_get_msg
17857 do :
17858 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
17859 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
17860 cat >>confdefs.h <<_ACEOF
17861 #define HAVE_KRB5_SVC_GET_MSG 1
17862 _ACEOF
17863 for ac_header in ibm_svc/krb5_svc.h
17864 do :
17865 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
17866 #if HAVE_KRB5_H
17867 # include <krb5.h>
17868 #elif HAVE_KERBEROSV5_KRB5_H
17869 # include <kerberosv5/krb5.h>
17870 #else
17871 # include <krb5/krb5.h>
17872 #endif
17873
17874 "
17875 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
17876 cat >>confdefs.h <<_ACEOF
17877 #define HAVE_IBM_SVC_KRB5_SVC_H 1
17878 _ACEOF
17879
17880 fi
17881
17882 done
17883
17884 else
17885 if test x"$rra_krb5_incroot" = x; then :
17886 for ac_header in et/com_err.h kerberosv5/com_err.h
17887 do :
17888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17889 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17891 cat >>confdefs.h <<_ACEOF
17892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17893 _ACEOF
17894
17895 fi
17896
17897 done
17898
17899 else
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
17901 $as_echo_n "checking for et/com_err.h... " >&6; }
17902 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
17903
17904 cat >>confdefs.h <<_ACEOF
17905 #define HAVE_ET_COM_ERR_H 1
17906 _ACEOF
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17909 $as_echo "yes" >&6; }
17910 else
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17913 fi
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
17915 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
17916 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
17917
17918 cat >>confdefs.h <<_ACEOF
17919 #define HAVE_KERBEROSV5_COM_ERR_H 1
17920 _ACEOF
17921
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17923 $as_echo "yes" >&6; }
17924 else
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17926 $as_echo "no" >&6; }
17927 fi
17928 fi
17929 fi
17930 done
17931
17932 fi
17933 done
17934
17935 fi
17936 done
17937
17938 fi
17939 done
17940
17941 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17942 LDFLAGS="$rra_krb5_save_LDFLAGS"
17943 LIBS="$rra_krb5_save_LIBS"
17944 fi
17945
17946 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
17947 rra_krb5_save_LDFLAGS="$LDFLAGS"
17948 rra_krb5_save_LIBS="$LIBS"
17949 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
17950 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
17951 LIBS="$KRB5_LIBS $LIBS"
17952 if test x"$rra_krb5_incroot" = x; then :
17953 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
17954 do :
17955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17956 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17958 cat >>confdefs.h <<_ACEOF
17959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17960 _ACEOF
17961
17962 fi
17963
17964 done
17965
17966 else
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
17968 $as_echo_n "checking for krb5.h... " >&6; }
17969 if test -f "${rra_krb5_incroot}/krb5.h"; then :
17970
17971 cat >>confdefs.h <<_ACEOF
17972 #define HAVE_KRB5_H 1
17973 _ACEOF
17974
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17976 $as_echo "yes" >&6; }
17977 else
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17979 $as_echo "no" >&6; }
17980 fi
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
17982 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
17983 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
17984
17985 cat >>confdefs.h <<_ACEOF
17986 #define HAVE_KERBEROSV5_KRB5_H 1
17987 _ACEOF
17988
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17990 $as_echo "yes" >&6; }
17991 else
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17993 $as_echo "no" >&6; }
17994 fi
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
17996 $as_echo_n "checking for krb5/krb5.h... " >&6; }
17997 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
17998
17999 cat >>confdefs.h <<_ACEOF
18000 #define HAVE_KRB5_KRB5_H 1
18001 _ACEOF
18002
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18004 $as_echo "yes" >&6; }
18005 else
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18007 $as_echo "no" >&6; }
18008 fi
18009 fi
18010 for ac_func in krb5_get_error_message
18011 do :
18012 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
18013 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
18014 cat >>confdefs.h <<_ACEOF
18015 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
18016 _ACEOF
18017 for ac_func in krb5_free_error_message
18018 do :
18019 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
18020 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
18021 cat >>confdefs.h <<_ACEOF
18022 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
18023 _ACEOF
18024
18025 fi
18026 done
18027
18028 else
18029 for ac_func in krb5_get_error_string
18030 do :
18031 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
18032 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
18033 cat >>confdefs.h <<_ACEOF
18034 #define HAVE_KRB5_GET_ERROR_STRING 1
18035 _ACEOF
18036
18037 else
18038 for ac_func in krb5_get_err_txt
18039 do :
18040 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
18041 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
18042 cat >>confdefs.h <<_ACEOF
18043 #define HAVE_KRB5_GET_ERR_TXT 1
18044 _ACEOF
18045
18046 else
18047 for ac_func in krb5_svc_get_msg
18048 do :
18049 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
18050 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
18051 cat >>confdefs.h <<_ACEOF
18052 #define HAVE_KRB5_SVC_GET_MSG 1
18053 _ACEOF
18054 for ac_header in ibm_svc/krb5_svc.h
18055 do :
18056 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
18057 #if HAVE_KRB5_H
18058 # include <krb5.h>
18059 #elif HAVE_KERBEROSV5_KRB5_H
18060 # include <kerberosv5/krb5.h>
18061 #else
18062 # include <krb5/krb5.h>
18063 #endif
18064
18065 "
18066 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
18067 cat >>confdefs.h <<_ACEOF
18068 #define HAVE_IBM_SVC_KRB5_SVC_H 1
18069 _ACEOF
18070
18071 fi
18072
18073 done
18074
18075 else
18076 if test x"$rra_krb5_incroot" = x; then :
18077 for ac_header in et/com_err.h kerberosv5/com_err.h
18078 do :
18079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18080 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18081 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18082 cat >>confdefs.h <<_ACEOF
18083 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18084 _ACEOF
18085
18086 fi
18087
18088 done
18089
18090 else
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
18092 $as_echo_n "checking for et/com_err.h... " >&6; }
18093 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
18094
18095 cat >>confdefs.h <<_ACEOF
18096 #define HAVE_ET_COM_ERR_H 1
18097 _ACEOF
18098
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18100 $as_echo "yes" >&6; }
18101 else
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18103 $as_echo "no" >&6; }
18104 fi
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
18106 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
18107 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
18108
18109 cat >>confdefs.h <<_ACEOF
18110 #define HAVE_KERBEROSV5_COM_ERR_H 1
18111 _ACEOF
18112
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18114 $as_echo "yes" >&6; }
18115 else
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18117 $as_echo "no" >&6; }
18118 fi
18119 fi
18120 fi
18121 done
18122
18123 fi
18124 done
18125
18126 fi
18127 done
18128
18129 fi
18130 done
18131
18132 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
18133 LDFLAGS="$rra_krb5_save_LDFLAGS"
18134 LIBS="$rra_krb5_save_LIBS"
18135 else
18136 if test x"$rra_krb5_libdir" != x; then :
18137 KRB5_LDFLAGS="-L$rra_krb5_libdir"
18138 else
18139 if test x"$rra_krb5_root" != x; then :
18140
18141 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
18142 if test x"" = x; then :
18143 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
18144 else
18145 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
18146 fi
18147 else
18148 if test x"" = x; then :
18149 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
18150 else
18151 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
18152 fi
18153 fi
18154 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
18155 fi
18156 fi
18157 if test x"$rra_krb5_includedir" != x; then :
18158 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
18159 else
18160 if test x"$rra_krb5_root" != x; then :
18161 if test x"$rra_krb5_root" != x/usr; then :
18162 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
18163 fi
18164 fi
18165 fi
18166 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
18167 rra_krb5_save_LDFLAGS="$LDFLAGS"
18168 rra_krb5_save_LIBS="$LIBS"
18169 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
18170 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
18171 LIBS="$KRB5_LIBS $LIBS"
18172 rra_krb5_extra=
18173 LIBS=
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
18175 $as_echo_n "checking for library containing res_search... " >&6; }
18176 if ${ac_cv_search_res_search+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 ac_func_search_save_LIBS=$LIBS
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181 /* end confdefs.h. */
18182
18183 /* Override any GCC internal prototype to avoid an error.
18184 Use char because int might match the return type of a GCC
18185 builtin and then its argument prototype would still apply. */
18186 #ifdef __cplusplus
18187 extern "C"
18188 #endif
18189 char res_search ();
18190 int
18191 main ()
18192 {
18193 return res_search ();
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 for ac_lib in '' resolv; do
18199 if test -z "$ac_lib"; then
18200 ac_res="none required"
18201 else
18202 ac_res=-l$ac_lib
18203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18204 fi
18205 if ac_fn_c_try_link "$LINENO"; then :
18206 ac_cv_search_res_search=$ac_res
18207 fi
18208 rm -f core conftest.err conftest.$ac_objext \
18209 conftest$ac_exeext
18210 if ${ac_cv_search_res_search+:} false; then :
18211 break
18212 fi
18213 done
18214 if ${ac_cv_search_res_search+:} false; then :
18215
18216 else
18217 ac_cv_search_res_search=no
18218 fi
18219 rm conftest.$ac_ext
18220 LIBS=$ac_func_search_save_LIBS
18221 fi
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
18223 $as_echo "$ac_cv_search_res_search" >&6; }
18224 ac_res=$ac_cv_search_res_search
18225 if test "$ac_res" != no; then :
18226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18227
18228 else
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
18230 $as_echo_n "checking for library containing __res_search... " >&6; }
18231 if ${ac_cv_search___res_search+:} false; then :
18232 $as_echo_n "(cached) " >&6
18233 else
18234 ac_func_search_save_LIBS=$LIBS
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18237
18238 /* Override any GCC internal prototype to avoid an error.
18239 Use char because int might match the return type of a GCC
18240 builtin and then its argument prototype would still apply. */
18241 #ifdef __cplusplus
18242 extern "C"
18243 #endif
18244 char __res_search ();
18245 int
18246 main ()
18247 {
18248 return __res_search ();
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 for ac_lib in '' resolv; do
18254 if test -z "$ac_lib"; then
18255 ac_res="none required"
18256 else
18257 ac_res=-l$ac_lib
18258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18259 fi
18260 if ac_fn_c_try_link "$LINENO"; then :
18261 ac_cv_search___res_search=$ac_res
18262 fi
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext
18265 if ${ac_cv_search___res_search+:} false; then :
18266 break
18267 fi
18268 done
18269 if ${ac_cv_search___res_search+:} false; then :
18270
18271 else
18272 ac_cv_search___res_search=no
18273 fi
18274 rm conftest.$ac_ext
18275 LIBS=$ac_func_search_save_LIBS
18276 fi
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
18278 $as_echo "$ac_cv_search___res_search" >&6; }
18279 ac_res=$ac_cv_search___res_search
18280 if test "$ac_res" != no; then :
18281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18282
18283 fi
18284
18285 fi
18286
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18288 $as_echo_n "checking for library containing gethostbyname... " >&6; }
18289 if ${ac_cv_search_gethostbyname+:} false; then :
18290 $as_echo_n "(cached) " >&6
18291 else
18292 ac_func_search_save_LIBS=$LIBS
18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h. */
18295
18296 /* Override any GCC internal prototype to avoid an error.
18297 Use char because int might match the return type of a GCC
18298 builtin and then its argument prototype would still apply. */
18299 #ifdef __cplusplus
18300 extern "C"
18301 #endif
18302 char gethostbyname ();
18303 int
18304 main ()
18305 {
18306 return gethostbyname ();
18307 ;
18308 return 0;
18309 }
18310 _ACEOF
18311 for ac_lib in '' nsl; do
18312 if test -z "$ac_lib"; then
18313 ac_res="none required"
18314 else
18315 ac_res=-l$ac_lib
18316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18317 fi
18318 if ac_fn_c_try_link "$LINENO"; then :
18319 ac_cv_search_gethostbyname=$ac_res
18320 fi
18321 rm -f core conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext
18323 if ${ac_cv_search_gethostbyname+:} false; then :
18324 break
18325 fi
18326 done
18327 if ${ac_cv_search_gethostbyname+:} false; then :
18328
18329 else
18330 ac_cv_search_gethostbyname=no
18331 fi
18332 rm conftest.$ac_ext
18333 LIBS=$ac_func_search_save_LIBS
18334 fi
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18336 $as_echo "$ac_cv_search_gethostbyname" >&6; }
18337 ac_res=$ac_cv_search_gethostbyname
18338 if test "$ac_res" != no; then :
18339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18340
18341 fi
18342
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18344 $as_echo_n "checking for library containing socket... " >&6; }
18345 if ${ac_cv_search_socket+:} false; then :
18346 $as_echo_n "(cached) " >&6
18347 else
18348 ac_func_search_save_LIBS=$LIBS
18349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18350 /* end confdefs.h. */
18351
18352 /* Override any GCC internal prototype to avoid an error.
18353 Use char because int might match the return type of a GCC
18354 builtin and then its argument prototype would still apply. */
18355 #ifdef __cplusplus
18356 extern "C"
18357 #endif
18358 char socket ();
18359 int
18360 main ()
18361 {
18362 return socket ();
18363 ;
18364 return 0;
18365 }
18366 _ACEOF
18367 for ac_lib in '' socket; do
18368 if test -z "$ac_lib"; then
18369 ac_res="none required"
18370 else
18371 ac_res=-l$ac_lib
18372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18373 fi
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 ac_cv_search_socket=$ac_res
18376 fi
18377 rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext
18379 if ${ac_cv_search_socket+:} false; then :
18380 break
18381 fi
18382 done
18383 if ${ac_cv_search_socket+:} false; then :
18384
18385 else
18386 ac_cv_search_socket=no
18387 fi
18388 rm conftest.$ac_ext
18389 LIBS=$ac_func_search_save_LIBS
18390 fi
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18392 $as_echo "$ac_cv_search_socket" >&6; }
18393 ac_res=$ac_cv_search_socket
18394 if test "$ac_res" != no; then :
18395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18396
18397 else
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
18399 $as_echo_n "checking for socket in -lnsl... " >&6; }
18400 if ${ac_cv_lib_nsl_socket+:} false; then :
18401 $as_echo_n "(cached) " >&6
18402 else
18403 ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lnsl -lsocket $LIBS"
18405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18406 /* end confdefs.h. */
18407
18408 /* Override any GCC internal prototype to avoid an error.
18409 Use char because int might match the return type of a GCC
18410 builtin and then its argument prototype would still apply. */
18411 #ifdef __cplusplus
18412 extern "C"
18413 #endif
18414 char socket ();
18415 int
18416 main ()
18417 {
18418 return socket ();
18419 ;
18420 return 0;
18421 }
18422 _ACEOF
18423 if ac_fn_c_try_link "$LINENO"; then :
18424 ac_cv_lib_nsl_socket=yes
18425 else
18426 ac_cv_lib_nsl_socket=no
18427 fi
18428 rm -f core conftest.err conftest.$ac_objext \
18429 conftest$ac_exeext conftest.$ac_ext
18430 LIBS=$ac_check_lib_save_LIBS
18431 fi
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
18433 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
18434 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
18435 LIBS="-lnsl -lsocket $LIBS"
18436 fi
18437
18438 fi
18439
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18441 $as_echo_n "checking for library containing crypt... " >&6; }
18442 if ${ac_cv_search_crypt+:} false; then :
18443 $as_echo_n "(cached) " >&6
18444 else
18445 ac_func_search_save_LIBS=$LIBS
18446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* end confdefs.h. */
18448
18449 /* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18452 #ifdef __cplusplus
18453 extern "C"
18454 #endif
18455 char crypt ();
18456 int
18457 main ()
18458 {
18459 return crypt ();
18460 ;
18461 return 0;
18462 }
18463 _ACEOF
18464 for ac_lib in '' crypt; do
18465 if test -z "$ac_lib"; then
18466 ac_res="none required"
18467 else
18468 ac_res=-l$ac_lib
18469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18470 fi
18471 if ac_fn_c_try_link "$LINENO"; then :
18472 ac_cv_search_crypt=$ac_res
18473 fi
18474 rm -f core conftest.err conftest.$ac_objext \
18475 conftest$ac_exeext
18476 if ${ac_cv_search_crypt+:} false; then :
18477 break
18478 fi
18479 done
18480 if ${ac_cv_search_crypt+:} false; then :
18481
18482 else
18483 ac_cv_search_crypt=no
18484 fi
18485 rm conftest.$ac_ext
18486 LIBS=$ac_func_search_save_LIBS
18487 fi
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
18489 $as_echo "$ac_cv_search_crypt" >&6; }
18490 ac_res=$ac_cv_search_crypt
18491 if test "$ac_res" != no; then :
18492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18493
18494 fi
18495
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
18497 $as_echo_n "checking for library containing roken_concat... " >&6; }
18498 if ${ac_cv_search_roken_concat+:} false; then :
18499 $as_echo_n "(cached) " >&6
18500 else
18501 ac_func_search_save_LIBS=$LIBS
18502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18503 /* end confdefs.h. */
18504
18505 /* Override any GCC internal prototype to avoid an error.
18506 Use char because int might match the return type of a GCC
18507 builtin and then its argument prototype would still apply. */
18508 #ifdef __cplusplus
18509 extern "C"
18510 #endif
18511 char roken_concat ();
18512 int
18513 main ()
18514 {
18515 return roken_concat ();
18516 ;
18517 return 0;
18518 }
18519 _ACEOF
18520 for ac_lib in '' roken; do
18521 if test -z "$ac_lib"; then
18522 ac_res="none required"
18523 else
18524 ac_res=-l$ac_lib
18525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18526 fi
18527 if ac_fn_c_try_link "$LINENO"; then :
18528 ac_cv_search_roken_concat=$ac_res
18529 fi
18530 rm -f core conftest.err conftest.$ac_objext \
18531 conftest$ac_exeext
18532 if ${ac_cv_search_roken_concat+:} false; then :
18533 break
18534 fi
18535 done
18536 if ${ac_cv_search_roken_concat+:} false; then :
18537
18538 else
18539 ac_cv_search_roken_concat=no
18540 fi
18541 rm conftest.$ac_ext
18542 LIBS=$ac_func_search_save_LIBS
18543 fi
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
18545 $as_echo "$ac_cv_search_roken_concat" >&6; }
18546 ac_res=$ac_cv_search_roken_concat
18547 if test "$ac_res" != no; then :
18548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18549
18550 fi
18551
18552 rra_krb5_extra="$LIBS"
18553 LIBS="$rra_krb5_save_LIBS"
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18555 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
18556 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
18557 $as_echo_n "(cached) " >&6
18558 else
18559 ac_check_lib_save_LIBS=$LIBS
18560 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
18561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18562 /* end confdefs.h. */
18563
18564 /* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18567 #ifdef __cplusplus
18568 extern "C"
18569 #endif
18570 char krb5_init_context ();
18571 int
18572 main ()
18573 {
18574 return krb5_init_context ();
18575 ;
18576 return 0;
18577 }
18578 _ACEOF
18579 if ac_fn_c_try_link "$LINENO"; then :
18580 ac_cv_lib_krb5_krb5_init_context=yes
18581 else
18582 ac_cv_lib_krb5_krb5_init_context=no
18583 fi
18584 rm -f core conftest.err conftest.$ac_objext \
18585 conftest$ac_exeext conftest.$ac_ext
18586 LIBS=$ac_check_lib_save_LIBS
18587 fi
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18589 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18590 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
18591 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
18592 else
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
18594 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
18595 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
18596 $as_echo_n "(cached) " >&6
18597 else
18598 ac_check_lib_save_LIBS=$LIBS
18599 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601 /* end confdefs.h. */
18602
18603 /* Override any GCC internal prototype to avoid an error.
18604 Use char because int might match the return type of a GCC
18605 builtin and then its argument prototype would still apply. */
18606 #ifdef __cplusplus
18607 extern "C"
18608 #endif
18609 char krb5int_getspecific ();
18610 int
18611 main ()
18612 {
18613 return krb5int_getspecific ();
18614 ;
18615 return 0;
18616 }
18617 _ACEOF
18618 if ac_fn_c_try_link "$LINENO"; then :
18619 ac_cv_lib_krb5support_krb5int_getspecific=yes
18620 else
18621 ac_cv_lib_krb5support_krb5int_getspecific=no
18622 fi
18623 rm -f core conftest.err conftest.$ac_objext \
18624 conftest$ac_exeext conftest.$ac_ext
18625 LIBS=$ac_check_lib_save_LIBS
18626 fi
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18628 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18629 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
18630 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
18631 else
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
18633 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
18634 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
18635 $as_echo_n "(cached) " >&6
18636 else
18637 ac_check_lib_save_LIBS=$LIBS
18638 LIBS="-lpthreads $LIBS"
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18641
18642 /* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18645 #ifdef __cplusplus
18646 extern "C"
18647 #endif
18648 char pthread_setspecific ();
18649 int
18650 main ()
18651 {
18652 return pthread_setspecific ();
18653 ;
18654 return 0;
18655 }
18656 _ACEOF
18657 if ac_fn_c_try_link "$LINENO"; then :
18658 ac_cv_lib_pthreads_pthread_setspecific=yes
18659 else
18660 ac_cv_lib_pthreads_pthread_setspecific=no
18661 fi
18662 rm -f core conftest.err conftest.$ac_objext \
18663 conftest$ac_exeext conftest.$ac_ext
18664 LIBS=$ac_check_lib_save_LIBS
18665 fi
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
18667 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
18668 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
18669 rra_krb5_pthread="-lpthreads"
18670 else
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
18672 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
18673 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
18674 $as_echo_n "(cached) " >&6
18675 else
18676 ac_check_lib_save_LIBS=$LIBS
18677 LIBS="-lpthread $LIBS"
18678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h. */
18680
18681 /* Override any GCC internal prototype to avoid an error.
18682 Use char because int might match the return type of a GCC
18683 builtin and then its argument prototype would still apply. */
18684 #ifdef __cplusplus
18685 extern "C"
18686 #endif
18687 char pthread_setspecific ();
18688 int
18689 main ()
18690 {
18691 return pthread_setspecific ();
18692 ;
18693 return 0;
18694 }
18695 _ACEOF
18696 if ac_fn_c_try_link "$LINENO"; then :
18697 ac_cv_lib_pthread_pthread_setspecific=yes
18698 else
18699 ac_cv_lib_pthread_pthread_setspecific=no
18700 fi
18701 rm -f core conftest.err conftest.$ac_objext \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18704 fi
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
18706 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
18707 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
18708 rra_krb5_pthread="-lpthread"
18709 fi
18710
18711 fi
18712
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
18714 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
18715 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
18716 $as_echo_n "(cached) " >&6
18717 else
18718 ac_check_lib_save_LIBS=$LIBS
18719 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
18720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18721 /* end confdefs.h. */
18722
18723 /* Override any GCC internal prototype to avoid an error.
18724 Use char because int might match the return type of a GCC
18725 builtin and then its argument prototype would still apply. */
18726 #ifdef __cplusplus
18727 extern "C"
18728 #endif
18729 char krb5int_setspecific ();
18730 int
18731 main ()
18732 {
18733 return krb5int_setspecific ();
18734 ;
18735 return 0;
18736 }
18737 _ACEOF
18738 if ac_fn_c_try_link "$LINENO"; then :
18739 ac_cv_lib_krb5support_krb5int_setspecific=yes
18740 else
18741 ac_cv_lib_krb5support_krb5int_setspecific=no
18742 fi
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745 LIBS=$ac_check_lib_save_LIBS
18746 fi
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
18748 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
18749 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
18750 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
18751 fi
18752
18753 fi
18754
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
18756 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
18757 if ${ac_cv_lib_com_err_error_message+:} false; then :
18758 $as_echo_n "(cached) " >&6
18759 else
18760 ac_check_lib_save_LIBS=$LIBS
18761 LIBS="-lcom_err $rra_krb5_extra $LIBS"
18762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18763 /* end confdefs.h. */
18764
18765 /* Override any GCC internal prototype to avoid an error.
18766 Use char because int might match the return type of a GCC
18767 builtin and then its argument prototype would still apply. */
18768 #ifdef __cplusplus
18769 extern "C"
18770 #endif
18771 char error_message ();
18772 int
18773 main ()
18774 {
18775 return error_message ();
18776 ;
18777 return 0;
18778 }
18779 _ACEOF
18780 if ac_fn_c_try_link "$LINENO"; then :
18781 ac_cv_lib_com_err_error_message=yes
18782 else
18783 ac_cv_lib_com_err_error_message=no
18784 fi
18785 rm -f core conftest.err conftest.$ac_objext \
18786 conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18788 fi
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
18790 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
18791 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
18792 rra_krb5_extra="-lcom_err $rra_krb5_extra"
18793 fi
18794
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
18796 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
18797 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
18798 $as_echo_n "(cached) " >&6
18799 else
18800 ac_check_lib_save_LIBS=$LIBS
18801 LIBS="-lksvc $rra_krb5_extra $LIBS"
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18804
18805 /* Override any GCC internal prototype to avoid an error.
18806 Use char because int might match the return type of a GCC
18807 builtin and then its argument prototype would still apply. */
18808 #ifdef __cplusplus
18809 extern "C"
18810 #endif
18811 char krb5_svc_get_msg ();
18812 int
18813 main ()
18814 {
18815 return krb5_svc_get_msg ();
18816 ;
18817 return 0;
18818 }
18819 _ACEOF
18820 if ac_fn_c_try_link "$LINENO"; then :
18821 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
18822 else
18823 ac_cv_lib_ksvc_krb5_svc_get_msg=no
18824 fi
18825 rm -f core conftest.err conftest.$ac_objext \
18826 conftest$ac_exeext conftest.$ac_ext
18827 LIBS=$ac_check_lib_save_LIBS
18828 fi
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
18830 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
18831 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
18832 rra_krb5_extra="-lksvc $rra_krb5_extra"
18833 fi
18834
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
18836 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
18837 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
18838 $as_echo_n "(cached) " >&6
18839 else
18840 ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h. */
18844
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char krb5int_hash_md5 ();
18852 int
18853 main ()
18854 {
18855 return krb5int_hash_md5 ();
18856 ;
18857 return 0;
18858 }
18859 _ACEOF
18860 if ac_fn_c_try_link "$LINENO"; then :
18861 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
18862 else
18863 ac_cv_lib_k5crypto_krb5int_hash_md5=no
18864 fi
18865 rm -f core conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18868 fi
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
18870 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
18871 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
18872 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
18873 fi
18874
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
18876 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
18877 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
18878 $as_echo_n "(cached) " >&6
18879 else
18880 ac_check_lib_save_LIBS=$LIBS
18881 LIBS="-lk5profile $rra_krb5_extra $LIBS"
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883 /* end confdefs.h. */
18884
18885 /* Override any GCC internal prototype to avoid an error.
18886 Use char because int might match the return type of a GCC
18887 builtin and then its argument prototype would still apply. */
18888 #ifdef __cplusplus
18889 extern "C"
18890 #endif
18891 char profile_get_values ();
18892 int
18893 main ()
18894 {
18895 return profile_get_values ();
18896 ;
18897 return 0;
18898 }
18899 _ACEOF
18900 if ac_fn_c_try_link "$LINENO"; then :
18901 ac_cv_lib_k5profile_profile_get_values=yes
18902 else
18903 ac_cv_lib_k5profile_profile_get_values=no
18904 fi
18905 rm -f core conftest.err conftest.$ac_objext \
18906 conftest$ac_exeext conftest.$ac_ext
18907 LIBS=$ac_check_lib_save_LIBS
18908 fi
18909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
18910 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
18911 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
18912 rra_krb5_extra="-lk5profile $rra_krb5_extra"
18913 fi
18914
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
18916 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
18917 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18920 ac_check_lib_save_LIBS=$LIBS
18921 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924
18925 /* Override any GCC internal prototype to avoid an error.
18926 Use char because int might match the return type of a GCC
18927 builtin and then its argument prototype would still apply. */
18928 #ifdef __cplusplus
18929 extern "C"
18930 #endif
18931 char krb5_cc_default ();
18932 int
18933 main ()
18934 {
18935 return krb5_cc_default ();
18936 ;
18937 return 0;
18938 }
18939 _ACEOF
18940 if ac_fn_c_try_link "$LINENO"; then :
18941 ac_cv_lib_krb5_krb5_cc_default=yes
18942 else
18943 ac_cv_lib_krb5_krb5_cc_default=no
18944 fi
18945 rm -f core conftest.err conftest.$ac_objext \
18946 conftest$ac_exeext conftest.$ac_ext
18947 LIBS=$ac_check_lib_save_LIBS
18948 fi
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
18950 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
18951 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
18952 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
18953 else
18954 if test x"false" = xtrue; then :
18955 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
18956 fi
18957 fi
18958
18959 fi
18960
18961 LIBS="$KRB5_LIBS $LIBS"
18962 if test x"$rra_krb5_incroot" = x; then :
18963 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
18964 do :
18965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18968 cat >>confdefs.h <<_ACEOF
18969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18970 _ACEOF
18971
18972 fi
18973
18974 done
18975
18976 else
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
18978 $as_echo_n "checking for krb5.h... " >&6; }
18979 if test -f "${rra_krb5_incroot}/krb5.h"; then :
18980
18981 cat >>confdefs.h <<_ACEOF
18982 #define HAVE_KRB5_H 1
18983 _ACEOF
18984
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18986 $as_echo "yes" >&6; }
18987 else
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18989 $as_echo "no" >&6; }
18990 fi
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
18992 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
18993 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
18994
18995 cat >>confdefs.h <<_ACEOF
18996 #define HAVE_KERBEROSV5_KRB5_H 1
18997 _ACEOF
18998
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19000 $as_echo "yes" >&6; }
19001 else
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 $as_echo "no" >&6; }
19004 fi
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
19006 $as_echo_n "checking for krb5/krb5.h... " >&6; }
19007 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
19008
19009 cat >>confdefs.h <<_ACEOF
19010 #define HAVE_KRB5_KRB5_H 1
19011 _ACEOF
19012
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19014 $as_echo "yes" >&6; }
19015 else
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19017 $as_echo "no" >&6; }
19018 fi
19019 fi
19020 for ac_func in krb5_get_error_message
19021 do :
19022 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
19023 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
19024 cat >>confdefs.h <<_ACEOF
19025 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
19026 _ACEOF
19027 for ac_func in krb5_free_error_message
19028 do :
19029 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
19030 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
19031 cat >>confdefs.h <<_ACEOF
19032 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
19033 _ACEOF
19034
19035 fi
19036 done
19037
19038 else
19039 for ac_func in krb5_get_error_string
19040 do :
19041 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
19042 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
19043 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_KRB5_GET_ERROR_STRING 1
19045 _ACEOF
19046
19047 else
19048 for ac_func in krb5_get_err_txt
19049 do :
19050 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
19051 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
19052 cat >>confdefs.h <<_ACEOF
19053 #define HAVE_KRB5_GET_ERR_TXT 1
19054 _ACEOF
19055
19056 else
19057 for ac_func in krb5_svc_get_msg
19058 do :
19059 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
19060 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
19061 cat >>confdefs.h <<_ACEOF
19062 #define HAVE_KRB5_SVC_GET_MSG 1
19063 _ACEOF
19064 for ac_header in ibm_svc/krb5_svc.h
19065 do :
19066 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
19067 #if HAVE_KRB5_H
19068 # include <krb5.h>
19069 #elif HAVE_KERBEROSV5_KRB5_H
19070 # include <kerberosv5/krb5.h>
19071 #else
19072 # include <krb5/krb5.h>
19073 #endif
19074
19075 "
19076 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_IBM_SVC_KRB5_SVC_H 1
19079 _ACEOF
19080
19081 fi
19082
19083 done
19084
19085 else
19086 if test x"$rra_krb5_incroot" = x; then :
19087 for ac_header in et/com_err.h kerberosv5/com_err.h
19088 do :
19089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19092 cat >>confdefs.h <<_ACEOF
19093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19094 _ACEOF
19095
19096 fi
19097
19098 done
19099
19100 else
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
19102 $as_echo_n "checking for et/com_err.h... " >&6; }
19103 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
19104
19105 cat >>confdefs.h <<_ACEOF
19106 #define HAVE_ET_COM_ERR_H 1
19107 _ACEOF
19108
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19110 $as_echo "yes" >&6; }
19111 else
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113 $as_echo "no" >&6; }
19114 fi
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
19116 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
19117 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
19118
19119 cat >>confdefs.h <<_ACEOF
19120 #define HAVE_KERBEROSV5_COM_ERR_H 1
19121 _ACEOF
19122
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19124 $as_echo "yes" >&6; }
19125 else
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19127 $as_echo "no" >&6; }
19128 fi
19129 fi
19130 fi
19131 done
19132
19133 fi
19134 done
19135
19136 fi
19137 done
19138
19139 fi
19140 done
19141
19142 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
19143 LDFLAGS="$rra_krb5_save_LDFLAGS"
19144 LIBS="$rra_krb5_save_LIBS"
19145 fi
19146 else
19147 if test x"$rra_krb5_libdir" != x; then :
19148 KRB5_LDFLAGS="-L$rra_krb5_libdir"
19149 else
19150 if test x"$rra_krb5_root" != x; then :
19151
19152 if test -d "$rra_krb5_root/$rra_lib_arch_name"; then :
19153 if test x"" = x; then :
19154 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
19155 else
19156 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
19157 fi
19158 else
19159 if test x"" = x; then :
19160 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
19161 else
19162 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
19163 fi
19164 fi
19165 KRB5_LDFLAGS=`echo "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
19166 fi
19167 fi
19168 if test x"$rra_krb5_includedir" != x; then :
19169 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
19170 else
19171 if test x"$rra_krb5_root" != x; then :
19172 if test x"$rra_krb5_root" != x/usr; then :
19173 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
19174 fi
19175 fi
19176 fi
19177 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
19178 rra_krb5_save_LDFLAGS="$LDFLAGS"
19179 rra_krb5_save_LIBS="$LIBS"
19180 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
19181 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
19182 LIBS="$KRB5_LIBS $LIBS"
19183 rra_krb5_extra=
19184 LIBS=
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
19186 $as_echo_n "checking for library containing res_search... " >&6; }
19187 if ${ac_cv_search_res_search+:} false; then :
19188 $as_echo_n "(cached) " >&6
19189 else
19190 ac_func_search_save_LIBS=$LIBS
19191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19193
19194 /* Override any GCC internal prototype to avoid an error.
19195 Use char because int might match the return type of a GCC
19196 builtin and then its argument prototype would still apply. */
19197 #ifdef __cplusplus
19198 extern "C"
19199 #endif
19200 char res_search ();
19201 int
19202 main ()
19203 {
19204 return res_search ();
19205 ;
19206 return 0;
19207 }
19208 _ACEOF
19209 for ac_lib in '' resolv; do
19210 if test -z "$ac_lib"; then
19211 ac_res="none required"
19212 else
19213 ac_res=-l$ac_lib
19214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19215 fi
19216 if ac_fn_c_try_link "$LINENO"; then :
19217 ac_cv_search_res_search=$ac_res
19218 fi
19219 rm -f core conftest.err conftest.$ac_objext \
19220 conftest$ac_exeext
19221 if ${ac_cv_search_res_search+:} false; then :
19222 break
19223 fi
19224 done
19225 if ${ac_cv_search_res_search+:} false; then :
19226
19227 else
19228 ac_cv_search_res_search=no
19229 fi
19230 rm conftest.$ac_ext
19231 LIBS=$ac_func_search_save_LIBS
19232 fi
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
19234 $as_echo "$ac_cv_search_res_search" >&6; }
19235 ac_res=$ac_cv_search_res_search
19236 if test "$ac_res" != no; then :
19237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19238
19239 else
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
19241 $as_echo_n "checking for library containing __res_search... " >&6; }
19242 if ${ac_cv_search___res_search+:} false; then :
19243 $as_echo_n "(cached) " >&6
19244 else
19245 ac_func_search_save_LIBS=$LIBS
19246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h. */
19248
19249 /* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19252 #ifdef __cplusplus
19253 extern "C"
19254 #endif
19255 char __res_search ();
19256 int
19257 main ()
19258 {
19259 return __res_search ();
19260 ;
19261 return 0;
19262 }
19263 _ACEOF
19264 for ac_lib in '' resolv; do
19265 if test -z "$ac_lib"; then
19266 ac_res="none required"
19267 else
19268 ac_res=-l$ac_lib
19269 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19270 fi
19271 if ac_fn_c_try_link "$LINENO"; then :
19272 ac_cv_search___res_search=$ac_res
19273 fi
19274 rm -f core conftest.err conftest.$ac_objext \
19275 conftest$ac_exeext
19276 if ${ac_cv_search___res_search+:} false; then :
19277 break
19278 fi
19279 done
19280 if ${ac_cv_search___res_search+:} false; then :
19281
19282 else
19283 ac_cv_search___res_search=no
19284 fi
19285 rm conftest.$ac_ext
19286 LIBS=$ac_func_search_save_LIBS
19287 fi
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
19289 $as_echo "$ac_cv_search___res_search" >&6; }
19290 ac_res=$ac_cv_search___res_search
19291 if test "$ac_res" != no; then :
19292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19293
19294 fi
19295
19296 fi
19297
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19299 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19300 if ${ac_cv_search_gethostbyname+:} false; then :
19301 $as_echo_n "(cached) " >&6
19302 else
19303 ac_func_search_save_LIBS=$LIBS
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306
19307 /* Override any GCC internal prototype to avoid an error.
19308 Use char because int might match the return type of a GCC
19309 builtin and then its argument prototype would still apply. */
19310 #ifdef __cplusplus
19311 extern "C"
19312 #endif
19313 char gethostbyname ();
19314 int
19315 main ()
19316 {
19317 return gethostbyname ();
19318 ;
19319 return 0;
19320 }
19321 _ACEOF
19322 for ac_lib in '' nsl; do
19323 if test -z "$ac_lib"; then
19324 ac_res="none required"
19325 else
19326 ac_res=-l$ac_lib
19327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19328 fi
19329 if ac_fn_c_try_link "$LINENO"; then :
19330 ac_cv_search_gethostbyname=$ac_res
19331 fi
19332 rm -f core conftest.err conftest.$ac_objext \
19333 conftest$ac_exeext
19334 if ${ac_cv_search_gethostbyname+:} false; then :
19335 break
19336 fi
19337 done
19338 if ${ac_cv_search_gethostbyname+:} false; then :
19339
19340 else
19341 ac_cv_search_gethostbyname=no
19342 fi
19343 rm conftest.$ac_ext
19344 LIBS=$ac_func_search_save_LIBS
19345 fi
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19347 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19348 ac_res=$ac_cv_search_gethostbyname
19349 if test "$ac_res" != no; then :
19350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19351
19352 fi
19353
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19355 $as_echo_n "checking for library containing socket... " >&6; }
19356 if ${ac_cv_search_socket+:} false; then :
19357 $as_echo_n "(cached) " >&6
19358 else
19359 ac_func_search_save_LIBS=$LIBS
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h. */
19362
19363 /* Override any GCC internal prototype to avoid an error.
19364 Use char because int might match the return type of a GCC
19365 builtin and then its argument prototype would still apply. */
19366 #ifdef __cplusplus
19367 extern "C"
19368 #endif
19369 char socket ();
19370 int
19371 main ()
19372 {
19373 return socket ();
19374 ;
19375 return 0;
19376 }
19377 _ACEOF
19378 for ac_lib in '' socket; do
19379 if test -z "$ac_lib"; then
19380 ac_res="none required"
19381 else
19382 ac_res=-l$ac_lib
19383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19384 fi
19385 if ac_fn_c_try_link "$LINENO"; then :
19386 ac_cv_search_socket=$ac_res
19387 fi
19388 rm -f core conftest.err conftest.$ac_objext \
19389 conftest$ac_exeext
19390 if ${ac_cv_search_socket+:} false; then :
19391 break
19392 fi
19393 done
19394 if ${ac_cv_search_socket+:} false; then :
19395
19396 else
19397 ac_cv_search_socket=no
19398 fi
19399 rm conftest.$ac_ext
19400 LIBS=$ac_func_search_save_LIBS
19401 fi
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19403 $as_echo "$ac_cv_search_socket" >&6; }
19404 ac_res=$ac_cv_search_socket
19405 if test "$ac_res" != no; then :
19406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19407
19408 else
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
19410 $as_echo_n "checking for socket in -lnsl... " >&6; }
19411 if ${ac_cv_lib_nsl_socket+:} false; then :
19412 $as_echo_n "(cached) " >&6
19413 else
19414 ac_check_lib_save_LIBS=$LIBS
19415 LIBS="-lnsl -lsocket $LIBS"
19416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19417 /* end confdefs.h. */
19418
19419 /* Override any GCC internal prototype to avoid an error.
19420 Use char because int might match the return type of a GCC
19421 builtin and then its argument prototype would still apply. */
19422 #ifdef __cplusplus
19423 extern "C"
19424 #endif
19425 char socket ();
19426 int
19427 main ()
19428 {
19429 return socket ();
19430 ;
19431 return 0;
19432 }
19433 _ACEOF
19434 if ac_fn_c_try_link "$LINENO"; then :
19435 ac_cv_lib_nsl_socket=yes
19436 else
19437 ac_cv_lib_nsl_socket=no
19438 fi
19439 rm -f core conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
19441 LIBS=$ac_check_lib_save_LIBS
19442 fi
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
19444 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
19445 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
19446 LIBS="-lnsl -lsocket $LIBS"
19447 fi
19448
19449 fi
19450
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19452 $as_echo_n "checking for library containing crypt... " >&6; }
19453 if ${ac_cv_search_crypt+:} false; then :
19454 $as_echo_n "(cached) " >&6
19455 else
19456 ac_func_search_save_LIBS=$LIBS
19457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458 /* end confdefs.h. */
19459
19460 /* Override any GCC internal prototype to avoid an error.
19461 Use char because int might match the return type of a GCC
19462 builtin and then its argument prototype would still apply. */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 char crypt ();
19467 int
19468 main ()
19469 {
19470 return crypt ();
19471 ;
19472 return 0;
19473 }
19474 _ACEOF
19475 for ac_lib in '' crypt; do
19476 if test -z "$ac_lib"; then
19477 ac_res="none required"
19478 else
19479 ac_res=-l$ac_lib
19480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19481 fi
19482 if ac_fn_c_try_link "$LINENO"; then :
19483 ac_cv_search_crypt=$ac_res
19484 fi
19485 rm -f core conftest.err conftest.$ac_objext \
19486 conftest$ac_exeext
19487 if ${ac_cv_search_crypt+:} false; then :
19488 break
19489 fi
19490 done
19491 if ${ac_cv_search_crypt+:} false; then :
19492
19493 else
19494 ac_cv_search_crypt=no
19495 fi
19496 rm conftest.$ac_ext
19497 LIBS=$ac_func_search_save_LIBS
19498 fi
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19500 $as_echo "$ac_cv_search_crypt" >&6; }
19501 ac_res=$ac_cv_search_crypt
19502 if test "$ac_res" != no; then :
19503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19504
19505 fi
19506
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
19508 $as_echo_n "checking for library containing roken_concat... " >&6; }
19509 if ${ac_cv_search_roken_concat+:} false; then :
19510 $as_echo_n "(cached) " >&6
19511 else
19512 ac_func_search_save_LIBS=$LIBS
19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19515
19516 /* Override any GCC internal prototype to avoid an error.
19517 Use char because int might match the return type of a GCC
19518 builtin and then its argument prototype would still apply. */
19519 #ifdef __cplusplus
19520 extern "C"
19521 #endif
19522 char roken_concat ();
19523 int
19524 main ()
19525 {
19526 return roken_concat ();
19527 ;
19528 return 0;
19529 }
19530 _ACEOF
19531 for ac_lib in '' roken; do
19532 if test -z "$ac_lib"; then
19533 ac_res="none required"
19534 else
19535 ac_res=-l$ac_lib
19536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19537 fi
19538 if ac_fn_c_try_link "$LINENO"; then :
19539 ac_cv_search_roken_concat=$ac_res
19540 fi
19541 rm -f core conftest.err conftest.$ac_objext \
19542 conftest$ac_exeext
19543 if ${ac_cv_search_roken_concat+:} false; then :
19544 break
19545 fi
19546 done
19547 if ${ac_cv_search_roken_concat+:} false; then :
19548
19549 else
19550 ac_cv_search_roken_concat=no
19551 fi
19552 rm conftest.$ac_ext
19553 LIBS=$ac_func_search_save_LIBS
19554 fi
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
19556 $as_echo "$ac_cv_search_roken_concat" >&6; }
19557 ac_res=$ac_cv_search_roken_concat
19558 if test "$ac_res" != no; then :
19559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19560
19561 fi
19562
19563 rra_krb5_extra="$LIBS"
19564 LIBS="$rra_krb5_save_LIBS"
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19566 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
19567 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
19568 $as_echo_n "(cached) " >&6
19569 else
19570 ac_check_lib_save_LIBS=$LIBS
19571 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
19572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19573 /* end confdefs.h. */
19574
19575 /* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 char krb5_init_context ();
19582 int
19583 main ()
19584 {
19585 return krb5_init_context ();
19586 ;
19587 return 0;
19588 }
19589 _ACEOF
19590 if ac_fn_c_try_link "$LINENO"; then :
19591 ac_cv_lib_krb5_krb5_init_context=yes
19592 else
19593 ac_cv_lib_krb5_krb5_init_context=no
19594 fi
19595 rm -f core conftest.err conftest.$ac_objext \
19596 conftest$ac_exeext conftest.$ac_ext
19597 LIBS=$ac_check_lib_save_LIBS
19598 fi
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19600 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19601 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
19602 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
19603 else
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
19605 $as_echo_n "checking for krb5int_getspecific in -lkrb5support... " >&6; }
19606 if ${ac_cv_lib_krb5support_krb5int_getspecific+:} false; then :
19607 $as_echo_n "(cached) " >&6
19608 else
19609 ac_check_lib_save_LIBS=$LIBS
19610 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
19611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19613
19614 /* Override any GCC internal prototype to avoid an error.
19615 Use char because int might match the return type of a GCC
19616 builtin and then its argument prototype would still apply. */
19617 #ifdef __cplusplus
19618 extern "C"
19619 #endif
19620 char krb5int_getspecific ();
19621 int
19622 main ()
19623 {
19624 return krb5int_getspecific ();
19625 ;
19626 return 0;
19627 }
19628 _ACEOF
19629 if ac_fn_c_try_link "$LINENO"; then :
19630 ac_cv_lib_krb5support_krb5int_getspecific=yes
19631 else
19632 ac_cv_lib_krb5support_krb5int_getspecific=no
19633 fi
19634 rm -f core conftest.err conftest.$ac_objext \
19635 conftest$ac_exeext conftest.$ac_ext
19636 LIBS=$ac_check_lib_save_LIBS
19637 fi
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
19639 $as_echo "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
19640 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes; then :
19641 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
19642 else
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
19644 $as_echo_n "checking for pthread_setspecific in -lpthreads... " >&6; }
19645 if ${ac_cv_lib_pthreads_pthread_setspecific+:} false; then :
19646 $as_echo_n "(cached) " >&6
19647 else
19648 ac_check_lib_save_LIBS=$LIBS
19649 LIBS="-lpthreads $LIBS"
19650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h. */
19652
19653 /* Override any GCC internal prototype to avoid an error.
19654 Use char because int might match the return type of a GCC
19655 builtin and then its argument prototype would still apply. */
19656 #ifdef __cplusplus
19657 extern "C"
19658 #endif
19659 char pthread_setspecific ();
19660 int
19661 main ()
19662 {
19663 return pthread_setspecific ();
19664 ;
19665 return 0;
19666 }
19667 _ACEOF
19668 if ac_fn_c_try_link "$LINENO"; then :
19669 ac_cv_lib_pthreads_pthread_setspecific=yes
19670 else
19671 ac_cv_lib_pthreads_pthread_setspecific=no
19672 fi
19673 rm -f core conftest.err conftest.$ac_objext \
19674 conftest$ac_exeext conftest.$ac_ext
19675 LIBS=$ac_check_lib_save_LIBS
19676 fi
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
19678 $as_echo "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
19679 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes; then :
19680 rra_krb5_pthread="-lpthreads"
19681 else
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
19683 $as_echo_n "checking for pthread_setspecific in -lpthread... " >&6; }
19684 if ${ac_cv_lib_pthread_pthread_setspecific+:} false; then :
19685 $as_echo_n "(cached) " >&6
19686 else
19687 ac_check_lib_save_LIBS=$LIBS
19688 LIBS="-lpthread $LIBS"
19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19691
19692 /* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19695 #ifdef __cplusplus
19696 extern "C"
19697 #endif
19698 char pthread_setspecific ();
19699 int
19700 main ()
19701 {
19702 return pthread_setspecific ();
19703 ;
19704 return 0;
19705 }
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708 ac_cv_lib_pthread_pthread_setspecific=yes
19709 else
19710 ac_cv_lib_pthread_pthread_setspecific=no
19711 fi
19712 rm -f core conftest.err conftest.$ac_objext \
19713 conftest$ac_exeext conftest.$ac_ext
19714 LIBS=$ac_check_lib_save_LIBS
19715 fi
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
19717 $as_echo "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
19718 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes; then :
19719 rra_krb5_pthread="-lpthread"
19720 fi
19721
19722 fi
19723
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
19725 $as_echo_n "checking for krb5int_setspecific in -lkrb5support... " >&6; }
19726 if ${ac_cv_lib_krb5support_krb5int_setspecific+:} false; then :
19727 $as_echo_n "(cached) " >&6
19728 else
19729 ac_check_lib_save_LIBS=$LIBS
19730 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
19731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19732 /* end confdefs.h. */
19733
19734 /* Override any GCC internal prototype to avoid an error.
19735 Use char because int might match the return type of a GCC
19736 builtin and then its argument prototype would still apply. */
19737 #ifdef __cplusplus
19738 extern "C"
19739 #endif
19740 char krb5int_setspecific ();
19741 int
19742 main ()
19743 {
19744 return krb5int_setspecific ();
19745 ;
19746 return 0;
19747 }
19748 _ACEOF
19749 if ac_fn_c_try_link "$LINENO"; then :
19750 ac_cv_lib_krb5support_krb5int_setspecific=yes
19751 else
19752 ac_cv_lib_krb5support_krb5int_setspecific=no
19753 fi
19754 rm -f core conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
19756 LIBS=$ac_check_lib_save_LIBS
19757 fi
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
19759 $as_echo "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
19760 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes; then :
19761 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
19762 fi
19763
19764 fi
19765
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
19767 $as_echo_n "checking for error_message in -lcom_err... " >&6; }
19768 if ${ac_cv_lib_com_err_error_message+:} false; then :
19769 $as_echo_n "(cached) " >&6
19770 else
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-lcom_err $rra_krb5_extra $LIBS"
19773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h. */
19775
19776 /* Override any GCC internal prototype to avoid an error.
19777 Use char because int might match the return type of a GCC
19778 builtin and then its argument prototype would still apply. */
19779 #ifdef __cplusplus
19780 extern "C"
19781 #endif
19782 char error_message ();
19783 int
19784 main ()
19785 {
19786 return error_message ();
19787 ;
19788 return 0;
19789 }
19790 _ACEOF
19791 if ac_fn_c_try_link "$LINENO"; then :
19792 ac_cv_lib_com_err_error_message=yes
19793 else
19794 ac_cv_lib_com_err_error_message=no
19795 fi
19796 rm -f core conftest.err conftest.$ac_objext \
19797 conftest$ac_exeext conftest.$ac_ext
19798 LIBS=$ac_check_lib_save_LIBS
19799 fi
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
19801 $as_echo "$ac_cv_lib_com_err_error_message" >&6; }
19802 if test "x$ac_cv_lib_com_err_error_message" = xyes; then :
19803 rra_krb5_extra="-lcom_err $rra_krb5_extra"
19804 fi
19805
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
19807 $as_echo_n "checking for krb5_svc_get_msg in -lksvc... " >&6; }
19808 if ${ac_cv_lib_ksvc_krb5_svc_get_msg+:} false; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811 ac_check_lib_save_LIBS=$LIBS
19812 LIBS="-lksvc $rra_krb5_extra $LIBS"
19813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19814 /* end confdefs.h. */
19815
19816 /* Override any GCC internal prototype to avoid an error.
19817 Use char because int might match the return type of a GCC
19818 builtin and then its argument prototype would still apply. */
19819 #ifdef __cplusplus
19820 extern "C"
19821 #endif
19822 char krb5_svc_get_msg ();
19823 int
19824 main ()
19825 {
19826 return krb5_svc_get_msg ();
19827 ;
19828 return 0;
19829 }
19830 _ACEOF
19831 if ac_fn_c_try_link "$LINENO"; then :
19832 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
19833 else
19834 ac_cv_lib_ksvc_krb5_svc_get_msg=no
19835 fi
19836 rm -f core conftest.err conftest.$ac_objext \
19837 conftest$ac_exeext conftest.$ac_ext
19838 LIBS=$ac_check_lib_save_LIBS
19839 fi
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
19841 $as_echo "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
19842 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes; then :
19843 rra_krb5_extra="-lksvc $rra_krb5_extra"
19844 fi
19845
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
19847 $as_echo_n "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
19848 if ${ac_cv_lib_k5crypto_krb5int_hash_md5+:} false; then :
19849 $as_echo_n "(cached) " >&6
19850 else
19851 ac_check_lib_save_LIBS=$LIBS
19852 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
19853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19854 /* end confdefs.h. */
19855
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19859 #ifdef __cplusplus
19860 extern "C"
19861 #endif
19862 char krb5int_hash_md5 ();
19863 int
19864 main ()
19865 {
19866 return krb5int_hash_md5 ();
19867 ;
19868 return 0;
19869 }
19870 _ACEOF
19871 if ac_fn_c_try_link "$LINENO"; then :
19872 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
19873 else
19874 ac_cv_lib_k5crypto_krb5int_hash_md5=no
19875 fi
19876 rm -f core conftest.err conftest.$ac_objext \
19877 conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_check_lib_save_LIBS
19879 fi
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
19881 $as_echo "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
19882 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes; then :
19883 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
19884 fi
19885
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
19887 $as_echo_n "checking for profile_get_values in -lk5profile... " >&6; }
19888 if ${ac_cv_lib_k5profile_profile_get_values+:} false; then :
19889 $as_echo_n "(cached) " >&6
19890 else
19891 ac_check_lib_save_LIBS=$LIBS
19892 LIBS="-lk5profile $rra_krb5_extra $LIBS"
19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h. */
19895
19896 /* Override any GCC internal prototype to avoid an error.
19897 Use char because int might match the return type of a GCC
19898 builtin and then its argument prototype would still apply. */
19899 #ifdef __cplusplus
19900 extern "C"
19901 #endif
19902 char profile_get_values ();
19903 int
19904 main ()
19905 {
19906 return profile_get_values ();
19907 ;
19908 return 0;
19909 }
19910 _ACEOF
19911 if ac_fn_c_try_link "$LINENO"; then :
19912 ac_cv_lib_k5profile_profile_get_values=yes
19913 else
19914 ac_cv_lib_k5profile_profile_get_values=no
19915 fi
19916 rm -f core conftest.err conftest.$ac_objext \
19917 conftest$ac_exeext conftest.$ac_ext
19918 LIBS=$ac_check_lib_save_LIBS
19919 fi
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
19921 $as_echo "$ac_cv_lib_k5profile_profile_get_values" >&6; }
19922 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes; then :
19923 rra_krb5_extra="-lk5profile $rra_krb5_extra"
19924 fi
19925
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
19927 $as_echo_n "checking for krb5_cc_default in -lkrb5... " >&6; }
19928 if ${ac_cv_lib_krb5_krb5_cc_default+:} false; then :
19929 $as_echo_n "(cached) " >&6
19930 else
19931 ac_check_lib_save_LIBS=$LIBS
19932 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h. */
19935
19936 /* Override any GCC internal prototype to avoid an error.
19937 Use char because int might match the return type of a GCC
19938 builtin and then its argument prototype would still apply. */
19939 #ifdef __cplusplus
19940 extern "C"
19941 #endif
19942 char krb5_cc_default ();
19943 int
19944 main ()
19945 {
19946 return krb5_cc_default ();
19947 ;
19948 return 0;
19949 }
19950 _ACEOF
19951 if ac_fn_c_try_link "$LINENO"; then :
19952 ac_cv_lib_krb5_krb5_cc_default=yes
19953 else
19954 ac_cv_lib_krb5_krb5_cc_default=no
19955 fi
19956 rm -f core conftest.err conftest.$ac_objext \
19957 conftest$ac_exeext conftest.$ac_ext
19958 LIBS=$ac_check_lib_save_LIBS
19959 fi
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
19961 $as_echo "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
19962 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes; then :
19963 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
19964 else
19965 if test x"false" = xtrue; then :
19966 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
19967 fi
19968 fi
19969
19970 fi
19971
19972 LIBS="$KRB5_LIBS $LIBS"
19973 if test x"$rra_krb5_incroot" = x; then :
19974 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
19975 do :
19976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19977 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19979 cat >>confdefs.h <<_ACEOF
19980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19981 _ACEOF
19982
19983 fi
19984
19985 done
19986
19987 else
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
19989 $as_echo_n "checking for krb5.h... " >&6; }
19990 if test -f "${rra_krb5_incroot}/krb5.h"; then :
19991
19992 cat >>confdefs.h <<_ACEOF
19993 #define HAVE_KRB5_H 1
19994 _ACEOF
19995
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19997 $as_echo "yes" >&6; }
19998 else
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20000 $as_echo "no" >&6; }
20001 fi
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
20003 $as_echo_n "checking for kerberosv5/krb5.h... " >&6; }
20004 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"; then :
20005
20006 cat >>confdefs.h <<_ACEOF
20007 #define HAVE_KERBEROSV5_KRB5_H 1
20008 _ACEOF
20009
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20011 $as_echo "yes" >&6; }
20012 else
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20014 $as_echo "no" >&6; }
20015 fi
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
20017 $as_echo_n "checking for krb5/krb5.h... " >&6; }
20018 if test -f "${rra_krb5_incroot}/krb5/krb5.h"; then :
20019
20020 cat >>confdefs.h <<_ACEOF
20021 #define HAVE_KRB5_KRB5_H 1
20022 _ACEOF
20023
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20025 $as_echo "yes" >&6; }
20026 else
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20029 fi
20030 fi
20031 for ac_func in krb5_get_error_message
20032 do :
20033 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
20034 if test "x$ac_cv_func_krb5_get_error_message" = xyes; then :
20035 cat >>confdefs.h <<_ACEOF
20036 #define HAVE_KRB5_GET_ERROR_MESSAGE 1
20037 _ACEOF
20038 for ac_func in krb5_free_error_message
20039 do :
20040 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
20041 if test "x$ac_cv_func_krb5_free_error_message" = xyes; then :
20042 cat >>confdefs.h <<_ACEOF
20043 #define HAVE_KRB5_FREE_ERROR_MESSAGE 1
20044 _ACEOF
20045
20046 fi
20047 done
20048
20049 else
20050 for ac_func in krb5_get_error_string
20051 do :
20052 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
20053 if test "x$ac_cv_func_krb5_get_error_string" = xyes; then :
20054 cat >>confdefs.h <<_ACEOF
20055 #define HAVE_KRB5_GET_ERROR_STRING 1
20056 _ACEOF
20057
20058 else
20059 for ac_func in krb5_get_err_txt
20060 do :
20061 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
20062 if test "x$ac_cv_func_krb5_get_err_txt" = xyes; then :
20063 cat >>confdefs.h <<_ACEOF
20064 #define HAVE_KRB5_GET_ERR_TXT 1
20065 _ACEOF
20066
20067 else
20068 for ac_func in krb5_svc_get_msg
20069 do :
20070 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
20071 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes; then :
20072 cat >>confdefs.h <<_ACEOF
20073 #define HAVE_KRB5_SVC_GET_MSG 1
20074 _ACEOF
20075 for ac_header in ibm_svc/krb5_svc.h
20076 do :
20077 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
20078 #if HAVE_KRB5_H
20079 # include <krb5.h>
20080 #elif HAVE_KERBEROSV5_KRB5_H
20081 # include <kerberosv5/krb5.h>
20082 #else
20083 # include <krb5/krb5.h>
20084 #endif
20085
20086 "
20087 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes; then :
20088 cat >>confdefs.h <<_ACEOF
20089 #define HAVE_IBM_SVC_KRB5_SVC_H 1
20090 _ACEOF
20091
20092 fi
20093
20094 done
20095
20096 else
20097 if test x"$rra_krb5_incroot" = x; then :
20098 for ac_header in et/com_err.h kerberosv5/com_err.h
20099 do :
20100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20101 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20102 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20103 cat >>confdefs.h <<_ACEOF
20104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20105 _ACEOF
20106
20107 fi
20108
20109 done
20110
20111 else
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
20113 $as_echo_n "checking for et/com_err.h... " >&6; }
20114 if test -f "${rra_krb5_incroot}/et/com_err.h"; then :
20115
20116 cat >>confdefs.h <<_ACEOF
20117 #define HAVE_ET_COM_ERR_H 1
20118 _ACEOF
20119
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20121 $as_echo "yes" >&6; }
20122 else
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124 $as_echo "no" >&6; }
20125 fi
20126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
20127 $as_echo_n "checking for kerberosv5/com_err.h... " >&6; }
20128 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"; then :
20129
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_KERBEROSV5_COM_ERR_H 1
20132 _ACEOF
20133
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20135 $as_echo "yes" >&6; }
20136 else
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20138 $as_echo "no" >&6; }
20139 fi
20140 fi
20141 fi
20142 done
20143
20144 fi
20145 done
20146
20147 fi
20148 done
20149
20150 fi
20151 done
20152
20153 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
20154 LDFLAGS="$rra_krb5_save_LDFLAGS"
20155 LIBS="$rra_krb5_save_LIBS"
20156 fi
20157 fi
20158 rra_krb5_uses_com_err=false
20159 case $KRB5_LIBS in #(
20160 *-lcom_err*) :
20161 rra_krb5_uses_com_err=true ;; #(
20162 *) :
20163 ;;
20164 esac
20165 if test x"$rra_krb5_uses_com_err" = xtrue; then
20166 KRB5_USES_COM_ERR_TRUE=
20167 KRB5_USES_COM_ERR_FALSE='#'
20168 else
20169 KRB5_USES_COM_ERR_TRUE='#'
20170 KRB5_USES_COM_ERR_FALSE=
20171 fi
20172
20173 KRB5_CPPFLAGS_GCC=`echo "$KRB5_CPPFLAGS" | sed -e 's/-I/-isystem /g'`
20174 fi
20175 else
20176 if false; then
20177 KRB5_USES_COM_ERR_TRUE=
20178 KRB5_USES_COM_ERR_FALSE='#'
20179 else
20180 KRB5_USES_COM_ERR_TRUE='#'
20181 KRB5_USES_COM_ERR_FALSE=
20182 fi
20183
20184 fi
20185 if test x"$KRB5_LIBS" != x; then :
20186 rra_use_KRB5=true
20187
20188 $as_echo "#define HAVE_KRB5 1" >>confdefs.h
20189
20190 fi
20191 if test x"$rra_use_kerberos" != xfalse; then :
20192 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
20193 rra_krb5_save_LDFLAGS="$LDFLAGS"
20194 rra_krb5_save_LIBS="$LIBS"
20195 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
20196 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
20197 LIBS="$KRB5_LIBS $LIBS"
20198 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
20199 #if HAVE_KRB5_H
20200 # include <krb5.h>
20201 #elif HAVE_KERBEROSV5_KRB5_H
20202 # include <kerberosv5/krb5.h>
20203 #else
20204 # include <krb5/krb5.h>
20205 #endif
20206
20207 "
20208 if test "x$ac_cv_type_krb5_realm" = xyes; then :
20209
20210 cat >>confdefs.h <<_ACEOF
20211 #define HAVE_KRB5_REALM 1
20212 _ACEOF
20213
20214
20215 fi
20216
20217 for ac_func in krb5_free_default_realm \
20218 krb5_init_secure_context
20219 do :
20220 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20221 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20222 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20223 cat >>confdefs.h <<_ACEOF
20224 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20225 _ACEOF
20226
20227 fi
20228 done
20229
20230 for ac_func in krb5_appdefault_string
20231 do :
20232 ac_fn_c_check_func "$LINENO" "krb5_appdefault_string" "ac_cv_func_krb5_appdefault_string"
20233 if test "x$ac_cv_func_krb5_appdefault_string" = xyes; then :
20234 cat >>confdefs.h <<_ACEOF
20235 #define HAVE_KRB5_APPDEFAULT_STRING 1
20236 _ACEOF
20237
20238 else
20239 for ac_func in krb5_get_profile
20240 do :
20241 ac_fn_c_check_func "$LINENO" "krb5_get_profile" "ac_cv_func_krb5_get_profile"
20242 if test "x$ac_cv_func_krb5_get_profile" = xyes; then :
20243 cat >>confdefs.h <<_ACEOF
20244 #define HAVE_KRB5_GET_PROFILE 1
20245 _ACEOF
20246
20247 fi
20248 done
20249
20250 for ac_header in k5profile.h profile.h
20251 do :
20252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20253 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20255 cat >>confdefs.h <<_ACEOF
20256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20257 _ACEOF
20258
20259 fi
20260
20261 done
20262
20263 case " $LIBOBJS " in
20264 *" krb5-profile.$ac_objext "* ) ;;
20265 *) LIBOBJS="$LIBOBJS krb5-profile.$ac_objext"
20266 ;;
20267 esac
20268
20269 fi
20270 done
20271
20272 case " $LIBOBJS " in
20273 *" krb5-extra.$ac_objext "* ) ;;
20274 *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
20275 ;;
20276 esac
20277
20278 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
20279 LDFLAGS="$rra_krb5_save_LDFLAGS"
20280 LIBS="$rra_krb5_save_LIBS"
20281 fi
20282
20283 rra_libkafs=true
20284 rra_build_kafs=false
20285 KAFS_CPPFLAGS=
20286 KAFS_LDFLAGS=
20287 KAFS_LIBS=
20288
20289
20290
20291
20292
20293 # Check whether --with-libkafs was given.
20294 if test "${with_libkafs+set}" = set; then :
20295 withval=$with_libkafs; if test x"$withval" = xno; then :
20296 rra_libkafs=false
20297 else
20298 if test x"$withval" != xyes; then :
20299 rra_krb5_root="$withval"
20300 fi
20301 fi
20302 fi
20303
20304
20305 # Check whether --with-libkafs-include was given.
20306 if test "${with_libkafs_include+set}" = set; then :
20307 withval=$with_libkafs_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
20308 rra_kafs_includedir="$withval"
20309 fi
20310 fi
20311
20312
20313 # Check whether --with-libkafs-lib was given.
20314 if test "${with_libkafs_lib+set}" = set; then :
20315 withval=$with_libkafs_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
20316 rra_kafs_libdir="$withval"
20317 fi
20318 fi
20319
20320
20321
20322 # Check whether --with-afs was given.
20323 if test "${with_afs+set}" = set; then :
20324 withval=$with_afs; if test x"$withval" != xno && test x"$withval" != xyes; then :
20325 rra_afs_root="$withval"
20326 fi
20327 fi
20328
20329
20330 # Check whether --with-afs-include was given.
20331 if test "${with_afs_include+set}" = set; then :
20332 withval=$with_afs_include; if test x"$withval" != xyes && test x"$withval" != xno; then :
20333 rra_afs_includedir="$withval"
20334 fi
20335 fi
20336
20337
20338 # Check whether --with-afs-lib was given.
20339 if test "${with_afs_lib+set}" = set; then :
20340 withval=$with_afs_lib; if test x"$withval" != xyes && test x"$withval" != xno; then :
20341 rra_afs_libdir="$withval"
20342 fi
20343 fi
20344
20345
20346 for ac_header in sys/ioccom.h
20347 do :
20348 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioccom.h" "ac_cv_header_sys_ioccom_h" "$ac_includes_default"
20349 if test "x$ac_cv_header_sys_ioccom_h" = xyes; then :
20350 cat >>confdefs.h <<_ACEOF
20351 #define HAVE_SYS_IOCCOM_H 1
20352 _ACEOF
20353
20354 fi
20355
20356 done
20357
20358 if test x"$rra_libkafs" != xfalse; then :
20359 KAFS_LDFLAGS=
20360 if test x"$rra_kafs_libdir" != x; then :
20361 KAFS_LDFLAGS="-L$rra_kafs_libdir"
20362 else
20363 if test x"$rra_kafs_root" != x; then :
20364
20365 if test -d "$rra_kafs_root/$rra_lib_arch_name"; then :
20366 if test x"" = x; then :
20367 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/${rra_lib_arch_name}"
20368 else
20369 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/${rra_lib_arch_name}/"
20370 fi
20371 else
20372 if test x"" = x; then :
20373 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/lib"
20374 else
20375 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/lib/"
20376 fi
20377 fi
20378 KAFS_LDFLAGS=`echo "$KAFS_LDFLAGS" | sed -e 's/^ *//'`
20379 fi
20380 fi
20381 if test x"$rra_kafs_includedir" != x; then :
20382 KAFS_CPPFLAGS="-I$rra_kafs_includedir"
20383 else
20384 if test x"$rra_kafs_root" != x; then :
20385 if test x"$rra_kafs_root" != x/usr; then :
20386 KAFS_CPPFLAGS="-I${rra_kafs_root}/include"
20387 fi
20388 fi
20389 fi
20390 if test x"$rra_afs_libdir" != x; then :
20391 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_libdir"
20392 else
20393 if test x"$rra_afs_root" != x; then :
20394
20395 if test -d "$rra_afs_root/$rra_lib_arch_name"; then :
20396 if test x"" = x; then :
20397 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}"
20398 else
20399 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}/"
20400 fi
20401 else
20402 if test x"" = x; then :
20403 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib"
20404 else
20405 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib/"
20406 fi
20407 fi
20408 KAFS_LDFLAGS=`echo "$KAFS_LDFLAGS" | sed -e 's/^ *//'`
20409 fi
20410
20411 if test -d "$rra_afs_root/$rra_lib_arch_name"; then :
20412 if test x"afs" = x; then :
20413 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}"
20414 else
20415 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}/afs"
20416 fi
20417 else
20418 if test x"afs" = x; then :
20419 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib"
20420 else
20421 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib/afs"
20422 fi
20423 fi
20424 KAFS_LDFLAGS=`echo "$KAFS_LDFLAGS" | sed -e 's/^ *//'`
20425 fi
20426 if test x"$rra_afs_includedir" != x; then :
20427 KAFS_CPPFLAGS="-I$rra_afs_includedir"
20428 else
20429 if test x"$rra_afs_root" != x; then :
20430 if test x"$rra_afs_root" != x/usr; then :
20431 KAFS_CPPFLAGS="$KAFS_CPPFLAGS -I${rra_afs_root}/include"
20432 fi
20433 fi
20434 fi
20435 if test x"$rra_use_KRB5" = xtrue; then :
20436 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
20437 rra_krb5_save_LDFLAGS="$LDFLAGS"
20438 rra_krb5_save_LIBS="$LIBS"
20439 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
20440 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
20441 LIBS="$KRB5_LIBS $LIBS"
20442 fi
20443 rra_kafs_save_CPPFLAGS="$CPPFLAGS"
20444 rra_kafs_save_LDFLAGS="$LDFLAGS"
20445 rra_kafs_save_LIBS="$LIBS"
20446 CPPFLAGS="$KAFS_CPPFLAGS $CPPFLAGS"
20447 LDFLAGS="$KAFS_LDFLAGS $LDFLAGS"
20448 LIBS="$KAFS_LIBS $LIBS"
20449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for k_hasafs in -lkafs" >&5
20450 $as_echo_n "checking for k_hasafs in -lkafs... " >&6; }
20451 if ${ac_cv_lib_kafs_k_hasafs+:} false; then :
20452 $as_echo_n "(cached) " >&6
20453 else
20454 ac_check_lib_save_LIBS=$LIBS
20455 LIBS="-lkafs $LIBS"
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457 /* end confdefs.h. */
20458
20459 /* Override any GCC internal prototype to avoid an error.
20460 Use char because int might match the return type of a GCC
20461 builtin and then its argument prototype would still apply. */
20462 #ifdef __cplusplus
20463 extern "C"
20464 #endif
20465 char k_hasafs ();
20466 int
20467 main ()
20468 {
20469 return k_hasafs ();
20470 ;
20471 return 0;
20472 }
20473 _ACEOF
20474 if ac_fn_c_try_link "$LINENO"; then :
20475 ac_cv_lib_kafs_k_hasafs=yes
20476 else
20477 ac_cv_lib_kafs_k_hasafs=no
20478 fi
20479 rm -f core conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20482 fi
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kafs_k_hasafs" >&5
20484 $as_echo "$ac_cv_lib_kafs_k_hasafs" >&6; }
20485 if test "x$ac_cv_lib_kafs_k_hasafs" = xyes; then :
20486 KAFS_LIBS="-lkafs"
20487 for ac_header in kafs.h
20488 do :
20489 ac_fn_c_check_header_mongrel "$LINENO" "kafs.h" "ac_cv_header_kafs_h" "$ac_includes_default"
20490 if test "x$ac_cv_header_kafs_h" = xyes; then :
20491 cat >>confdefs.h <<_ACEOF
20492 #define HAVE_KAFS_H 1
20493 _ACEOF
20494
20495 fi
20496
20497 done
20498
20499 else
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for k_hasafs in -lkopenafs" >&5
20501 $as_echo_n "checking for k_hasafs in -lkopenafs... " >&6; }
20502 if ${ac_cv_lib_kopenafs_k_hasafs+:} false; then :
20503 $as_echo_n "(cached) " >&6
20504 else
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lkopenafs $LIBS"
20507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20509
20510 /* Override any GCC internal prototype to avoid an error.
20511 Use char because int might match the return type of a GCC
20512 builtin and then its argument prototype would still apply. */
20513 #ifdef __cplusplus
20514 extern "C"
20515 #endif
20516 char k_hasafs ();
20517 int
20518 main ()
20519 {
20520 return k_hasafs ();
20521 ;
20522 return 0;
20523 }
20524 _ACEOF
20525 if ac_fn_c_try_link "$LINENO"; then :
20526 ac_cv_lib_kopenafs_k_hasafs=yes
20527 else
20528 ac_cv_lib_kopenafs_k_hasafs=no
20529 fi
20530 rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_lib_save_LIBS
20533 fi
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kopenafs_k_hasafs" >&5
20535 $as_echo "$ac_cv_lib_kopenafs_k_hasafs" >&6; }
20536 if test "x$ac_cv_lib_kopenafs_k_hasafs" = xyes; then :
20537 KAFS_LIBS="-lkopenafs"
20538 for ac_header in kopenafs.h
20539 do :
20540 ac_fn_c_check_header_mongrel "$LINENO" "kopenafs.h" "ac_cv_header_kopenafs_h" "$ac_includes_default"
20541 if test "x$ac_cv_header_kopenafs_h" = xyes; then :
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_KOPENAFS_H 1
20544 _ACEOF
20545
20546 fi
20547
20548 done
20549
20550 else
20551 rra_libkafs=false
20552 fi
20553
20554 fi
20555
20556 CPPFLAGS="$rra_kafs_save_CPPFLAGS"
20557 LDFLAGS="$rra_kafs_save_LDFLAGS"
20558 LIBS="$rra_kafs_save_LIBS"
20559 rra_kafs_save_CPPFLAGS="$CPPFLAGS"
20560 rra_kafs_save_LDFLAGS="$LDFLAGS"
20561 rra_kafs_save_LIBS="$LIBS"
20562 CPPFLAGS="$KAFS_CPPFLAGS $CPPFLAGS"
20563 LDFLAGS="$KAFS_LDFLAGS $LDFLAGS"
20564 LIBS="$KAFS_LIBS $LIBS"
20565 for ac_func in k_pioctl
20566 do :
20567 ac_fn_c_check_func "$LINENO" "k_pioctl" "ac_cv_func_k_pioctl"
20568 if test "x$ac_cv_func_k_pioctl" = xyes; then :
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_K_PIOCTL 1
20571 _ACEOF
20572
20573 fi
20574 done
20575
20576 ac_fn_c_check_func "$LINENO" "k_haspag" "ac_cv_func_k_haspag"
20577 if test "x$ac_cv_func_k_haspag" = xyes; then :
20578 $as_echo "#define HAVE_K_HASPAG 1" >>confdefs.h
20579
20580 else
20581 case " $LIBOBJS " in
20582 *" k_haspag.$ac_objext "* ) ;;
20583 *) LIBOBJS="$LIBOBJS k_haspag.$ac_objext"
20584 ;;
20585 esac
20586
20587 fi
20588
20589
20590 CPPFLAGS="$rra_kafs_save_CPPFLAGS"
20591 LDFLAGS="$rra_kafs_save_LDFLAGS"
20592 LIBS="$rra_kafs_save_LIBS"
20593 if test x"$rra_use_KRB5" = xtrue; then :
20594 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
20595 LDFLAGS="$rra_krb5_save_LDFLAGS"
20596 LIBS="$rra_krb5_save_LIBS"
20597 fi
20598 fi
20599
20600 if test x"$rra_libkafs" = xtrue; then :
20601
20602 $as_echo "#define HAVE_K_HASAFS 1" >>confdefs.h
20603
20604 else
20605 case " $LIBOBJS " in
20606 *" k_haspag.$ac_objext "* ) ;;
20607 *) LIBOBJS="$LIBOBJS k_haspag.$ac_objext"
20608 ;;
20609 esac
20610
20611 case $host in #(
20612 *-apple-darwin[89]*) :
20613 rra_build_kafs=true
20614
20615 $as_echo "#define HAVE_KAFS_REPLACEMENT 1" >>confdefs.h
20616
20617
20618 $as_echo "#define HAVE_KAFS_DARWIN8 1" >>confdefs.h
20619 ;; #(
20620 *-apple-darwin1*) :
20621 rra_build_kafs=true
20622
20623 $as_echo "#define HAVE_KAFS_REPLACEMENT 1" >>confdefs.h
20624
20625
20626 $as_echo "#define HAVE_KAFS_DARWIN10 1" >>confdefs.h
20627 ;; #(
20628 *-aix*|*-irix*) :
20629 rra_kafs_save_CPPFLAGS="$CPPFLAGS"
20630 rra_kafs_save_LDFLAGS="$LDFLAGS"
20631 rra_kafs_save_LIBS="$LIBS"
20632 CPPFLAGS="$KAFS_CPPFLAGS $CPPFLAGS"
20633 LDFLAGS="$KAFS_LDFLAGS $LDFLAGS"
20634 LIBS="$KAFS_LIBS $LIBS"
20635 LIBS=
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
20637 $as_echo_n "checking for library containing pthread_getspecific... " >&6; }
20638 if ${ac_cv_search_pthread_getspecific+:} false; then :
20639 $as_echo_n "(cached) " >&6
20640 else
20641 ac_func_search_save_LIBS=$LIBS
20642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20643 /* end confdefs.h. */
20644
20645 /* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20648 #ifdef __cplusplus
20649 extern "C"
20650 #endif
20651 char pthread_getspecific ();
20652 int
20653 main ()
20654 {
20655 return pthread_getspecific ();
20656 ;
20657 return 0;
20658 }
20659 _ACEOF
20660 for ac_lib in '' pthread; do
20661 if test -z "$ac_lib"; then
20662 ac_res="none required"
20663 else
20664 ac_res=-l$ac_lib
20665 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20666 fi
20667 if ac_fn_c_try_link "$LINENO"; then :
20668 ac_cv_search_pthread_getspecific=$ac_res
20669 fi
20670 rm -f core conftest.err conftest.$ac_objext \
20671 conftest$ac_exeext
20672 if ${ac_cv_search_pthread_getspecific+:} false; then :
20673 break
20674 fi
20675 done
20676 if ${ac_cv_search_pthread_getspecific+:} false; then :
20677
20678 else
20679 ac_cv_search_pthread_getspecific=no
20680 fi
20681 rm conftest.$ac_ext
20682 LIBS=$ac_func_search_save_LIBS
20683 fi
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
20685 $as_echo "$ac_cv_search_pthread_getspecific" >&6; }
20686 ac_res=$ac_cv_search_pthread_getspecific
20687 if test "$ac_res" != no; then :
20688 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20689
20690 fi
20691
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
20693 $as_echo_n "checking for library containing res_search... " >&6; }
20694 if ${ac_cv_search_res_search+:} false; then :
20695 $as_echo_n "(cached) " >&6
20696 else
20697 ac_func_search_save_LIBS=$LIBS
20698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20699 /* end confdefs.h. */
20700
20701 /* Override any GCC internal prototype to avoid an error.
20702 Use char because int might match the return type of a GCC
20703 builtin and then its argument prototype would still apply. */
20704 #ifdef __cplusplus
20705 extern "C"
20706 #endif
20707 char res_search ();
20708 int
20709 main ()
20710 {
20711 return res_search ();
20712 ;
20713 return 0;
20714 }
20715 _ACEOF
20716 for ac_lib in '' resolv; do
20717 if test -z "$ac_lib"; then
20718 ac_res="none required"
20719 else
20720 ac_res=-l$ac_lib
20721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20722 fi
20723 if ac_fn_c_try_link "$LINENO"; then :
20724 ac_cv_search_res_search=$ac_res
20725 fi
20726 rm -f core conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext
20728 if ${ac_cv_search_res_search+:} false; then :
20729 break
20730 fi
20731 done
20732 if ${ac_cv_search_res_search+:} false; then :
20733
20734 else
20735 ac_cv_search_res_search=no
20736 fi
20737 rm conftest.$ac_ext
20738 LIBS=$ac_func_search_save_LIBS
20739 fi
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
20741 $as_echo "$ac_cv_search_res_search" >&6; }
20742 ac_res=$ac_cv_search_res_search
20743 if test "$ac_res" != no; then :
20744 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20745
20746 else
20747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
20748 $as_echo_n "checking for library containing __res_search... " >&6; }
20749 if ${ac_cv_search___res_search+:} false; then :
20750 $as_echo_n "(cached) " >&6
20751 else
20752 ac_func_search_save_LIBS=$LIBS
20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20755
20756 /* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20759 #ifdef __cplusplus
20760 extern "C"
20761 #endif
20762 char __res_search ();
20763 int
20764 main ()
20765 {
20766 return __res_search ();
20767 ;
20768 return 0;
20769 }
20770 _ACEOF
20771 for ac_lib in '' resolv; do
20772 if test -z "$ac_lib"; then
20773 ac_res="none required"
20774 else
20775 ac_res=-l$ac_lib
20776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20777 fi
20778 if ac_fn_c_try_link "$LINENO"; then :
20779 ac_cv_search___res_search=$ac_res
20780 fi
20781 rm -f core conftest.err conftest.$ac_objext \
20782 conftest$ac_exeext
20783 if ${ac_cv_search___res_search+:} false; then :
20784 break
20785 fi
20786 done
20787 if ${ac_cv_search___res_search+:} false; then :
20788
20789 else
20790 ac_cv_search___res_search=no
20791 fi
20792 rm conftest.$ac_ext
20793 LIBS=$ac_func_search_save_LIBS
20794 fi
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
20796 $as_echo "$ac_cv_search___res_search" >&6; }
20797 ac_res=$ac_cv_search___res_search
20798 if test "$ac_res" != no; then :
20799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20800
20801 fi
20802
20803 fi
20804
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20806 $as_echo_n "checking for library containing gethostbyname... " >&6; }
20807 if ${ac_cv_search_gethostbyname+:} false; then :
20808 $as_echo_n "(cached) " >&6
20809 else
20810 ac_func_search_save_LIBS=$LIBS
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20813
20814 /* Override any GCC internal prototype to avoid an error.
20815 Use char because int might match the return type of a GCC
20816 builtin and then its argument prototype would still apply. */
20817 #ifdef __cplusplus
20818 extern "C"
20819 #endif
20820 char gethostbyname ();
20821 int
20822 main ()
20823 {
20824 return gethostbyname ();
20825 ;
20826 return 0;
20827 }
20828 _ACEOF
20829 for ac_lib in '' nsl; do
20830 if test -z "$ac_lib"; then
20831 ac_res="none required"
20832 else
20833 ac_res=-l$ac_lib
20834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20835 fi
20836 if ac_fn_c_try_link "$LINENO"; then :
20837 ac_cv_search_gethostbyname=$ac_res
20838 fi
20839 rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext
20841 if ${ac_cv_search_gethostbyname+:} false; then :
20842 break
20843 fi
20844 done
20845 if ${ac_cv_search_gethostbyname+:} false; then :
20846
20847 else
20848 ac_cv_search_gethostbyname=no
20849 fi
20850 rm conftest.$ac_ext
20851 LIBS=$ac_func_search_save_LIBS
20852 fi
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20854 $as_echo "$ac_cv_search_gethostbyname" >&6; }
20855 ac_res=$ac_cv_search_gethostbyname
20856 if test "$ac_res" != no; then :
20857 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20858
20859 fi
20860
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20862 $as_echo_n "checking for library containing socket... " >&6; }
20863 if ${ac_cv_search_socket+:} false; then :
20864 $as_echo_n "(cached) " >&6
20865 else
20866 ac_func_search_save_LIBS=$LIBS
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20869
20870 /* Override any GCC internal prototype to avoid an error.
20871 Use char because int might match the return type of a GCC
20872 builtin and then its argument prototype would still apply. */
20873 #ifdef __cplusplus
20874 extern "C"
20875 #endif
20876 char socket ();
20877 int
20878 main ()
20879 {
20880 return socket ();
20881 ;
20882 return 0;
20883 }
20884 _ACEOF
20885 for ac_lib in '' socket; do
20886 if test -z "$ac_lib"; then
20887 ac_res="none required"
20888 else
20889 ac_res=-l$ac_lib
20890 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20891 fi
20892 if ac_fn_c_try_link "$LINENO"; then :
20893 ac_cv_search_socket=$ac_res
20894 fi
20895 rm -f core conftest.err conftest.$ac_objext \
20896 conftest$ac_exeext
20897 if ${ac_cv_search_socket+:} false; then :
20898 break
20899 fi
20900 done
20901 if ${ac_cv_search_socket+:} false; then :
20902
20903 else
20904 ac_cv_search_socket=no
20905 fi
20906 rm conftest.$ac_ext
20907 LIBS=$ac_func_search_save_LIBS
20908 fi
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20910 $as_echo "$ac_cv_search_socket" >&6; }
20911 ac_res=$ac_cv_search_socket
20912 if test "$ac_res" != no; then :
20913 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20914
20915 else
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
20917 $as_echo_n "checking for socket in -lnsl... " >&6; }
20918 if ${ac_cv_lib_nsl_socket+:} false; then :
20919 $as_echo_n "(cached) " >&6
20920 else
20921 ac_check_lib_save_LIBS=$LIBS
20922 LIBS="-lnsl -lsocket $LIBS"
20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20925
20926 /* Override any GCC internal prototype to avoid an error.
20927 Use char because int might match the return type of a GCC
20928 builtin and then its argument prototype would still apply. */
20929 #ifdef __cplusplus
20930 extern "C"
20931 #endif
20932 char socket ();
20933 int
20934 main ()
20935 {
20936 return socket ();
20937 ;
20938 return 0;
20939 }
20940 _ACEOF
20941 if ac_fn_c_try_link "$LINENO"; then :
20942 ac_cv_lib_nsl_socket=yes
20943 else
20944 ac_cv_lib_nsl_socket=no
20945 fi
20946 rm -f core conftest.err conftest.$ac_objext \
20947 conftest$ac_exeext conftest.$ac_ext
20948 LIBS=$ac_check_lib_save_LIBS
20949 fi
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
20951 $as_echo "$ac_cv_lib_nsl_socket" >&6; }
20952 if test "x$ac_cv_lib_nsl_socket" = xyes; then :
20953 LIBS="-lnsl -lsocket $LIBS"
20954 fi
20955
20956 fi
20957
20958 rra_kafs_extra="$LIBS"
20959 LIBS="$rra_kafs_save_LIBS"
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsetpag in -lafsauthent" >&5
20961 $as_echo_n "checking for lsetpag in -lafsauthent... " >&6; }
20962 if ${ac_cv_lib_afsauthent_lsetpag+:} false; then :
20963 $as_echo_n "(cached) " >&6
20964 else
20965 ac_check_lib_save_LIBS=$LIBS
20966 LIBS="-lafsauthent -lafsrpc $rra_kafs_extra $LIBS"
20967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20968 /* end confdefs.h. */
20969
20970 /* Override any GCC internal prototype to avoid an error.
20971 Use char because int might match the return type of a GCC
20972 builtin and then its argument prototype would still apply. */
20973 #ifdef __cplusplus
20974 extern "C"
20975 #endif
20976 char lsetpag ();
20977 int
20978 main ()
20979 {
20980 return lsetpag ();
20981 ;
20982 return 0;
20983 }
20984 _ACEOF
20985 if ac_fn_c_try_link "$LINENO"; then :
20986 ac_cv_lib_afsauthent_lsetpag=yes
20987 else
20988 ac_cv_lib_afsauthent_lsetpag=no
20989 fi
20990 rm -f core conftest.err conftest.$ac_objext \
20991 conftest$ac_exeext conftest.$ac_ext
20992 LIBS=$ac_check_lib_save_LIBS
20993 fi
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_afsauthent_lsetpag" >&5
20995 $as_echo "$ac_cv_lib_afsauthent_lsetpag" >&6; }
20996 if test "x$ac_cv_lib_afsauthent_lsetpag" = xyes; then :
20997 KAFS_LIBS="-lafsauthent -lafsrpc $rra_kafs_extra"
20998
20999 $as_echo "#define HAVE_LSETPAG 1" >>confdefs.h
21000
21001 else
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lsetpag in -lsys" >&5
21003 $as_echo_n "checking for lsetpag in -lsys... " >&6; }
21004 if ${ac_cv_lib_sys_lsetpag+:} false; then :
21005 $as_echo_n "(cached) " >&6
21006 else
21007 ac_check_lib_save_LIBS=$LIBS
21008 LIBS="-lsys $rra_kafs_extra $LIBS"
21009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21010 /* end confdefs.h. */
21011
21012 /* Override any GCC internal prototype to avoid an error.
21013 Use char because int might match the return type of a GCC
21014 builtin and then its argument prototype would still apply. */
21015 #ifdef __cplusplus
21016 extern "C"
21017 #endif
21018 char lsetpag ();
21019 int
21020 main ()
21021 {
21022 return lsetpag ();
21023 ;
21024 return 0;
21025 }
21026 _ACEOF
21027 if ac_fn_c_try_link "$LINENO"; then :
21028 ac_cv_lib_sys_lsetpag=yes
21029 else
21030 ac_cv_lib_sys_lsetpag=no
21031 fi
21032 rm -f core conftest.err conftest.$ac_objext \
21033 conftest$ac_exeext conftest.$ac_ext
21034 LIBS=$ac_check_lib_save_LIBS
21035 fi
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sys_lsetpag" >&5
21037 $as_echo "$ac_cv_lib_sys_lsetpag" >&6; }
21038 if test "x$ac_cv_lib_sys_lsetpag" = xyes; then :
21039 KAFS_LIBS="-lsys $rra_kafs_extra"
21040
21041 $as_echo "#define HAVE_LSETPAG 1" >>confdefs.h
21042
21043 fi
21044
21045 fi
21046
21047 for ac_header in afs/afssyscalls.h
21048 do :
21049 ac_fn_c_check_header_mongrel "$LINENO" "afs/afssyscalls.h" "ac_cv_header_afs_afssyscalls_h" "$ac_includes_default"
21050 if test "x$ac_cv_header_afs_afssyscalls_h" = xyes; then :
21051 cat >>confdefs.h <<_ACEOF
21052 #define HAVE_AFS_AFSSYSCALLS_H 1
21053 _ACEOF
21054
21055 fi
21056
21057 done
21058
21059 CPPFLAGS="$rra_kafs_save_CPPFLAGS"
21060 LDFLAGS="$rra_kafs_save_LDFLAGS"
21061 LIBS="$rra_kafs_save_LIBS" ;; #(
21062 *-linux*) :
21063 rra_build_kafs=true
21064
21065 $as_echo "#define HAVE_KAFS_REPLACEMENT 1" >>confdefs.h
21066
21067
21068 $as_echo "#define HAVE_KAFS_LINUX 1" >>confdefs.h
21069 ;; #(
21070 *-solaris2.1[12345678]*) :
21071 rra_build_kafs=true
21072
21073 $as_echo "#define HAVE_KAFS_REPLACEMENT 1" >>confdefs.h
21074
21075
21076 $as_echo "#define HAVE_KAFS_SOLARIS 1" >>confdefs.h
21077
21078
21079 $as_echo "#define _REENTRANT 1" >>confdefs.h
21080 ;; #(
21081 *) :
21082 rra_build_kafs=true
21083 KAFS_LDFLAGS=
21084 if test x"$rra_kafs_libdir" != x; then :
21085 KAFS_LDFLAGS="-L$rra_kafs_libdir"
21086 else
21087 if test x"$rra_kafs_root" != x; then :
21088
21089 if test -d "$rra_kafs_root/$rra_lib_arch_name"; then :
21090 if test x"" = x; then :
21091 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/${rra_lib_arch_name}"
21092 else
21093 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/${rra_lib_arch_name}/"
21094 fi
21095 else
21096 if test x"" = x; then :
21097 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/lib"
21098 else
21099 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_kafs_root/lib/"
21100 fi
21101 fi
21102 KAFS_LDFLAGS=`echo "$KAFS_LDFLAGS" | sed -e 's/^ *//'`
21103 fi
21104 fi
21105 if test x"$rra_kafs_includedir" != x; then :
21106 KAFS_CPPFLAGS="-I$rra_kafs_includedir"
21107 else
21108 if test x"$rra_kafs_root" != x; then :
21109 if test x"$rra_kafs_root" != x/usr; then :
21110 KAFS_CPPFLAGS="-I${rra_kafs_root}/include"
21111 fi
21112 fi
21113 fi
21114 if test x"$rra_afs_libdir" != x; then :
21115 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_libdir"
21116 else
21117 if test x"$rra_afs_root" != x; then :
21118
21119 if test -d "$rra_afs_root/$rra_lib_arch_name"; then :
21120 if test x"" = x; then :
21121 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}"
21122 else
21123 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}/"
21124 fi
21125 else
21126 if test x"" = x; then :
21127 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib"
21128 else
21129 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib/"
21130 fi
21131 fi
21132 KAFS_LDFLAGS=`echo "$KAFS_LDFLAGS" | sed -e 's/^ *//'`
21133 fi
21134
21135 if test -d "$rra_afs_root/$rra_lib_arch_name"; then :
21136 if test x"afs" = x; then :
21137 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}"
21138 else
21139 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/${rra_lib_arch_name}/afs"
21140 fi
21141 else
21142 if test x"afs" = x; then :
21143 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib"
21144 else
21145 KAFS_LDFLAGS="$KAFS_LDFLAGS -L$rra_afs_root/lib/afs"
21146 fi
21147 fi
21148 KAFS_LDFLAGS=`echo "$KAFS_LDFLAGS" | sed -e 's/^ *//'`
21149 fi
21150 if test x"$rra_afs_includedir" != x; then :
21151 KAFS_CPPFLAGS="-I$rra_afs_includedir"
21152 else
21153 if test x"$rra_afs_root" != x; then :
21154 if test x"$rra_afs_root" != x/usr; then :
21155 KAFS_CPPFLAGS="$KAFS_CPPFLAGS -I${rra_afs_root}/include"
21156 fi
21157 fi
21158 fi
21159 rra_kafs_save_CPPFLAGS="$CPPFLAGS"
21160 rra_kafs_save_LDFLAGS="$LDFLAGS"
21161 rra_kafs_save_LIBS="$LIBS"
21162 CPPFLAGS="$KAFS_CPPFLAGS $CPPFLAGS"
21163 LDFLAGS="$KAFS_LDFLAGS $LDFLAGS"
21164 LIBS="$KAFS_LIBS $LIBS"
21165 for ac_header in afs/param.h
21166 do :
21167 ac_fn_c_check_header_mongrel "$LINENO" "afs/param.h" "ac_cv_header_afs_param_h" "$ac_includes_default"
21168 if test "x$ac_cv_header_afs_param_h" = xyes; then :
21169 cat >>confdefs.h <<_ACEOF
21170 #define HAVE_AFS_PARAM_H 1
21171 _ACEOF
21172
21173 else
21174 as_fn_error $? "need afs/param.h to build libkafs replacement" "$LINENO" 5
21175 fi
21176
21177 done
21178
21179 CPPFLAGS="$rra_kafs_save_CPPFLAGS"
21180 LDFLAGS="$rra_kafs_save_LDFLAGS"
21181 LIBS="$rra_kafs_save_LIBS"
21182
21183 $as_echo "#define HAVE_KAFS_REPLACEMENT 1" >>confdefs.h
21184
21185
21186 $as_echo "#define HAVE_KAFS_SYSCALL 1" >>confdefs.h
21187
21188
21189 $as_echo "#define _REENTRANT 1" >>confdefs.h
21190 ;; #(
21191 *) :
21192 ;;
21193 esac
21194 fi
21195 rra_kafs_save_CPPFLAGS="$CPPFLAGS"
21196 rra_kafs_save_LDFLAGS="$LDFLAGS"
21197 rra_kafs_save_LIBS="$LIBS"
21198 CPPFLAGS="$KAFS_CPPFLAGS $CPPFLAGS"
21199 LDFLAGS="$KAFS_LDFLAGS $LDFLAGS"
21200 LIBS="$KAFS_LIBS $LIBS"
21201 for ac_func in krb5_afslog
21202 do :
21203 ac_fn_c_check_func "$LINENO" "krb5_afslog" "ac_cv_func_krb5_afslog"
21204 if test "x$ac_cv_func_krb5_afslog" = xyes; then :
21205 cat >>confdefs.h <<_ACEOF
21206 #define HAVE_KRB5_AFSLOG 1
21207 _ACEOF
21208
21209 fi
21210 done
21211
21212 CPPFLAGS="$rra_kafs_save_CPPFLAGS"
21213 LDFLAGS="$rra_kafs_save_LDFLAGS"
21214 LIBS="$rra_kafs_save_LIBS"
21215 if test x"$rra_build_kafs" = xtrue; then
21216 NEED_KAFS_TRUE=
21217 NEED_KAFS_FALSE='#'
21218 else
21219 NEED_KAFS_TRUE='#'
21220 NEED_KAFS_FALSE=
21221 fi
21222
21223
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21225 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21226 if ${ac_cv_header_stdbool_h+:} false; then :
21227 $as_echo_n "(cached) " >&6
21228 else
21229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21230 /* end confdefs.h. */
21231
21232 #include <stdbool.h>
21233 #ifndef bool
21234 "error: bool is not defined"
21235 #endif
21236 #ifndef false
21237 "error: false is not defined"
21238 #endif
21239 #if false
21240 "error: false is not 0"
21241 #endif
21242 #ifndef true
21243 "error: true is not defined"
21244 #endif
21245 #if true != 1
21246 "error: true is not 1"
21247 #endif
21248 #ifndef __bool_true_false_are_defined
21249 "error: __bool_true_false_are_defined is not defined"
21250 #endif
21251
21252 struct s { _Bool s: 1; _Bool t; } s;
21253
21254 char a[true == 1 ? 1 : -1];
21255 char b[false == 0 ? 1 : -1];
21256 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21257 char d[(bool) 0.5 == true ? 1 : -1];
21258 /* See body of main program for 'e'. */
21259 char f[(_Bool) 0.0 == false ? 1 : -1];
21260 char g[true];
21261 char h[sizeof (_Bool)];
21262 char i[sizeof s.t];
21263 enum { j = false, k = true, l = false * true, m = true * 256 };
21264 /* The following fails for
21265 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21266 _Bool n[m];
21267 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21268 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21269 /* Catch a bug in an HP-UX C compiler. See
21270 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21271 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21272 */
21273 _Bool q = true;
21274 _Bool *pq = &q;
21275
21276 int
21277 main ()
21278 {
21279
21280 bool e = &s;
21281 *pq |= q;
21282 *pq |= ! q;
21283 /* Refer to every declared value, to avoid compiler optimizations. */
21284 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21285 + !m + !n + !o + !p + !q + !pq);
21286
21287 ;
21288 return 0;
21289 }
21290 _ACEOF
21291 if ac_fn_c_try_compile "$LINENO"; then :
21292 ac_cv_header_stdbool_h=yes
21293 else
21294 ac_cv_header_stdbool_h=no
21295 fi
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297 fi
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21299 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21300 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21301 if test "x$ac_cv_type__Bool" = xyes; then :
21302
21303 cat >>confdefs.h <<_ACEOF
21304 #define HAVE__BOOL 1
21305 _ACEOF
21306
21307
21308 fi
21309
21310
21311 if test $ac_cv_header_stdbool_h = yes; then
21312
21313 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21314
21315 fi
21316
21317 for ac_header in strings.h sys/bittypes.h
21318 do :
21319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21322 cat >>confdefs.h <<_ACEOF
21323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21324 _ACEOF
21325
21326 fi
21327
21328 done
21329
21330 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
21331 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
21332 ac_have_decl=1
21333 else
21334 ac_have_decl=0
21335 fi
21336
21337 cat >>confdefs.h <<_ACEOF
21338 #define HAVE_DECL_SNPRINTF $ac_have_decl
21339 _ACEOF
21340 ac_fn_c_check_decl "$LINENO" "strlcat" "ac_cv_have_decl_strlcat" "$ac_includes_default"
21341 if test "x$ac_cv_have_decl_strlcat" = xyes; then :
21342 ac_have_decl=1
21343 else
21344 ac_have_decl=0
21345 fi
21346
21347 cat >>confdefs.h <<_ACEOF
21348 #define HAVE_DECL_STRLCAT $ac_have_decl
21349 _ACEOF
21350 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
21351 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
21352 ac_have_decl=1
21353 else
21354 ac_have_decl=0
21355 fi
21356
21357 cat >>confdefs.h <<_ACEOF
21358 #define HAVE_DECL_STRLCPY $ac_have_decl
21359 _ACEOF
21360 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
21361 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
21362 ac_have_decl=1
21363 else
21364 ac_have_decl=0
21365 fi
21366
21367 cat >>confdefs.h <<_ACEOF
21368 #define HAVE_DECL_VSNPRINTF $ac_have_decl
21369 _ACEOF
21370
21371
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
21373 $as_echo_n "checking for unsigned long long int... " >&6; }
21374 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
21375 $as_echo_n "(cached) " >&6
21376 else
21377 ac_cv_type_unsigned_long_long_int=yes
21378 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21381
21382 /* For now, do not test the preprocessor; as of 2007 there are too many
21383 implementations with broken preprocessors. Perhaps this can
21384 be revisited in 2012. In the meantime, code should not expect
21385 #if to work with literals wider than 32 bits. */
21386 /* Test literals. */
21387 long long int ll = 9223372036854775807ll;
21388 long long int nll = -9223372036854775807LL;
21389 unsigned long long int ull = 18446744073709551615ULL;
21390 /* Test constant expressions. */
21391 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
21392 ? 1 : -1)];
21393 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
21394 ? 1 : -1)];
21395 int i = 63;
21396 int
21397 main ()
21398 {
21399 /* Test availability of runtime routines for shift and division. */
21400 long long int llmax = 9223372036854775807ll;
21401 unsigned long long int ullmax = 18446744073709551615ull;
21402 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
21403 | (llmax / ll) | (llmax % ll)
21404 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
21405 | (ullmax / ull) | (ullmax % ull));
21406 ;
21407 return 0;
21408 }
21409
21410 _ACEOF
21411 if ac_fn_c_try_link "$LINENO"; then :
21412
21413 else
21414 ac_cv_type_unsigned_long_long_int=no
21415 fi
21416 rm -f core conftest.err conftest.$ac_objext \
21417 conftest$ac_exeext conftest.$ac_ext
21418 fi
21419 fi
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
21421 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
21422 if test $ac_cv_type_unsigned_long_long_int = yes; then
21423
21424 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
21425
21426 fi
21427
21428
21429
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
21431 $as_echo_n "checking for long long int... " >&6; }
21432 if ${ac_cv_type_long_long_int+:} false; then :
21433 $as_echo_n "(cached) " >&6
21434 else
21435 ac_cv_type_long_long_int=yes
21436 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
21437 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
21438 if test $ac_cv_type_long_long_int = yes; then
21439 if test "$cross_compiling" = yes; then :
21440 :
21441 else
21442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443 /* end confdefs.h. */
21444 #include <limits.h>
21445 #ifndef LLONG_MAX
21446 # define HALF \
21447 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
21448 # define LLONG_MAX (HALF - 1 + HALF)
21449 #endif
21450 int
21451 main ()
21452 {
21453 long long int n = 1;
21454 int i;
21455 for (i = 0; ; i++)
21456 {
21457 long long int m = n << i;
21458 if (m >> i != n)
21459 return 1;
21460 if (LLONG_MAX / 2 < m)
21461 break;
21462 }
21463 return 0;
21464 ;
21465 return 0;
21466 }
21467 _ACEOF
21468 if ac_fn_c_try_run "$LINENO"; then :
21469
21470 else
21471 ac_cv_type_long_long_int=no
21472 fi
21473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21474 conftest.$ac_objext conftest.beam conftest.$ac_ext
21475 fi
21476
21477 fi
21478 fi
21479 fi
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
21481 $as_echo "$ac_cv_type_long_long_int" >&6; }
21482 if test $ac_cv_type_long_long_int = yes; then
21483
21484 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
21485
21486 fi
21487
21488 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
21489 case $ac_cv_c_uint32_t in #(
21490 no|yes) ;; #(
21491 *)
21492
21493 $as_echo "#define _UINT32_T 1" >>confdefs.h
21494
21495
21496 cat >>confdefs.h <<_ACEOF
21497 #define uint32_t $ac_cv_c_uint32_t
21498 _ACEOF
21499 ;;
21500 esac
21501
21502 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
21503 #include <signal.h>
21504 "
21505 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
21506
21507 cat >>confdefs.h <<_ACEOF
21508 #define HAVE_SIG_ATOMIC_T 1
21509 _ACEOF
21510
21511
21512 fi
21513
21514 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
21515 "
21516 if test "x$ac_cv_type_ssize_t" = xyes; then :
21517
21518 cat >>confdefs.h <<_ACEOF
21519 #define HAVE_SSIZE_T 1
21520 _ACEOF
21521
21522
21523 fi
21524
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
21526 $as_echo_n "checking for working snprintf... " >&6; }
21527 if ${rra_cv_func_snprintf_works+:} false; then :
21528 $as_echo_n "(cached) " >&6
21529 else
21530 if test "$cross_compiling" = yes; then :
21531 rra_cv_func_snprintf_works=no
21532 else
21533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534 /* end confdefs.h. */
21535
21536 #include <stdio.h>
21537 #include <stdarg.h>
21538
21539 char buf[2];
21540
21541 int
21542 test(char *format, ...)
21543 {
21544 va_list args;
21545 int count;
21546
21547 va_start(args, format);
21548 count = vsnprintf(buf, sizeof buf, format, args);
21549 va_end(args);
21550 return count;
21551 }
21552
21553 int
21554 main()
21555 {
21556 return ((test("%s", "abcd") == 4 && buf[0] == 'a' && buf[1] == '\0'
21557 && snprintf(NULL, 0, "%s", "abcd") == 4) ? 0 : 1);
21558 }
21559
21560 _ACEOF
21561 if ac_fn_c_try_run "$LINENO"; then :
21562 rra_cv_func_snprintf_works=yes
21563 else
21564 rra_cv_func_snprintf_works=no
21565 fi
21566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21567 conftest.$ac_objext conftest.beam conftest.$ac_ext
21568 fi
21569
21570 fi
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_snprintf_works" >&5
21572 $as_echo "$rra_cv_func_snprintf_works" >&6; }
21573 if test x"$rra_cv_func_snprintf_works" = xyes; then :
21574
21575 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
21576
21577 else
21578 case " $LIBOBJS " in
21579 *" snprintf.$ac_objext "* ) ;;
21580 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21581 ;;
21582 esac
21583
21584 fi
21585 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
21586 if test "x$ac_cv_func_asprintf" = xyes; then :
21587 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
21588
21589 else
21590 case " $LIBOBJS " in
21591 *" asprintf.$ac_objext "* ) ;;
21592 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
21593 ;;
21594 esac
21595
21596 fi
21597
21598 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
21599 if test "x$ac_cv_func_issetugid" = xyes; then :
21600 $as_echo "#define HAVE_ISSETUGID 1" >>confdefs.h
21601
21602 else
21603 case " $LIBOBJS " in
21604 *" issetugid.$ac_objext "* ) ;;
21605 *) LIBOBJS="$LIBOBJS issetugid.$ac_objext"
21606 ;;
21607 esac
21608
21609 fi
21610
21611 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
21612 if test "x$ac_cv_func_reallocarray" = xyes; then :
21613 $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21614
21615 else
21616 case " $LIBOBJS " in
21617 *" reallocarray.$ac_objext "* ) ;;
21618 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21619 ;;
21620 esac
21621
21622 fi
21623
21624 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
21625 if test "x$ac_cv_func_strlcat" = xyes; then :
21626 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
21627
21628 else
21629 case " $LIBOBJS " in
21630 *" strlcat.$ac_objext "* ) ;;
21631 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
21632 ;;
21633 esac
21634
21635 fi
21636
21637 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21638 if test "x$ac_cv_func_strlcpy" = xyes; then :
21639 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
21640
21641 else
21642 case " $LIBOBJS " in
21643 *" strlcpy.$ac_objext "* ) ;;
21644 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
21645 ;;
21646 esac
21647
21648 fi
21649
21650 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
21651 if test "x$ac_cv_func_strndup" = xyes; then :
21652 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
21653
21654 else
21655 case " $LIBOBJS " in
21656 *" strndup.$ac_objext "* ) ;;
21657 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
21658 ;;
21659 esac
21660
21661 fi
21662
21663
21664
21665
21666 $as_echo "#define _REENTRANT 1" >>confdefs.h
21667
21668
21669 case $host in #(
21670 *-darwin*) :
21671
21672 $as_echo "#define NO_PAG_SUPPORT 1" >>confdefs.h
21673 ;; #(
21674 *-hpux*) :
21675 if test x"$GCC" = x"yes"; then :
21676 AM_LDFLAGS="-Wl,-Bsymbolic $AM_LDFLAGS"
21677 else
21678 AM_LDFLAGS="-Wl,+vshlibunsats $AM_LDFLAGS"
21679 fi ;; #(
21680 *-linux*) :
21681 AM_LDFLAGS="-Wl,-z,defs -Wl,-Bsymbolic $AM_LDFLAGS"
21682 if test x"${prefix}" = x"/usr"; then :
21683 if test x"${libdir}" = x'${exec_prefix}/lib'; then :
21684
21685 if test -d "/$rra_lib_arch_name"; then :
21686 libdir="/${rra_lib_arch_name}"
21687 else
21688 libdir="/lib"
21689 fi
21690 fi
21691 fi ;; #(
21692 *-solaris2*) :
21693 if test x"$GCC" = x"yes"; then :
21694 AM_LDFLAGS="-Wl,-Bsymbolic $AM_LDFLAGS"
21695 else
21696 AM_LDFLAGS="-Wl,-xldscope=symbolic $AM_LDFLAGS"
21697 fi ;; #(
21698 *) :
21699 ;;
21700 esac
21701
21702 if test x"$GCC" = xyes && test x"$CLANG" != xyes; then
21703 WARNINGS_GCC_TRUE=
21704 WARNINGS_GCC_FALSE='#'
21705 else
21706 WARNINGS_GCC_TRUE='#'
21707 WARNINGS_GCC_FALSE=
21708 fi
21709
21710 if test x"$CLANG" = xyes; then
21711 WARNINGS_CLANG_TRUE=
21712 WARNINGS_CLANG_FALSE='#'
21713 else
21714 WARNINGS_CLANG_TRUE='#'
21715 WARNINGS_CLANG_FALSE=
21716 fi
21717
21718
21719 ac_config_headers="$ac_config_headers config.h"
21720
21721 ac_config_files="$ac_config_files Makefile"
21722
21723 cat >confcache <<\_ACEOF
21724 # This file is a shell script that caches the results of configure
21725 # tests run on this system so they can be shared between configure
21726 # scripts and configure runs, see configure's option --config-cache.
21727 # It is not useful on other systems. If it contains results you don't
21728 # want to keep, you may remove or edit it.
21729 #
21730 # config.status only pays attention to the cache file if you give it
21731 # the --recheck option to rerun configure.
21732 #
21733 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21734 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21735 # following values.
21736
21737 _ACEOF
21738
21739 # The following way of writing the cache mishandles newlines in values,
21740 # but we know of no workaround that is simple, portable, and efficient.
21741 # So, we kill variables containing newlines.
21742 # Ultrix sh set writes to stderr and can't be redirected directly,
21743 # and sets the high bit in the cache file unless we assign to the vars.
21744 (
21745 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21746 eval ac_val=\$$ac_var
21747 case $ac_val in #(
21748 *${as_nl}*)
21749 case $ac_var in #(
21750 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21751 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21752 esac
21753 case $ac_var in #(
21754 _ | IFS | as_nl) ;; #(
21755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21756 *) { eval $ac_var=; unset $ac_var;} ;;
21757 esac ;;
21758 esac
21759 done
21760
21761 (set) 2>&1 |
21762 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21763 *${as_nl}ac_space=\ *)
21764 # `set' does not quote correctly, so add quotes: double-quote
21765 # substitution turns \\\\ into \\, and sed turns \\ into \.
21766 sed -n \
21767 "s/'/'\\\\''/g;
21768 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21769 ;; #(
21770 *)
21771 # `set' quotes correctly as required by POSIX, so do not add quotes.
21772 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21773 ;;
21774 esac |
21775 sort
21776 ) |
21777 sed '
21778 /^ac_cv_env_/b end
21779 t clear
21780 :clear
21781 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21782 t end
21783 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21784 :end' >>confcache
21785 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21786 if test -w "$cache_file"; then
21787 if test "x$cache_file" != "x/dev/null"; then
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21789 $as_echo "$as_me: updating cache $cache_file" >&6;}
21790 if test ! -f "$cache_file" || test -h "$cache_file"; then
21791 cat confcache >"$cache_file"
21792 else
21793 case $cache_file in #(
21794 */* | ?:*)
21795 mv -f confcache "$cache_file"$$ &&
21796 mv -f "$cache_file"$$ "$cache_file" ;; #(
21797 *)
21798 mv -f confcache "$cache_file" ;;
21799 esac
21800 fi
21801 fi
21802 else
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21804 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21805 fi
21806 fi
21807 rm -f confcache
21808
21809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21810 # Let make expand exec_prefix.
21811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21812
21813 DEFS=-DHAVE_CONFIG_H
21814
21815 ac_libobjs=
21816 ac_ltlibobjs=
21817 U=
21818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21819 # 1. Remove the extension, and $U if already installed.
21820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21821 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21823 # will be set to the directory where LIBOBJS objects are built.
21824 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21825 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21826 done
21827 LIBOBJS=$ac_libobjs
21828
21829 LTLIBOBJS=$ac_ltlibobjs
21830
21831
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21833 $as_echo_n "checking that generated files are newer than configure... " >&6; }
21834 if test -n "$am_sleep_pid"; then
21835 # Hide warnings about reused PIDs.
21836 wait $am_sleep_pid 2>/dev/null
21837 fi
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21839 $as_echo "done" >&6; }
21840 if test -n "$EXEEXT"; then
21841 am__EXEEXT_TRUE=
21842 am__EXEEXT_FALSE='#'
21843 else
21844 am__EXEEXT_TRUE='#'
21845 am__EXEEXT_FALSE=
21846 fi
21847
21848 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21849 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21851 fi
21852 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21853 as_fn_error $? "conditional \"AMDEP\" was never defined.
21854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21855 fi
21856 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21857 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21859 fi
21860 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
21861 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
21862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21863 fi
21864 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
21865 as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
21866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21867 fi
21868 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
21869 as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
21870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21871 fi
21872 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
21873 as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
21874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21875 fi
21876 if test -z "${NEED_KAFS_TRUE}" && test -z "${NEED_KAFS_FALSE}"; then
21877 as_fn_error $? "conditional \"NEED_KAFS\" was never defined.
21878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21879 fi
21880 if test -z "${WARNINGS_GCC_TRUE}" && test -z "${WARNINGS_GCC_FALSE}"; then
21881 as_fn_error $? "conditional \"WARNINGS_GCC\" was never defined.
21882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21883 fi
21884 if test -z "${WARNINGS_CLANG_TRUE}" && test -z "${WARNINGS_CLANG_FALSE}"; then
21885 as_fn_error $? "conditional \"WARNINGS_CLANG\" was never defined.
21886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21887 fi
21888
21889 : "${CONFIG_STATUS=./config.status}"
21890 ac_write_fail=0
21891 ac_clean_files_save=$ac_clean_files
21892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21895 as_write_fail=0
21896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21897 #! $SHELL
21898 # Generated by $as_me.
21899 # Run this file to recreate the current configuration.
21900 # Compiler output produced by configure, useful for debugging
21901 # configure, is in config.log if it exists.
21902
21903 debug=false
21904 ac_cs_recheck=false
21905 ac_cs_silent=false
21906
21907 SHELL=\${CONFIG_SHELL-$SHELL}
21908 export SHELL
21909 _ASEOF
21910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21911 ## -------------------- ##
21912 ## M4sh Initialization. ##
21913 ## -------------------- ##
21914
21915 # Be more Bourne compatible
21916 DUALCASE=1; export DUALCASE # for MKS sh
21917 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21918 emulate sh
21919 NULLCMD=:
21920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21921 # is contrary to our usage. Disable this feature.
21922 alias -g '${1+"$@"}'='"$@"'
21923 setopt NO_GLOB_SUBST
21924 else
21925 case `(set -o) 2>/dev/null` in #(
21926 *posix*) :
21927 set -o posix ;; #(
21928 *) :
21929 ;;
21930 esac
21931 fi
21932
21933
21934 as_nl='
21935 '
21936 export as_nl
21937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21938 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21941 # Prefer a ksh shell builtin over an external printf program on Solaris,
21942 # but without wasting forks for bash or zsh.
21943 if test -z "$BASH_VERSION$ZSH_VERSION" \
21944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21945 as_echo='print -r --'
21946 as_echo_n='print -rn --'
21947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21948 as_echo='printf %s\n'
21949 as_echo_n='printf %s'
21950 else
21951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21952 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21953 as_echo_n='/usr/ucb/echo -n'
21954 else
21955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21956 as_echo_n_body='eval
21957 arg=$1;
21958 case $arg in #(
21959 *"$as_nl"*)
21960 expr "X$arg" : "X\\(.*\\)$as_nl";
21961 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21962 esac;
21963 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21964 '
21965 export as_echo_n_body
21966 as_echo_n='sh -c $as_echo_n_body as_echo'
21967 fi
21968 export as_echo_body
21969 as_echo='sh -c $as_echo_body as_echo'
21970 fi
21971
21972 # The user is always right.
21973 if test "${PATH_SEPARATOR+set}" != set; then
21974 PATH_SEPARATOR=:
21975 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21976 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21977 PATH_SEPARATOR=';'
21978 }
21979 fi
21980
21981
21982 # IFS
21983 # We need space, tab and new line, in precisely that order. Quoting is
21984 # there to prevent editors from complaining about space-tab.
21985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21986 # splitting by setting IFS to empty value.)
21987 IFS=" "" $as_nl"
21988
21989 # Find who we are. Look in the path if we contain no directory separator.
21990 as_myself=
21991 case $0 in #((
21992 *[\\/]* ) as_myself=$0 ;;
21993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21994 for as_dir in $PATH
21995 do
21996 IFS=$as_save_IFS
21997 test -z "$as_dir" && as_dir=.
21998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21999 done
22000 IFS=$as_save_IFS
22001
22002 ;;
22003 esac
22004 # We did not find ourselves, most probably we were run as `sh COMMAND'
22005 # in which case we are not to be found in the path.
22006 if test "x$as_myself" = x; then
22007 as_myself=$0
22008 fi
22009 if test ! -f "$as_myself"; then
22010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22011 exit 1
22012 fi
22013
22014 # Unset variables that we do not need and which cause bugs (e.g. in
22015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22016 # suppresses any "Segmentation fault" message there. '((' could
22017 # trigger a bug in pdksh 5.2.14.
22018 for as_var in BASH_ENV ENV MAIL MAILPATH
22019 do eval test x\${$as_var+set} = xset \
22020 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22021 done
22022 PS1='$ '
22023 PS2='> '
22024 PS4='+ '
22025
22026 # NLS nuisances.
22027 LC_ALL=C
22028 export LC_ALL
22029 LANGUAGE=C
22030 export LANGUAGE
22031
22032 # CDPATH.
22033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22034
22035
22036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22037 # ----------------------------------------
22038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22040 # script with STATUS, using 1 if that was 0.
22041 as_fn_error ()
22042 {
22043 as_status=$1; test $as_status -eq 0 && as_status=1
22044 if test "$4"; then
22045 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22047 fi
22048 $as_echo "$as_me: error: $2" >&2
22049 as_fn_exit $as_status
22050 } # as_fn_error
22051
22052
22053 # as_fn_set_status STATUS
22054 # -----------------------
22055 # Set $? to STATUS, without forking.
22056 as_fn_set_status ()
22057 {
22058 return $1
22059 } # as_fn_set_status
22060
22061 # as_fn_exit STATUS
22062 # -----------------
22063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22064 as_fn_exit ()
22065 {
22066 set +e
22067 as_fn_set_status $1
22068 exit $1
22069 } # as_fn_exit
22070
22071 # as_fn_unset VAR
22072 # ---------------
22073 # Portably unset VAR.
22074 as_fn_unset ()
22075 {
22076 { eval $1=; unset $1;}
22077 }
22078 as_unset=as_fn_unset
22079 # as_fn_append VAR VALUE
22080 # ----------------------
22081 # Append the text in VALUE to the end of the definition contained in VAR. Take
22082 # advantage of any shell optimizations that allow amortized linear growth over
22083 # repeated appends, instead of the typical quadratic growth present in naive
22084 # implementations.
22085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22086 eval 'as_fn_append ()
22087 {
22088 eval $1+=\$2
22089 }'
22090 else
22091 as_fn_append ()
22092 {
22093 eval $1=\$$1\$2
22094 }
22095 fi # as_fn_append
22096
22097 # as_fn_arith ARG...
22098 # ------------------
22099 # Perform arithmetic evaluation on the ARGs, and store the result in the
22100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22101 # must be portable across $(()) and expr.
22102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22103 eval 'as_fn_arith ()
22104 {
22105 as_val=$(( $* ))
22106 }'
22107 else
22108 as_fn_arith ()
22109 {
22110 as_val=`expr "$@" || test $? -eq 1`
22111 }
22112 fi # as_fn_arith
22113
22114
22115 if expr a : '\(a\)' >/dev/null 2>&1 &&
22116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22117 as_expr=expr
22118 else
22119 as_expr=false
22120 fi
22121
22122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22123 as_basename=basename
22124 else
22125 as_basename=false
22126 fi
22127
22128 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22129 as_dirname=dirname
22130 else
22131 as_dirname=false
22132 fi
22133
22134 as_me=`$as_basename -- "$0" ||
22135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22136 X"$0" : 'X\(//\)$' \| \
22137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22138 $as_echo X/"$0" |
22139 sed '/^.*\/\([^/][^/]*\)\/*$/{
22140 s//\1/
22141 q
22142 }
22143 /^X\/\(\/\/\)$/{
22144 s//\1/
22145 q
22146 }
22147 /^X\/\(\/\).*/{
22148 s//\1/
22149 q
22150 }
22151 s/.*/./; q'`
22152
22153 # Avoid depending upon Character Ranges.
22154 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22155 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22156 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22157 as_cr_digits='0123456789'
22158 as_cr_alnum=$as_cr_Letters$as_cr_digits
22159
22160 ECHO_C= ECHO_N= ECHO_T=
22161 case `echo -n x` in #(((((
22162 -n*)
22163 case `echo 'xy\c'` in
22164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22165 xy) ECHO_C='\c';;
22166 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22167 ECHO_T=' ';;
22168 esac;;
22169 *)
22170 ECHO_N='-n';;
22171 esac
22172
22173 rm -f conf$$ conf$$.exe conf$$.file
22174 if test -d conf$$.dir; then
22175 rm -f conf$$.dir/conf$$.file
22176 else
22177 rm -f conf$$.dir
22178 mkdir conf$$.dir 2>/dev/null
22179 fi
22180 if (echo >conf$$.file) 2>/dev/null; then
22181 if ln -s conf$$.file conf$$ 2>/dev/null; then
22182 as_ln_s='ln -s'
22183 # ... but there are two gotchas:
22184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22186 # In both cases, we have to default to `cp -pR'.
22187 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22188 as_ln_s='cp -pR'
22189 elif ln conf$$.file conf$$ 2>/dev/null; then
22190 as_ln_s=ln
22191 else
22192 as_ln_s='cp -pR'
22193 fi
22194 else
22195 as_ln_s='cp -pR'
22196 fi
22197 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22198 rmdir conf$$.dir 2>/dev/null
22199
22200
22201 # as_fn_mkdir_p
22202 # -------------
22203 # Create "$as_dir" as a directory, including parents if necessary.
22204 as_fn_mkdir_p ()
22205 {
22206
22207 case $as_dir in #(
22208 -*) as_dir=./$as_dir;;
22209 esac
22210 test -d "$as_dir" || eval $as_mkdir_p || {
22211 as_dirs=
22212 while :; do
22213 case $as_dir in #(
22214 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22215 *) as_qdir=$as_dir;;
22216 esac
22217 as_dirs="'$as_qdir' $as_dirs"
22218 as_dir=`$as_dirname -- "$as_dir" ||
22219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22220 X"$as_dir" : 'X\(//\)[^/]' \| \
22221 X"$as_dir" : 'X\(//\)$' \| \
22222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22223 $as_echo X"$as_dir" |
22224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22225 s//\1/
22226 q
22227 }
22228 /^X\(\/\/\)[^/].*/{
22229 s//\1/
22230 q
22231 }
22232 /^X\(\/\/\)$/{
22233 s//\1/
22234 q
22235 }
22236 /^X\(\/\).*/{
22237 s//\1/
22238 q
22239 }
22240 s/.*/./; q'`
22241 test -d "$as_dir" && break
22242 done
22243 test -z "$as_dirs" || eval "mkdir $as_dirs"
22244 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22245
22246
22247 } # as_fn_mkdir_p
22248 if mkdir -p . 2>/dev/null; then
22249 as_mkdir_p='mkdir -p "$as_dir"'
22250 else
22251 test -d ./-p && rmdir ./-p
22252 as_mkdir_p=false
22253 fi
22254
22255
22256 # as_fn_executable_p FILE
22257 # -----------------------
22258 # Test if FILE is an executable regular file.
22259 as_fn_executable_p ()
22260 {
22261 test -f "$1" && test -x "$1"
22262 } # as_fn_executable_p
22263 as_test_x='test -x'
22264 as_executable_p=as_fn_executable_p
22265
22266 # Sed expression to map a string onto a valid CPP name.
22267 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22268
22269 # Sed expression to map a string onto a valid variable name.
22270 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22271
22272
22273 exec 6>&1
22274 ## ----------------------------------- ##
22275 ## Main body of $CONFIG_STATUS script. ##
22276 ## ----------------------------------- ##
22277 _ASEOF
22278 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22279
22280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22281 # Save the log message, to keep $0 and so on meaningful, and to
22282 # report actual input values of CONFIG_FILES etc. instead of their
22283 # values after options handling.
22284 ac_log="
22285 This file was extended by pam-afs-session $as_me 2.6, which was
22286 generated by GNU Autoconf 2.69. Invocation command line was
22287
22288 CONFIG_FILES = $CONFIG_FILES
22289 CONFIG_HEADERS = $CONFIG_HEADERS
22290 CONFIG_LINKS = $CONFIG_LINKS
22291 CONFIG_COMMANDS = $CONFIG_COMMANDS
22292 $ $0 $@
22293
22294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22295 "
22296
22297 _ACEOF
22298
22299 case $ac_config_files in *"
22300 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22301 esac
22302
22303 case $ac_config_headers in *"
22304 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22305 esac
22306
22307
22308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22309 # Files that config.status was made for.
22310 config_files="$ac_config_files"
22311 config_headers="$ac_config_headers"
22312 config_commands="$ac_config_commands"
22313
22314 _ACEOF
22315
22316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22317 ac_cs_usage="\
22318 \`$as_me' instantiates files and other configuration actions
22319 from templates according to the current configuration. Unless the files
22320 and actions are specified as TAGs, all are instantiated by default.
22321
22322 Usage: $0 [OPTION]... [TAG]...
22323
22324 -h, --help print this help, then exit
22325 -V, --version print version number and configuration settings, then exit
22326 --config print configuration, then exit
22327 -q, --quiet, --silent
22328 do not print progress messages
22329 -d, --debug don't remove temporary files
22330 --recheck update $as_me by reconfiguring in the same conditions
22331 --file=FILE[:TEMPLATE]
22332 instantiate the configuration file FILE
22333 --header=FILE[:TEMPLATE]
22334 instantiate the configuration header FILE
22335
22336 Configuration files:
22337 $config_files
22338
22339 Configuration headers:
22340 $config_headers
22341
22342 Configuration commands:
22343 $config_commands
22344
22345 Report bugs to <[email protected]>."
22346
22347 _ACEOF
22348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22349 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22350 ac_cs_version="\\
22351 pam-afs-session config.status 2.6
22352 configured by $0, generated by GNU Autoconf 2.69,
22353 with options \\"\$ac_cs_config\\"
22354
22355 Copyright (C) 2012 Free Software Foundation, Inc.
22356 This config.status script is free software; the Free Software Foundation
22357 gives unlimited permission to copy, distribute and modify it."
22358
22359 ac_pwd='$ac_pwd'
22360 srcdir='$srcdir'
22361 INSTALL='$INSTALL'
22362 MKDIR_P='$MKDIR_P'
22363 AWK='$AWK'
22364 test -n "\$AWK" || AWK=awk
22365 _ACEOF
22366
22367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22368 # The default lists apply if the user does not specify any file.
22369 ac_need_defaults=:
22370 while test $# != 0
22371 do
22372 case $1 in
22373 --*=?*)
22374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22375 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22376 ac_shift=:
22377 ;;
22378 --*=)
22379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22380 ac_optarg=
22381 ac_shift=:
22382 ;;
22383 *)
22384 ac_option=$1
22385 ac_optarg=$2
22386 ac_shift=shift
22387 ;;
22388 esac
22389
22390 case $ac_option in
22391 # Handling of the options.
22392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22393 ac_cs_recheck=: ;;
22394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22395 $as_echo "$ac_cs_version"; exit ;;
22396 --config | --confi | --conf | --con | --co | --c )
22397 $as_echo "$ac_cs_config"; exit ;;
22398 --debug | --debu | --deb | --de | --d | -d )
22399 debug=: ;;
22400 --file | --fil | --fi | --f )
22401 $ac_shift
22402 case $ac_optarg in
22403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22404 '') as_fn_error $? "missing file argument" ;;
22405 esac
22406 as_fn_append CONFIG_FILES " '$ac_optarg'"
22407 ac_need_defaults=false;;
22408 --header | --heade | --head | --hea )
22409 $ac_shift
22410 case $ac_optarg in
22411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22412 esac
22413 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22414 ac_need_defaults=false;;
22415 --he | --h)
22416 # Conflict between --help and --header
22417 as_fn_error $? "ambiguous option: \`$1'
22418 Try \`$0 --help' for more information.";;
22419 --help | --hel | -h )
22420 $as_echo "$ac_cs_usage"; exit ;;
22421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22423 ac_cs_silent=: ;;
22424
22425 # This is an error.
22426 -*) as_fn_error $? "unrecognized option: \`$1'
22427 Try \`$0 --help' for more information." ;;
22428
22429 *) as_fn_append ac_config_targets " $1"
22430 ac_need_defaults=false ;;
22431
22432 esac
22433 shift
22434 done
22435
22436 ac_configure_extra_args=
22437
22438 if $ac_cs_silent; then
22439 exec 6>/dev/null
22440 ac_configure_extra_args="$ac_configure_extra_args --silent"
22441 fi
22442
22443 _ACEOF
22444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22445 if \$ac_cs_recheck; then
22446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22447 shift
22448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22449 CONFIG_SHELL='$SHELL'
22450 export CONFIG_SHELL
22451 exec "\$@"
22452 fi
22453
22454 _ACEOF
22455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22456 exec 5>>config.log
22457 {
22458 echo
22459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22460 ## Running $as_me. ##
22461 _ASBOX
22462 $as_echo "$ac_log"
22463 } >&5
22464
22465 _ACEOF
22466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22467 #
22468 # INIT-COMMANDS
22469 #
22470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22471
22472
22473 # The HP-UX ksh and POSIX shell print the target directory to stdout
22474 # if CDPATH is set.
22475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22476
22477 sed_quote_subst='$sed_quote_subst'
22478 double_quote_subst='$double_quote_subst'
22479 delay_variable_subst='$delay_variable_subst'
22480 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22481 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22482 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22483 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22484 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22485 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22486 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22487 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22488 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22489 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22490 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22491 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22492 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22493 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22494 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22495 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22496 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22497 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22498 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22499 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22500 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22501 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22502 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22503 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22504 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22505 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22506 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22507 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22508 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22509 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22510 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22511 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22512 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22513 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22514 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22515 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22516 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22517 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22518 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22519 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22520 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22521 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22522 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22523 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22524 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22525 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22526 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22527 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22528 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22529 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22530 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22531 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22532 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22533 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22534 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22535 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22536 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22537 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22538 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22539 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22540 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22541 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22542 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22543 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22544 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22545 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22546 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22547 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22548 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22549 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22550 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22551 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22552 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22553 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22554 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22555 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22556 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22557 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22558 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22559 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22560 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22561 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22562 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22563 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22564 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22565 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22566 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22567 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22568 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22569 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22570 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22571 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22572 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22573 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22574 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22575 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22576 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22577 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22578 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22579 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22580 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22581 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22582 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22583 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22584 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22585 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22586 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22587 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22588 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22589 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22590 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22591 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22592 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22593 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22594 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22595 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22596 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22597 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22598 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22599 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22600 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22601 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22602 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22603 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22604 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22605 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22606 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22607 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22608 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22609 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22610
22611 LTCC='$LTCC'
22612 LTCFLAGS='$LTCFLAGS'
22613 compiler='$compiler_DEFAULT'
22614
22615 # A function that is used when there is no print builtin or printf.
22616 func_fallback_echo ()
22617 {
22618 eval 'cat <<_LTECHO_EOF
22619 \$1
22620 _LTECHO_EOF'
22621 }
22622
22623 # Quote evaled strings.
22624 for var in SHELL \
22625 ECHO \
22626 PATH_SEPARATOR \
22627 SED \
22628 GREP \
22629 EGREP \
22630 FGREP \
22631 LD \
22632 NM \
22633 LN_S \
22634 lt_SP2NL \
22635 lt_NL2SP \
22636 reload_flag \
22637 OBJDUMP \
22638 deplibs_check_method \
22639 file_magic_cmd \
22640 file_magic_glob \
22641 want_nocaseglob \
22642 DLLTOOL \
22643 sharedlib_from_linklib_cmd \
22644 AR \
22645 AR_FLAGS \
22646 archiver_list_spec \
22647 STRIP \
22648 RANLIB \
22649 CC \
22650 CFLAGS \
22651 compiler \
22652 lt_cv_sys_global_symbol_pipe \
22653 lt_cv_sys_global_symbol_to_cdecl \
22654 lt_cv_sys_global_symbol_to_c_name_address \
22655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22656 nm_file_list_spec \
22657 lt_prog_compiler_no_builtin_flag \
22658 lt_prog_compiler_pic \
22659 lt_prog_compiler_wl \
22660 lt_prog_compiler_static \
22661 lt_cv_prog_compiler_c_o \
22662 need_locks \
22663 MANIFEST_TOOL \
22664 DSYMUTIL \
22665 NMEDIT \
22666 LIPO \
22667 OTOOL \
22668 OTOOL64 \
22669 shrext_cmds \
22670 export_dynamic_flag_spec \
22671 whole_archive_flag_spec \
22672 compiler_needs_object \
22673 with_gnu_ld \
22674 allow_undefined_flag \
22675 no_undefined_flag \
22676 hardcode_libdir_flag_spec \
22677 hardcode_libdir_separator \
22678 exclude_expsyms \
22679 include_expsyms \
22680 file_list_spec \
22681 variables_saved_for_relink \
22682 libname_spec \
22683 library_names_spec \
22684 soname_spec \
22685 install_override_mode \
22686 finish_eval \
22687 old_striplib \
22688 striplib; do
22689 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22690 *[\\\\\\\`\\"\\\$]*)
22691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22692 ;;
22693 *)
22694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22695 ;;
22696 esac
22697 done
22698
22699 # Double-quote double-evaled strings.
22700 for var in reload_cmds \
22701 old_postinstall_cmds \
22702 old_postuninstall_cmds \
22703 old_archive_cmds \
22704 extract_expsyms_cmds \
22705 old_archive_from_new_cmds \
22706 old_archive_from_expsyms_cmds \
22707 archive_cmds \
22708 archive_expsym_cmds \
22709 module_cmds \
22710 module_expsym_cmds \
22711 export_symbols_cmds \
22712 prelink_cmds \
22713 postlink_cmds \
22714 postinstall_cmds \
22715 postuninstall_cmds \
22716 finish_cmds \
22717 sys_lib_search_path_spec \
22718 sys_lib_dlsearch_path_spec; do
22719 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22720 *[\\\\\\\`\\"\\\$]*)
22721 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22722 ;;
22723 *)
22724 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22725 ;;
22726 esac
22727 done
22728
22729 ac_aux_dir='$ac_aux_dir'
22730 xsi_shell='$xsi_shell'
22731 lt_shell_append='$lt_shell_append'
22732
22733 # See if we are running on zsh, and set the options which allow our
22734 # commands through without removal of \ escapes INIT.
22735 if test -n "\${ZSH_VERSION+set}" ; then
22736 setopt NO_GLOB_SUBST
22737 fi
22738
22739
22740 PACKAGE='$PACKAGE'
22741 VERSION='$VERSION'
22742 TIMESTAMP='$TIMESTAMP'
22743 RM='$RM'
22744 ofile='$ofile'
22745
22746
22747
22748
22749 _ACEOF
22750
22751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22752
22753 # Handling of arguments.
22754 for ac_config_target in $ac_config_targets
22755 do
22756 case $ac_config_target in
22757 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22758 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22760 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22761
22762 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22763 esac
22764 done
22765
22766
22767 # If the user did not use the arguments to specify the items to instantiate,
22768 # then the envvar interface is used. Set only those that are not.
22769 # We use the long form for the default assignment because of an extremely
22770 # bizarre bug on SunOS 4.1.3.
22771 if $ac_need_defaults; then
22772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22774 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22775 fi
22776
22777 # Have a temporary directory for convenience. Make it in the build tree
22778 # simply because there is no reason against having it here, and in addition,
22779 # creating and moving files from /tmp can sometimes cause problems.
22780 # Hook for its removal unless debugging.
22781 # Note that there is a small window in which the directory will not be cleaned:
22782 # after its creation but before its name has been assigned to `$tmp'.
22783 $debug ||
22784 {
22785 tmp= ac_tmp=
22786 trap 'exit_status=$?
22787 : "${ac_tmp:=$tmp}"
22788 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22789 ' 0
22790 trap 'as_fn_exit 1' 1 2 13 15
22791 }
22792 # Create a (secure) tmp directory for tmp files.
22793
22794 {
22795 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22796 test -d "$tmp"
22797 } ||
22798 {
22799 tmp=./conf$$-$RANDOM
22800 (umask 077 && mkdir "$tmp")
22801 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22802 ac_tmp=$tmp
22803
22804 # Set up the scripts for CONFIG_FILES section.
22805 # No need to generate them if there are no CONFIG_FILES.
22806 # This happens for instance with `./config.status config.h'.
22807 if test -n "$CONFIG_FILES"; then
22808
22809
22810 ac_cr=`echo X | tr X '\015'`
22811 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22812 # But we know of no other shell where ac_cr would be empty at this
22813 # point, so we can use a bashism as a fallback.
22814 if test "x$ac_cr" = x; then
22815 eval ac_cr=\$\'\\r\'
22816 fi
22817 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22818 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22819 ac_cs_awk_cr='\\r'
22820 else
22821 ac_cs_awk_cr=$ac_cr
22822 fi
22823
22824 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22825 _ACEOF
22826
22827
22828 {
22829 echo "cat >conf$$subs.awk <<_ACEOF" &&
22830 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22831 echo "_ACEOF"
22832 } >conf$$subs.sh ||
22833 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22834 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22835 ac_delim='%!_!# '
22836 for ac_last_try in false false false false false :; do
22837 . ./conf$$subs.sh ||
22838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22839
22840 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22841 if test $ac_delim_n = $ac_delim_num; then
22842 break
22843 elif $ac_last_try; then
22844 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22845 else
22846 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22847 fi
22848 done
22849 rm -f conf$$subs.sh
22850
22851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22852 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22853 _ACEOF
22854 sed -n '
22855 h
22856 s/^/S["/; s/!.*/"]=/
22857 p
22858 g
22859 s/^[^!]*!//
22860 :repl
22861 t repl
22862 s/'"$ac_delim"'$//
22863 t delim
22864 :nl
22865 h
22866 s/\(.\{148\}\)..*/\1/
22867 t more1
22868 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22869 p
22870 n
22871 b repl
22872 :more1
22873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22874 p
22875 g
22876 s/.\{148\}//
22877 t nl
22878 :delim
22879 h
22880 s/\(.\{148\}\)..*/\1/
22881 t more2
22882 s/["\\]/\\&/g; s/^/"/; s/$/"/
22883 p
22884 b
22885 :more2
22886 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22887 p
22888 g
22889 s/.\{148\}//
22890 t delim
22891 ' <conf$$subs.awk | sed '
22892 /^[^""]/{
22893 N
22894 s/\n//
22895 }
22896 ' >>$CONFIG_STATUS || ac_write_fail=1
22897 rm -f conf$$subs.awk
22898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22899 _ACAWK
22900 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22901 for (key in S) S_is_set[key] = 1
22902 FS = ""
22903
22904 }
22905 {
22906 line = $ 0
22907 nfields = split(line, field, "@")
22908 substed = 0
22909 len = length(field[1])
22910 for (i = 2; i < nfields; i++) {
22911 key = field[i]
22912 keylen = length(key)
22913 if (S_is_set[key]) {
22914 value = S[key]
22915 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22916 len += length(value) + length(field[++i])
22917 substed = 1
22918 } else
22919 len += 1 + keylen
22920 }
22921
22922 print line
22923 }
22924
22925 _ACAWK
22926 _ACEOF
22927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22928 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22929 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22930 else
22931 cat
22932 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22933 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22934 _ACEOF
22935
22936 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22937 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22938 # trailing colons and then remove the whole line if VPATH becomes empty
22939 # (actually we leave an empty line to preserve line numbers).
22940 if test "x$srcdir" = x.; then
22941 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22942 h
22943 s///
22944 s/^/:/
22945 s/[ ]*$/:/
22946 s/:\$(srcdir):/:/g
22947 s/:\${srcdir}:/:/g
22948 s/:@srcdir@:/:/g
22949 s/^:*//
22950 s/:*$//
22951 x
22952 s/\(=[ ]*\).*/\1/
22953 G
22954 s/\n//
22955 s/^[^=]*=[ ]*$//
22956 }'
22957 fi
22958
22959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22960 fi # test -n "$CONFIG_FILES"
22961
22962 # Set up the scripts for CONFIG_HEADERS section.
22963 # No need to generate them if there are no CONFIG_HEADERS.
22964 # This happens for instance with `./config.status Makefile'.
22965 if test -n "$CONFIG_HEADERS"; then
22966 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22967 BEGIN {
22968 _ACEOF
22969
22970 # Transform confdefs.h into an awk script `defines.awk', embedded as
22971 # here-document in config.status, that substitutes the proper values into
22972 # config.h.in to produce config.h.
22973
22974 # Create a delimiter string that does not exist in confdefs.h, to ease
22975 # handling of long lines.
22976 ac_delim='%!_!# '
22977 for ac_last_try in false false :; do
22978 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22979 if test -z "$ac_tt"; then
22980 break
22981 elif $ac_last_try; then
22982 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22983 else
22984 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22985 fi
22986 done
22987
22988 # For the awk script, D is an array of macro values keyed by name,
22989 # likewise P contains macro parameters if any. Preserve backslash
22990 # newline sequences.
22991
22992 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22993 sed -n '
22994 s/.\{148\}/&'"$ac_delim"'/g
22995 t rset
22996 :rset
22997 s/^[ ]*#[ ]*define[ ][ ]*/ /
22998 t def
22999 d
23000 :def
23001 s/\\$//
23002 t bsnl
23003 s/["\\]/\\&/g
23004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23005 D["\1"]=" \3"/p
23006 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23007 d
23008 :bsnl
23009 s/["\\]/\\&/g
23010 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23011 D["\1"]=" \3\\\\\\n"\\/p
23012 t cont
23013 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23014 t cont
23015 d
23016 :cont
23017 n
23018 s/.\{148\}/&'"$ac_delim"'/g
23019 t clear
23020 :clear
23021 s/\\$//
23022 t bsnlc
23023 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23024 d
23025 :bsnlc
23026 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23027 b cont
23028 ' <confdefs.h | sed '
23029 s/'"$ac_delim"'/"\\\
23030 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23031
23032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23033 for (key in D) D_is_set[key] = 1
23034 FS = ""
23035 }
23036 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23037 line = \$ 0
23038 split(line, arg, " ")
23039 if (arg[1] == "#") {
23040 defundef = arg[2]
23041 mac1 = arg[3]
23042 } else {
23043 defundef = substr(arg[1], 2)
23044 mac1 = arg[2]
23045 }
23046 split(mac1, mac2, "(") #)
23047 macro = mac2[1]
23048 prefix = substr(line, 1, index(line, defundef) - 1)
23049 if (D_is_set[macro]) {
23050 # Preserve the white space surrounding the "#".
23051 print prefix "define", macro P[macro] D[macro]
23052 next
23053 } else {
23054 # Replace #undef with comments. This is necessary, for example,
23055 # in the case of _POSIX_SOURCE, which is predefined and required
23056 # on some systems where configure will not decide to define it.
23057 if (defundef == "undef") {
23058 print "/*", prefix defundef, macro, "*/"
23059 next
23060 }
23061 }
23062 }
23063 { print }
23064 _ACAWK
23065 _ACEOF
23066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23067 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23068 fi # test -n "$CONFIG_HEADERS"
23069
23070
23071 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23072 shift
23073 for ac_tag
23074 do
23075 case $ac_tag in
23076 :[FHLC]) ac_mode=$ac_tag; continue;;
23077 esac
23078 case $ac_mode$ac_tag in
23079 :[FHL]*:*);;
23080 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23081 :[FH]-) ac_tag=-:-;;
23082 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23083 esac
23084 ac_save_IFS=$IFS
23085 IFS=:
23086 set x $ac_tag
23087 IFS=$ac_save_IFS
23088 shift
23089 ac_file=$1
23090 shift
23091
23092 case $ac_mode in
23093 :L) ac_source=$1;;
23094 :[FH])
23095 ac_file_inputs=
23096 for ac_f
23097 do
23098 case $ac_f in
23099 -) ac_f="$ac_tmp/stdin";;
23100 *) # Look for the file first in the build tree, then in the source tree
23101 # (if the path is not absolute). The absolute path cannot be DOS-style,
23102 # because $ac_f cannot contain `:'.
23103 test -f "$ac_f" ||
23104 case $ac_f in
23105 [\\/$]*) false;;
23106 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23107 esac ||
23108 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23109 esac
23110 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23111 as_fn_append ac_file_inputs " '$ac_f'"
23112 done
23113
23114 # Let's still pretend it is `configure' which instantiates (i.e., don't
23115 # use $as_me), people would be surprised to read:
23116 # /* config.h. Generated by config.status. */
23117 configure_input='Generated from '`
23118 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23119 `' by configure.'
23120 if test x"$ac_file" != x-; then
23121 configure_input="$ac_file. $configure_input"
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23123 $as_echo "$as_me: creating $ac_file" >&6;}
23124 fi
23125 # Neutralize special characters interpreted by sed in replacement strings.
23126 case $configure_input in #(
23127 *\&* | *\|* | *\\* )
23128 ac_sed_conf_input=`$as_echo "$configure_input" |
23129 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23130 *) ac_sed_conf_input=$configure_input;;
23131 esac
23132
23133 case $ac_tag in
23134 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23136 esac
23137 ;;
23138 esac
23139
23140 ac_dir=`$as_dirname -- "$ac_file" ||
23141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23142 X"$ac_file" : 'X\(//\)[^/]' \| \
23143 X"$ac_file" : 'X\(//\)$' \| \
23144 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23145 $as_echo X"$ac_file" |
23146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23147 s//\1/
23148 q
23149 }
23150 /^X\(\/\/\)[^/].*/{
23151 s//\1/
23152 q
23153 }
23154 /^X\(\/\/\)$/{
23155 s//\1/
23156 q
23157 }
23158 /^X\(\/\).*/{
23159 s//\1/
23160 q
23161 }
23162 s/.*/./; q'`
23163 as_dir="$ac_dir"; as_fn_mkdir_p
23164 ac_builddir=.
23165
23166 case "$ac_dir" in
23167 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23168 *)
23169 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23170 # A ".." for each directory in $ac_dir_suffix.
23171 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23172 case $ac_top_builddir_sub in
23173 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23174 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23175 esac ;;
23176 esac
23177 ac_abs_top_builddir=$ac_pwd
23178 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23179 # for backward compatibility:
23180 ac_top_builddir=$ac_top_build_prefix
23181
23182 case $srcdir in
23183 .) # We are building in place.
23184 ac_srcdir=.
23185 ac_top_srcdir=$ac_top_builddir_sub
23186 ac_abs_top_srcdir=$ac_pwd ;;
23187 [\\/]* | ?:[\\/]* ) # Absolute name.
23188 ac_srcdir=$srcdir$ac_dir_suffix;
23189 ac_top_srcdir=$srcdir
23190 ac_abs_top_srcdir=$srcdir ;;
23191 *) # Relative name.
23192 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23193 ac_top_srcdir=$ac_top_build_prefix$srcdir
23194 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23195 esac
23196 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23197
23198
23199 case $ac_mode in
23200 :F)
23201 #
23202 # CONFIG_FILE
23203 #
23204
23205 case $INSTALL in
23206 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23207 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23208 esac
23209 ac_MKDIR_P=$MKDIR_P
23210 case $MKDIR_P in
23211 [\\/$]* | ?:[\\/]* ) ;;
23212 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23213 esac
23214 _ACEOF
23215
23216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23217 # If the template does not know about datarootdir, expand it.
23218 # FIXME: This hack should be removed a few years after 2.60.
23219 ac_datarootdir_hack=; ac_datarootdir_seen=
23220 ac_sed_dataroot='
23221 /datarootdir/ {
23222 p
23223 q
23224 }
23225 /@datadir@/p
23226 /@docdir@/p
23227 /@infodir@/p
23228 /@localedir@/p
23229 /@mandir@/p'
23230 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23231 *datarootdir*) ac_datarootdir_seen=yes;;
23232 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23234 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23235 _ACEOF
23236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23237 ac_datarootdir_hack='
23238 s&@datadir@&$datadir&g
23239 s&@docdir@&$docdir&g
23240 s&@infodir@&$infodir&g
23241 s&@localedir@&$localedir&g
23242 s&@mandir@&$mandir&g
23243 s&\\\${datarootdir}&$datarootdir&g' ;;
23244 esac
23245 _ACEOF
23246
23247 # Neutralize VPATH when `$srcdir' = `.'.
23248 # Shell code in configure.ac might set extrasub.
23249 # FIXME: do we really want to maintain this feature?
23250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23251 ac_sed_extra="$ac_vpsub
23252 $extrasub
23253 _ACEOF
23254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23255 :t
23256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23257 s|@configure_input@|$ac_sed_conf_input|;t t
23258 s&@top_builddir@&$ac_top_builddir_sub&;t t
23259 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23260 s&@srcdir@&$ac_srcdir&;t t
23261 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23262 s&@top_srcdir@&$ac_top_srcdir&;t t
23263 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23264 s&@builddir@&$ac_builddir&;t t
23265 s&@abs_builddir@&$ac_abs_builddir&;t t
23266 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23267 s&@INSTALL@&$ac_INSTALL&;t t
23268 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23269 $ac_datarootdir_hack
23270 "
23271 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23272 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23273
23274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23275 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23277 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23279 which seems to be undefined. Please make sure it is defined" >&5
23280 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23281 which seems to be undefined. Please make sure it is defined" >&2;}
23282
23283 rm -f "$ac_tmp/stdin"
23284 case $ac_file in
23285 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23286 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23287 esac \
23288 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23289 ;;
23290 :H)
23291 #
23292 # CONFIG_HEADER
23293 #
23294 if test x"$ac_file" != x-; then
23295 {
23296 $as_echo "/* $configure_input */" \
23297 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23298 } >"$ac_tmp/config.h" \
23299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23300 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23302 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23303 else
23304 rm -f "$ac_file"
23305 mv "$ac_tmp/config.h" "$ac_file" \
23306 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23307 fi
23308 else
23309 $as_echo "/* $configure_input */" \
23310 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23311 || as_fn_error $? "could not create -" "$LINENO" 5
23312 fi
23313 # Compute "$ac_file"'s index in $config_headers.
23314 _am_arg="$ac_file"
23315 _am_stamp_count=1
23316 for _am_header in $config_headers :; do
23317 case $_am_header in
23318 $_am_arg | $_am_arg:* )
23319 break ;;
23320 * )
23321 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23322 esac
23323 done
23324 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23325 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23326 X"$_am_arg" : 'X\(//\)[^/]' \| \
23327 X"$_am_arg" : 'X\(//\)$' \| \
23328 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23329 $as_echo X"$_am_arg" |
23330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23331 s//\1/
23332 q
23333 }
23334 /^X\(\/\/\)[^/].*/{
23335 s//\1/
23336 q
23337 }
23338 /^X\(\/\/\)$/{
23339 s//\1/
23340 q
23341 }
23342 /^X\(\/\).*/{
23343 s//\1/
23344 q
23345 }
23346 s/.*/./; q'`/stamp-h$_am_stamp_count
23347 ;;
23348
23349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23350 $as_echo "$as_me: executing $ac_file commands" >&6;}
23351 ;;
23352 esac
23353
23354
23355 case $ac_file$ac_mode in
23356 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23357 # Older Autoconf quotes --file arguments for eval, but not when files
23358 # are listed without --file. Let's play safe and only enable the eval
23359 # if we detect the quoting.
23360 case $CONFIG_FILES in
23361 *\'*) eval set x "$CONFIG_FILES" ;;
23362 *) set x $CONFIG_FILES ;;
23363 esac
23364 shift
23365 for mf
23366 do
23367 # Strip MF so we end up with the name of the file.
23368 mf=`echo "$mf" | sed -e 's/:.*$//'`
23369 # Check whether this is an Automake generated Makefile or not.
23370 # We used to match only the files named 'Makefile.in', but
23371 # some people rename them; so instead we look at the file content.
23372 # Grep'ing the first line is not enough: some people post-process
23373 # each Makefile.in and add a new line on top of each file to say so.
23374 # Grep'ing the whole file is not good either: AIX grep has a line
23375 # limit of 2048, but all sed's we know have understand at least 4000.
23376 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23377 dirpart=`$as_dirname -- "$mf" ||
23378 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23379 X"$mf" : 'X\(//\)[^/]' \| \
23380 X"$mf" : 'X\(//\)$' \| \
23381 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23382 $as_echo X"$mf" |
23383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23384 s//\1/
23385 q
23386 }
23387 /^X\(\/\/\)[^/].*/{
23388 s//\1/
23389 q
23390 }
23391 /^X\(\/\/\)$/{
23392 s//\1/
23393 q
23394 }
23395 /^X\(\/\).*/{
23396 s//\1/
23397 q
23398 }
23399 s/.*/./; q'`
23400 else
23401 continue
23402 fi
23403 # Extract the definition of DEPDIR, am__include, and am__quote
23404 # from the Makefile without running 'make'.
23405 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23406 test -z "$DEPDIR" && continue
23407 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23408 test -z "$am__include" && continue
23409 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23410 # Find all dependency output files, they are included files with
23411 # $(DEPDIR) in their names. We invoke sed twice because it is the
23412 # simplest approach to changing $(DEPDIR) to its actual value in the
23413 # expansion.
23414 for file in `sed -n "
23415 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23416 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23417 # Make sure the directory exists.
23418 test -f "$dirpart/$file" && continue
23419 fdir=`$as_dirname -- "$file" ||
23420 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23421 X"$file" : 'X\(//\)[^/]' \| \
23422 X"$file" : 'X\(//\)$' \| \
23423 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23424 $as_echo X"$file" |
23425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23426 s//\1/
23427 q
23428 }
23429 /^X\(\/\/\)[^/].*/{
23430 s//\1/
23431 q
23432 }
23433 /^X\(\/\/\)$/{
23434 s//\1/
23435 q
23436 }
23437 /^X\(\/\).*/{
23438 s//\1/
23439 q
23440 }
23441 s/.*/./; q'`
23442 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23443 # echo "creating $dirpart/$file"
23444 echo '# dummy' > "$dirpart/$file"
23445 done
23446 done
23447 }
23448 ;;
23449 "libtool":C)
23450
23451 # See if we are running on zsh, and set the options which allow our
23452 # commands through without removal of \ escapes.
23453 if test -n "${ZSH_VERSION+set}" ; then
23454 setopt NO_GLOB_SUBST
23455 fi
23456
23457 cfgfile="${ofile}T"
23458 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23459 $RM "$cfgfile"
23460
23461 cat <<_LT_EOF >> "$cfgfile"
23462 #! $SHELL
23463
23464 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23465 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23466 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23467 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23468 #
23469 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23470 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23471 # Foundation, Inc.
23472 # Written by Gordon Matzigkeit, 1996
23473 #
23474 # This file is part of GNU Libtool.
23475 #
23476 # GNU Libtool is free software; you can redistribute it and/or
23477 # modify it under the terms of the GNU General Public License as
23478 # published by the Free Software Foundation; either version 2 of
23479 # the License, or (at your option) any later version.
23480 #
23481 # As a special exception to the GNU General Public License,
23482 # if you distribute this file as part of a program or library that
23483 # is built using GNU Libtool, you may include this file under the
23484 # same distribution terms that you use for the rest of that program.
23485 #
23486 # GNU Libtool is distributed in the hope that it will be useful,
23487 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23489 # GNU General Public License for more details.
23490 #
23491 # You should have received a copy of the GNU General Public License
23492 # along with GNU Libtool; see the file COPYING. If not, a copy
23493 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23494 # obtained by writing to the Free Software Foundation, Inc.,
23495 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23496
23497
23498 # The names of the tagged configurations supported by this script.
23499 available_tags=""
23500
23501 # ### BEGIN LIBTOOL CONFIG
23502
23503 # Which release of libtool.m4 was used?
23504 macro_version=$macro_version
23505 macro_revision=$macro_revision
23506
23507 # Whether or not to build static libraries.
23508 build_old_libs=$enable_static
23509
23510 # Whether or not to build shared libraries.
23511 build_libtool_libs=$enable_shared
23512
23513 # What type of objects to build.
23514 pic_mode=$pic_mode
23515
23516 # Whether or not to optimize for fast installation.
23517 fast_install=$enable_fast_install
23518
23519 # Shell to use when invoking shell scripts.
23520 SHELL=$lt_SHELL
23521
23522 # An echo program that protects backslashes.
23523 ECHO=$lt_ECHO
23524
23525 # The PATH separator for the build system.
23526 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23527
23528 # The host system.
23529 host_alias=$host_alias
23530 host=$host
23531 host_os=$host_os
23532
23533 # The build system.
23534 build_alias=$build_alias
23535 build=$build
23536 build_os=$build_os
23537
23538 # A sed program that does not truncate output.
23539 SED=$lt_SED
23540
23541 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23542 Xsed="\$SED -e 1s/^X//"
23543
23544 # A grep program that handles long lines.
23545 GREP=$lt_GREP
23546
23547 # An ERE matcher.
23548 EGREP=$lt_EGREP
23549
23550 # A literal string matcher.
23551 FGREP=$lt_FGREP
23552
23553 # A BSD- or MS-compatible name lister.
23554 NM=$lt_NM
23555
23556 # Whether we need soft or hard links.
23557 LN_S=$lt_LN_S
23558
23559 # What is the maximum length of a command?
23560 max_cmd_len=$max_cmd_len
23561
23562 # Object file suffix (normally "o").
23563 objext=$ac_objext
23564
23565 # Executable file suffix (normally "").
23566 exeext=$exeext
23567
23568 # whether the shell understands "unset".
23569 lt_unset=$lt_unset
23570
23571 # turn spaces into newlines.
23572 SP2NL=$lt_lt_SP2NL
23573
23574 # turn newlines into spaces.
23575 NL2SP=$lt_lt_NL2SP
23576
23577 # convert \$build file names to \$host format.
23578 to_host_file_cmd=$lt_cv_to_host_file_cmd
23579
23580 # convert \$build files to toolchain format.
23581 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23582
23583 # An object symbol dumper.
23584 OBJDUMP=$lt_OBJDUMP
23585
23586 # Method to check whether dependent libraries are shared objects.
23587 deplibs_check_method=$lt_deplibs_check_method
23588
23589 # Command to use when deplibs_check_method = "file_magic".
23590 file_magic_cmd=$lt_file_magic_cmd
23591
23592 # How to find potential files when deplibs_check_method = "file_magic".
23593 file_magic_glob=$lt_file_magic_glob
23594
23595 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23596 want_nocaseglob=$lt_want_nocaseglob
23597
23598 # DLL creation program.
23599 DLLTOOL=$lt_DLLTOOL
23600
23601 # Command to associate shared and link libraries.
23602 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23603
23604 # The archiver.
23605 AR=$lt_AR
23606
23607 # Flags to create an archive.
23608 AR_FLAGS=$lt_AR_FLAGS
23609
23610 # How to feed a file listing to the archiver.
23611 archiver_list_spec=$lt_archiver_list_spec
23612
23613 # A symbol stripping program.
23614 STRIP=$lt_STRIP
23615
23616 # Commands used to install an old-style archive.
23617 RANLIB=$lt_RANLIB
23618 old_postinstall_cmds=$lt_old_postinstall_cmds
23619 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23620
23621 # Whether to use a lock for old archive extraction.
23622 lock_old_archive_extraction=$lock_old_archive_extraction
23623
23624 # A C compiler.
23625 LTCC=$lt_CC
23626
23627 # LTCC compiler flags.
23628 LTCFLAGS=$lt_CFLAGS
23629
23630 # Take the output of nm and produce a listing of raw symbols and C names.
23631 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23632
23633 # Transform the output of nm in a proper C declaration.
23634 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23635
23636 # Transform the output of nm in a C name address pair.
23637 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23638
23639 # Transform the output of nm in a C name address pair when lib prefix is needed.
23640 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23641
23642 # Specify filename containing input files for \$NM.
23643 nm_file_list_spec=$lt_nm_file_list_spec
23644
23645 # The root where to search for dependent libraries,and in which our libraries should be installed.
23646 lt_sysroot=$lt_sysroot
23647
23648 # The name of the directory that contains temporary libtool files.
23649 objdir=$objdir
23650
23651 # Used to examine libraries when file_magic_cmd begins with "file".
23652 MAGIC_CMD=$MAGIC_CMD
23653
23654 # Must we lock files when doing compilation?
23655 need_locks=$lt_need_locks
23656
23657 # Manifest tool.
23658 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23659
23660 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23661 DSYMUTIL=$lt_DSYMUTIL
23662
23663 # Tool to change global to local symbols on Mac OS X.
23664 NMEDIT=$lt_NMEDIT
23665
23666 # Tool to manipulate fat objects and archives on Mac OS X.
23667 LIPO=$lt_LIPO
23668
23669 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23670 OTOOL=$lt_OTOOL
23671
23672 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23673 OTOOL64=$lt_OTOOL64
23674
23675 # Old archive suffix (normally "a").
23676 libext=$libext
23677
23678 # Shared library suffix (normally ".so").
23679 shrext_cmds=$lt_shrext_cmds
23680
23681 # The commands to extract the exported symbol list from a shared archive.
23682 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23683
23684 # Variables whose values should be saved in libtool wrapper scripts and
23685 # restored at link time.
23686 variables_saved_for_relink=$lt_variables_saved_for_relink
23687
23688 # Do we need the "lib" prefix for modules?
23689 need_lib_prefix=$need_lib_prefix
23690
23691 # Do we need a version for libraries?
23692 need_version=$need_version
23693
23694 # Library versioning type.
23695 version_type=$version_type
23696
23697 # Shared library runtime path variable.
23698 runpath_var=$runpath_var
23699
23700 # Shared library path variable.
23701 shlibpath_var=$shlibpath_var
23702
23703 # Is shlibpath searched before the hard-coded library search path?
23704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23705
23706 # Format of library name prefix.
23707 libname_spec=$lt_libname_spec
23708
23709 # List of archive names. First name is the real one, the rest are links.
23710 # The last name is the one that the linker finds with -lNAME
23711 library_names_spec=$lt_library_names_spec
23712
23713 # The coded name of the library, if different from the real name.
23714 soname_spec=$lt_soname_spec
23715
23716 # Permission mode override for installation of shared libraries.
23717 install_override_mode=$lt_install_override_mode
23718
23719 # Command to use after installation of a shared archive.
23720 postinstall_cmds=$lt_postinstall_cmds
23721
23722 # Command to use after uninstallation of a shared archive.
23723 postuninstall_cmds=$lt_postuninstall_cmds
23724
23725 # Commands used to finish a libtool library installation in a directory.
23726 finish_cmds=$lt_finish_cmds
23727
23728 # As "finish_cmds", except a single script fragment to be evaled but
23729 # not shown.
23730 finish_eval=$lt_finish_eval
23731
23732 # Whether we should hardcode library paths into libraries.
23733 hardcode_into_libs=$hardcode_into_libs
23734
23735 # Compile-time system search path for libraries.
23736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23737
23738 # Run-time system search path for libraries.
23739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23740
23741 # Whether dlopen is supported.
23742 dlopen_support=$enable_dlopen
23743
23744 # Whether dlopen of programs is supported.
23745 dlopen_self=$enable_dlopen_self
23746
23747 # Whether dlopen of statically linked programs is supported.
23748 dlopen_self_static=$enable_dlopen_self_static
23749
23750 # Commands to strip libraries.
23751 old_striplib=$lt_old_striplib
23752 striplib=$lt_striplib
23753
23754
23755 # The linker used to build libraries.
23756 LD=$lt_LD
23757
23758 # How to create reloadable object files.
23759 reload_flag=$lt_reload_flag
23760 reload_cmds=$lt_reload_cmds
23761
23762 # Commands used to build an old-style archive.
23763 old_archive_cmds=$lt_old_archive_cmds
23764
23765 # A language specific compiler.
23766 CC=$lt_compiler
23767
23768 # Is the compiler the GNU compiler?
23769 with_gcc=$GCC
23770
23771 # Compiler flag to turn off builtin functions.
23772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23773
23774 # Additional compiler flags for building library objects.
23775 pic_flag=$lt_lt_prog_compiler_pic
23776
23777 # How to pass a linker flag through the compiler.
23778 wl=$lt_lt_prog_compiler_wl
23779
23780 # Compiler flag to prevent dynamic linking.
23781 link_static_flag=$lt_lt_prog_compiler_static
23782
23783 # Does compiler simultaneously support -c and -o options?
23784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23785
23786 # Whether or not to add -lc for building shared libraries.
23787 build_libtool_need_lc=$archive_cmds_need_lc
23788
23789 # Whether or not to disallow shared libs when runtime libs are static.
23790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23791
23792 # Compiler flag to allow reflexive dlopens.
23793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23794
23795 # Compiler flag to generate shared objects directly from archives.
23796 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23797
23798 # Whether the compiler copes with passing no objects directly.
23799 compiler_needs_object=$lt_compiler_needs_object
23800
23801 # Create an old-style archive from a shared archive.
23802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23803
23804 # Create a temporary old-style archive to link instead of a shared archive.
23805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23806
23807 # Commands used to build a shared archive.
23808 archive_cmds=$lt_archive_cmds
23809 archive_expsym_cmds=$lt_archive_expsym_cmds
23810
23811 # Commands used to build a loadable module if different from building
23812 # a shared archive.
23813 module_cmds=$lt_module_cmds
23814 module_expsym_cmds=$lt_module_expsym_cmds
23815
23816 # Whether we are building with GNU ld or not.
23817 with_gnu_ld=$lt_with_gnu_ld
23818
23819 # Flag that allows shared libraries with undefined symbols to be built.
23820 allow_undefined_flag=$lt_allow_undefined_flag
23821
23822 # Flag that enforces no undefined symbols.
23823 no_undefined_flag=$lt_no_undefined_flag
23824
23825 # Flag to hardcode \$libdir into a binary during linking.
23826 # This must work even if \$libdir does not exist
23827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23828
23829 # Whether we need a single "-rpath" flag with a separated argument.
23830 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23831
23832 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23833 # DIR into the resulting binary.
23834 hardcode_direct=$hardcode_direct
23835
23836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23837 # DIR into the resulting binary and the resulting library dependency is
23838 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23839 # library is relocated.
23840 hardcode_direct_absolute=$hardcode_direct_absolute
23841
23842 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23843 # into the resulting binary.
23844 hardcode_minus_L=$hardcode_minus_L
23845
23846 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23847 # into the resulting binary.
23848 hardcode_shlibpath_var=$hardcode_shlibpath_var
23849
23850 # Set to "yes" if building a shared library automatically hardcodes DIR
23851 # into the library and all subsequent libraries and executables linked
23852 # against it.
23853 hardcode_automatic=$hardcode_automatic
23854
23855 # Set to yes if linker adds runtime paths of dependent libraries
23856 # to runtime path list.
23857 inherit_rpath=$inherit_rpath
23858
23859 # Whether libtool must link a program against all its dependency libraries.
23860 link_all_deplibs=$link_all_deplibs
23861
23862 # Set to "yes" if exported symbols are required.
23863 always_export_symbols=$always_export_symbols
23864
23865 # The commands to list exported symbols.
23866 export_symbols_cmds=$lt_export_symbols_cmds
23867
23868 # Symbols that should not be listed in the preloaded symbols.
23869 exclude_expsyms=$lt_exclude_expsyms
23870
23871 # Symbols that must always be exported.
23872 include_expsyms=$lt_include_expsyms
23873
23874 # Commands necessary for linking programs (against libraries) with templates.
23875 prelink_cmds=$lt_prelink_cmds
23876
23877 # Commands necessary for finishing linking programs.
23878 postlink_cmds=$lt_postlink_cmds
23879
23880 # Specify filename containing input files.
23881 file_list_spec=$lt_file_list_spec
23882
23883 # How to hardcode a shared library path into an executable.
23884 hardcode_action=$hardcode_action
23885
23886 # ### END LIBTOOL CONFIG
23887
23888 _LT_EOF
23889
23890 case $host_os in
23891 aix3*)
23892 cat <<\_LT_EOF >> "$cfgfile"
23893 # AIX sometimes has problems with the GCC collect2 program. For some
23894 # reason, if we set the COLLECT_NAMES environment variable, the problems
23895 # vanish in a puff of smoke.
23896 if test "X${COLLECT_NAMES+set}" != Xset; then
23897 COLLECT_NAMES=
23898 export COLLECT_NAMES
23899 fi
23900 _LT_EOF
23901 ;;
23902 esac
23903
23904
23905 ltmain="$ac_aux_dir/ltmain.sh"
23906
23907
23908 # We use sed instead of cat because bash on DJGPP gets confused if
23909 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23910 # text mode, it properly converts lines to CR/LF. This bash problem
23911 # is reportedly fixed, but why not run on old versions too?
23912 sed '$q' "$ltmain" >> "$cfgfile" \
23913 || (rm -f "$cfgfile"; exit 1)
23914
23915 if test x"$xsi_shell" = xyes; then
23916 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23917 func_dirname ()\
23918 {\
23919 \ case ${1} in\
23920 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23921 \ * ) func_dirname_result="${3}" ;;\
23922 \ esac\
23923 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23924 && mv -f "$cfgfile.tmp" "$cfgfile" \
23925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23926 test 0 -eq $? || _lt_function_replace_fail=:
23927
23928
23929 sed -e '/^func_basename ()$/,/^} # func_basename /c\
23930 func_basename ()\
23931 {\
23932 \ func_basename_result="${1##*/}"\
23933 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23934 && mv -f "$cfgfile.tmp" "$cfgfile" \
23935 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23936 test 0 -eq $? || _lt_function_replace_fail=:
23937
23938
23939 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23940 func_dirname_and_basename ()\
23941 {\
23942 \ case ${1} in\
23943 \ */*) func_dirname_result="${1%/*}${2}" ;;\
23944 \ * ) func_dirname_result="${3}" ;;\
23945 \ esac\
23946 \ func_basename_result="${1##*/}"\
23947 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23948 && mv -f "$cfgfile.tmp" "$cfgfile" \
23949 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23950 test 0 -eq $? || _lt_function_replace_fail=:
23951
23952
23953 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23954 func_stripname ()\
23955 {\
23956 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23957 \ # positional parameters, so assign one to ordinary parameter first.\
23958 \ func_stripname_result=${3}\
23959 \ func_stripname_result=${func_stripname_result#"${1}"}\
23960 \ func_stripname_result=${func_stripname_result%"${2}"}\
23961 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23962 && mv -f "$cfgfile.tmp" "$cfgfile" \
23963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23964 test 0 -eq $? || _lt_function_replace_fail=:
23965
23966
23967 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23968 func_split_long_opt ()\
23969 {\
23970 \ func_split_long_opt_name=${1%%=*}\
23971 \ func_split_long_opt_arg=${1#*=}\
23972 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23973 && mv -f "$cfgfile.tmp" "$cfgfile" \
23974 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23975 test 0 -eq $? || _lt_function_replace_fail=:
23976
23977
23978 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23979 func_split_short_opt ()\
23980 {\
23981 \ func_split_short_opt_arg=${1#??}\
23982 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23983 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23984 && mv -f "$cfgfile.tmp" "$cfgfile" \
23985 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23986 test 0 -eq $? || _lt_function_replace_fail=:
23987
23988
23989 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23990 func_lo2o ()\
23991 {\
23992 \ case ${1} in\
23993 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23994 \ *) func_lo2o_result=${1} ;;\
23995 \ esac\
23996 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23997 && mv -f "$cfgfile.tmp" "$cfgfile" \
23998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23999 test 0 -eq $? || _lt_function_replace_fail=:
24000
24001
24002 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24003 func_xform ()\
24004 {\
24005 func_xform_result=${1%.*}.lo\
24006 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24007 && mv -f "$cfgfile.tmp" "$cfgfile" \
24008 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24009 test 0 -eq $? || _lt_function_replace_fail=:
24010
24011
24012 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24013 func_arith ()\
24014 {\
24015 func_arith_result=$(( $* ))\
24016 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24017 && mv -f "$cfgfile.tmp" "$cfgfile" \
24018 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24019 test 0 -eq $? || _lt_function_replace_fail=:
24020
24021
24022 sed -e '/^func_len ()$/,/^} # func_len /c\
24023 func_len ()\
24024 {\
24025 func_len_result=${#1}\
24026 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24027 && mv -f "$cfgfile.tmp" "$cfgfile" \
24028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24029 test 0 -eq $? || _lt_function_replace_fail=:
24030
24031 fi
24032
24033 if test x"$lt_shell_append" = xyes; then
24034 sed -e '/^func_append ()$/,/^} # func_append /c\
24035 func_append ()\
24036 {\
24037 eval "${1}+=\\${2}"\
24038 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24039 && mv -f "$cfgfile.tmp" "$cfgfile" \
24040 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24041 test 0 -eq $? || _lt_function_replace_fail=:
24042
24043
24044 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24045 func_append_quoted ()\
24046 {\
24047 \ func_quote_for_eval "${2}"\
24048 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24049 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24050 && mv -f "$cfgfile.tmp" "$cfgfile" \
24051 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24052 test 0 -eq $? || _lt_function_replace_fail=:
24053
24054
24055 # Save a `func_append' function call where possible by direct use of '+='
24056 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24057 && mv -f "$cfgfile.tmp" "$cfgfile" \
24058 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24059 test 0 -eq $? || _lt_function_replace_fail=:
24060 else
24061 # Save a `func_append' function call even when '+=' is not available
24062 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24063 && mv -f "$cfgfile.tmp" "$cfgfile" \
24064 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24065 test 0 -eq $? || _lt_function_replace_fail=:
24066 fi
24067
24068 if test x"$_lt_function_replace_fail" = x":"; then
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24070 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24071 fi
24072
24073
24074 mv -f "$cfgfile" "$ofile" ||
24075 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24076 chmod +x "$ofile"
24077
24078 ;;
24079
24080 esac
24081 done # for ac_tag
24082
24083
24084 as_fn_exit 0
24085 _ACEOF
24086 ac_clean_files=$ac_clean_files_save
24087
24088 test $ac_write_fail = 0 ||
24089 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24090
24091
24092 # configure is writing to config.log, and then calls config.status.
24093 # config.status does its own redirection, appending to config.log.
24094 # Unfortunately, on DOS this fails, as config.log is still kept open
24095 # by configure, so config.status won't be able to write to it; its
24096 # output is simply discarded. So we exec the FD to /dev/null,
24097 # effectively closing config.log, so it can be properly (re)opened and
24098 # appended to by config.status. When coming back to configure, we
24099 # need to make the FD available again.
24100 if test "$no_create" != yes; then
24101 ac_cs_success=:
24102 ac_config_status_args=
24103 test "$silent" = yes &&
24104 ac_config_status_args="$ac_config_status_args --quiet"
24105 exec 5>/dev/null
24106 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24107 exec 5>>config.log
24108 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24109 # would make configure fail if this is the last instruction.
24110 $ac_cs_success || as_fn_exit 1
24111 fi
24112 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24114 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24115 fi
24116