Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for pam-krb5 4.11.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell [email protected] and [email protected]
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
310 as_fn_set_status ()
311 {
312 return $1
313 } # as_fn_set_status
314
315 # as_fn_exit STATUS
316 # -----------------
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 as_fn_exit ()
319 {
320 set +e
321 as_fn_set_status $1
322 exit $1
323 } # as_fn_exit
324 # as_fn_nop
325 # ---------
326 # Do nothing but, unlike ":", preserve the value of $?.
327 as_fn_nop ()
328 {
329 return $?
330 }
331 as_nop=as_fn_nop
332
333 # as_fn_mkdir_p
334 # -------------
335 # Create "$as_dir" as a directory, including parents if necessary.
336 as_fn_mkdir_p ()
337 {
338
339 case $as_dir in #(
340 -*) as_dir=./$as_dir;;
341 esac
342 test -d "$as_dir" || eval $as_mkdir_p || {
343 as_dirs=
344 while :; do
345 case $as_dir in #(
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347 *) as_qdir=$as_dir;;
348 esac
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)[^/].*/{
361 s//\1/
362 q
363 }
364 /^X\(\/\/\)$/{
365 s//\1/
366 q
367 }
368 /^X\(\/\).*/{
369 s//\1/
370 q
371 }
372 s/.*/./; q'`
373 test -d "$as_dir" && break
374 done
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379 } # as_fn_mkdir_p
380
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
385 {
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
393 # implementations.
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395 then :
396 eval 'as_fn_append ()
397 {
398 eval $1+=\$2
399 }'
400 else $as_nop
401 as_fn_append ()
402 {
403 eval $1=\$$1\$2
404 }
405 fi # as_fn_append
406
407 # as_fn_arith ARG...
408 # ------------------
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413 then :
414 eval 'as_fn_arith ()
415 {
416 as_val=$(( $* ))
417 }'
418 else $as_nop
419 as_fn_arith ()
420 {
421 as_val=`expr "$@" || test $? -eq 1`
422 }
423 fi # as_fn_arith
424
425 # as_fn_nop
426 # ---------
427 # Do nothing but, unlike ":", preserve the value of $?.
428 as_fn_nop ()
429 {
430 return $?
431 }
432 as_nop=as_fn_nop
433
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
439 as_fn_error ()
440 {
441 as_status=$1; test $as_status -eq 0 && as_status=1
442 if test "$4"; then
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445 fi
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
448 } # as_fn_error
449
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
452 as_expr=expr
453 else
454 as_expr=false
455 fi
456
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458 as_basename=basename
459 else
460 as_basename=false
461 fi
462
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464 as_dirname=dirname
465 else
466 as_dirname=false
467 fi
468
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
475 s//\1/
476 q
477 }
478 /^X\/\(\/\/\)$/{
479 s//\1/
480 q
481 }
482 /^X\/\(\/\).*/{
483 s//\1/
484 q
485 }
486 s/.*/./; q'`
487
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 sed -n '
502 p
503 /[$]LINENO/=
504 ' <$as_myself |
505 sed '
506 s/[$]LINENO.*/&-/
507 t lineno
508 b
509 :lineno
510 N
511 :loop
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 t loop
514 s/-\n.*//
515 ' >$as_me.lineno &&
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
526 . "./$as_me.lineno"
527 # Exit status is that of the last command.
528 exit
529 }
530
531
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
537 -n*)
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
540 xy) ECHO_C='\c';;
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 ECHO_T=' ';;
543 esac;;
544 *)
545 ECHO_N='-n';;
546 esac
547
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
553
554
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
558 else
559 rm -f conf$$.dir
560 mkdir conf$$.dir 2>/dev/null
561 fi
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s='ln -s'
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570 as_ln_s='cp -pR'
571 elif ln conf$$.file conf$$ 2>/dev/null; then
572 as_ln_s=ln
573 else
574 as_ln_s='cp -pR'
575 fi
576 else
577 as_ln_s='cp -pR'
578 fi
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
581
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
584 else
585 test -d ./-p && rmdir ./-p
586 as_mkdir_p=false
587 fi
588
589 as_test_x='test -x'
590 as_executable_p=as_fn_executable_p
591
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598 SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601 test -n "$DJDIR" || exec 7<&0 </dev/null
602 exec 6>&1
603
604 # Name of the host.
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609 #
610 # Initializations.
611 #
612 ac_default_prefix=/usr/local
613 ac_clean_files=
614 ac_config_libobj_dir=.
615 LIBOBJS=
616 cross_compiling=no
617 subdirs=
618 MFLAGS=
619 MAKEFLAGS=
620
621 # Identity of this package.
622 PACKAGE_NAME='pam-krb5'
623 PACKAGE_TARNAME='pam-krb5'
624 PACKAGE_VERSION='4.11'
625 PACKAGE_STRING='pam-krb5 4.11'
626 PACKAGE_BUGREPORT='[email protected]'
627 PACKAGE_URL=''
628
629 ac_config_libobj_dir=portable
630 # Factoring default headers for most tests.
631 ac_includes_default="\
632 #include <stddef.h>
633 #ifdef HAVE_STDIO_H
634 # include <stdio.h>
635 #endif
636 #ifdef HAVE_STDLIB_H
637 # include <stdlib.h>
638 #endif
639 #ifdef HAVE_STRING_H
640 # include <string.h>
641 #endif
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
644 #endif
645 #ifdef HAVE_STDINT_H
646 # include <stdint.h>
647 #endif
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
650 #endif
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
653 #endif
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
656 #endif
657 #ifdef HAVE_UNISTD_H
658 # include <unistd.h>
659 #endif"
660
661 ac_header_c_list=
662 ac_subst_vars='am__EXEEXT_FALSE
663 am__EXEEXT_TRUE
664 LTLIBOBJS
665 KADM5CLNT_LIBS
666 KADM5CLNT_LDFLAGS
667 KADM5CLNT_CPPFLAGS
668 KRB5_USES_COM_ERR_FALSE
669 KRB5_USES_COM_ERR_TRUE
670 PATH_KRB5_CONFIG
671 KRB5_LIBS
672 KRB5_LDFLAGS
673 KRB5_CPPFLAGS_WARNINGS
674 KRB5_CPPFLAGS
675 CPP
676 LIBOBJS
677 PATH_VALGRIND
678 PATH_OPENSSL
679 HAVE_LD_VERSION_SCRIPT_FALSE
680 HAVE_LD_VERSION_SCRIPT_TRUE
681 LT_SYS_LIBRARY_PATH
682 OTOOL64
683 OTOOL
684 LIPO
685 NMEDIT
686 DSYMUTIL
687 MANIFEST_TOOL
688 RANLIB
689 DLLTOOL
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 LIBTOOL
709 ac_ct_AR
710 AR
711 WARNINGS_CFLAGS
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 am__nodep
716 AMDEPBACKSLASH
717 AMDEP_FALSE
718 AMDEP_TRUE
719 am__include
720 DEPDIR
721 OBJEXT
722 EXEEXT
723 ac_ct_CC
724 CPPFLAGS
725 LDFLAGS
726 CFLAGS
727 CC
728 MAINT
729 MAINTAINER_MODE_FALSE
730 MAINTAINER_MODE_TRUE
731 AM_BACKSLASH
732 AM_DEFAULT_VERBOSITY
733 AM_DEFAULT_V
734 AM_V
735 CSCOPE
736 ETAGS
737 CTAGS
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 runstatedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL
800 am__quote'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_silent_rules
805 enable_maintainer_mode
806 enable_dependency_tracking
807 enable_largefile
808 enable_static
809 enable_shared
810 with_pic
811 enable_fast_install
812 with_aix_soname
813 with_gnu_ld
814 with_sysroot
815 enable_libtool_lock
816 with_krb5
817 with_krb5_include
818 with_krb5_lib
819 enable_reduced_depends
820 with_kadm_client
821 with_kadm_client_include
822 with_kadm_client_lib
823 '
824 ac_precious_vars='build_alias
825 host_alias
826 target_alias
827 CC
828 CFLAGS
829 LDFLAGS
830 LIBS
831 CPPFLAGS
832 LT_SYS_LIBRARY_PATH
833 PATH_OPENSSL
834 PATH_VALGRIND
835 CPP
836 PATH_KRB5_CONFIG'
837
838
839 # Initialize some variables set by options.
840 ac_init_help=
841 ac_init_version=false
842 ac_unrecognized_opts=
843 ac_unrecognized_sep=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
846 cache_file=/dev/null
847 exec_prefix=NONE
848 no_create=
849 no_recursion=
850 prefix=NONE
851 program_prefix=NONE
852 program_suffix=NONE
853 program_transform_name=s,x,x,
854 silent=
855 site=
856 srcdir=
857 verbose=
858 x_includes=NONE
859 x_libraries=NONE
860
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 runstatedir='${localstatedir}/run'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\$ac_option
895 ac_prev=
896 continue
897 fi
898
899 case $ac_option in
900 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *=) ac_optarg= ;;
902 *) ac_optarg=yes ;;
903 esac
904
905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
908
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912 bindir=$ac_optarg ;;
913
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
928
929 -datadir | --datadir | --datadi | --datad)
930 ac_prev=datadir ;;
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
933
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
941 -disable-* | --disable-*)
942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945 as_fn_error $? "invalid feature name: \`$ac_useropt'"
946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950 "enable_$ac_useropt"
951 "*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
966
967 -enable-* | --enable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971 as_fn_error $? "invalid feature name: \`$ac_useropt'"
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976 "enable_$ac_useropt"
977 "*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
990 exec_prefix=$ac_optarg ;;
991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
1002
1003 -host | --host | --hos | --ho)
1004 ac_prev=host_alias ;;
1005 -host=* | --host=* | --hos=* | --ho=*)
1006 host_alias=$ac_optarg ;;
1007
1008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
1014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
1019 includedir=$ac_optarg ;;
1020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024 infodir=$ac_optarg ;;
1025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029 libdir=$ac_optarg ;;
1030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
1036 libexecdir=$ac_optarg ;;
1037
1038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
1043 -localstatedir | --localstatedir | --localstatedi | --localstated \
1044 | --localstate | --localstat | --localsta | --localst | --locals)
1045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048 localstatedir=$ac_optarg ;;
1049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053 mandir=$ac_optarg ;;
1054
1055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060 | --no-cr | --no-c | -n)
1061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
1067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074 oldincludedir=$ac_optarg ;;
1075
1076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079 prefix=$ac_optarg ;;
1080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086 program_prefix=$ac_optarg ;;
1087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093 program_suffix=$ac_optarg ;;
1094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
1110 program_transform_name=$ac_optarg ;;
1111
1112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
1126 -runstatedir | --runstatedir | --runstatedi | --runstated \
1127 | --runstate | --runstat | --runsta | --runst | --runs \
1128 | --run | --ru | --r)
1129 ac_prev=runstatedir ;;
1130 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1131 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1132 | --run=* | --ru=* | --r=*)
1133 runstatedir=$ac_optarg ;;
1134
1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1136 ac_prev=sbindir ;;
1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1138 | --sbi=* | --sb=*)
1139 sbindir=$ac_optarg ;;
1140
1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1143 | --sharedst | --shareds | --shared | --share | --shar \
1144 | --sha | --sh)
1145 ac_prev=sharedstatedir ;;
1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1149 | --sha=* | --sh=*)
1150 sharedstatedir=$ac_optarg ;;
1151
1152 -site | --site | --sit)
1153 ac_prev=site ;;
1154 -site=* | --site=* | --sit=*)
1155 site=$ac_optarg ;;
1156
1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1158 ac_prev=srcdir ;;
1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1160 srcdir=$ac_optarg ;;
1161
1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1163 | --syscon | --sysco | --sysc | --sys | --sy)
1164 ac_prev=sysconfdir ;;
1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1167 sysconfdir=$ac_optarg ;;
1168
1169 -target | --target | --targe | --targ | --tar | --ta | --t)
1170 ac_prev=target_alias ;;
1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1172 target_alias=$ac_optarg ;;
1173
1174 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 verbose=yes ;;
1176
1177 -version | --version | --versio | --versi | --vers | -V)
1178 ac_init_version=: ;;
1179
1180 -with-* | --with-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid package name: \`$ac_useropt'"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=\$ac_optarg ;;
1195
1196 -without-* | --without-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: \`$ac_useropt'"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=no ;;
1211
1212 --x)
1213 # Obsolete; use --with-x.
1214 with_x=yes ;;
1215
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1222
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1229
1230 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1231 Try \`$0 --help' for more information"
1232 ;;
1233
1234 *=*)
1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1236 # Reject names that are not valid shell variable names.
1237 case $ac_envvar in #(
1238 '' | [0-9]* | *[!_$as_cr_alnum]* )
1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1240 esac
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1243
1244 *)
1245 # FIXME: should be removed in autoconf 3.0.
1246 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1250 ;;
1251
1252 esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 as_fn_error $? "missing argument to $ac_option"
1258 fi
1259
1260 if test -n "$ac_unrecognized_opts"; then
1261 case $enable_option_checking in
1262 no) ;;
1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1264 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 esac
1266 fi
1267
1268 # Check all directory arguments for consistency.
1269 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1270 datadir sysconfdir sharedstatedir localstatedir includedir \
1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1272 libdir localedir mandir runstatedir
1273 do
1274 eval ac_val=\$$ac_var
1275 # Remove trailing slashes.
1276 case $ac_val in
1277 */ )
1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1279 eval $ac_var=\$ac_val;;
1280 esac
1281 # Be sure to have absolute directory names.
1282 case $ac_val in
1283 [\\/$]* | ?:[\\/]* ) continue;;
1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1285 esac
1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298 if test "x$build_alias" = x; then
1299 cross_compiling=maybe
1300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314 as_fn_error $? "working directory cannot be determined"
1315 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1316 as_fn_error $? "pwd does not report name of working directory"
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
1322 # Try the directory containing this script, then the parent directory.
1323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328 printf "%s\n" X"$as_myself" |
1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
1346 srcdir=$ac_confdir
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 srcdir=..
1349 fi
1350 else
1351 ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1356 fi
1357 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 ac_abs_confdir=`(
1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1360 pwd)`
1361 # When building in place, set srcdir=.
1362 if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364 fi
1365 # Remove unnecessary trailing slashes from srcdir.
1366 # Double slashes in file names in object file debugging info
1367 # mess up M-x gdb in Emacs.
1368 case $srcdir in
1369 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 esac
1371 for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376 done
1377
1378 #
1379 # Report the --help message.
1380 #
1381 if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
1384 cat <<_ACEOF
1385 \`configure' configures pam-krb5 4.11 to adapt to many kinds of systems.
1386
1387 Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390 VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392 Defaults for the options are specified in brackets.
1393
1394 Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
1399 -q, --quiet, --silent do not print \`checking ...' messages
1400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
1405 Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
1407 [$ac_default_prefix]
1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1409 [PREFIX]
1410
1411 By default, \`make install' will install all the files in
1412 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414 for instance \`--prefix=\$HOME'.
1415
1416 For better control, use the options below.
1417
1418 Fine tuning of the installation directories:
1419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/pam-krb5]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1439 _ACEOF
1440
1441 cat <<\_ACEOF
1442
1443 Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of pam-krb5 4.11:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-maintainer-mode
1467 enable make rules and dependencies not useful (and
1468 sometimes confusing) to the casual installer
1469 --enable-dependency-tracking
1470 do not reject slow dependency extractors
1471 --disable-dependency-tracking
1472 speeds up one-time build
1473 --disable-largefile omit support for large files
1474 --enable-static[=PKGS] build static libraries [default=no]
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-fast-install[=PKGS]
1477 optimize for fast installation [default=yes]
1478 --disable-libtool-lock avoid locking (might break parallel builds)
1479 --enable-reduced-depends
1480 Try to minimize shared library dependencies
1481
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-aix-soname=aix|svr4|both
1488 shared library versioning (aka "SONAME") variant to
1489 provide on AIX, [default=aix].
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1492 compiler's sysroot if not specified).
1493 --with-krb5=DIR Location of Kerberos headers and libraries
1494 --with-krb5-include=DIR Location of Kerberos headers
1495 --with-krb5-lib=DIR Location of Kerberos libraries
1496 --with-kadm-client[=DIR]
1497 Location of kadmin client headers and libraries
1498 --with-kadm-client-include=DIR
1499 Location of kadmin client headers
1500 --with-kadm-client-lib=DIR
1501 Location of kadmin client libraries
1502
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 LT_SYS_LIBRARY_PATH
1512 User-defined run-time library search path.
1513 PATH_OPENSSL
1514 Path to openssl for the test suite
1515 PATH_VALGRIND
1516 Path to valgrind for the test suite
1517 CPP C preprocessor
1518 PATH_KRB5_CONFIG
1519 Path to krb5-config
1520
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1523
1524 Report bugs to <[email protected]>.
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530 # If there are subdirs, report their specific --help.
1531 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532 test -d "$ac_dir" ||
1533 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 continue
1535 ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1541 # A ".." for each directory in $ac_dir_suffix.
1542 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1543 case $ac_top_builddir_sub in
1544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546 esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554 .) # We are building in place.
1555 ac_srcdir=.
1556 ac_top_srcdir=$ac_top_builddir_sub
1557 ac_abs_top_srcdir=$ac_pwd ;;
1558 [\\/]* | ?:[\\/]* ) # Absolute name.
1559 ac_srcdir=$srcdir$ac_dir_suffix;
1560 ac_top_srcdir=$srcdir
1561 ac_abs_top_srcdir=$srcdir ;;
1562 *) # Relative name.
1563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564 ac_top_srcdir=$ac_top_build_prefix$srcdir
1565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569 cd "$ac_dir" || { ac_status=$?; continue; }
1570 # Check for configure.gnu first; this name is used for a wrapper for
1571 # Metaconfig's "Configure" on case-insensitive file systems.
1572 if test -f "$ac_srcdir/configure.gnu"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575 elif test -f "$ac_srcdir/configure"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure" --help=recursive
1578 else
1579 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580 fi || ac_status=$?
1581 cd "$ac_pwd" || { ac_status=$?; break; }
1582 done
1583 fi
1584
1585 test -n "$ac_init_help" && exit $ac_status
1586 if $ac_init_version; then
1587 cat <<\_ACEOF
1588 pam-krb5 configure 4.11
1589 generated by GNU Autoconf 2.71
1590
1591 Copyright (C) 2021 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595 exit
1596 fi
1597
1598 ## ------------------------ ##
1599 ## Autoconf initialization. ##
1600 ## ------------------------ ##
1601
1602 # ac_fn_c_try_compile LINENO
1603 # --------------------------
1604 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_compile ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest.beam
1609 if { { ac_try="$ac_compile"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 printf "%s\n" "$ac_try_echo"; } >&5
1616 (eval "$ac_compile") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest.$ac_objext
1628 then :
1629 ac_retval=0
1630 else $as_nop
1631 printf "%s\n" "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634 ac_retval=1
1635 fi
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_compile
1640
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 printf %s "checking for $2... " >&6; }
1650 if eval test \${$3+y}
1651 then :
1652 printf %s "(cached) " >&6
1653 else $as_nop
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"
1660 then :
1661 eval "$3=yes"
1662 else $as_nop
1663 eval "$3=no"
1664 fi
1665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1666 fi
1667 eval ac_res=\$$3
1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 printf "%s\n" "$ac_res" >&6; }
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671
1672 } # ac_fn_c_check_header_compile
1673
1674 # ac_fn_c_try_link LINENO
1675 # -----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_link ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1681 if { { ac_try="$ac_link"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 printf "%s\n" "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 test -x conftest$ac_exeext
1702 }
1703 then :
1704 ac_retval=0
1705 else $as_nop
1706 printf "%s\n" "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710 fi
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1718
1719 } # ac_fn_c_try_link
1720
1721 # ac_fn_c_check_func LINENO FUNC VAR
1722 # ----------------------------------
1723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1724 ac_fn_c_check_func ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 printf %s "checking for $2... " >&6; }
1729 if eval test \${$3+y}
1730 then :
1731 printf %s "(cached) " >&6
1732 else $as_nop
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1738
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below. */
1741
1742 #include <limits.h>
1743 #undef $2
1744
1745 /* Override any GCC internal prototype to avoid an error.
1746 Use char because int might match the return type of a GCC
1747 builtin and then its argument prototype would still apply. */
1748 #ifdef __cplusplus
1749 extern "C"
1750 #endif
1751 char $2 ();
1752 /* The GNU C library defines this for functions which it implements
1753 to always fail with ENOSYS. Some functions are actually named
1754 something starting with __ and the normal name is an alias. */
1755 #if defined __stub_$2 || defined __stub___$2
1756 choke me
1757 #endif
1758
1759 int
1760 main (void)
1761 {
1762 return $2 ();
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 if ac_fn_c_try_link "$LINENO"
1768 then :
1769 eval "$3=yes"
1770 else $as_nop
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1774 conftest$ac_exeext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 printf "%s\n" "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_func
1782
1783 # ac_fn_c_try_cpp LINENO
1784 # ----------------------
1785 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_cpp ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_cpp conftest.$ac_ext"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 printf "%s\n" "$ac_try_echo"; } >&5
1796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } > conftest.i && {
1805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 }
1808 then :
1809 ac_retval=0
1810 else $as_nop
1811 printf "%s\n" "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815 fi
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_cpp
1820
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1824 # executables *can* be run.
1825 ac_fn_c_try_run ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 printf "%s\n" "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 printf "%s\n" "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }
1849 then :
1850 ac_retval=0
1851 else $as_nop
1852 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1853 printf "%s\n" "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=$ac_status
1857 fi
1858 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860 as_fn_set_status $ac_retval
1861
1862 } # ac_fn_c_try_run
1863
1864 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1865 # --------------------------------------------
1866 # Tries to find the compile-time value of EXPR in a program that includes
1867 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1868 # computed
1869 ac_fn_c_compute_int ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if test "$cross_compiling" = yes; then
1873 # Depending upon the size, compute the lo and hi bounds.
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 $4
1877 int
1878 main (void)
1879 {
1880 static int test_array [1 - 2 * !(($2) >= 0)];
1881 test_array [0] = 0;
1882 return test_array [0];
1883
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"
1889 then :
1890 ac_lo=0 ac_mid=0
1891 while :; do
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $4
1895 int
1896 main (void)
1897 {
1898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1899 test_array [0] = 0;
1900 return test_array [0];
1901
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"
1907 then :
1908 ac_hi=$ac_mid; break
1909 else $as_nop
1910 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1911 if test $ac_lo -le $ac_mid; then
1912 ac_lo= ac_hi=
1913 break
1914 fi
1915 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1918 done
1919 else $as_nop
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main (void)
1925 {
1926 static int test_array [1 - 2 * !(($2) < 0)];
1927 test_array [0] = 0;
1928 return test_array [0];
1929
1930 ;
1931 return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"
1935 then :
1936 ac_hi=-1 ac_mid=-1
1937 while :; do
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 int
1942 main (void)
1943 {
1944 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1945 test_array [0] = 0;
1946 return test_array [0];
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"
1953 then :
1954 ac_lo=$ac_mid; break
1955 else $as_nop
1956 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1957 if test $ac_mid -le $ac_hi; then
1958 ac_lo= ac_hi=
1959 break
1960 fi
1961 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1964 done
1965 else $as_nop
1966 ac_lo= ac_hi=
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971 # Binary search between lo and hi bounds.
1972 while test "x$ac_lo" != "x$ac_hi"; do
1973 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $4
1977 int
1978 main (void)
1979 {
1980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1981 test_array [0] = 0;
1982 return test_array [0];
1983
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"
1989 then :
1990 ac_hi=$ac_mid
1991 else $as_nop
1992 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1995 done
1996 case $ac_lo in #((
1997 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1998 '') ac_retval=1 ;;
1999 esac
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 static long int longval (void) { return $2; }
2005 static unsigned long int ulongval (void) { return $2; }
2006 #include <stdio.h>
2007 #include <stdlib.h>
2008 int
2009 main (void)
2010 {
2011
2012 FILE *f = fopen ("conftest.val", "w");
2013 if (! f)
2014 return 1;
2015 if (($2) < 0)
2016 {
2017 long int i = longval ();
2018 if (i != ($2))
2019 return 1;
2020 fprintf (f, "%ld", i);
2021 }
2022 else
2023 {
2024 unsigned long int i = ulongval ();
2025 if (i != ($2))
2026 return 1;
2027 fprintf (f, "%lu", i);
2028 }
2029 /* Do not output a trailing newline, as this causes \r\n confusion
2030 on some platforms. */
2031 return ferror (f) || fclose (f) != 0;
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 if ac_fn_c_try_run "$LINENO"
2038 then :
2039 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2040 else $as_nop
2041 ac_retval=1
2042 fi
2043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2044 conftest.$ac_objext conftest.beam conftest.$ac_ext
2045 rm -f conftest.val
2046
2047 fi
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2050
2051 } # ac_fn_c_compute_int
2052
2053 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2054 # ----------------------------------------------------
2055 # Tries to find if the field MEMBER exists in type AGGR, after including
2056 # INCLUDES, setting cache variable VAR accordingly.
2057 ac_fn_c_check_member ()
2058 {
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2061 printf %s "checking for $2.$3... " >&6; }
2062 if eval test \${$4+y}
2063 then :
2064 printf %s "(cached) " >&6
2065 else $as_nop
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2068 $5
2069 int
2070 main (void)
2071 {
2072 static $2 ac_aggr;
2073 if (ac_aggr.$3)
2074 return 0;
2075 ;
2076 return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"
2080 then :
2081 eval "$4=yes"
2082 else $as_nop
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $5
2086 int
2087 main (void)
2088 {
2089 static $2 ac_aggr;
2090 if (sizeof ac_aggr.$3)
2091 return 0;
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_compile "$LINENO"
2097 then :
2098 eval "$4=yes"
2099 else $as_nop
2100 eval "$4=no"
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2105 fi
2106 eval ac_res=\$$4
2107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 printf "%s\n" "$ac_res" >&6; }
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2110
2111 } # ac_fn_c_check_member
2112
2113 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2114 # -------------------------------------------
2115 # Tests whether TYPE exists after having included INCLUDES, setting cache
2116 # variable VAR accordingly.
2117 ac_fn_c_check_type ()
2118 {
2119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 printf %s "checking for $2... " >&6; }
2122 if eval test \${$3+y}
2123 then :
2124 printf %s "(cached) " >&6
2125 else $as_nop
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main (void)
2132 {
2133 if (sizeof ($2))
2134 return 0;
2135 ;
2136 return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"
2140 then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $4
2144 int
2145 main (void)
2146 {
2147 if (sizeof (($2)))
2148 return 0;
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"
2154 then :
2155
2156 else $as_nop
2157 eval "$3=yes"
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2162 fi
2163 eval ac_res=\$$3
2164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 printf "%s\n" "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167
2168 } # ac_fn_c_check_type
2169
2170 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2171 # ------------------------------------------------------------------
2172 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2173 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2174 ac_fn_check_decl ()
2175 {
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 as_decl_name=`echo $2|sed 's/ *(.*//'`
2178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2179 printf %s "checking whether $as_decl_name is declared... " >&6; }
2180 if eval test \${$3+y}
2181 then :
2182 printf %s "(cached) " >&6
2183 else $as_nop
2184 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2185 eval ac_save_FLAGS=\$$6
2186 as_fn_append $6 " $5"
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2189 $4
2190 int
2191 main (void)
2192 {
2193 #ifndef $as_decl_name
2194 #ifdef __cplusplus
2195 (void) $as_decl_use;
2196 #else
2197 (void) $as_decl_name;
2198 #endif
2199 #endif
2200
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"
2206 then :
2207 eval "$3=yes"
2208 else $as_nop
2209 eval "$3=no"
2210 fi
2211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2212 eval $6=\$ac_save_FLAGS
2213
2214 fi
2215 eval ac_res=\$$3
2216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 printf "%s\n" "$ac_res" >&6; }
2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219
2220 } # ac_fn_check_decl
2221 ac_configure_args_raw=
2222 for ac_arg
2223 do
2224 case $ac_arg in
2225 *\'*)
2226 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 esac
2228 as_fn_append ac_configure_args_raw " '$ac_arg'"
2229 done
2230
2231 case $ac_configure_args_raw in
2232 *$as_nl*)
2233 ac_safe_unquote= ;;
2234 *)
2235 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2236 ac_unsafe_a="$ac_unsafe_z#~"
2237 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2238 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2239 esac
2240
2241 cat >config.log <<_ACEOF
2242 This file contains any messages produced by compilers while
2243 running configure, to aid debugging if configure makes a mistake.
2244
2245 It was created by pam-krb5 $as_me 4.11, which was
2246 generated by GNU Autoconf 2.71. Invocation command line was
2247
2248 $ $0$ac_configure_args_raw
2249
2250 _ACEOF
2251 exec 5>>config.log
2252 {
2253 cat <<_ASUNAME
2254 ## --------- ##
2255 ## Platform. ##
2256 ## --------- ##
2257
2258 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2259 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2260 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2261 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2262 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2263
2264 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2265 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2266
2267 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2268 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2269 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2270 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2271 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2272 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2273 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2274
2275 _ASUNAME
2276
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280 IFS=$as_save_IFS
2281 case $as_dir in #(((
2282 '') as_dir=./ ;;
2283 */) ;;
2284 *) as_dir=$as_dir/ ;;
2285 esac
2286 printf "%s\n" "PATH: $as_dir"
2287 done
2288 IFS=$as_save_IFS
2289
2290 } >&5
2291
2292 cat >&5 <<_ACEOF
2293
2294
2295 ## ----------- ##
2296 ## Core tests. ##
2297 ## ----------- ##
2298
2299 _ACEOF
2300
2301
2302 # Keep a trace of the command line.
2303 # Strip out --no-create and --no-recursion so they do not pile up.
2304 # Strip out --silent because we don't want to record it for future runs.
2305 # Also quote any args containing shell meta-characters.
2306 # Make two passes to allow for proper duplicate-argument suppression.
2307 ac_configure_args=
2308 ac_configure_args0=
2309 ac_configure_args1=
2310 ac_must_keep_next=false
2311 for ac_pass in 1 2
2312 do
2313 for ac_arg
2314 do
2315 case $ac_arg in
2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318 | -silent | --silent | --silen | --sile | --sil)
2319 continue ;;
2320 *\'*)
2321 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 esac
2323 case $ac_pass in
2324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2325 2)
2326 as_fn_append ac_configure_args1 " '$ac_arg'"
2327 if test $ac_must_keep_next = true; then
2328 ac_must_keep_next=false # Got value, back to normal.
2329 else
2330 case $ac_arg in
2331 *=* | --config-cache | -C | -disable-* | --disable-* \
2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334 | -with-* | --with-* | -without-* | --without-* | --x)
2335 case "$ac_configure_args0 " in
2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2337 esac
2338 ;;
2339 -* ) ac_must_keep_next=true ;;
2340 esac
2341 fi
2342 as_fn_append ac_configure_args " '$ac_arg'"
2343 ;;
2344 esac
2345 done
2346 done
2347 { ac_configure_args0=; unset ac_configure_args0;}
2348 { ac_configure_args1=; unset ac_configure_args1;}
2349
2350 # When interrupted or exit'd, cleanup temporary files, and complete
2351 # config.log. We remove comments because anyway the quotes in there
2352 # would cause problems or look ugly.
2353 # WARNING: Use '\'' to represent an apostrophe within the trap.
2354 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355 trap 'exit_status=$?
2356 # Sanitize IFS.
2357 IFS=" "" $as_nl"
2358 # Save into config.log some information that might help in debugging.
2359 {
2360 echo
2361
2362 printf "%s\n" "## ---------------- ##
2363 ## Cache variables. ##
2364 ## ---------------- ##"
2365 echo
2366 # The following way of writing the cache mishandles newlines in values,
2367 (
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in #(
2371 *${as_nl}*)
2372 case $ac_var in #(
2373 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375 esac
2376 case $ac_var in #(
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2380 esac ;;
2381 esac
2382 done
2383 (set) 2>&1 |
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2386 sed -n \
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389 ;; #(
2390 *)
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392 ;;
2393 esac |
2394 sort
2395 )
2396 echo
2397
2398 printf "%s\n" "## ----------------- ##
2399 ## Output variables. ##
2400 ## ----------------- ##"
2401 echo
2402 for ac_var in $ac_subst_vars
2403 do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 printf "%s\n" "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2411
2412 if test -n "$ac_subst_files"; then
2413 printf "%s\n" "## ------------------- ##
2414 ## File substitutions. ##
2415 ## ------------------- ##"
2416 echo
2417 for ac_var in $ac_subst_files
2418 do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 printf "%s\n" "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2426 fi
2427
2428 if test -s confdefs.h; then
2429 printf "%s\n" "## ----------- ##
2430 ## confdefs.h. ##
2431 ## ----------- ##"
2432 echo
2433 cat confdefs.h
2434 echo
2435 fi
2436 test "$ac_signal" != 0 &&
2437 printf "%s\n" "$as_me: caught signal $ac_signal"
2438 printf "%s\n" "$as_me: exit $exit_status"
2439 } >&5
2440 rm -f core *.core core.conftest.* &&
2441 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442 exit $exit_status
2443 ' 0
2444 for ac_signal in 1 2 13 15; do
2445 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446 done
2447 ac_signal=0
2448
2449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2450 rm -f -r conftest* confdefs.h
2451
2452 printf "%s\n" "/* confdefs.h */" > confdefs.h
2453
2454 # Predefined preprocessor variables.
2455
2456 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2457
2458 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2459
2460 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2461
2462 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2463
2464 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2465
2466 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2467
2468
2469 # Let the site file select an alternate cache file if it wants to.
2470 # Prefer an explicitly selected file to automatically selected ones.
2471 if test -n "$CONFIG_SITE"; then
2472 ac_site_files="$CONFIG_SITE"
2473 elif test "x$prefix" != xNONE; then
2474 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2475 else
2476 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2477 fi
2478
2479 for ac_site_file in $ac_site_files
2480 do
2481 case $ac_site_file in #(
2482 */*) :
2483 ;; #(
2484 *) :
2485 ac_site_file=./$ac_site_file ;;
2486 esac
2487 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2489 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2490 sed 's/^/| /' "$ac_site_file" >&5
2491 . "$ac_site_file" \
2492 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2494 as_fn_error $? "failed to load site script $ac_site_file
2495 See \`config.log' for more details" "$LINENO" 5; }
2496 fi
2497 done
2498
2499 if test -r "$cache_file"; then
2500 # Some versions of bash will fail to source /dev/null (special files
2501 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2502 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2504 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2505 case $cache_file in
2506 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2507 *) . "./$cache_file";;
2508 esac
2509 fi
2510 else
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2512 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2513 >$cache_file
2514 fi
2515
2516 # Test code for whether the C compiler supports C89 (global declarations)
2517 ac_c_conftest_c89_globals='
2518 /* Does the compiler advertise C89 conformance?
2519 Do not test the value of __STDC__, because some compilers set it to 0
2520 while being otherwise adequately conformant. */
2521 #if !defined __STDC__
2522 # error "Compiler does not advertise C89 conformance"
2523 #endif
2524
2525 #include <stddef.h>
2526 #include <stdarg.h>
2527 struct stat;
2528 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2529 struct buf { int x; };
2530 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2531 static char *e (p, i)
2532 char **p;
2533 int i;
2534 {
2535 return p[i];
2536 }
2537 static char *f (char * (*g) (char **, int), char **p, ...)
2538 {
2539 char *s;
2540 va_list v;
2541 va_start (v,p);
2542 s = g (p, va_arg (v,int));
2543 va_end (v);
2544 return s;
2545 }
2546
2547 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2548 function prototypes and stuff, but not \xHH hex character constants.
2549 These do not provoke an error unfortunately, instead are silently treated
2550 as an "x". The following induces an error, until -std is added to get
2551 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2552 array size at least. It is necessary to write \x00 == 0 to get something
2553 that is true only with -std. */
2554 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2555
2556 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2557 inside strings and character constants. */
2558 #define FOO(x) '\''x'\''
2559 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2560
2561 int test (int i, double x);
2562 struct s1 {int (*f) (int a);};
2563 struct s2 {int (*f) (double a);};
2564 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2565 int, int);'
2566
2567 # Test code for whether the C compiler supports C89 (body of main).
2568 ac_c_conftest_c89_main='
2569 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2570 '
2571
2572 # Test code for whether the C compiler supports C99 (global declarations)
2573 ac_c_conftest_c99_globals='
2574 // Does the compiler advertise C99 conformance?
2575 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2576 # error "Compiler does not advertise C99 conformance"
2577 #endif
2578
2579 #include <stdbool.h>
2580 extern int puts (const char *);
2581 extern int printf (const char *, ...);
2582 extern int dprintf (int, const char *, ...);
2583 extern void *malloc (size_t);
2584
2585 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2586 // dprintf is used instead of fprintf to avoid needing to declare
2587 // FILE and stderr.
2588 #define debug(...) dprintf (2, __VA_ARGS__)
2589 #define showlist(...) puts (#__VA_ARGS__)
2590 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2591 static void
2592 test_varargs_macros (void)
2593 {
2594 int x = 1234;
2595 int y = 5678;
2596 debug ("Flag");
2597 debug ("X = %d\n", x);
2598 showlist (The first, second, and third items.);
2599 report (x>y, "x is %d but y is %d", x, y);
2600 }
2601
2602 // Check long long types.
2603 #define BIG64 18446744073709551615ull
2604 #define BIG32 4294967295ul
2605 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2606 #if !BIG_OK
2607 #error "your preprocessor is broken"
2608 #endif
2609 #if BIG_OK
2610 #else
2611 #error "your preprocessor is broken"
2612 #endif
2613 static long long int bignum = -9223372036854775807LL;
2614 static unsigned long long int ubignum = BIG64;
2615
2616 struct incomplete_array
2617 {
2618 int datasize;
2619 double data[];
2620 };
2621
2622 struct named_init {
2623 int number;
2624 const wchar_t *name;
2625 double average;
2626 };
2627
2628 typedef const char *ccp;
2629
2630 static inline int
2631 test_restrict (ccp restrict text)
2632 {
2633 // See if C++-style comments work.
2634 // Iterate through items via the restricted pointer.
2635 // Also check for declarations in for loops.
2636 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2637 continue;
2638 return 0;
2639 }
2640
2641 // Check varargs and va_copy.
2642 static bool
2643 test_varargs (const char *format, ...)
2644 {
2645 va_list args;
2646 va_start (args, format);
2647 va_list args_copy;
2648 va_copy (args_copy, args);
2649
2650 const char *str = "";
2651 int number = 0;
2652 float fnumber = 0;
2653
2654 while (*format)
2655 {
2656 switch (*format++)
2657 {
2658 case '\''s'\'': // string
2659 str = va_arg (args_copy, const char *);
2660 break;
2661 case '\''d'\'': // int
2662 number = va_arg (args_copy, int);
2663 break;
2664 case '\''f'\'': // float
2665 fnumber = va_arg (args_copy, double);
2666 break;
2667 default:
2668 break;
2669 }
2670 }
2671 va_end (args_copy);
2672 va_end (args);
2673
2674 return *str && number && fnumber;
2675 }
2676 '
2677
2678 # Test code for whether the C compiler supports C99 (body of main).
2679 ac_c_conftest_c99_main='
2680 // Check bool.
2681 _Bool success = false;
2682 success |= (argc != 0);
2683
2684 // Check restrict.
2685 if (test_restrict ("String literal") == 0)
2686 success = true;
2687 char *restrict newvar = "Another string";
2688
2689 // Check varargs.
2690 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2691 test_varargs_macros ();
2692
2693 // Check flexible array members.
2694 struct incomplete_array *ia =
2695 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2696 ia->datasize = 10;
2697 for (int i = 0; i < ia->datasize; ++i)
2698 ia->data[i] = i * 1.234;
2699
2700 // Check named initializers.
2701 struct named_init ni = {
2702 .number = 34,
2703 .name = L"Test wide string",
2704 .average = 543.34343,
2705 };
2706
2707 ni.number = 58;
2708
2709 int dynamic_array[ni.number];
2710 dynamic_array[0] = argv[0][0];
2711 dynamic_array[ni.number - 1] = 543;
2712
2713 // work around unused variable warnings
2714 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2715 || dynamic_array[ni.number - 1] != 543);
2716 '
2717
2718 # Test code for whether the C compiler supports C11 (global declarations)
2719 ac_c_conftest_c11_globals='
2720 // Does the compiler advertise C11 conformance?
2721 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2722 # error "Compiler does not advertise C11 conformance"
2723 #endif
2724
2725 // Check _Alignas.
2726 char _Alignas (double) aligned_as_double;
2727 char _Alignas (0) no_special_alignment;
2728 extern char aligned_as_int;
2729 char _Alignas (0) _Alignas (int) aligned_as_int;
2730
2731 // Check _Alignof.
2732 enum
2733 {
2734 int_alignment = _Alignof (int),
2735 int_array_alignment = _Alignof (int[100]),
2736 char_alignment = _Alignof (char)
2737 };
2738 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2739
2740 // Check _Noreturn.
2741 int _Noreturn does_not_return (void) { for (;;) continue; }
2742
2743 // Check _Static_assert.
2744 struct test_static_assert
2745 {
2746 int x;
2747 _Static_assert (sizeof (int) <= sizeof (long int),
2748 "_Static_assert does not work in struct");
2749 long int y;
2750 };
2751
2752 // Check UTF-8 literals.
2753 #define u8 syntax error!
2754 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2755
2756 // Check duplicate typedefs.
2757 typedef long *long_ptr;
2758 typedef long int *long_ptr;
2759 typedef long_ptr long_ptr;
2760
2761 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2762 struct anonymous
2763 {
2764 union {
2765 struct { int i; int j; };
2766 struct { int k; long int l; } w;
2767 };
2768 int m;
2769 } v1;
2770 '
2771
2772 # Test code for whether the C compiler supports C11 (body of main).
2773 ac_c_conftest_c11_main='
2774 _Static_assert ((offsetof (struct anonymous, i)
2775 == offsetof (struct anonymous, w.k)),
2776 "Anonymous union alignment botch");
2777 v1.i = 2;
2778 v1.w.k = 5;
2779 ok |= v1.i != 5;
2780 '
2781
2782 # Test code for whether the C compiler supports C11 (complete).
2783 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2784 ${ac_c_conftest_c99_globals}
2785 ${ac_c_conftest_c11_globals}
2786
2787 int
2788 main (int argc, char **argv)
2789 {
2790 int ok = 0;
2791 ${ac_c_conftest_c89_main}
2792 ${ac_c_conftest_c99_main}
2793 ${ac_c_conftest_c11_main}
2794 return ok;
2795 }
2796 "
2797
2798 # Test code for whether the C compiler supports C99 (complete).
2799 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2800 ${ac_c_conftest_c99_globals}
2801
2802 int
2803 main (int argc, char **argv)
2804 {
2805 int ok = 0;
2806 ${ac_c_conftest_c89_main}
2807 ${ac_c_conftest_c99_main}
2808 return ok;
2809 }
2810 "
2811
2812 # Test code for whether the C compiler supports C89 (complete).
2813 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2814
2815 int
2816 main (int argc, char **argv)
2817 {
2818 int ok = 0;
2819 ${ac_c_conftest_c89_main}
2820 return ok;
2821 }
2822 "
2823
2824 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2825 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2826 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2827 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2828 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2829 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2830 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2831 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2832 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2833 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2834 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2835
2836 # Auxiliary files required by this configure script.
2837 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2838
2839 # Locations in which to look for auxiliary files.
2840 ac_aux_dir_candidates="${srcdir}/build-aux"
2841
2842 # Search for a directory containing all of the required auxiliary files,
2843 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2844 # If we don't find one directory that contains all the files we need,
2845 # we report the set of missing files from the *first* directory in
2846 # $ac_aux_dir_candidates and give up.
2847 ac_missing_aux_files=""
2848 ac_first_candidate=:
2849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 as_found=false
2852 for as_dir in $ac_aux_dir_candidates
2853 do
2854 IFS=$as_save_IFS
2855 case $as_dir in #(((
2856 '') as_dir=./ ;;
2857 */) ;;
2858 *) as_dir=$as_dir/ ;;
2859 esac
2860 as_found=:
2861
2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2863 ac_aux_dir_found=yes
2864 ac_install_sh=
2865 for ac_aux in $ac_aux_files
2866 do
2867 # As a special case, if "install-sh" is required, that requirement
2868 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2869 # and $ac_install_sh is set appropriately for whichever one is found.
2870 if test x"$ac_aux" = x"install-sh"
2871 then
2872 if test -f "${as_dir}install-sh"; then
2873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2874 ac_install_sh="${as_dir}install-sh -c"
2875 elif test -f "${as_dir}install.sh"; then
2876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2877 ac_install_sh="${as_dir}install.sh -c"
2878 elif test -f "${as_dir}shtool"; then
2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2880 ac_install_sh="${as_dir}shtool install -c"
2881 else
2882 ac_aux_dir_found=no
2883 if $ac_first_candidate; then
2884 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2885 else
2886 break
2887 fi
2888 fi
2889 else
2890 if test -f "${as_dir}${ac_aux}"; then
2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2892 else
2893 ac_aux_dir_found=no
2894 if $ac_first_candidate; then
2895 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2896 else
2897 break
2898 fi
2899 fi
2900 fi
2901 done
2902 if test "$ac_aux_dir_found" = yes; then
2903 ac_aux_dir="$as_dir"
2904 break
2905 fi
2906 ac_first_candidate=false
2907
2908 as_found=false
2909 done
2910 IFS=$as_save_IFS
2911 if $as_found
2912 then :
2913
2914 else $as_nop
2915 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2916 fi
2917
2918
2919 # These three variables are undocumented and unsupported,
2920 # and are intended to be withdrawn in a future Autoconf release.
2921 # They can cause serious problems if a builder's source tree is in a directory
2922 # whose full name contains unusual characters.
2923 if test -f "${ac_aux_dir}config.guess"; then
2924 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2925 fi
2926 if test -f "${ac_aux_dir}config.sub"; then
2927 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2928 fi
2929 if test -f "$ac_aux_dir/configure"; then
2930 ac_configure="$SHELL ${ac_aux_dir}configure"
2931 fi
2932
2933 # Check that the precious variables saved in the cache have kept the same
2934 # value.
2935 ac_cache_corrupted=false
2936 for ac_var in $ac_precious_vars; do
2937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2938 eval ac_new_set=\$ac_env_${ac_var}_set
2939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2940 eval ac_new_val=\$ac_env_${ac_var}_value
2941 case $ac_old_set,$ac_new_set in
2942 set,)
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2944 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2945 ac_cache_corrupted=: ;;
2946 ,set)
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2948 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2949 ac_cache_corrupted=: ;;
2950 ,);;
2951 *)
2952 if test "x$ac_old_val" != "x$ac_new_val"; then
2953 # differences in whitespace do not lead to failure.
2954 ac_old_val_w=`echo x $ac_old_val`
2955 ac_new_val_w=`echo x $ac_new_val`
2956 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2958 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2959 ac_cache_corrupted=:
2960 else
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2962 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2963 eval $ac_var=\$ac_old_val
2964 fi
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2966 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2968 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2969 fi;;
2970 esac
2971 # Pass precious variables to config.status.
2972 if test "$ac_new_set" = set; then
2973 case $ac_new_val in
2974 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2975 *) ac_arg=$ac_var=$ac_new_val ;;
2976 esac
2977 case " $ac_configure_args " in
2978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2979 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2980 esac
2981 fi
2982 done
2983 if $ac_cache_corrupted; then
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2987 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2988 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2989 and start over" "$LINENO" 5
2990 fi
2991 ## -------------------- ##
2992 ## Main body of script. ##
2993 ## -------------------- ##
2994
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000
3001
3002
3003
3004
3005 am__api_version='1.16'
3006
3007
3008
3009 # Find a good install program. We prefer a C program (faster),
3010 # so one script is as good as another. But avoid the broken or
3011 # incompatible versions:
3012 # SysV /etc/install, /usr/sbin/install
3013 # SunOS /usr/etc/install
3014 # IRIX /sbin/install
3015 # AIX /bin/install
3016 # AmigaOS /C/install, which installs bootblocks on floppy discs
3017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3020 # OS/2's system install, which has a completely different semantic
3021 # ./install, which can be erroneously created by make from ./install.sh.
3022 # Reject install programs that cannot install multiple files.
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3024 printf %s "checking for a BSD-compatible install... " >&6; }
3025 if test -z "$INSTALL"; then
3026 if test ${ac_cv_path_install+y}
3027 then :
3028 printf %s "(cached) " >&6
3029 else $as_nop
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 case $as_dir in #(((
3035 '') as_dir=./ ;;
3036 */) ;;
3037 *) as_dir=$as_dir/ ;;
3038 esac
3039 # Account for fact that we put trailing slashes in our PATH walk.
3040 case $as_dir in #((
3041 ./ | /[cC]/* | \
3042 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3043 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3044 /usr/ucb/* ) ;;
3045 *)
3046 # OSF1 and SCO ODT 3.0 have their own names for install.
3047 # Don't use installbsd from OSF since it installs stuff as root
3048 # by default.
3049 for ac_prog in ginstall scoinst install; do
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3052 if test $ac_prog = install &&
3053 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3054 # AIX install. It has an incompatible calling convention.
3055 :
3056 elif test $ac_prog = install &&
3057 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3058 # program-specific install script used by HP pwplus--don't use.
3059 :
3060 else
3061 rm -rf conftest.one conftest.two conftest.dir
3062 echo one > conftest.one
3063 echo two > conftest.two
3064 mkdir conftest.dir
3065 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3066 test -s conftest.one && test -s conftest.two &&
3067 test -s conftest.dir/conftest.one &&
3068 test -s conftest.dir/conftest.two
3069 then
3070 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3071 break 3
3072 fi
3073 fi
3074 fi
3075 done
3076 done
3077 ;;
3078 esac
3079
3080 done
3081 IFS=$as_save_IFS
3082
3083 rm -rf conftest.one conftest.two conftest.dir
3084
3085 fi
3086 if test ${ac_cv_path_install+y}; then
3087 INSTALL=$ac_cv_path_install
3088 else
3089 # As a last resort, use the slow shell script. Don't cache a
3090 # value for INSTALL within a source directory, because that will
3091 # break other packages using the cache if that directory is
3092 # removed, or if the value is a relative name.
3093 INSTALL=$ac_install_sh
3094 fi
3095 fi
3096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3097 printf "%s\n" "$INSTALL" >&6; }
3098
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3102
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3104
3105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3106
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3108 printf %s "checking whether build environment is sane... " >&6; }
3109 # Reject unsafe characters in $srcdir or the absolute working directory
3110 # name. Accept space and tab only in the latter.
3111 am_lf='
3112 '
3113 case `pwd` in
3114 *[\\\"\#\$\&\'\`$am_lf]*)
3115 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3116 esac
3117 case $srcdir in
3118 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3119 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3120 esac
3121
3122 # Do 'set' in a subshell so we don't clobber the current shell's
3123 # arguments. Must try -L first in case configure is actually a
3124 # symlink; some systems play weird games with the mod time of symlinks
3125 # (eg FreeBSD returns the mod time of the symlink's containing
3126 # directory).
3127 if (
3128 am_has_slept=no
3129 for am_try in 1 2; do
3130 echo "timestamp, slept: $am_has_slept" > conftest.file
3131 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3132 if test "$*" = "X"; then
3133 # -L didn't work.
3134 set X `ls -t "$srcdir/configure" conftest.file`
3135 fi
3136 if test "$*" != "X $srcdir/configure conftest.file" \
3137 && test "$*" != "X conftest.file $srcdir/configure"; then
3138
3139 # If neither matched, then we have a broken ls. This can happen
3140 # if, for instance, CONFIG_SHELL is bash and it inherits a
3141 # broken ls alias from the environment. This has actually
3142 # happened. Such a system could not be considered "sane".
3143 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3144 alias in your environment" "$LINENO" 5
3145 fi
3146 if test "$2" = conftest.file || test $am_try -eq 2; then
3147 break
3148 fi
3149 # Just in case.
3150 sleep 1
3151 am_has_slept=yes
3152 done
3153 test "$2" = conftest.file
3154 )
3155 then
3156 # Ok.
3157 :
3158 else
3159 as_fn_error $? "newly created file is older than distributed files!
3160 Check your system clock" "$LINENO" 5
3161 fi
3162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 printf "%s\n" "yes" >&6; }
3164 # If we didn't sleep, we still need to ensure time stamps of config.status and
3165 # generated files are strictly newer.
3166 am_sleep_pid=
3167 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3168 ( sleep 1 ) &
3169 am_sleep_pid=$!
3170 fi
3171
3172 rm -f conftest.file
3173
3174 test "$program_prefix" != NONE &&
3175 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3176 # Use a double $ so make ignores it.
3177 test "$program_suffix" != NONE &&
3178 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3179 # Double any \ or $.
3180 # By default was `s,x,x', remove it if useless.
3181 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3182 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3183
3184
3185 # Expand $ac_aux_dir to an absolute path.
3186 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3187
3188
3189 if test x"${MISSING+set}" != xset; then
3190 MISSING="\${SHELL} '$am_aux_dir/missing'"
3191 fi
3192 # Use eval to expand $SHELL
3193 if eval "$MISSING --is-lightweight"; then
3194 am_missing_run="$MISSING "
3195 else
3196 am_missing_run=
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3198 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3199 fi
3200
3201 if test x"${install_sh+set}" != xset; then
3202 case $am_aux_dir in
3203 *\ * | *\ *)
3204 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3205 *)
3206 install_sh="\${SHELL} $am_aux_dir/install-sh"
3207 esac
3208 fi
3209
3210 # Installed binaries are usually stripped using 'strip' when the user
3211 # run "make install-strip". However 'strip' might not be the right
3212 # tool to use in cross-compilation environments, therefore Automake
3213 # will honor the 'STRIP' environment variable to overrule this program.
3214 if test "$cross_compiling" != no; then
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}strip; ac_word=$2
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 printf %s "checking for $ac_word... " >&6; }
3220 if test ${ac_cv_prog_STRIP+y}
3221 then :
3222 printf %s "(cached) " >&6
3223 else $as_nop
3224 if test -n "$STRIP"; then
3225 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230 IFS=$as_save_IFS
3231 case $as_dir in #(((
3232 '') as_dir=./ ;;
3233 */) ;;
3234 *) as_dir=$as_dir/ ;;
3235 esac
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3240 break 2
3241 fi
3242 done
3243 done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 STRIP=$ac_cv_prog_STRIP
3249 if test -n "$STRIP"; then
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3251 printf "%s\n" "$STRIP" >&6; }
3252 else
3253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 printf "%s\n" "no" >&6; }
3255 fi
3256
3257
3258 fi
3259 if test -z "$ac_cv_prog_STRIP"; then
3260 ac_ct_STRIP=$STRIP
3261 # Extract the first word of "strip", so it can be a program name with args.
3262 set dummy strip; ac_word=$2
3263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 printf %s "checking for $ac_word... " >&6; }
3265 if test ${ac_cv_prog_ac_ct_STRIP+y}
3266 then :
3267 printf %s "(cached) " >&6
3268 else $as_nop
3269 if test -n "$ac_ct_STRIP"; then
3270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3274 do
3275 IFS=$as_save_IFS
3276 case $as_dir in #(((
3277 '') as_dir=./ ;;
3278 */) ;;
3279 *) as_dir=$as_dir/ ;;
3280 esac
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3283 ac_cv_prog_ac_ct_STRIP="strip"
3284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3285 break 2
3286 fi
3287 done
3288 done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3294 if test -n "$ac_ct_STRIP"; then
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3296 printf "%s\n" "$ac_ct_STRIP" >&6; }
3297 else
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 printf "%s\n" "no" >&6; }
3300 fi
3301
3302 if test "x$ac_ct_STRIP" = x; then
3303 STRIP=":"
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 STRIP=$ac_ct_STRIP
3312 fi
3313 else
3314 STRIP="$ac_cv_prog_STRIP"
3315 fi
3316
3317 fi
3318 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3319
3320
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3322 printf %s "checking for a race-free mkdir -p... " >&6; }
3323 if test -z "$MKDIR_P"; then
3324 if test ${ac_cv_path_mkdir+y}
3325 then :
3326 printf %s "(cached) " >&6
3327 else $as_nop
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3330 do
3331 IFS=$as_save_IFS
3332 case $as_dir in #(((
3333 '') as_dir=./ ;;
3334 */) ;;
3335 *) as_dir=$as_dir/ ;;
3336 esac
3337 for ac_prog in mkdir gmkdir; do
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3340 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3341 'mkdir ('*'coreutils) '* | \
3342 'BusyBox '* | \
3343 'mkdir (fileutils) '4.1*)
3344 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3345 break 3;;
3346 esac
3347 done
3348 done
3349 done
3350 IFS=$as_save_IFS
3351
3352 fi
3353
3354 test -d ./--version && rmdir ./--version
3355 if test ${ac_cv_path_mkdir+y}; then
3356 MKDIR_P="$ac_cv_path_mkdir -p"
3357 else
3358 # As a last resort, use the slow shell script. Don't cache a
3359 # value for MKDIR_P within a source directory, because that will
3360 # break other packages using the cache if that directory is
3361 # removed, or if the value is a relative name.
3362 MKDIR_P="$ac_install_sh -d"
3363 fi
3364 fi
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3366 printf "%s\n" "$MKDIR_P" >&6; }
3367
3368 for ac_prog in gawk mawk nawk awk
3369 do
3370 # Extract the first word of "$ac_prog", so it can be a program name with args.
3371 set dummy $ac_prog; ac_word=$2
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 printf %s "checking for $ac_word... " >&6; }
3374 if test ${ac_cv_prog_AWK+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else $as_nop
3378 if test -n "$AWK"; then
3379 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 case $as_dir in #(((
3386 '') as_dir=./ ;;
3387 */) ;;
3388 *) as_dir=$as_dir/ ;;
3389 esac
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_AWK="$ac_prog"
3393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 AWK=$ac_cv_prog_AWK
3403 if test -n "$AWK"; then
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3405 printf "%s\n" "$AWK" >&6; }
3406 else
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3409 fi
3410
3411
3412 test -n "$AWK" && break
3413 done
3414
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3416 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3417 set x ${MAKE-make}
3418 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3419 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else $as_nop
3423 cat >conftest.make <<\_ACEOF
3424 SHELL = /bin/sh
3425 all:
3426 @echo '@@@%%%=$(MAKE)=@@@%%%'
3427 _ACEOF
3428 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3430 *@@@%%%=?*=@@@%%%*)
3431 eval ac_cv_prog_make_${ac_make}_set=yes;;
3432 *)
3433 eval ac_cv_prog_make_${ac_make}_set=no;;
3434 esac
3435 rm -f conftest.make
3436 fi
3437 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3439 printf "%s\n" "yes" >&6; }
3440 SET_MAKE=
3441 else
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 printf "%s\n" "no" >&6; }
3444 SET_MAKE="MAKE=${MAKE-make}"
3445 fi
3446
3447 rm -rf .tst 2>/dev/null
3448 mkdir .tst 2>/dev/null
3449 if test -d .tst; then
3450 am__leading_dot=.
3451 else
3452 am__leading_dot=_
3453 fi
3454 rmdir .tst 2>/dev/null
3455
3456 # Check whether --enable-silent-rules was given.
3457 if test ${enable_silent_rules+y}
3458 then :
3459 enableval=$enable_silent_rules;
3460 fi
3461
3462 case $enable_silent_rules in # (((
3463 yes) AM_DEFAULT_VERBOSITY=0;;
3464 no) AM_DEFAULT_VERBOSITY=1;;
3465 *) AM_DEFAULT_VERBOSITY=1;;
3466 esac
3467 am_make=${MAKE-make}
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3469 printf %s "checking whether $am_make supports nested variables... " >&6; }
3470 if test ${am_cv_make_support_nested_variables+y}
3471 then :
3472 printf %s "(cached) " >&6
3473 else $as_nop
3474 if printf "%s\n" 'TRUE=$(BAR$(V))
3475 BAR0=false
3476 BAR1=true
3477 V=1
3478 am__doit:
3479 @$(TRUE)
3480 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3481 am_cv_make_support_nested_variables=yes
3482 else
3483 am_cv_make_support_nested_variables=no
3484 fi
3485 fi
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3487 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3488 if test $am_cv_make_support_nested_variables = yes; then
3489 AM_V='$(V)'
3490 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3491 else
3492 AM_V=$AM_DEFAULT_VERBOSITY
3493 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3494 fi
3495 AM_BACKSLASH='\'
3496
3497 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3498 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3499 # is not polluted with repeated "-I."
3500 am__isrc=' -I$(srcdir)'
3501 # test to see if srcdir already configured
3502 if test -f $srcdir/config.status; then
3503 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3504 fi
3505 fi
3506
3507 # test whether we have cygpath
3508 if test -z "$CYGPATH_W"; then
3509 if (cygpath --version) >/dev/null 2>/dev/null; then
3510 CYGPATH_W='cygpath -w'
3511 else
3512 CYGPATH_W=echo
3513 fi
3514 fi
3515
3516
3517 # Define the identity of the package.
3518 PACKAGE='pam-krb5'
3519 VERSION='4.11'
3520
3521
3522 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3523
3524
3525 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3526
3527 # Some tools Automake needs.
3528
3529 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3530
3531
3532 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3533
3534
3535 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3536
3537
3538 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3539
3540
3541 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3542
3543 # For better backward compatibility. To be removed once Automake 1.9.x
3544 # dies out for good. For more background, see:
3545 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3546 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3547 mkdir_p='$(MKDIR_P)'
3548
3549 # We need awk for the "check" target (and possibly the TAP driver). The
3550 # system "awk" is bad on some platforms.
3551 # Always define AMTAR for backward compatibility. Yes, it's still used
3552 # in the wild :-( We should find a proper way to deprecate it ...
3553 AMTAR='$${TAR-tar}'
3554
3555
3556 # We'll loop over all known methods to create a tar archive until one works.
3557 _am_tools='gnutar pax cpio none'
3558
3559 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3560
3561
3562
3563
3564
3565 # Variables for tags utilities; see am/tags.am
3566 if test -z "$CTAGS"; then
3567 CTAGS=ctags
3568 fi
3569
3570 if test -z "$ETAGS"; then
3571 ETAGS=etags
3572 fi
3573
3574 if test -z "$CSCOPE"; then
3575 CSCOPE=cscope
3576 fi
3577
3578
3579
3580 # POSIX will say in a future version that running "rm -f" with no argument
3581 # is OK; and we want to be able to make that assumption in our Makefile
3582 # recipes. So use an aggressive probe to check that the usage we want is
3583 # actually supported "in the wild" to an acceptable degree.
3584 # See automake bug#10828.
3585 # To make any issue more visible, cause the running configure to be aborted
3586 # by default if the 'rm' program in use doesn't match our expectations; the
3587 # user can still override this though.
3588 if rm -f && rm -fr && rm -rf; then : OK; else
3589 cat >&2 <<'END'
3590 Oops!
3591
3592 Your 'rm' program seems unable to run without file operands specified
3593 on the command line, even when the '-f' option is present. This is contrary
3594 to the behaviour of most rm programs out there, and not conforming with
3595 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3596
3597 Please tell [email protected] about your system, including the value
3598 of your $PATH and any error possibly output before this message. This
3599 can help us improve future automake versions.
3600
3601 END
3602 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3603 echo 'Configuration will proceed anyway, since you have set the' >&2
3604 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3605 echo >&2
3606 else
3607 cat >&2 <<'END'
3608 Aborting the configuration process, to ensure you take notice of the issue.
3609
3610 You can download and install GNU coreutils to get an 'rm' implementation
3611 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3612
3613 If you want to complete the configuration process using your problematic
3614 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3615 to "yes", and re-run configure.
3616
3617 END
3618 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3619 fi
3620 fi
3621
3622
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3624 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3625 # Check whether --enable-maintainer-mode was given.
3626 if test ${enable_maintainer_mode+y}
3627 then :
3628 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3629 else $as_nop
3630 USE_MAINTAINER_MODE=no
3631 fi
3632
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3634 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3635 if test $USE_MAINTAINER_MODE = yes; then
3636 MAINTAINER_MODE_TRUE=
3637 MAINTAINER_MODE_FALSE='#'
3638 else
3639 MAINTAINER_MODE_TRUE='#'
3640 MAINTAINER_MODE_FALSE=
3641 fi
3642
3643 MAINT=$MAINTAINER_MODE_TRUE
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659 ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3666 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668 printf %s "checking for $ac_word... " >&6; }
3669 if test ${ac_cv_prog_CC+y}
3670 then :
3671 printf %s "(cached) " >&6
3672 else $as_nop
3673 if test -n "$CC"; then
3674 ac_cv_prog_CC="$CC" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679 IFS=$as_save_IFS
3680 case $as_dir in #(((
3681 '') as_dir=./ ;;
3682 */) ;;
3683 *) as_dir=$as_dir/ ;;
3684 esac
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3687 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691 done
3692 done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 CC=$ac_cv_prog_CC
3698 if test -n "$CC"; then
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3700 printf "%s\n" "$CC" >&6; }
3701 else
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 printf "%s\n" "no" >&6; }
3704 fi
3705
3706
3707 fi
3708 if test -z "$ac_cv_prog_CC"; then
3709 ac_ct_CC=$CC
3710 # Extract the first word of "gcc", so it can be a program name with args.
3711 set dummy gcc; ac_word=$2
3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713 printf %s "checking for $ac_word... " >&6; }
3714 if test ${ac_cv_prog_ac_ct_CC+y}
3715 then :
3716 printf %s "(cached) " >&6
3717 else $as_nop
3718 if test -n "$ac_ct_CC"; then
3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724 IFS=$as_save_IFS
3725 case $as_dir in #(((
3726 '') as_dir=./ ;;
3727 */) ;;
3728 *) as_dir=$as_dir/ ;;
3729 esac
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3732 ac_cv_prog_ac_ct_CC="gcc"
3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3734 break 2
3735 fi
3736 done
3737 done
3738 IFS=$as_save_IFS
3739
3740 fi
3741 fi
3742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3743 if test -n "$ac_ct_CC"; then
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745 printf "%s\n" "$ac_ct_CC" >&6; }
3746 else
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
3749 fi
3750
3751 if test "x$ac_ct_CC" = x; then
3752 CC=""
3753 else
3754 case $cross_compiling:$ac_tool_warned in
3755 yes:)
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758 ac_tool_warned=yes ;;
3759 esac
3760 CC=$ac_ct_CC
3761 fi
3762 else
3763 CC="$ac_cv_prog_CC"
3764 fi
3765
3766 if test -z "$CC"; then
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3769 set dummy ${ac_tool_prefix}cc; ac_word=$2
3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 printf %s "checking for $ac_word... " >&6; }
3772 if test ${ac_cv_prog_CC+y}
3773 then :
3774 printf %s "(cached) " >&6
3775 else $as_nop
3776 if test -n "$CC"; then
3777 ac_cv_prog_CC="$CC" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782 IFS=$as_save_IFS
3783 case $as_dir in #(((
3784 '') as_dir=./ ;;
3785 */) ;;
3786 *) as_dir=$as_dir/ ;;
3787 esac
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3790 ac_cv_prog_CC="${ac_tool_prefix}cc"
3791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3792 break 2
3793 fi
3794 done
3795 done
3796 IFS=$as_save_IFS
3797
3798 fi
3799 fi
3800 CC=$ac_cv_prog_CC
3801 if test -n "$CC"; then
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3803 printf "%s\n" "$CC" >&6; }
3804 else
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3806 printf "%s\n" "no" >&6; }
3807 fi
3808
3809
3810 fi
3811 fi
3812 if test -z "$CC"; then
3813 # Extract the first word of "cc", so it can be a program name with args.
3814 set dummy cc; ac_word=$2
3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816 printf %s "checking for $ac_word... " >&6; }
3817 if test ${ac_cv_prog_CC+y}
3818 then :
3819 printf %s "(cached) " >&6
3820 else $as_nop
3821 if test -n "$CC"; then
3822 ac_cv_prog_CC="$CC" # Let the user override the test.
3823 else
3824 ac_prog_rejected=no
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3827 do
3828 IFS=$as_save_IFS
3829 case $as_dir in #(((
3830 '') as_dir=./ ;;
3831 */) ;;
3832 *) as_dir=$as_dir/ ;;
3833 esac
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3836 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3837 ac_prog_rejected=yes
3838 continue
3839 fi
3840 ac_cv_prog_CC="cc"
3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844 done
3845 done
3846 IFS=$as_save_IFS
3847
3848 if test $ac_prog_rejected = yes; then
3849 # We found a bogon in the path, so make sure we never use it.
3850 set dummy $ac_cv_prog_CC
3851 shift
3852 if test $# != 0; then
3853 # We chose a different compiler from the bogus one.
3854 # However, it has the same basename, so the bogon will be chosen
3855 # first if we set CC to just the basename; use the full file name.
3856 shift
3857 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3858 fi
3859 fi
3860 fi
3861 fi
3862 CC=$ac_cv_prog_CC
3863 if test -n "$CC"; then
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3865 printf "%s\n" "$CC" >&6; }
3866 else
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 printf "%s\n" "no" >&6; }
3869 fi
3870
3871
3872 fi
3873 if test -z "$CC"; then
3874 if test -n "$ac_tool_prefix"; then
3875 for ac_prog in cl.exe
3876 do
3877 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3878 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 printf %s "checking for $ac_word... " >&6; }
3881 if test ${ac_cv_prog_CC+y}
3882 then :
3883 printf %s "(cached) " >&6
3884 else $as_nop
3885 if test -n "$CC"; then
3886 ac_cv_prog_CC="$CC" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3890 do
3891 IFS=$as_save_IFS
3892 case $as_dir in #(((
3893 '') as_dir=./ ;;
3894 */) ;;
3895 *) as_dir=$as_dir/ ;;
3896 esac
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3901 break 2
3902 fi
3903 done
3904 done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 CC=$ac_cv_prog_CC
3910 if test -n "$CC"; then
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3912 printf "%s\n" "$CC" >&6; }
3913 else
3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 printf "%s\n" "no" >&6; }
3916 fi
3917
3918
3919 test -n "$CC" && break
3920 done
3921 fi
3922 if test -z "$CC"; then
3923 ac_ct_CC=$CC
3924 for ac_prog in cl.exe
3925 do
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 printf %s "checking for $ac_word... " >&6; }
3930 if test ${ac_cv_prog_ac_ct_CC+y}
3931 then :
3932 printf %s "(cached) " >&6
3933 else $as_nop
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 case $as_dir in #(((
3942 '') as_dir=./ ;;
3943 */) ;;
3944 *) as_dir=$as_dir/ ;;
3945 esac
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3948 ac_cv_prog_ac_ct_CC="$ac_prog"
3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952 done
3953 done
3954 IFS=$as_save_IFS
3955
3956 fi
3957 fi
3958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3959 if test -n "$ac_ct_CC"; then
3960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3961 printf "%s\n" "$ac_ct_CC" >&6; }
3962 else
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 printf "%s\n" "no" >&6; }
3965 fi
3966
3967
3968 test -n "$ac_ct_CC" && break
3969 done
3970
3971 if test "x$ac_ct_CC" = x; then
3972 CC=""
3973 else
3974 case $cross_compiling:$ac_tool_warned in
3975 yes:)
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3977 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3978 ac_tool_warned=yes ;;
3979 esac
3980 CC=$ac_ct_CC
3981 fi
3982 fi
3983
3984 fi
3985 if test -z "$CC"; then
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}clang; ac_word=$2
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 printf %s "checking for $ac_word... " >&6; }
3991 if test ${ac_cv_prog_CC+y}
3992 then :
3993 printf %s "(cached) " >&6
3994 else $as_nop
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001 IFS=$as_save_IFS
4002 case $as_dir in #(((
4003 '') as_dir=./ ;;
4004 */) ;;
4005 *) as_dir=$as_dir/ ;;
4006 esac
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4009 ac_cv_prog_CC="${ac_tool_prefix}clang"
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013 done
4014 done
4015 IFS=$as_save_IFS
4016
4017 fi
4018 fi
4019 CC=$ac_cv_prog_CC
4020 if test -n "$CC"; then
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022 printf "%s\n" "$CC" >&6; }
4023 else
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 printf "%s\n" "no" >&6; }
4026 fi
4027
4028
4029 fi
4030 if test -z "$ac_cv_prog_CC"; then
4031 ac_ct_CC=$CC
4032 # Extract the first word of "clang", so it can be a program name with args.
4033 set dummy clang; ac_word=$2
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 printf %s "checking for $ac_word... " >&6; }
4036 if test ${ac_cv_prog_ac_ct_CC+y}
4037 then :
4038 printf %s "(cached) " >&6
4039 else $as_nop
4040 if test -n "$ac_ct_CC"; then
4041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046 IFS=$as_save_IFS
4047 case $as_dir in #(((
4048 '') as_dir=./ ;;
4049 */) ;;
4050 *) as_dir=$as_dir/ ;;
4051 esac
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_CC="clang"
4055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058 done
4059 done
4060 IFS=$as_save_IFS
4061
4062 fi
4063 fi
4064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065 if test -n "$ac_ct_CC"; then
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067 printf "%s\n" "$ac_ct_CC" >&6; }
4068 else
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 printf "%s\n" "no" >&6; }
4071 fi
4072
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077 yes:)
4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080 ac_tool_warned=yes ;;
4081 esac
4082 CC=$ac_ct_CC
4083 fi
4084 else
4085 CC="$ac_cv_prog_CC"
4086 fi
4087
4088 fi
4089
4090
4091 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4092 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4093 as_fn_error $? "no acceptable C compiler found in \$PATH
4094 See \`config.log' for more details" "$LINENO" 5; }
4095
4096 # Provide some information about the compiler.
4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4098 set X $ac_compile
4099 ac_compiler=$2
4100 for ac_option in --version -v -V -qversion -version; do
4101 { { ac_try="$ac_compiler $ac_option >&5"
4102 case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105 esac
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 printf "%s\n" "$ac_try_echo"; } >&5
4108 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4109 ac_status=$?
4110 if test -s conftest.err; then
4111 sed '10a\
4112 ... rest of stderr output deleted ...
4113 10q' conftest.err >conftest.er1
4114 cat conftest.er1 >&5
4115 fi
4116 rm -f conftest.er1 conftest.err
4117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4118 test $ac_status = 0; }
4119 done
4120
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123
4124 int
4125 main (void)
4126 {
4127
4128 ;
4129 return 0;
4130 }
4131 _ACEOF
4132 ac_clean_files_save=$ac_clean_files
4133 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4134 # Try to create an executable without -o first, disregard a.out.
4135 # It will help us diagnose broken compilers, and finding out an intuition
4136 # of exeext.
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4138 printf %s "checking whether the C compiler works... " >&6; }
4139 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4140
4141 # The possible output files:
4142 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4143
4144 ac_rmfiles=
4145 for ac_file in $ac_files
4146 do
4147 case $ac_file in
4148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4149 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4150 esac
4151 done
4152 rm -f $ac_rmfiles
4153
4154 if { { ac_try="$ac_link_default"
4155 case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158 esac
4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4160 printf "%s\n" "$ac_try_echo"; } >&5
4161 (eval "$ac_link_default") 2>&5
4162 ac_status=$?
4163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4164 test $ac_status = 0; }
4165 then :
4166 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4168 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4169 # so that the user can short-circuit this test for compilers unknown to
4170 # Autoconf.
4171 for ac_file in $ac_files ''
4172 do
4173 test -f "$ac_file" || continue
4174 case $ac_file in
4175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4176 ;;
4177 [ab].out )
4178 # We found the default executable, but exeext='' is most
4179 # certainly right.
4180 break;;
4181 *.* )
4182 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4183 then :; else
4184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4185 fi
4186 # We set ac_cv_exeext here because the later test for it is not
4187 # safe: cross compilers may not add the suffix if given an `-o'
4188 # argument, so we may need to know it at that point already.
4189 # Even if this section looks crufty: it has the advantage of
4190 # actually working.
4191 break;;
4192 * )
4193 break;;
4194 esac
4195 done
4196 test "$ac_cv_exeext" = no && ac_cv_exeext=
4197
4198 else $as_nop
4199 ac_file=''
4200 fi
4201 if test -z "$ac_file"
4202 then :
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 printf "%s\n" "no" >&6; }
4205 printf "%s\n" "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4209 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4210 as_fn_error 77 "C compiler cannot create executables
4211 See \`config.log' for more details" "$LINENO" 5; }
4212 else $as_nop
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4214 printf "%s\n" "yes" >&6; }
4215 fi
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4217 printf %s "checking for C compiler default output file name... " >&6; }
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4219 printf "%s\n" "$ac_file" >&6; }
4220 ac_exeext=$ac_cv_exeext
4221
4222 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4223 ac_clean_files=$ac_clean_files_save
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4225 printf %s "checking for suffix of executables... " >&6; }
4226 if { { ac_try="$ac_link"
4227 case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230 esac
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 printf "%s\n" "$ac_try_echo"; } >&5
4233 (eval "$ac_link") 2>&5
4234 ac_status=$?
4235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }
4237 then :
4238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4240 # work properly (i.e., refer to `conftest.exe'), while it won't with
4241 # `rm'.
4242 for ac_file in conftest.exe conftest conftest.*; do
4243 test -f "$ac_file" || continue
4244 case $ac_file in
4245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4247 break;;
4248 * ) break;;
4249 esac
4250 done
4251 else $as_nop
4252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4254 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4255 See \`config.log' for more details" "$LINENO" 5; }
4256 fi
4257 rm -f conftest conftest$ac_cv_exeext
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4259 printf "%s\n" "$ac_cv_exeext" >&6; }
4260
4261 rm -f conftest.$ac_ext
4262 EXEEXT=$ac_cv_exeext
4263 ac_exeext=$EXEEXT
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266 #include <stdio.h>
4267 int
4268 main (void)
4269 {
4270 FILE *f = fopen ("conftest.out", "w");
4271 return ferror (f) || fclose (f) != 0;
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 ac_clean_files="$ac_clean_files conftest.out"
4278 # Check that the compiler produces executables we can run. If not, either
4279 # the compiler is broken, or we cross compile.
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4281 printf %s "checking whether we are cross compiling... " >&6; }
4282 if test "$cross_compiling" != yes; then
4283 { { ac_try="$ac_link"
4284 case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287 esac
4288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4289 printf "%s\n" "$ac_try_echo"; } >&5
4290 (eval "$ac_link") 2>&5
4291 ac_status=$?
4292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }
4294 if { ac_try='./conftest$ac_cv_exeext'
4295 { { case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 printf "%s\n" "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; }; }; then
4305 cross_compiling=no
4306 else
4307 if test "$cross_compiling" = maybe; then
4308 cross_compiling=yes
4309 else
4310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4311 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4312 as_fn_error 77 "cannot run C compiled programs.
4313 If you meant to cross compile, use \`--host'.
4314 See \`config.log' for more details" "$LINENO" 5; }
4315 fi
4316 fi
4317 fi
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4319 printf "%s\n" "$cross_compiling" >&6; }
4320
4321 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4322 ac_clean_files=$ac_clean_files_save
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4324 printf %s "checking for suffix of object files... " >&6; }
4325 if test ${ac_cv_objext+y}
4326 then :
4327 printf %s "(cached) " >&6
4328 else $as_nop
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4331
4332 int
4333 main (void)
4334 {
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 rm -f conftest.o conftest.obj
4341 if { { ac_try="$ac_compile"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 printf "%s\n" "$ac_try_echo"; } >&5
4348 (eval "$ac_compile") 2>&5
4349 ac_status=$?
4350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }
4352 then :
4353 for ac_file in conftest.o conftest.obj conftest.*; do
4354 test -f "$ac_file" || continue;
4355 case $ac_file in
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4358 break;;
4359 esac
4360 done
4361 else $as_nop
4362 printf "%s\n" "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error $? "cannot compute suffix of object files: cannot compile
4368 See \`config.log' for more details" "$LINENO" 5; }
4369 fi
4370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4371 fi
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4373 printf "%s\n" "$ac_cv_objext" >&6; }
4374 OBJEXT=$ac_cv_objext
4375 ac_objext=$OBJEXT
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4377 printf %s "checking whether the compiler supports GNU C... " >&6; }
4378 if test ${ac_cv_c_compiler_gnu+y}
4379 then :
4380 printf %s "(cached) " >&6
4381 else $as_nop
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384
4385 int
4386 main (void)
4387 {
4388 #ifndef __GNUC__
4389 choke me
4390 #endif
4391
4392 ;
4393 return 0;
4394 }
4395 _ACEOF
4396 if ac_fn_c_try_compile "$LINENO"
4397 then :
4398 ac_compiler_gnu=yes
4399 else $as_nop
4400 ac_compiler_gnu=no
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4403 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4404
4405 fi
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4407 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
4410 if test $ac_compiler_gnu = yes; then
4411 GCC=yes
4412 else
4413 GCC=
4414 fi
4415 ac_test_CFLAGS=${CFLAGS+y}
4416 ac_save_CFLAGS=$CFLAGS
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4418 printf %s "checking whether $CC accepts -g... " >&6; }
4419 if test ${ac_cv_prog_cc_g+y}
4420 then :
4421 printf %s "(cached) " >&6
4422 else $as_nop
4423 ac_save_c_werror_flag=$ac_c_werror_flag
4424 ac_c_werror_flag=yes
4425 ac_cv_prog_cc_g=no
4426 CFLAGS="-g"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4429
4430 int
4431 main (void)
4432 {
4433
4434 ;
4435 return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_compile "$LINENO"
4439 then :
4440 ac_cv_prog_cc_g=yes
4441 else $as_nop
4442 CFLAGS=""
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445
4446 int
4447 main (void)
4448 {
4449
4450 ;
4451 return 0;
4452 }
4453 _ACEOF
4454 if ac_fn_c_try_compile "$LINENO"
4455 then :
4456
4457 else $as_nop
4458 ac_c_werror_flag=$ac_save_c_werror_flag
4459 CFLAGS="-g"
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462
4463 int
4464 main (void)
4465 {
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"
4472 then :
4473 ac_cv_prog_cc_g=yes
4474 fi
4475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4476 fi
4477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4480 ac_c_werror_flag=$ac_save_c_werror_flag
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4483 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4484 if test $ac_test_CFLAGS; then
4485 CFLAGS=$ac_save_CFLAGS
4486 elif test $ac_cv_prog_cc_g = yes; then
4487 if test "$GCC" = yes; then
4488 CFLAGS="-g -O2"
4489 else
4490 CFLAGS="-g"
4491 fi
4492 else
4493 if test "$GCC" = yes; then
4494 CFLAGS="-O2"
4495 else
4496 CFLAGS=
4497 fi
4498 fi
4499 ac_prog_cc_stdc=no
4500 if test x$ac_prog_cc_stdc = xno
4501 then :
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4503 printf %s "checking for $CC option to enable C11 features... " >&6; }
4504 if test ${ac_cv_prog_cc_c11+y}
4505 then :
4506 printf %s "(cached) " >&6
4507 else $as_nop
4508 ac_cv_prog_cc_c11=no
4509 ac_save_CC=$CC
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 $ac_c_conftest_c11_program
4513 _ACEOF
4514 for ac_arg in '' -std=gnu11
4515 do
4516 CC="$ac_save_CC $ac_arg"
4517 if ac_fn_c_try_compile "$LINENO"
4518 then :
4519 ac_cv_prog_cc_c11=$ac_arg
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.beam
4522 test "x$ac_cv_prog_cc_c11" != "xno" && break
4523 done
4524 rm -f conftest.$ac_ext
4525 CC=$ac_save_CC
4526 fi
4527
4528 if test "x$ac_cv_prog_cc_c11" = xno
4529 then :
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4531 printf "%s\n" "unsupported" >&6; }
4532 else $as_nop
4533 if test "x$ac_cv_prog_cc_c11" = x
4534 then :
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4536 printf "%s\n" "none needed" >&6; }
4537 else $as_nop
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4539 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4540 CC="$CC $ac_cv_prog_cc_c11"
4541 fi
4542 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4543 ac_prog_cc_stdc=c11
4544 fi
4545 fi
4546 if test x$ac_prog_cc_stdc = xno
4547 then :
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4549 printf %s "checking for $CC option to enable C99 features... " >&6; }
4550 if test ${ac_cv_prog_cc_c99+y}
4551 then :
4552 printf %s "(cached) " >&6
4553 else $as_nop
4554 ac_cv_prog_cc_c99=no
4555 ac_save_CC=$CC
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 $ac_c_conftest_c99_program
4559 _ACEOF
4560 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4561 do
4562 CC="$ac_save_CC $ac_arg"
4563 if ac_fn_c_try_compile "$LINENO"
4564 then :
4565 ac_cv_prog_cc_c99=$ac_arg
4566 fi
4567 rm -f core conftest.err conftest.$ac_objext conftest.beam
4568 test "x$ac_cv_prog_cc_c99" != "xno" && break
4569 done
4570 rm -f conftest.$ac_ext
4571 CC=$ac_save_CC
4572 fi
4573
4574 if test "x$ac_cv_prog_cc_c99" = xno
4575 then :
4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4577 printf "%s\n" "unsupported" >&6; }
4578 else $as_nop
4579 if test "x$ac_cv_prog_cc_c99" = x
4580 then :
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4582 printf "%s\n" "none needed" >&6; }
4583 else $as_nop
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4585 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4586 CC="$CC $ac_cv_prog_cc_c99"
4587 fi
4588 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4589 ac_prog_cc_stdc=c99
4590 fi
4591 fi
4592 if test x$ac_prog_cc_stdc = xno
4593 then :
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4595 printf %s "checking for $CC option to enable C89 features... " >&6; }
4596 if test ${ac_cv_prog_cc_c89+y}
4597 then :
4598 printf %s "(cached) " >&6
4599 else $as_nop
4600 ac_cv_prog_cc_c89=no
4601 ac_save_CC=$CC
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604 $ac_c_conftest_c89_program
4605 _ACEOF
4606 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4607 do
4608 CC="$ac_save_CC $ac_arg"
4609 if ac_fn_c_try_compile "$LINENO"
4610 then :
4611 ac_cv_prog_cc_c89=$ac_arg
4612 fi
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam
4614 test "x$ac_cv_prog_cc_c89" != "xno" && break
4615 done
4616 rm -f conftest.$ac_ext
4617 CC=$ac_save_CC
4618 fi
4619
4620 if test "x$ac_cv_prog_cc_c89" = xno
4621 then :
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4623 printf "%s\n" "unsupported" >&6; }
4624 else $as_nop
4625 if test "x$ac_cv_prog_cc_c89" = x
4626 then :
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4628 printf "%s\n" "none needed" >&6; }
4629 else $as_nop
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4631 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4632 CC="$CC $ac_cv_prog_cc_c89"
4633 fi
4634 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4635 ac_prog_cc_stdc=c89
4636 fi
4637 fi
4638
4639 ac_ext=c
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4644
4645
4646 ac_ext=c
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4652 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4653 if test ${am_cv_prog_cc_c_o+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else $as_nop
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659
4660 int
4661 main (void)
4662 {
4663
4664 ;
4665 return 0;
4666 }
4667 _ACEOF
4668 # Make sure it works both with $CC and with simple cc.
4669 # Following AC_PROG_CC_C_O, we do the test twice because some
4670 # compilers refuse to overwrite an existing .o file with -o,
4671 # though they will create one.
4672 am_cv_prog_cc_c_o=yes
4673 for am_i in 1 2; do
4674 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4675 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4676 ac_status=$?
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } \
4679 && test -f conftest2.$ac_objext; then
4680 : OK
4681 else
4682 am_cv_prog_cc_c_o=no
4683 break
4684 fi
4685 done
4686 rm -f core conftest*
4687 unset am_i
4688 fi
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4690 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4691 if test "$am_cv_prog_cc_c_o" != yes; then
4692 # Losing compiler, so override with the script.
4693 # FIXME: It is wrong to rewrite CC.
4694 # But if we don't then we get into trouble of one sort or another.
4695 # A longer-term fix would be to have automake use am__CC in this case,
4696 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4697 CC="$am_aux_dir/compile $CC"
4698 fi
4699 ac_ext=c
4700 ac_cpp='$CPP $CPPFLAGS'
4701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4704
4705 DEPDIR="${am__leading_dot}deps"
4706
4707 ac_config_commands="$ac_config_commands depfiles"
4708
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4710 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4711 cat > confinc.mk << 'END'
4712 am__doit:
4713 @echo this is the am__doit target >confinc.out
4714 .PHONY: am__doit
4715 END
4716 am__include="#"
4717 am__quote=
4718 # BSD make does it like this.
4719 echo '.include "confinc.mk" # ignored' > confmf.BSD
4720 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4721 echo 'include confinc.mk # ignored' > confmf.GNU
4722 _am_result=no
4723 for s in GNU BSD; do
4724 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4725 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }
4729 case $?:`cat confinc.out 2>/dev/null` in #(
4730 '0:this is the am__doit target') :
4731 case $s in #(
4732 BSD) :
4733 am__include='.include' am__quote='"' ;; #(
4734 *) :
4735 am__include='include' am__quote='' ;;
4736 esac ;; #(
4737 *) :
4738 ;;
4739 esac
4740 if test "$am__include" != "#"; then
4741 _am_result="yes ($s style)"
4742 break
4743 fi
4744 done
4745 rm -f confinc.* confmf.*
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4747 printf "%s\n" "${_am_result}" >&6; }
4748
4749 # Check whether --enable-dependency-tracking was given.
4750 if test ${enable_dependency_tracking+y}
4751 then :
4752 enableval=$enable_dependency_tracking;
4753 fi
4754
4755 if test "x$enable_dependency_tracking" != xno; then
4756 am_depcomp="$ac_aux_dir/depcomp"
4757 AMDEPBACKSLASH='\'
4758 am__nodep='_no'
4759 fi
4760 if test "x$enable_dependency_tracking" != xno; then
4761 AMDEP_TRUE=
4762 AMDEP_FALSE='#'
4763 else
4764 AMDEP_TRUE='#'
4765 AMDEP_FALSE=
4766 fi
4767
4768
4769
4770 depcc="$CC" am_compiler_list=
4771
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4773 printf %s "checking dependency style of $depcc... " >&6; }
4774 if test ${am_cv_CC_dependencies_compiler_type+y}
4775 then :
4776 printf %s "(cached) " >&6
4777 else $as_nop
4778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4779 # We make a subdir and do the tests there. Otherwise we can end up
4780 # making bogus files that we don't know about and never remove. For
4781 # instance it was reported that on HP-UX the gcc test will end up
4782 # making a dummy file named 'D' -- because '-MD' means "put the output
4783 # in D".
4784 rm -rf conftest.dir
4785 mkdir conftest.dir
4786 # Copy depcomp to subdir because otherwise we won't find it if we're
4787 # using a relative directory.
4788 cp "$am_depcomp" conftest.dir
4789 cd conftest.dir
4790 # We will build objects and dependencies in a subdirectory because
4791 # it helps to detect inapplicable dependency modes. For instance
4792 # both Tru64's cc and ICC support -MD to output dependencies as a
4793 # side effect of compilation, but ICC will put the dependencies in
4794 # the current directory while Tru64 will put them in the object
4795 # directory.
4796 mkdir sub
4797
4798 am_cv_CC_dependencies_compiler_type=none
4799 if test "$am_compiler_list" = ""; then
4800 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4801 fi
4802 am__universal=false
4803 case " $depcc " in #(
4804 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4805 esac
4806
4807 for depmode in $am_compiler_list; do
4808 # Setup a source with many dependencies, because some compilers
4809 # like to wrap large dependency lists on column 80 (with \), and
4810 # we should not choose a depcomp mode which is confused by this.
4811 #
4812 # We need to recreate these files for each test, as the compiler may
4813 # overwrite some of them when testing with obscure command lines.
4814 # This happens at least with the AIX C compiler.
4815 : > sub/conftest.c
4816 for i in 1 2 3 4 5 6; do
4817 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4818 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4819 # Solaris 10 /bin/sh.
4820 echo '/* dummy */' > sub/conftst$i.h
4821 done
4822 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4823
4824 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4825 # mode. It turns out that the SunPro C++ compiler does not properly
4826 # handle '-M -o', and we need to detect this. Also, some Intel
4827 # versions had trouble with output in subdirs.
4828 am__obj=sub/conftest.${OBJEXT-o}
4829 am__minus_obj="-o $am__obj"
4830 case $depmode in
4831 gcc)
4832 # This depmode causes a compiler race in universal mode.
4833 test "$am__universal" = false || continue
4834 ;;
4835 nosideeffect)
4836 # After this tag, mechanisms are not by side-effect, so they'll
4837 # only be used when explicitly requested.
4838 if test "x$enable_dependency_tracking" = xyes; then
4839 continue
4840 else
4841 break
4842 fi
4843 ;;
4844 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4845 # This compiler won't grok '-c -o', but also, the minuso test has
4846 # not run yet. These depmodes are late enough in the game, and
4847 # so weak that their functioning should not be impacted.
4848 am__obj=conftest.${OBJEXT-o}
4849 am__minus_obj=
4850 ;;
4851 none) break ;;
4852 esac
4853 if depmode=$depmode \
4854 source=sub/conftest.c object=$am__obj \
4855 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4856 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4857 >/dev/null 2>conftest.err &&
4858 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4859 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4860 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4861 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4862 # icc doesn't choke on unknown options, it will just issue warnings
4863 # or remarks (even with -Werror). So we grep stderr for any message
4864 # that says an option was ignored or not supported.
4865 # When given -MP, icc 7.0 and 7.1 complain thusly:
4866 # icc: Command line warning: ignoring option '-M'; no argument required
4867 # The diagnosis changed in icc 8.0:
4868 # icc: Command line remark: option '-MP' not supported
4869 if (grep 'ignoring option' conftest.err ||
4870 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4871 am_cv_CC_dependencies_compiler_type=$depmode
4872 break
4873 fi
4874 fi
4875 done
4876
4877 cd ..
4878 rm -rf conftest.dir
4879 else
4880 am_cv_CC_dependencies_compiler_type=none
4881 fi
4882
4883 fi
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4885 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4886 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4887
4888 if
4889 test "x$enable_dependency_tracking" != xno \
4890 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4891 am__fastdepCC_TRUE=
4892 am__fastdepCC_FALSE='#'
4893 else
4894 am__fastdepCC_TRUE='#'
4895 am__fastdepCC_FALSE=
4896 fi
4897
4898
4899
4900 ac_header= ac_cache=
4901 for ac_item in $ac_header_c_list
4902 do
4903 if test $ac_cache; then
4904 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4905 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4906 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4907 fi
4908 ac_header= ac_cache=
4909 elif test $ac_header; then
4910 ac_cache=$ac_item
4911 else
4912 ac_header=$ac_item
4913 fi
4914 done
4915
4916
4917
4918
4919
4920
4921
4922
4923 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4924 then :
4925
4926 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4927
4928 fi
4929
4930
4931
4932
4933
4934
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4936 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4937 if test ${ac_cv_safe_to_define___extensions__+y}
4938 then :
4939 printf %s "(cached) " >&6
4940 else $as_nop
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 # define __EXTENSIONS__ 1
4945 $ac_includes_default
4946 int
4947 main (void)
4948 {
4949
4950 ;
4951 return 0;
4952 }
4953 _ACEOF
4954 if ac_fn_c_try_compile "$LINENO"
4955 then :
4956 ac_cv_safe_to_define___extensions__=yes
4957 else $as_nop
4958 ac_cv_safe_to_define___extensions__=no
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4961 fi
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4963 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4964
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4966 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4967 if test ${ac_cv_should_define__xopen_source+y}
4968 then :
4969 printf %s "(cached) " >&6
4970 else $as_nop
4971 ac_cv_should_define__xopen_source=no
4972 if test $ac_cv_header_wchar_h = yes
4973 then :
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976
4977 #include <wchar.h>
4978 mbstate_t x;
4979 int
4980 main (void)
4981 {
4982
4983 ;
4984 return 0;
4985 }
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"
4988 then :
4989
4990 else $as_nop
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993
4994 #define _XOPEN_SOURCE 500
4995 #include <wchar.h>
4996 mbstate_t x;
4997 int
4998 main (void)
4999 {
5000
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"
5006 then :
5007 ac_cv_should_define__xopen_source=yes
5008 fi
5009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5010 fi
5011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5012 fi
5013 fi
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5015 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5016
5017 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5018
5019 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5020
5021 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5022
5023 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5024
5025 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5026
5027 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5028
5029 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5030
5031 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5032
5033 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5034
5035 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5036
5037 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5038
5039 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5040
5041 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5042
5043 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5044
5045 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5046
5047 if test $ac_cv_header_minix_config_h = yes
5048 then :
5049 MINIX=yes
5050 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5051
5052 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5053
5054 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5055
5056 else $as_nop
5057 MINIX=
5058 fi
5059 if test $ac_cv_safe_to_define___extensions__ = yes
5060 then :
5061 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5062
5063 fi
5064 if test $ac_cv_should_define__xopen_source = yes
5065 then :
5066 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5067
5068 fi
5069
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler is Clang" >&5
5071 printf %s "checking if the compiler is Clang... " >&6; }
5072 if test ${rra_cv_prog_cc_clang+y}
5073 then :
5074 printf %s "(cached) " >&6
5075 else $as_nop
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078
5079 #if ! __clang__
5080 #error
5081 #endif
5082
5083 _ACEOF
5084 if ac_fn_c_try_compile "$LINENO"
5085 then :
5086 rra_cv_prog_cc_clang=yes
5087 else $as_nop
5088 rra_cv_prog_cc_clang=no
5089 fi
5090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5091 fi
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_prog_cc_clang" >&5
5093 printf "%s\n" "$rra_cv_prog_cc_clang" >&6; }
5094 if test x"$rra_cv_prog_cc_clang" = xyes
5095 then :
5096 CLANG=yes
5097 fi
5098
5099 if test x"$CLANG" = xyes
5100 then :
5101 WARNINGS_CFLAGS="-Werror"
5102
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Weverything" >&5
5104 printf %s "checking if $CC supports -Weverything... " >&6; }
5105 if test ${rra_cv_compiler_c__Weverything+y}
5106 then :
5107 printf %s "(cached) " >&6
5108 else $as_nop
5109 save_CFLAGS=$CFLAGS
5110 case -Weverything in #(
5111 -Wno-*) :
5112 CFLAGS="$CFLAGS `printf "%s\n" "-Weverything" | sed 's/-Wno-/-W/'`" ;; #(
5113 *) :
5114 CFLAGS="$CFLAGS -Weverything" ;; #(
5115 *) :
5116 ;;
5117 esac
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120
5121 int
5122 main (void)
5123 {
5124 int foo = 0;
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"
5130 then :
5131 rra_cv_compiler_c__Weverything=yes
5132 else $as_nop
5133 rra_cv_compiler_c__Weverything=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5136 CFLAGS=$save_CFLAGS
5137 fi
5138
5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Weverything" >&5
5140 printf "%s\n" "$rra_cv_compiler_c__Weverything" >&6; }
5141 if test x"$rra_cv_compiler_c__Weverything" = xyes
5142 then :
5143 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Weverything"
5144 fi
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5
5146 printf %s "checking if $CC supports -Wno-cast-qual... " >&6; }
5147 if test ${rra_cv_compiler_c__Wno_cast_qual+y}
5148 then :
5149 printf %s "(cached) " >&6
5150 else $as_nop
5151 save_CFLAGS=$CFLAGS
5152 case -Wno-cast-qual in #(
5153 -Wno-*) :
5154 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-cast-qual" | sed 's/-Wno-/-W/'`" ;; #(
5155 *) :
5156 CFLAGS="$CFLAGS -Wno-cast-qual" ;; #(
5157 *) :
5158 ;;
5159 esac
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162
5163 int
5164 main (void)
5165 {
5166 int foo = 0;
5167 ;
5168 return 0;
5169 }
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"
5172 then :
5173 rra_cv_compiler_c__Wno_cast_qual=yes
5174 else $as_nop
5175 rra_cv_compiler_c__Wno_cast_qual=no
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5178 CFLAGS=$save_CFLAGS
5179 fi
5180
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_cast_qual" >&5
5182 printf "%s\n" "$rra_cv_compiler_c__Wno_cast_qual" >&6; }
5183 if test x"$rra_cv_compiler_c__Wno_cast_qual" = xyes
5184 then :
5185 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-cast-qual"
5186 fi
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-disabled-macro-expansion" >&5
5188 printf %s "checking if $CC supports -Wno-disabled-macro-expansion... " >&6; }
5189 if test ${rra_cv_compiler_c__Wno_disabled_macro_expansion+y}
5190 then :
5191 printf %s "(cached) " >&6
5192 else $as_nop
5193 save_CFLAGS=$CFLAGS
5194 case -Wno-disabled-macro-expansion in #(
5195 -Wno-*) :
5196 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-disabled-macro-expansion" | sed 's/-Wno-/-W/'`" ;; #(
5197 *) :
5198 CFLAGS="$CFLAGS -Wno-disabled-macro-expansion" ;; #(
5199 *) :
5200 ;;
5201 esac
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204
5205 int
5206 main (void)
5207 {
5208 int foo = 0;
5209 ;
5210 return 0;
5211 }
5212 _ACEOF
5213 if ac_fn_c_try_compile "$LINENO"
5214 then :
5215 rra_cv_compiler_c__Wno_disabled_macro_expansion=yes
5216 else $as_nop
5217 rra_cv_compiler_c__Wno_disabled_macro_expansion=no
5218 fi
5219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5220 CFLAGS=$save_CFLAGS
5221 fi
5222
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_disabled_macro_expansion" >&5
5224 printf "%s\n" "$rra_cv_compiler_c__Wno_disabled_macro_expansion" >&6; }
5225 if test x"$rra_cv_compiler_c__Wno_disabled_macro_expansion" = xyes
5226 then :
5227 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-disabled-macro-expansion"
5228 fi
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-padded" >&5
5230 printf %s "checking if $CC supports -Wno-padded... " >&6; }
5231 if test ${rra_cv_compiler_c__Wno_padded+y}
5232 then :
5233 printf %s "(cached) " >&6
5234 else $as_nop
5235 save_CFLAGS=$CFLAGS
5236 case -Wno-padded in #(
5237 -Wno-*) :
5238 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-padded" | sed 's/-Wno-/-W/'`" ;; #(
5239 *) :
5240 CFLAGS="$CFLAGS -Wno-padded" ;; #(
5241 *) :
5242 ;;
5243 esac
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246
5247 int
5248 main (void)
5249 {
5250 int foo = 0;
5251 ;
5252 return 0;
5253 }
5254 _ACEOF
5255 if ac_fn_c_try_compile "$LINENO"
5256 then :
5257 rra_cv_compiler_c__Wno_padded=yes
5258 else $as_nop
5259 rra_cv_compiler_c__Wno_padded=no
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5262 CFLAGS=$save_CFLAGS
5263 fi
5264
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_padded" >&5
5266 printf "%s\n" "$rra_cv_compiler_c__Wno_padded" >&6; }
5267 if test x"$rra_cv_compiler_c__Wno_padded" = xyes
5268 then :
5269 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-padded"
5270 fi
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5
5272 printf %s "checking if $CC supports -Wno-sign-conversion... " >&6; }
5273 if test ${rra_cv_compiler_c__Wno_sign_conversion+y}
5274 then :
5275 printf %s "(cached) " >&6
5276 else $as_nop
5277 save_CFLAGS=$CFLAGS
5278 case -Wno-sign-conversion in #(
5279 -Wno-*) :
5280 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #(
5281 *) :
5282 CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #(
5283 *) :
5284 ;;
5285 esac
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288
5289 int
5290 main (void)
5291 {
5292 int foo = 0;
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"
5298 then :
5299 rra_cv_compiler_c__Wno_sign_conversion=yes
5300 else $as_nop
5301 rra_cv_compiler_c__Wno_sign_conversion=no
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5304 CFLAGS=$save_CFLAGS
5305 fi
5306
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5
5308 printf "%s\n" "$rra_cv_compiler_c__Wno_sign_conversion" >&6; }
5309 if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes
5310 then :
5311 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion"
5312 fi
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-reserved-id-macro" >&5
5314 printf %s "checking if $CC supports -Wno-reserved-id-macro... " >&6; }
5315 if test ${rra_cv_compiler_c__Wno_reserved_id_macro+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 save_CFLAGS=$CFLAGS
5320 case -Wno-reserved-id-macro in #(
5321 -Wno-*) :
5322 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-reserved-id-macro" | sed 's/-Wno-/-W/'`" ;; #(
5323 *) :
5324 CFLAGS="$CFLAGS -Wno-reserved-id-macro" ;; #(
5325 *) :
5326 ;;
5327 esac
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5330
5331 int
5332 main (void)
5333 {
5334 int foo = 0;
5335 ;
5336 return 0;
5337 }
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"
5340 then :
5341 rra_cv_compiler_c__Wno_reserved_id_macro=yes
5342 else $as_nop
5343 rra_cv_compiler_c__Wno_reserved_id_macro=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5346 CFLAGS=$save_CFLAGS
5347 fi
5348
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_reserved_id_macro" >&5
5350 printf "%s\n" "$rra_cv_compiler_c__Wno_reserved_id_macro" >&6; }
5351 if test x"$rra_cv_compiler_c__Wno_reserved_id_macro" = xyes
5352 then :
5353 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-reserved-id-macro"
5354 fi
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-tautological-pointer-compare" >&5
5356 printf %s "checking if $CC supports -Wno-tautological-pointer-compare... " >&6; }
5357 if test ${rra_cv_compiler_c__Wno_tautological_pointer_compare+y}
5358 then :
5359 printf %s "(cached) " >&6
5360 else $as_nop
5361 save_CFLAGS=$CFLAGS
5362 case -Wno-tautological-pointer-compare in #(
5363 -Wno-*) :
5364 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-tautological-pointer-compare" | sed 's/-Wno-/-W/'`" ;; #(
5365 *) :
5366 CFLAGS="$CFLAGS -Wno-tautological-pointer-compare" ;; #(
5367 *) :
5368 ;;
5369 esac
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372
5373 int
5374 main (void)
5375 {
5376 int foo = 0;
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"
5382 then :
5383 rra_cv_compiler_c__Wno_tautological_pointer_compare=yes
5384 else $as_nop
5385 rra_cv_compiler_c__Wno_tautological_pointer_compare=no
5386 fi
5387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5388 CFLAGS=$save_CFLAGS
5389 fi
5390
5391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_tautological_pointer_compare" >&5
5392 printf "%s\n" "$rra_cv_compiler_c__Wno_tautological_pointer_compare" >&6; }
5393 if test x"$rra_cv_compiler_c__Wno_tautological_pointer_compare" = xyes
5394 then :
5395 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-tautological-pointer-compare"
5396 fi
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-undef" >&5
5398 printf %s "checking if $CC supports -Wno-undef... " >&6; }
5399 if test ${rra_cv_compiler_c__Wno_undef+y}
5400 then :
5401 printf %s "(cached) " >&6
5402 else $as_nop
5403 save_CFLAGS=$CFLAGS
5404 case -Wno-undef in #(
5405 -Wno-*) :
5406 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-undef" | sed 's/-Wno-/-W/'`" ;; #(
5407 *) :
5408 CFLAGS="$CFLAGS -Wno-undef" ;; #(
5409 *) :
5410 ;;
5411 esac
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414
5415 int
5416 main (void)
5417 {
5418 int foo = 0;
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"
5424 then :
5425 rra_cv_compiler_c__Wno_undef=yes
5426 else $as_nop
5427 rra_cv_compiler_c__Wno_undef=no
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5430 CFLAGS=$save_CFLAGS
5431 fi
5432
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_undef" >&5
5434 printf "%s\n" "$rra_cv_compiler_c__Wno_undef" >&6; }
5435 if test x"$rra_cv_compiler_c__Wno_undef" = xyes
5436 then :
5437 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-undef"
5438 fi
5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code" >&5
5440 printf %s "checking if $CC supports -Wno-unreachable-code... " >&6; }
5441 if test ${rra_cv_compiler_c__Wno_unreachable_code+y}
5442 then :
5443 printf %s "(cached) " >&6
5444 else $as_nop
5445 save_CFLAGS=$CFLAGS
5446 case -Wno-unreachable-code in #(
5447 -Wno-*) :
5448 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-unreachable-code" | sed 's/-Wno-/-W/'`" ;; #(
5449 *) :
5450 CFLAGS="$CFLAGS -Wno-unreachable-code" ;; #(
5451 *) :
5452 ;;
5453 esac
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5456
5457 int
5458 main (void)
5459 {
5460 int foo = 0;
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 if ac_fn_c_try_compile "$LINENO"
5466 then :
5467 rra_cv_compiler_c__Wno_unreachable_code=yes
5468 else $as_nop
5469 rra_cv_compiler_c__Wno_unreachable_code=no
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5472 CFLAGS=$save_CFLAGS
5473 fi
5474
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code" >&5
5476 printf "%s\n" "$rra_cv_compiler_c__Wno_unreachable_code" >&6; }
5477 if test x"$rra_cv_compiler_c__Wno_unreachable_code" = xyes
5478 then :
5479 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code"
5480 fi
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code-return" >&5
5482 printf %s "checking if $CC supports -Wno-unreachable-code-return... " >&6; }
5483 if test ${rra_cv_compiler_c__Wno_unreachable_code_return+y}
5484 then :
5485 printf %s "(cached) " >&6
5486 else $as_nop
5487 save_CFLAGS=$CFLAGS
5488 case -Wno-unreachable-code-return in #(
5489 -Wno-*) :
5490 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-unreachable-code-return" | sed 's/-Wno-/-W/'`" ;; #(
5491 *) :
5492 CFLAGS="$CFLAGS -Wno-unreachable-code-return" ;; #(
5493 *) :
5494 ;;
5495 esac
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498
5499 int
5500 main (void)
5501 {
5502 int foo = 0;
5503 ;
5504 return 0;
5505 }
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"
5508 then :
5509 rra_cv_compiler_c__Wno_unreachable_code_return=yes
5510 else $as_nop
5511 rra_cv_compiler_c__Wno_unreachable_code_return=no
5512 fi
5513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5514 CFLAGS=$save_CFLAGS
5515 fi
5516
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code_return" >&5
5518 printf "%s\n" "$rra_cv_compiler_c__Wno_unreachable_code_return" >&6; }
5519 if test x"$rra_cv_compiler_c__Wno_unreachable_code_return" = xyes
5520 then :
5521 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code-return"
5522 fi
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-macros" >&5
5524 printf %s "checking if $CC supports -Wno-unused-macros... " >&6; }
5525 if test ${rra_cv_compiler_c__Wno_unused_macros+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else $as_nop
5529 save_CFLAGS=$CFLAGS
5530 case -Wno-unused-macros in #(
5531 -Wno-*) :
5532 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-unused-macros" | sed 's/-Wno-/-W/'`" ;; #(
5533 *) :
5534 CFLAGS="$CFLAGS -Wno-unused-macros" ;; #(
5535 *) :
5536 ;;
5537 esac
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5540
5541 int
5542 main (void)
5543 {
5544 int foo = 0;
5545 ;
5546 return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"
5550 then :
5551 rra_cv_compiler_c__Wno_unused_macros=yes
5552 else $as_nop
5553 rra_cv_compiler_c__Wno_unused_macros=no
5554 fi
5555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5556 CFLAGS=$save_CFLAGS
5557 fi
5558
5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unused_macros" >&5
5560 printf "%s\n" "$rra_cv_compiler_c__Wno_unused_macros" >&6; }
5561 if test x"$rra_cv_compiler_c__Wno_unused_macros" = xyes
5562 then :
5563 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unused-macros"
5564 fi
5565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-used-but-marked-unused" >&5
5566 printf %s "checking if $CC supports -Wno-used-but-marked-unused... " >&6; }
5567 if test ${rra_cv_compiler_c__Wno_used_but_marked_unused+y}
5568 then :
5569 printf %s "(cached) " >&6
5570 else $as_nop
5571 save_CFLAGS=$CFLAGS
5572 case -Wno-used-but-marked-unused in #(
5573 -Wno-*) :
5574 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-used-but-marked-unused" | sed 's/-Wno-/-W/'`" ;; #(
5575 *) :
5576 CFLAGS="$CFLAGS -Wno-used-but-marked-unused" ;; #(
5577 *) :
5578 ;;
5579 esac
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582
5583 int
5584 main (void)
5585 {
5586 int foo = 0;
5587 ;
5588 return 0;
5589 }
5590 _ACEOF
5591 if ac_fn_c_try_compile "$LINENO"
5592 then :
5593 rra_cv_compiler_c__Wno_used_but_marked_unused=yes
5594 else $as_nop
5595 rra_cv_compiler_c__Wno_used_but_marked_unused=no
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5598 CFLAGS=$save_CFLAGS
5599 fi
5600
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_used_but_marked_unused" >&5
5602 printf "%s\n" "$rra_cv_compiler_c__Wno_used_but_marked_unused" >&6; }
5603 if test x"$rra_cv_compiler_c__Wno_used_but_marked_unused" = xyes
5604 then :
5605 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-used-but-marked-unused"
5606 fi
5607 else $as_nop
5608 WARNINGS_CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2 -Werror"
5609
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow" >&5
5611 printf %s "checking if $CC supports -fstrict-overflow... " >&6; }
5612 if test ${rra_cv_compiler_c__fstrict_overflow+y}
5613 then :
5614 printf %s "(cached) " >&6
5615 else $as_nop
5616 save_CFLAGS=$CFLAGS
5617 case -fstrict-overflow in #(
5618 -Wno-*) :
5619 CFLAGS="$CFLAGS `printf "%s\n" "-fstrict-overflow" | sed 's/-Wno-/-W/'`" ;; #(
5620 *) :
5621 CFLAGS="$CFLAGS -fstrict-overflow" ;; #(
5622 *) :
5623 ;;
5624 esac
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5627
5628 int
5629 main (void)
5630 {
5631 int foo = 0;
5632 ;
5633 return 0;
5634 }
5635 _ACEOF
5636 if ac_fn_c_try_compile "$LINENO"
5637 then :
5638 rra_cv_compiler_c__fstrict_overflow=yes
5639 else $as_nop
5640 rra_cv_compiler_c__fstrict_overflow=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5643 CFLAGS=$save_CFLAGS
5644 fi
5645
5646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_overflow" >&5
5647 printf "%s\n" "$rra_cv_compiler_c__fstrict_overflow" >&6; }
5648 if test x"$rra_cv_compiler_c__fstrict_overflow" = xyes
5649 then :
5650 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-overflow"
5651 fi
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-aliasing" >&5
5653 printf %s "checking if $CC supports -fstrict-aliasing... " >&6; }
5654 if test ${rra_cv_compiler_c__fstrict_aliasing+y}
5655 then :
5656 printf %s "(cached) " >&6
5657 else $as_nop
5658 save_CFLAGS=$CFLAGS
5659 case -fstrict-aliasing in #(
5660 -Wno-*) :
5661 CFLAGS="$CFLAGS `printf "%s\n" "-fstrict-aliasing" | sed 's/-Wno-/-W/'`" ;; #(
5662 *) :
5663 CFLAGS="$CFLAGS -fstrict-aliasing" ;; #(
5664 *) :
5665 ;;
5666 esac
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669
5670 int
5671 main (void)
5672 {
5673 int foo = 0;
5674 ;
5675 return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"
5679 then :
5680 rra_cv_compiler_c__fstrict_aliasing=yes
5681 else $as_nop
5682 rra_cv_compiler_c__fstrict_aliasing=no
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5685 CFLAGS=$save_CFLAGS
5686 fi
5687
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_aliasing" >&5
5689 printf "%s\n" "$rra_cv_compiler_c__fstrict_aliasing" >&6; }
5690 if test x"$rra_cv_compiler_c__fstrict_aliasing" = xyes
5691 then :
5692 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-aliasing"
5693 fi
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5695 printf %s "checking if $CC supports -Wall... " >&6; }
5696 if test ${rra_cv_compiler_c__Wall+y}
5697 then :
5698 printf %s "(cached) " >&6
5699 else $as_nop
5700 save_CFLAGS=$CFLAGS
5701 case -Wall in #(
5702 -Wno-*) :
5703 CFLAGS="$CFLAGS `printf "%s\n" "-Wall" | sed 's/-Wno-/-W/'`" ;; #(
5704 *) :
5705 CFLAGS="$CFLAGS -Wall" ;; #(
5706 *) :
5707 ;;
5708 esac
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5711
5712 int
5713 main (void)
5714 {
5715 int foo = 0;
5716 ;
5717 return 0;
5718 }
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"
5721 then :
5722 rra_cv_compiler_c__Wall=yes
5723 else $as_nop
5724 rra_cv_compiler_c__Wall=no
5725 fi
5726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5727 CFLAGS=$save_CFLAGS
5728 fi
5729
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wall" >&5
5731 printf "%s\n" "$rra_cv_compiler_c__Wall" >&6; }
5732 if test x"$rra_cv_compiler_c__Wall" = xyes
5733 then :
5734 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wall"
5735 fi
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wextra" >&5
5737 printf %s "checking if $CC supports -Wextra... " >&6; }
5738 if test ${rra_cv_compiler_c__Wextra+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else $as_nop
5742 save_CFLAGS=$CFLAGS
5743 case -Wextra in #(
5744 -Wno-*) :
5745 CFLAGS="$CFLAGS `printf "%s\n" "-Wextra" | sed 's/-Wno-/-W/'`" ;; #(
5746 *) :
5747 CFLAGS="$CFLAGS -Wextra" ;; #(
5748 *) :
5749 ;;
5750 esac
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753
5754 int
5755 main (void)
5756 {
5757 int foo = 0;
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"
5763 then :
5764 rra_cv_compiler_c__Wextra=yes
5765 else $as_nop
5766 rra_cv_compiler_c__Wextra=no
5767 fi
5768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5769 CFLAGS=$save_CFLAGS
5770 fi
5771
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wextra" >&5
5773 printf "%s\n" "$rra_cv_compiler_c__Wextra" >&6; }
5774 if test x"$rra_cv_compiler_c__Wextra" = xyes
5775 then :
5776 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wextra"
5777 fi
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5779 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5780 if test ${rra_cv_compiler_c__Wformat_2+y}
5781 then :
5782 printf %s "(cached) " >&6
5783 else $as_nop
5784 save_CFLAGS=$CFLAGS
5785 case -Wformat=2 in #(
5786 -Wno-*) :
5787 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat=2" | sed 's/-Wno-/-W/'`" ;; #(
5788 *) :
5789 CFLAGS="$CFLAGS -Wformat=2" ;; #(
5790 *) :
5791 ;;
5792 esac
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795
5796 int
5797 main (void)
5798 {
5799 int foo = 0;
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_c_try_compile "$LINENO"
5805 then :
5806 rra_cv_compiler_c__Wformat_2=yes
5807 else $as_nop
5808 rra_cv_compiler_c__Wformat_2=no
5809 fi
5810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5811 CFLAGS=$save_CFLAGS
5812 fi
5813
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_2" >&5
5815 printf "%s\n" "$rra_cv_compiler_c__Wformat_2" >&6; }
5816 if test x"$rra_cv_compiler_c__Wformat_2" = xyes
5817 then :
5818 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat=2"
5819 fi
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-overflow=2" >&5
5821 printf %s "checking if $CC supports -Wformat-overflow=2... " >&6; }
5822 if test ${rra_cv_compiler_c__Wformat_overflow_2+y}
5823 then :
5824 printf %s "(cached) " >&6
5825 else $as_nop
5826 save_CFLAGS=$CFLAGS
5827 case -Wformat-overflow=2 in #(
5828 -Wno-*) :
5829 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat-overflow=2" | sed 's/-Wno-/-W/'`" ;; #(
5830 *) :
5831 CFLAGS="$CFLAGS -Wformat-overflow=2" ;; #(
5832 *) :
5833 ;;
5834 esac
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837
5838 int
5839 main (void)
5840 {
5841 int foo = 0;
5842 ;
5843 return 0;
5844 }
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"
5847 then :
5848 rra_cv_compiler_c__Wformat_overflow_2=yes
5849 else $as_nop
5850 rra_cv_compiler_c__Wformat_overflow_2=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5853 CFLAGS=$save_CFLAGS
5854 fi
5855
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_overflow_2" >&5
5857 printf "%s\n" "$rra_cv_compiler_c__Wformat_overflow_2" >&6; }
5858 if test x"$rra_cv_compiler_c__Wformat_overflow_2" = xyes
5859 then :
5860 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-overflow=2"
5861 fi
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-signedness" >&5
5863 printf %s "checking if $CC supports -Wformat-signedness... " >&6; }
5864 if test ${rra_cv_compiler_c__Wformat_signedness+y}
5865 then :
5866 printf %s "(cached) " >&6
5867 else $as_nop
5868 save_CFLAGS=$CFLAGS
5869 case -Wformat-signedness in #(
5870 -Wno-*) :
5871 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat-signedness" | sed 's/-Wno-/-W/'`" ;; #(
5872 *) :
5873 CFLAGS="$CFLAGS -Wformat-signedness" ;; #(
5874 *) :
5875 ;;
5876 esac
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879
5880 int
5881 main (void)
5882 {
5883 int foo = 0;
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_compile "$LINENO"
5889 then :
5890 rra_cv_compiler_c__Wformat_signedness=yes
5891 else $as_nop
5892 rra_cv_compiler_c__Wformat_signedness=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5895 CFLAGS=$save_CFLAGS
5896 fi
5897
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_signedness" >&5
5899 printf "%s\n" "$rra_cv_compiler_c__Wformat_signedness" >&6; }
5900 if test x"$rra_cv_compiler_c__Wformat_signedness" = xyes
5901 then :
5902 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-signedness"
5903 fi
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-truncation=2" >&5
5905 printf %s "checking if $CC supports -Wformat-truncation=2... " >&6; }
5906 if test ${rra_cv_compiler_c__Wformat_truncation_2+y}
5907 then :
5908 printf %s "(cached) " >&6
5909 else $as_nop
5910 save_CFLAGS=$CFLAGS
5911 case -Wformat-truncation=2 in #(
5912 -Wno-*) :
5913 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat-truncation=2" | sed 's/-Wno-/-W/'`" ;; #(
5914 *) :
5915 CFLAGS="$CFLAGS -Wformat-truncation=2" ;; #(
5916 *) :
5917 ;;
5918 esac
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921
5922 int
5923 main (void)
5924 {
5925 int foo = 0;
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 if ac_fn_c_try_compile "$LINENO"
5931 then :
5932 rra_cv_compiler_c__Wformat_truncation_2=yes
5933 else $as_nop
5934 rra_cv_compiler_c__Wformat_truncation_2=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5937 CFLAGS=$save_CFLAGS
5938 fi
5939
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_truncation_2" >&5
5941 printf "%s\n" "$rra_cv_compiler_c__Wformat_truncation_2" >&6; }
5942 if test x"$rra_cv_compiler_c__Wformat_truncation_2" = xyes
5943 then :
5944 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-truncation=2"
5945 fi
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnull-dereference" >&5
5947 printf %s "checking if $CC supports -Wnull-dereference... " >&6; }
5948 if test ${rra_cv_compiler_c__Wnull_dereference+y}
5949 then :
5950 printf %s "(cached) " >&6
5951 else $as_nop
5952 save_CFLAGS=$CFLAGS
5953 case -Wnull-dereference in #(
5954 -Wno-*) :
5955 CFLAGS="$CFLAGS `printf "%s\n" "-Wnull-dereference" | sed 's/-Wno-/-W/'`" ;; #(
5956 *) :
5957 CFLAGS="$CFLAGS -Wnull-dereference" ;; #(
5958 *) :
5959 ;;
5960 esac
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963
5964 int
5965 main (void)
5966 {
5967 int foo = 0;
5968 ;
5969 return 0;
5970 }
5971 _ACEOF
5972 if ac_fn_c_try_compile "$LINENO"
5973 then :
5974 rra_cv_compiler_c__Wnull_dereference=yes
5975 else $as_nop
5976 rra_cv_compiler_c__Wnull_dereference=no
5977 fi
5978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5979 CFLAGS=$save_CFLAGS
5980 fi
5981
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnull_dereference" >&5
5983 printf "%s\n" "$rra_cv_compiler_c__Wnull_dereference" >&6; }
5984 if test x"$rra_cv_compiler_c__Wnull_dereference" = xyes
5985 then :
5986 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnull-dereference"
5987 fi
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
5989 printf %s "checking if $CC supports -Winit-self... " >&6; }
5990 if test ${rra_cv_compiler_c__Winit_self+y}
5991 then :
5992 printf %s "(cached) " >&6
5993 else $as_nop
5994 save_CFLAGS=$CFLAGS
5995 case -Winit-self in #(
5996 -Wno-*) :
5997 CFLAGS="$CFLAGS `printf "%s\n" "-Winit-self" | sed 's/-Wno-/-W/'`" ;; #(
5998 *) :
5999 CFLAGS="$CFLAGS -Winit-self" ;; #(
6000 *) :
6001 ;;
6002 esac
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6005
6006 int
6007 main (void)
6008 {
6009 int foo = 0;
6010 ;
6011 return 0;
6012 }
6013 _ACEOF
6014 if ac_fn_c_try_compile "$LINENO"
6015 then :
6016 rra_cv_compiler_c__Winit_self=yes
6017 else $as_nop
6018 rra_cv_compiler_c__Winit_self=no
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6021 CFLAGS=$save_CFLAGS
6022 fi
6023
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winit_self" >&5
6025 printf "%s\n" "$rra_cv_compiler_c__Winit_self" >&6; }
6026 if test x"$rra_cv_compiler_c__Winit_self" = xyes
6027 then :
6028 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winit-self"
6029 fi
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wswitch-enum" >&5
6031 printf %s "checking if $CC supports -Wswitch-enum... " >&6; }
6032 if test ${rra_cv_compiler_c__Wswitch_enum+y}
6033 then :
6034 printf %s "(cached) " >&6
6035 else $as_nop
6036 save_CFLAGS=$CFLAGS
6037 case -Wswitch-enum in #(
6038 -Wno-*) :
6039 CFLAGS="$CFLAGS `printf "%s\n" "-Wswitch-enum" | sed 's/-Wno-/-W/'`" ;; #(
6040 *) :
6041 CFLAGS="$CFLAGS -Wswitch-enum" ;; #(
6042 *) :
6043 ;;
6044 esac
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6047
6048 int
6049 main (void)
6050 {
6051 int foo = 0;
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"
6057 then :
6058 rra_cv_compiler_c__Wswitch_enum=yes
6059 else $as_nop
6060 rra_cv_compiler_c__Wswitch_enum=no
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6063 CFLAGS=$save_CFLAGS
6064 fi
6065
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wswitch_enum" >&5
6067 printf "%s\n" "$rra_cv_compiler_c__Wswitch_enum" >&6; }
6068 if test x"$rra_cv_compiler_c__Wswitch_enum" = xyes
6069 then :
6070 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wswitch-enum"
6071 fi
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-overflow=5" >&5
6073 printf %s "checking if $CC supports -Wstrict-overflow=5... " >&6; }
6074 if test ${rra_cv_compiler_c__Wstrict_overflow_5+y}
6075 then :
6076 printf %s "(cached) " >&6
6077 else $as_nop
6078 save_CFLAGS=$CFLAGS
6079 case -Wstrict-overflow=5 in #(
6080 -Wno-*) :
6081 CFLAGS="$CFLAGS `printf "%s\n" "-Wstrict-overflow=5" | sed 's/-Wno-/-W/'`" ;; #(
6082 *) :
6083 CFLAGS="$CFLAGS -Wstrict-overflow=5" ;; #(
6084 *) :
6085 ;;
6086 esac
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089
6090 int
6091 main (void)
6092 {
6093 int foo = 0;
6094 ;
6095 return 0;
6096 }
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"
6099 then :
6100 rra_cv_compiler_c__Wstrict_overflow_5=yes
6101 else $as_nop
6102 rra_cv_compiler_c__Wstrict_overflow_5=no
6103 fi
6104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6105 CFLAGS=$save_CFLAGS
6106 fi
6107
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_overflow_5" >&5
6109 printf "%s\n" "$rra_cv_compiler_c__Wstrict_overflow_5" >&6; }
6110 if test x"$rra_cv_compiler_c__Wstrict_overflow_5" = xyes
6111 then :
6112 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-overflow=5"
6113 fi
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6115 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6116 if test ${rra_cv_compiler_c__Wmissing_format_attribute+y}
6117 then :
6118 printf %s "(cached) " >&6
6119 else $as_nop
6120 save_CFLAGS=$CFLAGS
6121 case -Wmissing-format-attribute in #(
6122 -Wno-*) :
6123 CFLAGS="$CFLAGS `printf "%s\n" "-Wmissing-format-attribute" | sed 's/-Wno-/-W/'`" ;; #(
6124 *) :
6125 CFLAGS="$CFLAGS -Wmissing-format-attribute" ;; #(
6126 *) :
6127 ;;
6128 esac
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131
6132 int
6133 main (void)
6134 {
6135 int foo = 0;
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"
6141 then :
6142 rra_cv_compiler_c__Wmissing_format_attribute=yes
6143 else $as_nop
6144 rra_cv_compiler_c__Wmissing_format_attribute=no
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6147 CFLAGS=$save_CFLAGS
6148 fi
6149
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_format_attribute" >&5
6151 printf "%s\n" "$rra_cv_compiler_c__Wmissing_format_attribute" >&6; }
6152 if test x"$rra_cv_compiler_c__Wmissing_format_attribute" = xyes
6153 then :
6154 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-format-attribute"
6155 fi
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Walloc-zero" >&5
6157 printf %s "checking if $CC supports -Walloc-zero... " >&6; }
6158 if test ${rra_cv_compiler_c__Walloc_zero+y}
6159 then :
6160 printf %s "(cached) " >&6
6161 else $as_nop
6162 save_CFLAGS=$CFLAGS
6163 case -Walloc-zero in #(
6164 -Wno-*) :
6165 CFLAGS="$CFLAGS `printf "%s\n" "-Walloc-zero" | sed 's/-Wno-/-W/'`" ;; #(
6166 *) :
6167 CFLAGS="$CFLAGS -Walloc-zero" ;; #(
6168 *) :
6169 ;;
6170 esac
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6173
6174 int
6175 main (void)
6176 {
6177 int foo = 0;
6178 ;
6179 return 0;
6180 }
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"
6183 then :
6184 rra_cv_compiler_c__Walloc_zero=yes
6185 else $as_nop
6186 rra_cv_compiler_c__Walloc_zero=no
6187 fi
6188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6189 CFLAGS=$save_CFLAGS
6190 fi
6191
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Walloc_zero" >&5
6193 printf "%s\n" "$rra_cv_compiler_c__Walloc_zero" >&6; }
6194 if test x"$rra_cv_compiler_c__Walloc_zero" = xyes
6195 then :
6196 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Walloc-zero"
6197 fi
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-branches" >&5
6199 printf %s "checking if $CC supports -Wduplicated-branches... " >&6; }
6200 if test ${rra_cv_compiler_c__Wduplicated_branches+y}
6201 then :
6202 printf %s "(cached) " >&6
6203 else $as_nop
6204 save_CFLAGS=$CFLAGS
6205 case -Wduplicated-branches in #(
6206 -Wno-*) :
6207 CFLAGS="$CFLAGS `printf "%s\n" "-Wduplicated-branches" | sed 's/-Wno-/-W/'`" ;; #(
6208 *) :
6209 CFLAGS="$CFLAGS -Wduplicated-branches" ;; #(
6210 *) :
6211 ;;
6212 esac
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215
6216 int
6217 main (void)
6218 {
6219 int foo = 0;
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_c_try_compile "$LINENO"
6225 then :
6226 rra_cv_compiler_c__Wduplicated_branches=yes
6227 else $as_nop
6228 rra_cv_compiler_c__Wduplicated_branches=no
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6231 CFLAGS=$save_CFLAGS
6232 fi
6233
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_branches" >&5
6235 printf "%s\n" "$rra_cv_compiler_c__Wduplicated_branches" >&6; }
6236 if test x"$rra_cv_compiler_c__Wduplicated_branches" = xyes
6237 then :
6238 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-branches"
6239 fi
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-cond" >&5
6241 printf %s "checking if $CC supports -Wduplicated-cond... " >&6; }
6242 if test ${rra_cv_compiler_c__Wduplicated_cond+y}
6243 then :
6244 printf %s "(cached) " >&6
6245 else $as_nop
6246 save_CFLAGS=$CFLAGS
6247 case -Wduplicated-cond in #(
6248 -Wno-*) :
6249 CFLAGS="$CFLAGS `printf "%s\n" "-Wduplicated-cond" | sed 's/-Wno-/-W/'`" ;; #(
6250 *) :
6251 CFLAGS="$CFLAGS -Wduplicated-cond" ;; #(
6252 *) :
6253 ;;
6254 esac
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257
6258 int
6259 main (void)
6260 {
6261 int foo = 0;
6262 ;
6263 return 0;
6264 }
6265 _ACEOF
6266 if ac_fn_c_try_compile "$LINENO"
6267 then :
6268 rra_cv_compiler_c__Wduplicated_cond=yes
6269 else $as_nop
6270 rra_cv_compiler_c__Wduplicated_cond=no
6271 fi
6272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6273 CFLAGS=$save_CFLAGS
6274 fi
6275
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_cond" >&5
6277 printf "%s\n" "$rra_cv_compiler_c__Wduplicated_cond" >&6; }
6278 if test x"$rra_cv_compiler_c__Wduplicated_cond" = xyes
6279 then :
6280 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-cond"
6281 fi
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrampolines" >&5
6283 printf %s "checking if $CC supports -Wtrampolines... " >&6; }
6284 if test ${rra_cv_compiler_c__Wtrampolines+y}
6285 then :
6286 printf %s "(cached) " >&6
6287 else $as_nop
6288 save_CFLAGS=$CFLAGS
6289 case -Wtrampolines in #(
6290 -Wno-*) :
6291 CFLAGS="$CFLAGS `printf "%s\n" "-Wtrampolines" | sed 's/-Wno-/-W/'`" ;; #(
6292 *) :
6293 CFLAGS="$CFLAGS -Wtrampolines" ;; #(
6294 *) :
6295 ;;
6296 esac
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299
6300 int
6301 main (void)
6302 {
6303 int foo = 0;
6304 ;
6305 return 0;
6306 }
6307 _ACEOF
6308 if ac_fn_c_try_compile "$LINENO"
6309 then :
6310 rra_cv_compiler_c__Wtrampolines=yes
6311 else $as_nop
6312 rra_cv_compiler_c__Wtrampolines=no
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6315 CFLAGS=$save_CFLAGS
6316 fi
6317
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wtrampolines" >&5
6319 printf "%s\n" "$rra_cv_compiler_c__Wtrampolines" >&6; }
6320 if test x"$rra_cv_compiler_c__Wtrampolines" = xyes
6321 then :
6322 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wtrampolines"
6323 fi
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wfloat-equal" >&5
6325 printf %s "checking if $CC supports -Wfloat-equal... " >&6; }
6326 if test ${rra_cv_compiler_c__Wfloat_equal+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else $as_nop
6330 save_CFLAGS=$CFLAGS
6331 case -Wfloat-equal in #(
6332 -Wno-*) :
6333 CFLAGS="$CFLAGS `printf "%s\n" "-Wfloat-equal" | sed 's/-Wno-/-W/'`" ;; #(
6334 *) :
6335 CFLAGS="$CFLAGS -Wfloat-equal" ;; #(
6336 *) :
6337 ;;
6338 esac
6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340 /* end confdefs.h. */
6341
6342 int
6343 main (void)
6344 {
6345 int foo = 0;
6346 ;
6347 return 0;
6348 }
6349 _ACEOF
6350 if ac_fn_c_try_compile "$LINENO"
6351 then :
6352 rra_cv_compiler_c__Wfloat_equal=yes
6353 else $as_nop
6354 rra_cv_compiler_c__Wfloat_equal=no
6355 fi
6356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6357 CFLAGS=$save_CFLAGS
6358 fi
6359
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wfloat_equal" >&5
6361 printf "%s\n" "$rra_cv_compiler_c__Wfloat_equal" >&6; }
6362 if test x"$rra_cv_compiler_c__Wfloat_equal" = xyes
6363 then :
6364 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wfloat-equal"
6365 fi
6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6367 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6368 if test ${rra_cv_compiler_c__Wdeclaration_after_statement+y}
6369 then :
6370 printf %s "(cached) " >&6
6371 else $as_nop
6372 save_CFLAGS=$CFLAGS
6373 case -Wdeclaration-after-statement in #(
6374 -Wno-*) :
6375 CFLAGS="$CFLAGS `printf "%s\n" "-Wdeclaration-after-statement" | sed 's/-Wno-/-W/'`" ;; #(
6376 *) :
6377 CFLAGS="$CFLAGS -Wdeclaration-after-statement" ;; #(
6378 *) :
6379 ;;
6380 esac
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383
6384 int
6385 main (void)
6386 {
6387 int foo = 0;
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_compile "$LINENO"
6393 then :
6394 rra_cv_compiler_c__Wdeclaration_after_statement=yes
6395 else $as_nop
6396 rra_cv_compiler_c__Wdeclaration_after_statement=no
6397 fi
6398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 CFLAGS=$save_CFLAGS
6400 fi
6401
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdeclaration_after_statement" >&5
6403 printf "%s\n" "$rra_cv_compiler_c__Wdeclaration_after_statement" >&6; }
6404 if test x"$rra_cv_compiler_c__Wdeclaration_after_statement" = xyes
6405 then :
6406 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdeclaration-after-statement"
6407 fi
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6409 printf %s "checking if $CC supports -Wshadow... " >&6; }
6410 if test ${rra_cv_compiler_c__Wshadow+y}
6411 then :
6412 printf %s "(cached) " >&6
6413 else $as_nop
6414 save_CFLAGS=$CFLAGS
6415 case -Wshadow in #(
6416 -Wno-*) :
6417 CFLAGS="$CFLAGS `printf "%s\n" "-Wshadow" | sed 's/-Wno-/-W/'`" ;; #(
6418 *) :
6419 CFLAGS="$CFLAGS -Wshadow" ;; #(
6420 *) :
6421 ;;
6422 esac
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6425
6426 int
6427 main (void)
6428 {
6429 int foo = 0;
6430 ;
6431 return 0;
6432 }
6433 _ACEOF
6434 if ac_fn_c_try_compile "$LINENO"
6435 then :
6436 rra_cv_compiler_c__Wshadow=yes
6437 else $as_nop
6438 rra_cv_compiler_c__Wshadow=no
6439 fi
6440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6441 CFLAGS=$save_CFLAGS
6442 fi
6443
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wshadow" >&5
6445 printf "%s\n" "$rra_cv_compiler_c__Wshadow" >&6; }
6446 if test x"$rra_cv_compiler_c__Wshadow" = xyes
6447 then :
6448 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wshadow"
6449 fi
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6451 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
6452 if test ${rra_cv_compiler_c__Wpointer_arith+y}
6453 then :
6454 printf %s "(cached) " >&6
6455 else $as_nop
6456 save_CFLAGS=$CFLAGS
6457 case -Wpointer-arith in #(
6458 -Wno-*) :
6459 CFLAGS="$CFLAGS `printf "%s\n" "-Wpointer-arith" | sed 's/-Wno-/-W/'`" ;; #(
6460 *) :
6461 CFLAGS="$CFLAGS -Wpointer-arith" ;; #(
6462 *) :
6463 ;;
6464 esac
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467
6468 int
6469 main (void)
6470 {
6471 int foo = 0;
6472 ;
6473 return 0;
6474 }
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"
6477 then :
6478 rra_cv_compiler_c__Wpointer_arith=yes
6479 else $as_nop
6480 rra_cv_compiler_c__Wpointer_arith=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6483 CFLAGS=$save_CFLAGS
6484 fi
6485
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpointer_arith" >&5
6487 printf "%s\n" "$rra_cv_compiler_c__Wpointer_arith" >&6; }
6488 if test x"$rra_cv_compiler_c__Wpointer_arith" = xyes
6489 then :
6490 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpointer-arith"
6491 fi
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6493 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6494 if test ${rra_cv_compiler_c__Wbad_function_cast+y}
6495 then :
6496 printf %s "(cached) " >&6
6497 else $as_nop
6498 save_CFLAGS=$CFLAGS
6499 case -Wbad-function-cast in #(
6500 -Wno-*) :
6501 CFLAGS="$CFLAGS `printf "%s\n" "-Wbad-function-cast" | sed 's/-Wno-/-W/'`" ;; #(
6502 *) :
6503 CFLAGS="$CFLAGS -Wbad-function-cast" ;; #(
6504 *) :
6505 ;;
6506 esac
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509
6510 int
6511 main (void)
6512 {
6513 int foo = 0;
6514 ;
6515 return 0;
6516 }
6517 _ACEOF
6518 if ac_fn_c_try_compile "$LINENO"
6519 then :
6520 rra_cv_compiler_c__Wbad_function_cast=yes
6521 else $as_nop
6522 rra_cv_compiler_c__Wbad_function_cast=no
6523 fi
6524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6525 CFLAGS=$save_CFLAGS
6526 fi
6527
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wbad_function_cast" >&5
6529 printf "%s\n" "$rra_cv_compiler_c__Wbad_function_cast" >&6; }
6530 if test x"$rra_cv_compiler_c__Wbad_function_cast" = xyes
6531 then :
6532 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wbad-function-cast"
6533 fi
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-align" >&5
6535 printf %s "checking if $CC supports -Wcast-align... " >&6; }
6536 if test ${rra_cv_compiler_c__Wcast_align+y}
6537 then :
6538 printf %s "(cached) " >&6
6539 else $as_nop
6540 save_CFLAGS=$CFLAGS
6541 case -Wcast-align in #(
6542 -Wno-*) :
6543 CFLAGS="$CFLAGS `printf "%s\n" "-Wcast-align" | sed 's/-Wno-/-W/'`" ;; #(
6544 *) :
6545 CFLAGS="$CFLAGS -Wcast-align" ;; #(
6546 *) :
6547 ;;
6548 esac
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551
6552 int
6553 main (void)
6554 {
6555 int foo = 0;
6556 ;
6557 return 0;
6558 }
6559 _ACEOF
6560 if ac_fn_c_try_compile "$LINENO"
6561 then :
6562 rra_cv_compiler_c__Wcast_align=yes
6563 else $as_nop
6564 rra_cv_compiler_c__Wcast_align=no
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6567 CFLAGS=$save_CFLAGS
6568 fi
6569
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wcast_align" >&5
6571 printf "%s\n" "$rra_cv_compiler_c__Wcast_align" >&6; }
6572 if test x"$rra_cv_compiler_c__Wcast_align" = xyes
6573 then :
6574 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wcast-align"
6575 fi
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
6577 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
6578 if test ${rra_cv_compiler_c__Wwrite_strings+y}
6579 then :
6580 printf %s "(cached) " >&6
6581 else $as_nop
6582 save_CFLAGS=$CFLAGS
6583 case -Wwrite-strings in #(
6584 -Wno-*) :
6585 CFLAGS="$CFLAGS `printf "%s\n" "-Wwrite-strings" | sed 's/-Wno-/-W/'`" ;; #(
6586 *) :
6587 CFLAGS="$CFLAGS -Wwrite-strings" ;; #(
6588 *) :
6589 ;;
6590 esac
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593
6594 int
6595 main (void)
6596 {
6597 int foo = 0;
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_compile "$LINENO"
6603 then :
6604 rra_cv_compiler_c__Wwrite_strings=yes
6605 else $as_nop
6606 rra_cv_compiler_c__Wwrite_strings=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6609 CFLAGS=$save_CFLAGS
6610 fi
6611
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wwrite_strings" >&5
6613 printf "%s\n" "$rra_cv_compiler_c__Wwrite_strings" >&6; }
6614 if test x"$rra_cv_compiler_c__Wwrite_strings" = xyes
6615 then :
6616 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wwrite-strings"
6617 fi
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wconversion" >&5
6619 printf %s "checking if $CC supports -Wconversion... " >&6; }
6620 if test ${rra_cv_compiler_c__Wconversion+y}
6621 then :
6622 printf %s "(cached) " >&6
6623 else $as_nop
6624 save_CFLAGS=$CFLAGS
6625 case -Wconversion in #(
6626 -Wno-*) :
6627 CFLAGS="$CFLAGS `printf "%s\n" "-Wconversion" | sed 's/-Wno-/-W/'`" ;; #(
6628 *) :
6629 CFLAGS="$CFLAGS -Wconversion" ;; #(
6630 *) :
6631 ;;
6632 esac
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635
6636 int
6637 main (void)
6638 {
6639 int foo = 0;
6640 ;
6641 return 0;
6642 }
6643 _ACEOF
6644 if ac_fn_c_try_compile "$LINENO"
6645 then :
6646 rra_cv_compiler_c__Wconversion=yes
6647 else $as_nop
6648 rra_cv_compiler_c__Wconversion=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6651 CFLAGS=$save_CFLAGS
6652 fi
6653
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wconversion" >&5
6655 printf "%s\n" "$rra_cv_compiler_c__Wconversion" >&6; }
6656 if test x"$rra_cv_compiler_c__Wconversion" = xyes
6657 then :
6658 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wconversion"
6659 fi
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5
6661 printf %s "checking if $CC supports -Wno-sign-conversion... " >&6; }
6662 if test ${rra_cv_compiler_c__Wno_sign_conversion+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else $as_nop
6666 save_CFLAGS=$CFLAGS
6667 case -Wno-sign-conversion in #(
6668 -Wno-*) :
6669 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #(
6670 *) :
6671 CFLAGS="$CFLAGS -Wno-sign-conversion" ;; #(
6672 *) :
6673 ;;
6674 esac
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677
6678 int
6679 main (void)
6680 {
6681 int foo = 0;
6682 ;
6683 return 0;
6684 }
6685 _ACEOF
6686 if ac_fn_c_try_compile "$LINENO"
6687 then :
6688 rra_cv_compiler_c__Wno_sign_conversion=yes
6689 else $as_nop
6690 rra_cv_compiler_c__Wno_sign_conversion=no
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6693 CFLAGS=$save_CFLAGS
6694 fi
6695
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5
6697 printf "%s\n" "$rra_cv_compiler_c__Wno_sign_conversion" >&6; }
6698 if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes
6699 then :
6700 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion"
6701 fi
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdate-time" >&5
6703 printf %s "checking if $CC supports -Wdate-time... " >&6; }
6704 if test ${rra_cv_compiler_c__Wdate_time+y}
6705 then :
6706 printf %s "(cached) " >&6
6707 else $as_nop
6708 save_CFLAGS=$CFLAGS
6709 case -Wdate-time in #(
6710 -Wno-*) :
6711 CFLAGS="$CFLAGS `printf "%s\n" "-Wdate-time" | sed 's/-Wno-/-W/'`" ;; #(
6712 *) :
6713 CFLAGS="$CFLAGS -Wdate-time" ;; #(
6714 *) :
6715 ;;
6716 esac
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719
6720 int
6721 main (void)
6722 {
6723 int foo = 0;
6724 ;
6725 return 0;
6726 }
6727 _ACEOF
6728 if ac_fn_c_try_compile "$LINENO"
6729 then :
6730 rra_cv_compiler_c__Wdate_time=yes
6731 else $as_nop
6732 rra_cv_compiler_c__Wdate_time=no
6733 fi
6734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6735 CFLAGS=$save_CFLAGS
6736 fi
6737
6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdate_time" >&5
6739 printf "%s\n" "$rra_cv_compiler_c__Wdate_time" >&6; }
6740 if test x"$rra_cv_compiler_c__Wdate_time" = xyes
6741 then :
6742 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdate-time"
6743 fi
6744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wjump-misses-init" >&5
6745 printf %s "checking if $CC supports -Wjump-misses-init... " >&6; }
6746 if test ${rra_cv_compiler_c__Wjump_misses_init+y}
6747 then :
6748 printf %s "(cached) " >&6
6749 else $as_nop
6750 save_CFLAGS=$CFLAGS
6751 case -Wjump-misses-init in #(
6752 -Wno-*) :
6753 CFLAGS="$CFLAGS `printf "%s\n" "-Wjump-misses-init" | sed 's/-Wno-/-W/'`" ;; #(
6754 *) :
6755 CFLAGS="$CFLAGS -Wjump-misses-init" ;; #(
6756 *) :
6757 ;;
6758 esac
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761
6762 int
6763 main (void)
6764 {
6765 int foo = 0;
6766 ;
6767 return 0;
6768 }
6769 _ACEOF
6770 if ac_fn_c_try_compile "$LINENO"
6771 then :
6772 rra_cv_compiler_c__Wjump_misses_init=yes
6773 else $as_nop
6774 rra_cv_compiler_c__Wjump_misses_init=no
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6777 CFLAGS=$save_CFLAGS
6778 fi
6779
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wjump_misses_init" >&5
6781 printf "%s\n" "$rra_cv_compiler_c__Wjump_misses_init" >&6; }
6782 if test x"$rra_cv_compiler_c__Wjump_misses_init" = xyes
6783 then :
6784 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wjump-misses-init"
6785 fi
6786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6787 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6788 if test ${rra_cv_compiler_c__Wlogical_op+y}
6789 then :
6790 printf %s "(cached) " >&6
6791 else $as_nop
6792 save_CFLAGS=$CFLAGS
6793 case -Wlogical-op in #(
6794 -Wno-*) :
6795 CFLAGS="$CFLAGS `printf "%s\n" "-Wlogical-op" | sed 's/-Wno-/-W/'`" ;; #(
6796 *) :
6797 CFLAGS="$CFLAGS -Wlogical-op" ;; #(
6798 *) :
6799 ;;
6800 esac
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803
6804 int
6805 main (void)
6806 {
6807 int foo = 0;
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"
6813 then :
6814 rra_cv_compiler_c__Wlogical_op=yes
6815 else $as_nop
6816 rra_cv_compiler_c__Wlogical_op=no
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6819 CFLAGS=$save_CFLAGS
6820 fi
6821
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wlogical_op" >&5
6823 printf "%s\n" "$rra_cv_compiler_c__Wlogical_op" >&6; }
6824 if test x"$rra_cv_compiler_c__Wlogical_op" = xyes
6825 then :
6826 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wlogical-op"
6827 fi
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6829 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6830 if test ${rra_cv_compiler_c__Wstrict_prototypes+y}
6831 then :
6832 printf %s "(cached) " >&6
6833 else $as_nop
6834 save_CFLAGS=$CFLAGS
6835 case -Wstrict-prototypes in #(
6836 -Wno-*) :
6837 CFLAGS="$CFLAGS `printf "%s\n" "-Wstrict-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
6838 *) :
6839 CFLAGS="$CFLAGS -Wstrict-prototypes" ;; #(
6840 *) :
6841 ;;
6842 esac
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845
6846 int
6847 main (void)
6848 {
6849 int foo = 0;
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 if ac_fn_c_try_compile "$LINENO"
6855 then :
6856 rra_cv_compiler_c__Wstrict_prototypes=yes
6857 else $as_nop
6858 rra_cv_compiler_c__Wstrict_prototypes=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6861 CFLAGS=$save_CFLAGS
6862 fi
6863
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_prototypes" >&5
6865 printf "%s\n" "$rra_cv_compiler_c__Wstrict_prototypes" >&6; }
6866 if test x"$rra_cv_compiler_c__Wstrict_prototypes" = xyes
6867 then :
6868 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-prototypes"
6869 fi
6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6871 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6872 if test ${rra_cv_compiler_c__Wold_style_definition+y}
6873 then :
6874 printf %s "(cached) " >&6
6875 else $as_nop
6876 save_CFLAGS=$CFLAGS
6877 case -Wold-style-definition in #(
6878 -Wno-*) :
6879 CFLAGS="$CFLAGS `printf "%s\n" "-Wold-style-definition" | sed 's/-Wno-/-W/'`" ;; #(
6880 *) :
6881 CFLAGS="$CFLAGS -Wold-style-definition" ;; #(
6882 *) :
6883 ;;
6884 esac
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887
6888 int
6889 main (void)
6890 {
6891 int foo = 0;
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_compile "$LINENO"
6897 then :
6898 rra_cv_compiler_c__Wold_style_definition=yes
6899 else $as_nop
6900 rra_cv_compiler_c__Wold_style_definition=no
6901 fi
6902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6903 CFLAGS=$save_CFLAGS
6904 fi
6905
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wold_style_definition" >&5
6907 printf "%s\n" "$rra_cv_compiler_c__Wold_style_definition" >&6; }
6908 if test x"$rra_cv_compiler_c__Wold_style_definition" = xyes
6909 then :
6910 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wold-style-definition"
6911 fi
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6913 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6914 if test ${rra_cv_compiler_c__Wmissing_prototypes+y}
6915 then :
6916 printf %s "(cached) " >&6
6917 else $as_nop
6918 save_CFLAGS=$CFLAGS
6919 case -Wmissing-prototypes in #(
6920 -Wno-*) :
6921 CFLAGS="$CFLAGS `printf "%s\n" "-Wmissing-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
6922 *) :
6923 CFLAGS="$CFLAGS -Wmissing-prototypes" ;; #(
6924 *) :
6925 ;;
6926 esac
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929
6930 int
6931 main (void)
6932 {
6933 int foo = 0;
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"
6939 then :
6940 rra_cv_compiler_c__Wmissing_prototypes=yes
6941 else $as_nop
6942 rra_cv_compiler_c__Wmissing_prototypes=no
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6945 CFLAGS=$save_CFLAGS
6946 fi
6947
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_prototypes" >&5
6949 printf "%s\n" "$rra_cv_compiler_c__Wmissing_prototypes" >&6; }
6950 if test x"$rra_cv_compiler_c__Wmissing_prototypes" = xyes
6951 then :
6952 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-prototypes"
6953 fi
6954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6955 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
6956 if test ${rra_cv_compiler_c__Wmissing_declarations+y}
6957 then :
6958 printf %s "(cached) " >&6
6959 else $as_nop
6960 save_CFLAGS=$CFLAGS
6961 case -Wmissing-declarations in #(
6962 -Wno-*) :
6963 CFLAGS="$CFLAGS `printf "%s\n" "-Wmissing-declarations" | sed 's/-Wno-/-W/'`" ;; #(
6964 *) :
6965 CFLAGS="$CFLAGS -Wmissing-declarations" ;; #(
6966 *) :
6967 ;;
6968 esac
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971
6972 int
6973 main (void)
6974 {
6975 int foo = 0;
6976 ;
6977 return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_compile "$LINENO"
6981 then :
6982 rra_cv_compiler_c__Wmissing_declarations=yes
6983 else $as_nop
6984 rra_cv_compiler_c__Wmissing_declarations=no
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6987 CFLAGS=$save_CFLAGS
6988 fi
6989
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_declarations" >&5
6991 printf "%s\n" "$rra_cv_compiler_c__Wmissing_declarations" >&6; }
6992 if test x"$rra_cv_compiler_c__Wmissing_declarations" = xyes
6993 then :
6994 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-declarations"
6995 fi
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnormalized=nfc" >&5
6997 printf %s "checking if $CC supports -Wnormalized=nfc... " >&6; }
6998 if test ${rra_cv_compiler_c__Wnormalized_nfc+y}
6999 then :
7000 printf %s "(cached) " >&6
7001 else $as_nop
7002 save_CFLAGS=$CFLAGS
7003 case -Wnormalized=nfc in #(
7004 -Wno-*) :
7005 CFLAGS="$CFLAGS `printf "%s\n" "-Wnormalized=nfc" | sed 's/-Wno-/-W/'`" ;; #(
7006 *) :
7007 CFLAGS="$CFLAGS -Wnormalized=nfc" ;; #(
7008 *) :
7009 ;;
7010 esac
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7013
7014 int
7015 main (void)
7016 {
7017 int foo = 0;
7018 ;
7019 return 0;
7020 }
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"
7023 then :
7024 rra_cv_compiler_c__Wnormalized_nfc=yes
7025 else $as_nop
7026 rra_cv_compiler_c__Wnormalized_nfc=no
7027 fi
7028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7029 CFLAGS=$save_CFLAGS
7030 fi
7031
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnormalized_nfc" >&5
7033 printf "%s\n" "$rra_cv_compiler_c__Wnormalized_nfc" >&6; }
7034 if test x"$rra_cv_compiler_c__Wnormalized_nfc" = xyes
7035 then :
7036 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnormalized=nfc"
7037 fi
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpacked" >&5
7039 printf %s "checking if $CC supports -Wpacked... " >&6; }
7040 if test ${rra_cv_compiler_c__Wpacked+y}
7041 then :
7042 printf %s "(cached) " >&6
7043 else $as_nop
7044 save_CFLAGS=$CFLAGS
7045 case -Wpacked in #(
7046 -Wno-*) :
7047 CFLAGS="$CFLAGS `printf "%s\n" "-Wpacked" | sed 's/-Wno-/-W/'`" ;; #(
7048 *) :
7049 CFLAGS="$CFLAGS -Wpacked" ;; #(
7050 *) :
7051 ;;
7052 esac
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055
7056 int
7057 main (void)
7058 {
7059 int foo = 0;
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_compile "$LINENO"
7065 then :
7066 rra_cv_compiler_c__Wpacked=yes
7067 else $as_nop
7068 rra_cv_compiler_c__Wpacked=no
7069 fi
7070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7071 CFLAGS=$save_CFLAGS
7072 fi
7073
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpacked" >&5
7075 printf "%s\n" "$rra_cv_compiler_c__Wpacked" >&6; }
7076 if test x"$rra_cv_compiler_c__Wpacked" = xyes
7077 then :
7078 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpacked"
7079 fi
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7081 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7082 if test ${rra_cv_compiler_c__Wredundant_decls+y}
7083 then :
7084 printf %s "(cached) " >&6
7085 else $as_nop
7086 save_CFLAGS=$CFLAGS
7087 case -Wredundant-decls in #(
7088 -Wno-*) :
7089 CFLAGS="$CFLAGS `printf "%s\n" "-Wredundant-decls" | sed 's/-Wno-/-W/'`" ;; #(
7090 *) :
7091 CFLAGS="$CFLAGS -Wredundant-decls" ;; #(
7092 *) :
7093 ;;
7094 esac
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7097
7098 int
7099 main (void)
7100 {
7101 int foo = 0;
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 if ac_fn_c_try_compile "$LINENO"
7107 then :
7108 rra_cv_compiler_c__Wredundant_decls=yes
7109 else $as_nop
7110 rra_cv_compiler_c__Wredundant_decls=no
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7113 CFLAGS=$save_CFLAGS
7114 fi
7115
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wredundant_decls" >&5
7117 printf "%s\n" "$rra_cv_compiler_c__Wredundant_decls" >&6; }
7118 if test x"$rra_cv_compiler_c__Wredundant_decls" = xyes
7119 then :
7120 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wredundant-decls"
7121 fi
7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wrestrict" >&5
7123 printf %s "checking if $CC supports -Wrestrict... " >&6; }
7124 if test ${rra_cv_compiler_c__Wrestrict+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else $as_nop
7128 save_CFLAGS=$CFLAGS
7129 case -Wrestrict in #(
7130 -Wno-*) :
7131 CFLAGS="$CFLAGS `printf "%s\n" "-Wrestrict" | sed 's/-Wno-/-W/'`" ;; #(
7132 *) :
7133 CFLAGS="$CFLAGS -Wrestrict" ;; #(
7134 *) :
7135 ;;
7136 esac
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7139
7140 int
7141 main (void)
7142 {
7143 int foo = 0;
7144 ;
7145 return 0;
7146 }
7147 _ACEOF
7148 if ac_fn_c_try_compile "$LINENO"
7149 then :
7150 rra_cv_compiler_c__Wrestrict=yes
7151 else $as_nop
7152 rra_cv_compiler_c__Wrestrict=no
7153 fi
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7155 CFLAGS=$save_CFLAGS
7156 fi
7157
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wrestrict" >&5
7159 printf "%s\n" "$rra_cv_compiler_c__Wrestrict" >&6; }
7160 if test x"$rra_cv_compiler_c__Wrestrict" = xyes
7161 then :
7162 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wrestrict"
7163 fi
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7165 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
7166 if test ${rra_cv_compiler_c__Wnested_externs+y}
7167 then :
7168 printf %s "(cached) " >&6
7169 else $as_nop
7170 save_CFLAGS=$CFLAGS
7171 case -Wnested-externs in #(
7172 -Wno-*) :
7173 CFLAGS="$CFLAGS `printf "%s\n" "-Wnested-externs" | sed 's/-Wno-/-W/'`" ;; #(
7174 *) :
7175 CFLAGS="$CFLAGS -Wnested-externs" ;; #(
7176 *) :
7177 ;;
7178 esac
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181
7182 int
7183 main (void)
7184 {
7185 int foo = 0;
7186 ;
7187 return 0;
7188 }
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"
7191 then :
7192 rra_cv_compiler_c__Wnested_externs=yes
7193 else $as_nop
7194 rra_cv_compiler_c__Wnested_externs=no
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7197 CFLAGS=$save_CFLAGS
7198 fi
7199
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnested_externs" >&5
7201 printf "%s\n" "$rra_cv_compiler_c__Wnested_externs" >&6; }
7202 if test x"$rra_cv_compiler_c__Wnested_externs" = xyes
7203 then :
7204 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnested-externs"
7205 fi
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winline" >&5
7207 printf %s "checking if $CC supports -Winline... " >&6; }
7208 if test ${rra_cv_compiler_c__Winline+y}
7209 then :
7210 printf %s "(cached) " >&6
7211 else $as_nop
7212 save_CFLAGS=$CFLAGS
7213 case -Winline in #(
7214 -Wno-*) :
7215 CFLAGS="$CFLAGS `printf "%s\n" "-Winline" | sed 's/-Wno-/-W/'`" ;; #(
7216 *) :
7217 CFLAGS="$CFLAGS -Winline" ;; #(
7218 *) :
7219 ;;
7220 esac
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7223
7224 int
7225 main (void)
7226 {
7227 int foo = 0;
7228 ;
7229 return 0;
7230 }
7231 _ACEOF
7232 if ac_fn_c_try_compile "$LINENO"
7233 then :
7234 rra_cv_compiler_c__Winline=yes
7235 else $as_nop
7236 rra_cv_compiler_c__Winline=no
7237 fi
7238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7239 CFLAGS=$save_CFLAGS
7240 fi
7241
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winline" >&5
7243 printf "%s\n" "$rra_cv_compiler_c__Winline" >&6; }
7244 if test x"$rra_cv_compiler_c__Winline" = xyes
7245 then :
7246 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winline"
7247 fi
7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wvla" >&5
7249 printf %s "checking if $CC supports -Wvla... " >&6; }
7250 if test ${rra_cv_compiler_c__Wvla+y}
7251 then :
7252 printf %s "(cached) " >&6
7253 else $as_nop
7254 save_CFLAGS=$CFLAGS
7255 case -Wvla in #(
7256 -Wno-*) :
7257 CFLAGS="$CFLAGS `printf "%s\n" "-Wvla" | sed 's/-Wno-/-W/'`" ;; #(
7258 *) :
7259 CFLAGS="$CFLAGS -Wvla" ;; #(
7260 *) :
7261 ;;
7262 esac
7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 /* end confdefs.h. */
7265
7266 int
7267 main (void)
7268 {
7269 int foo = 0;
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 if ac_fn_c_try_compile "$LINENO"
7275 then :
7276 rra_cv_compiler_c__Wvla=yes
7277 else $as_nop
7278 rra_cv_compiler_c__Wvla=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7281 CFLAGS=$save_CFLAGS
7282 fi
7283
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wvla" >&5
7285 printf "%s\n" "$rra_cv_compiler_c__Wvla" >&6; }
7286 if test x"$rra_cv_compiler_c__Wvla" = xyes
7287 then :
7288 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wvla"
7289 fi
7290 fi
7291
7292 # Check whether --enable-largefile was given.
7293 if test ${enable_largefile+y}
7294 then :
7295 enableval=$enable_largefile;
7296 fi
7297
7298 if test "$enable_largefile" != no; then
7299
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7301 printf %s "checking for special C compiler options needed for large files... " >&6; }
7302 if test ${ac_cv_sys_largefile_CC+y}
7303 then :
7304 printf %s "(cached) " >&6
7305 else $as_nop
7306 ac_cv_sys_largefile_CC=no
7307 if test "$GCC" != yes; then
7308 ac_save_CC=$CC
7309 while :; do
7310 # IRIX 6.2 and later do not support large files by default,
7311 # so use the C compiler's -n32 option if that helps.
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7315 /* Check that off_t can represent 2**63 - 1 correctly.
7316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7317 since some C++ compilers masquerading as C compilers
7318 incorrectly reject 9223372036854775807. */
7319 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7321 && LARGE_OFF_T % 2147483647 == 1)
7322 ? 1 : -1];
7323 int
7324 main (void)
7325 {
7326
7327 ;
7328 return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_compile "$LINENO"
7332 then :
7333 break
7334 fi
7335 rm -f core conftest.err conftest.$ac_objext conftest.beam
7336 CC="$CC -n32"
7337 if ac_fn_c_try_compile "$LINENO"
7338 then :
7339 ac_cv_sys_largefile_CC=' -n32'; break
7340 fi
7341 rm -f core conftest.err conftest.$ac_objext conftest.beam
7342 break
7343 done
7344 CC=$ac_save_CC
7345 rm -f conftest.$ac_ext
7346 fi
7347 fi
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7349 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7350 if test "$ac_cv_sys_largefile_CC" != no; then
7351 CC=$CC$ac_cv_sys_largefile_CC
7352 fi
7353
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7355 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7356 if test ${ac_cv_sys_file_offset_bits+y}
7357 then :
7358 printf %s "(cached) " >&6
7359 else $as_nop
7360 while :; do
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7363 #include <sys/types.h>
7364 /* Check that off_t can represent 2**63 - 1 correctly.
7365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7366 since some C++ compilers masquerading as C compilers
7367 incorrectly reject 9223372036854775807. */
7368 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7370 && LARGE_OFF_T % 2147483647 == 1)
7371 ? 1 : -1];
7372 int
7373 main (void)
7374 {
7375
7376 ;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_compile "$LINENO"
7381 then :
7382 ac_cv_sys_file_offset_bits=no; break
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386 /* end confdefs.h. */
7387 #define _FILE_OFFSET_BITS 64
7388 #include <sys/types.h>
7389 /* Check that off_t can represent 2**63 - 1 correctly.
7390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7391 since some C++ compilers masquerading as C compilers
7392 incorrectly reject 9223372036854775807. */
7393 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7395 && LARGE_OFF_T % 2147483647 == 1)
7396 ? 1 : -1];
7397 int
7398 main (void)
7399 {
7400
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"
7406 then :
7407 ac_cv_sys_file_offset_bits=64; break
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7410 ac_cv_sys_file_offset_bits=unknown
7411 break
7412 done
7413 fi
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7415 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7416 case $ac_cv_sys_file_offset_bits in #(
7417 no | unknown) ;;
7418 *)
7419 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7420 ;;
7421 esac
7422 rm -rf conftest*
7423 if test $ac_cv_sys_file_offset_bits = unknown; then
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7425 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7426 if test ${ac_cv_sys_large_files+y}
7427 then :
7428 printf %s "(cached) " >&6
7429 else $as_nop
7430 while :; do
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 #include <sys/types.h>
7434 /* Check that off_t can represent 2**63 - 1 correctly.
7435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7436 since some C++ compilers masquerading as C compilers
7437 incorrectly reject 9223372036854775807. */
7438 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7440 && LARGE_OFF_T % 2147483647 == 1)
7441 ? 1 : -1];
7442 int
7443 main (void)
7444 {
7445
7446 ;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_compile "$LINENO"
7451 then :
7452 ac_cv_sys_large_files=no; break
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #define _LARGE_FILES 1
7458 #include <sys/types.h>
7459 /* Check that off_t can represent 2**63 - 1 correctly.
7460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7461 since some C++ compilers masquerading as C compilers
7462 incorrectly reject 9223372036854775807. */
7463 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7465 && LARGE_OFF_T % 2147483647 == 1)
7466 ? 1 : -1];
7467 int
7468 main (void)
7469 {
7470
7471 ;
7472 return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"
7476 then :
7477 ac_cv_sys_large_files=1; break
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7480 ac_cv_sys_large_files=unknown
7481 break
7482 done
7483 fi
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7485 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7486 case $ac_cv_sys_large_files in #(
7487 no | unknown) ;;
7488 *)
7489 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7490 ;;
7491 esac
7492 rm -rf conftest*
7493 fi
7494 fi
7495
7496
7497
7498 if test -n "$ac_tool_prefix"; then
7499 for ac_prog in ar lib "link -lib"
7500 do
7501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 printf %s "checking for $ac_word... " >&6; }
7505 if test ${ac_cv_prog_AR+y}
7506 then :
7507 printf %s "(cached) " >&6
7508 else $as_nop
7509 if test -n "$AR"; then
7510 ac_cv_prog_AR="$AR" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515 IFS=$as_save_IFS
7516 case $as_dir in #(((
7517 '') as_dir=./ ;;
7518 */) ;;
7519 *) as_dir=$as_dir/ ;;
7520 esac
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7523 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527 done
7528 done
7529 IFS=$as_save_IFS
7530
7531 fi
7532 fi
7533 AR=$ac_cv_prog_AR
7534 if test -n "$AR"; then
7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7536 printf "%s\n" "$AR" >&6; }
7537 else
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 printf "%s\n" "no" >&6; }
7540 fi
7541
7542
7543 test -n "$AR" && break
7544 done
7545 fi
7546 if test -z "$AR"; then
7547 ac_ct_AR=$AR
7548 for ac_prog in ar lib "link -lib"
7549 do
7550 # Extract the first word of "$ac_prog", so it can be a program name with args.
7551 set dummy $ac_prog; ac_word=$2
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 printf %s "checking for $ac_word... " >&6; }
7554 if test ${ac_cv_prog_ac_ct_AR+y}
7555 then :
7556 printf %s "(cached) " >&6
7557 else $as_nop
7558 if test -n "$ac_ct_AR"; then
7559 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564 IFS=$as_save_IFS
7565 case $as_dir in #(((
7566 '') as_dir=./ ;;
7567 */) ;;
7568 *) as_dir=$as_dir/ ;;
7569 esac
7570 for ac_exec_ext in '' $ac_executable_extensions; do
7571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7572 ac_cv_prog_ac_ct_AR="$ac_prog"
7573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7574 break 2
7575 fi
7576 done
7577 done
7578 IFS=$as_save_IFS
7579
7580 fi
7581 fi
7582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7583 if test -n "$ac_ct_AR"; then
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7585 printf "%s\n" "$ac_ct_AR" >&6; }
7586 else
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 printf "%s\n" "no" >&6; }
7589 fi
7590
7591
7592 test -n "$ac_ct_AR" && break
7593 done
7594
7595 if test "x$ac_ct_AR" = x; then
7596 AR="false"
7597 else
7598 case $cross_compiling:$ac_tool_warned in
7599 yes:)
7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7601 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7602 ac_tool_warned=yes ;;
7603 esac
7604 AR=$ac_ct_AR
7605 fi
7606 fi
7607
7608 : ${AR=ar}
7609
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7611 printf %s "checking the archiver ($AR) interface... " >&6; }
7612 if test ${am_cv_ar_interface+y}
7613 then :
7614 printf %s "(cached) " >&6
7615 else $as_nop
7616 ac_ext=c
7617 ac_cpp='$CPP $CPPFLAGS'
7618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621
7622 am_cv_ar_interface=ar
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7625 int some_variable = 0;
7626 _ACEOF
7627 if ac_fn_c_try_compile "$LINENO"
7628 then :
7629 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7631 (eval $am_ar_try) 2>&5
7632 ac_status=$?
7633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }
7635 if test "$ac_status" -eq 0; then
7636 am_cv_ar_interface=ar
7637 else
7638 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7640 (eval $am_ar_try) 2>&5
7641 ac_status=$?
7642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }
7644 if test "$ac_status" -eq 0; then
7645 am_cv_ar_interface=lib
7646 else
7647 am_cv_ar_interface=unknown
7648 fi
7649 fi
7650 rm -f conftest.lib libconftest.a
7651
7652 fi
7653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7654 ac_ext=c
7655 ac_cpp='$CPP $CPPFLAGS'
7656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659
7660 fi
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7662 printf "%s\n" "$am_cv_ar_interface" >&6; }
7663
7664 case $am_cv_ar_interface in
7665 ar)
7666 ;;
7667 lib)
7668 # Microsoft lib, so override with the ar-lib wrapper script.
7669 # FIXME: It is wrong to rewrite AR.
7670 # But if we don't then we get into trouble of one sort or another.
7671 # A longer-term fix would be to have automake use am__AR in this case,
7672 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7673 # similar.
7674 AR="$am_aux_dir/ar-lib $AR"
7675 ;;
7676 unknown)
7677 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7678 ;;
7679 esac
7680
7681
7682 case `pwd` in
7683 *\ * | *\ *)
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7685 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7686 esac
7687
7688
7689
7690 macro_version='2.4.6'
7691 macro_revision='2.4.6'
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 ltmain=$ac_aux_dir/ltmain.sh
7707
7708
7709
7710 # Make sure we can run config.sub.
7711 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7712 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7713
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7715 printf %s "checking build system type... " >&6; }
7716 if test ${ac_cv_build+y}
7717 then :
7718 printf %s "(cached) " >&6
7719 else $as_nop
7720 ac_build_alias=$build_alias
7721 test "x$ac_build_alias" = x &&
7722 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7723 test "x$ac_build_alias" = x &&
7724 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7725 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7726 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7727
7728 fi
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7730 printf "%s\n" "$ac_cv_build" >&6; }
7731 case $ac_cv_build in
7732 *-*-*) ;;
7733 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7734 esac
7735 build=$ac_cv_build
7736 ac_save_IFS=$IFS; IFS='-'
7737 set x $ac_cv_build
7738 shift
7739 build_cpu=$1
7740 build_vendor=$2
7741 shift; shift
7742 # Remember, the first character of IFS is used to create $*,
7743 # except with old shells:
7744 build_os=$*
7745 IFS=$ac_save_IFS
7746 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7747
7748
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7750 printf %s "checking host system type... " >&6; }
7751 if test ${ac_cv_host+y}
7752 then :
7753 printf %s "(cached) " >&6
7754 else $as_nop
7755 if test "x$host_alias" = x; then
7756 ac_cv_host=$ac_cv_build
7757 else
7758 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7759 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7760 fi
7761
7762 fi
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7764 printf "%s\n" "$ac_cv_host" >&6; }
7765 case $ac_cv_host in
7766 *-*-*) ;;
7767 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7768 esac
7769 host=$ac_cv_host
7770 ac_save_IFS=$IFS; IFS='-'
7771 set x $ac_cv_host
7772 shift
7773 host_cpu=$1
7774 host_vendor=$2
7775 shift; shift
7776 # Remember, the first character of IFS is used to create $*,
7777 # except with old shells:
7778 host_os=$*
7779 IFS=$ac_save_IFS
7780 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7781
7782
7783 # Backslashify metacharacters that are still active within
7784 # double-quoted strings.
7785 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7786
7787 # Same as above, but do not quote variable references.
7788 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7789
7790 # Sed substitution to delay expansion of an escaped shell variable in a
7791 # double_quote_subst'ed string.
7792 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7793
7794 # Sed substitution to delay expansion of an escaped single quote.
7795 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7796
7797 # Sed substitution to avoid accidental globbing in evaled expressions
7798 no_glob_subst='s/\*/\\\*/g'
7799
7800 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7801 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7803
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7805 printf %s "checking how to print strings... " >&6; }
7806 # Test print first, because it will be a builtin if present.
7807 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7808 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7809 ECHO='print -r --'
7810 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7811 ECHO='printf %s\n'
7812 else
7813 # Use this function as a fallback that always works.
7814 func_fallback_echo ()
7815 {
7816 eval 'cat <<_LTECHO_EOF
7817 $1
7818 _LTECHO_EOF'
7819 }
7820 ECHO='func_fallback_echo'
7821 fi
7822
7823 # func_echo_all arg...
7824 # Invoke $ECHO with all args, space-separated.
7825 func_echo_all ()
7826 {
7827 $ECHO ""
7828 }
7829
7830 case $ECHO in
7831 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7832 printf "%s\n" "printf" >&6; } ;;
7833 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7834 printf "%s\n" "print -r" >&6; } ;;
7835 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7836 printf "%s\n" "cat" >&6; } ;;
7837 esac
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7853 printf %s "checking for a sed that does not truncate output... " >&6; }
7854 if test ${ac_cv_path_SED+y}
7855 then :
7856 printf %s "(cached) " >&6
7857 else $as_nop
7858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7859 for ac_i in 1 2 3 4 5 6 7; do
7860 ac_script="$ac_script$as_nl$ac_script"
7861 done
7862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7863 { ac_script=; unset ac_script;}
7864 if test -z "$SED"; then
7865 ac_path_SED_found=false
7866 # Loop through the user's path and test for each of PROGNAME-LIST
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7869 do
7870 IFS=$as_save_IFS
7871 case $as_dir in #(((
7872 '') as_dir=./ ;;
7873 */) ;;
7874 *) as_dir=$as_dir/ ;;
7875 esac
7876 for ac_prog in sed gsed
7877 do
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7880 as_fn_executable_p "$ac_path_SED" || continue
7881 # Check for GNU ac_path_SED and select it if it is found.
7882 # Check for GNU $ac_path_SED
7883 case `"$ac_path_SED" --version 2>&1` in
7884 *GNU*)
7885 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7886 *)
7887 ac_count=0
7888 printf %s 0123456789 >"conftest.in"
7889 while :
7890 do
7891 cat "conftest.in" "conftest.in" >"conftest.tmp"
7892 mv "conftest.tmp" "conftest.in"
7893 cp "conftest.in" "conftest.nl"
7894 printf "%s\n" '' >> "conftest.nl"
7895 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7897 as_fn_arith $ac_count + 1 && ac_count=$as_val
7898 if test $ac_count -gt ${ac_path_SED_max-0}; then
7899 # Best one so far, save it but keep looking for a better one
7900 ac_cv_path_SED="$ac_path_SED"
7901 ac_path_SED_max=$ac_count
7902 fi
7903 # 10*(2^10) chars as input seems more than enough
7904 test $ac_count -gt 10 && break
7905 done
7906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7907 esac
7908
7909 $ac_path_SED_found && break 3
7910 done
7911 done
7912 done
7913 IFS=$as_save_IFS
7914 if test -z "$ac_cv_path_SED"; then
7915 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7916 fi
7917 else
7918 ac_cv_path_SED=$SED
7919 fi
7920
7921 fi
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7923 printf "%s\n" "$ac_cv_path_SED" >&6; }
7924 SED="$ac_cv_path_SED"
7925 rm -f conftest.sed
7926
7927 test -z "$SED" && SED=sed
7928 Xsed="$SED -e 1s/^X//"
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7941 printf %s "checking for grep that handles long lines and -e... " >&6; }
7942 if test ${ac_cv_path_GREP+y}
7943 then :
7944 printf %s "(cached) " >&6
7945 else $as_nop
7946 if test -z "$GREP"; then
7947 ac_path_GREP_found=false
7948 # Loop through the user's path and test for each of PROGNAME-LIST
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7951 do
7952 IFS=$as_save_IFS
7953 case $as_dir in #(((
7954 '') as_dir=./ ;;
7955 */) ;;
7956 *) as_dir=$as_dir/ ;;
7957 esac
7958 for ac_prog in grep ggrep
7959 do
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7962 as_fn_executable_p "$ac_path_GREP" || continue
7963 # Check for GNU ac_path_GREP and select it if it is found.
7964 # Check for GNU $ac_path_GREP
7965 case `"$ac_path_GREP" --version 2>&1` in
7966 *GNU*)
7967 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7968 *)
7969 ac_count=0
7970 printf %s 0123456789 >"conftest.in"
7971 while :
7972 do
7973 cat "conftest.in" "conftest.in" >"conftest.tmp"
7974 mv "conftest.tmp" "conftest.in"
7975 cp "conftest.in" "conftest.nl"
7976 printf "%s\n" 'GREP' >> "conftest.nl"
7977 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7979 as_fn_arith $ac_count + 1 && ac_count=$as_val
7980 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7981 # Best one so far, save it but keep looking for a better one
7982 ac_cv_path_GREP="$ac_path_GREP"
7983 ac_path_GREP_max=$ac_count
7984 fi
7985 # 10*(2^10) chars as input seems more than enough
7986 test $ac_count -gt 10 && break
7987 done
7988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7989 esac
7990
7991 $ac_path_GREP_found && break 3
7992 done
7993 done
7994 done
7995 IFS=$as_save_IFS
7996 if test -z "$ac_cv_path_GREP"; then
7997 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7998 fi
7999 else
8000 ac_cv_path_GREP=$GREP
8001 fi
8002
8003 fi
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8005 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8006 GREP="$ac_cv_path_GREP"
8007
8008
8009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8010 printf %s "checking for egrep... " >&6; }
8011 if test ${ac_cv_path_EGREP+y}
8012 then :
8013 printf %s "(cached) " >&6
8014 else $as_nop
8015 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8016 then ac_cv_path_EGREP="$GREP -E"
8017 else
8018 if test -z "$EGREP"; then
8019 ac_path_EGREP_found=false
8020 # Loop through the user's path and test for each of PROGNAME-LIST
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8023 do
8024 IFS=$as_save_IFS
8025 case $as_dir in #(((
8026 '') as_dir=./ ;;
8027 */) ;;
8028 *) as_dir=$as_dir/ ;;
8029 esac
8030 for ac_prog in egrep
8031 do
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8034 as_fn_executable_p "$ac_path_EGREP" || continue
8035 # Check for GNU ac_path_EGREP and select it if it is found.
8036 # Check for GNU $ac_path_EGREP
8037 case `"$ac_path_EGREP" --version 2>&1` in
8038 *GNU*)
8039 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8040 *)
8041 ac_count=0
8042 printf %s 0123456789 >"conftest.in"
8043 while :
8044 do
8045 cat "conftest.in" "conftest.in" >"conftest.tmp"
8046 mv "conftest.tmp" "conftest.in"
8047 cp "conftest.in" "conftest.nl"
8048 printf "%s\n" 'EGREP' >> "conftest.nl"
8049 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8051 as_fn_arith $ac_count + 1 && ac_count=$as_val
8052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8053 # Best one so far, save it but keep looking for a better one
8054 ac_cv_path_EGREP="$ac_path_EGREP"
8055 ac_path_EGREP_max=$ac_count
8056 fi
8057 # 10*(2^10) chars as input seems more than enough
8058 test $ac_count -gt 10 && break
8059 done
8060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8061 esac
8062
8063 $ac_path_EGREP_found && break 3
8064 done
8065 done
8066 done
8067 IFS=$as_save_IFS
8068 if test -z "$ac_cv_path_EGREP"; then
8069 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8070 fi
8071 else
8072 ac_cv_path_EGREP=$EGREP
8073 fi
8074
8075 fi
8076 fi
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8078 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8079 EGREP="$ac_cv_path_EGREP"
8080
8081
8082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8083 printf %s "checking for fgrep... " >&6; }
8084 if test ${ac_cv_path_FGREP+y}
8085 then :
8086 printf %s "(cached) " >&6
8087 else $as_nop
8088 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8089 then ac_cv_path_FGREP="$GREP -F"
8090 else
8091 if test -z "$FGREP"; then
8092 ac_path_FGREP_found=false
8093 # Loop through the user's path and test for each of PROGNAME-LIST
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8096 do
8097 IFS=$as_save_IFS
8098 case $as_dir in #(((
8099 '') as_dir=./ ;;
8100 */) ;;
8101 *) as_dir=$as_dir/ ;;
8102 esac
8103 for ac_prog in fgrep
8104 do
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8107 as_fn_executable_p "$ac_path_FGREP" || continue
8108 # Check for GNU ac_path_FGREP and select it if it is found.
8109 # Check for GNU $ac_path_FGREP
8110 case `"$ac_path_FGREP" --version 2>&1` in
8111 *GNU*)
8112 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8113 *)
8114 ac_count=0
8115 printf %s 0123456789 >"conftest.in"
8116 while :
8117 do
8118 cat "conftest.in" "conftest.in" >"conftest.tmp"
8119 mv "conftest.tmp" "conftest.in"
8120 cp "conftest.in" "conftest.nl"
8121 printf "%s\n" 'FGREP' >> "conftest.nl"
8122 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8124 as_fn_arith $ac_count + 1 && ac_count=$as_val
8125 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8126 # Best one so far, save it but keep looking for a better one
8127 ac_cv_path_FGREP="$ac_path_FGREP"
8128 ac_path_FGREP_max=$ac_count
8129 fi
8130 # 10*(2^10) chars as input seems more than enough
8131 test $ac_count -gt 10 && break
8132 done
8133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8134 esac
8135
8136 $ac_path_FGREP_found && break 3
8137 done
8138 done
8139 done
8140 IFS=$as_save_IFS
8141 if test -z "$ac_cv_path_FGREP"; then
8142 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8143 fi
8144 else
8145 ac_cv_path_FGREP=$FGREP
8146 fi
8147
8148 fi
8149 fi
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8151 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8152 FGREP="$ac_cv_path_FGREP"
8153
8154
8155 test -z "$GREP" && GREP=grep
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 # Check whether --with-gnu-ld was given.
8176 if test ${with_gnu_ld+y}
8177 then :
8178 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8179 else $as_nop
8180 with_gnu_ld=no
8181 fi
8182
8183 ac_prog=ld
8184 if test yes = "$GCC"; then
8185 # Check if gcc -print-prog-name=ld gives a path.
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8187 printf %s "checking for ld used by $CC... " >&6; }
8188 case $host in
8189 *-*-mingw*)
8190 # gcc leaves a trailing carriage return, which upsets mingw
8191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8192 *)
8193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8194 esac
8195 case $ac_prog in
8196 # Accept absolute paths.
8197 [\\/]* | ?:[\\/]*)
8198 re_direlt='/[^/][^/]*/\.\./'
8199 # Canonicalize the pathname of ld
8200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8203 done
8204 test -z "$LD" && LD=$ac_prog
8205 ;;
8206 "")
8207 # If it fails, then pretend we aren't using GCC.
8208 ac_prog=ld
8209 ;;
8210 *)
8211 # If it is relative, then search for the first ld in PATH.
8212 with_gnu_ld=unknown
8213 ;;
8214 esac
8215 elif test yes = "$with_gnu_ld"; then
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8217 printf %s "checking for GNU ld... " >&6; }
8218 else
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8220 printf %s "checking for non-GNU ld... " >&6; }
8221 fi
8222 if test ${lt_cv_path_LD+y}
8223 then :
8224 printf %s "(cached) " >&6
8225 else $as_nop
8226 if test -z "$LD"; then
8227 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8228 for ac_dir in $PATH; do
8229 IFS=$lt_save_ifs
8230 test -z "$ac_dir" && ac_dir=.
8231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8232 lt_cv_path_LD=$ac_dir/$ac_prog
8233 # Check to see if the program is GNU ld. I'd rather use --version,
8234 # but apparently some variants of GNU ld only accept -v.
8235 # Break only if it was the GNU/non-GNU ld that we prefer.
8236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8237 *GNU* | *'with BFD'*)
8238 test no != "$with_gnu_ld" && break
8239 ;;
8240 *)
8241 test yes != "$with_gnu_ld" && break
8242 ;;
8243 esac
8244 fi
8245 done
8246 IFS=$lt_save_ifs
8247 else
8248 lt_cv_path_LD=$LD # Let the user override the test with a path.
8249 fi
8250 fi
8251
8252 LD=$lt_cv_path_LD
8253 if test -n "$LD"; then
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8255 printf "%s\n" "$LD" >&6; }
8256 else
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 printf "%s\n" "no" >&6; }
8259 fi
8260 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8262 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8263 if test ${lt_cv_prog_gnu_ld+y}
8264 then :
8265 printf %s "(cached) " >&6
8266 else $as_nop
8267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8268 case `$LD -v 2>&1 </dev/null` in
8269 *GNU* | *'with BFD'*)
8270 lt_cv_prog_gnu_ld=yes
8271 ;;
8272 *)
8273 lt_cv_prog_gnu_ld=no
8274 ;;
8275 esac
8276 fi
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8278 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8279 with_gnu_ld=$lt_cv_prog_gnu_ld
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8290 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8291 if test ${lt_cv_path_NM+y}
8292 then :
8293 printf %s "(cached) " >&6
8294 else $as_nop
8295 if test -n "$NM"; then
8296 # Let the user override the test.
8297 lt_cv_path_NM=$NM
8298 else
8299 lt_nm_to_check=${ac_tool_prefix}nm
8300 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8301 lt_nm_to_check="$lt_nm_to_check nm"
8302 fi
8303 for lt_tmp_nm in $lt_nm_to_check; do
8304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8305 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8306 IFS=$lt_save_ifs
8307 test -z "$ac_dir" && ac_dir=.
8308 tmp_nm=$ac_dir/$lt_tmp_nm
8309 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8310 # Check to see if the nm accepts a BSD-compat flag.
8311 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8312 # nm: unknown option "B" ignored
8313 # Tru64's nm complains that /dev/null is an invalid object file
8314 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8315 case $build_os in
8316 mingw*) lt_bad_file=conftest.nm/nofile ;;
8317 *) lt_bad_file=/dev/null ;;
8318 esac
8319 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8320 *$lt_bad_file* | *'Invalid file or object type'*)
8321 lt_cv_path_NM="$tmp_nm -B"
8322 break 2
8323 ;;
8324 *)
8325 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8326 */dev/null*)
8327 lt_cv_path_NM="$tmp_nm -p"
8328 break 2
8329 ;;
8330 *)
8331 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8332 continue # so that we can try to find one that supports BSD flags
8333 ;;
8334 esac
8335 ;;
8336 esac
8337 fi
8338 done
8339 IFS=$lt_save_ifs
8340 done
8341 : ${lt_cv_path_NM=no}
8342 fi
8343 fi
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8345 printf "%s\n" "$lt_cv_path_NM" >&6; }
8346 if test no != "$lt_cv_path_NM"; then
8347 NM=$lt_cv_path_NM
8348 else
8349 # Didn't find any BSD compatible name lister, look for dumpbin.
8350 if test -n "$DUMPBIN"; then :
8351 # Let the user override the test.
8352 else
8353 if test -n "$ac_tool_prefix"; then
8354 for ac_prog in dumpbin "link -dump"
8355 do
8356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 printf %s "checking for $ac_word... " >&6; }
8360 if test ${ac_cv_prog_DUMPBIN+y}
8361 then :
8362 printf %s "(cached) " >&6
8363 else $as_nop
8364 if test -n "$DUMPBIN"; then
8365 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8366 else
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8369 do
8370 IFS=$as_save_IFS
8371 case $as_dir in #(((
8372 '') as_dir=./ ;;
8373 */) ;;
8374 *) as_dir=$as_dir/ ;;
8375 esac
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8378 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386 fi
8387 fi
8388 DUMPBIN=$ac_cv_prog_DUMPBIN
8389 if test -n "$DUMPBIN"; then
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8391 printf "%s\n" "$DUMPBIN" >&6; }
8392 else
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 printf "%s\n" "no" >&6; }
8395 fi
8396
8397
8398 test -n "$DUMPBIN" && break
8399 done
8400 fi
8401 if test -z "$DUMPBIN"; then
8402 ac_ct_DUMPBIN=$DUMPBIN
8403 for ac_prog in dumpbin "link -dump"
8404 do
8405 # Extract the first word of "$ac_prog", so it can be a program name with args.
8406 set dummy $ac_prog; ac_word=$2
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408 printf %s "checking for $ac_word... " >&6; }
8409 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8410 then :
8411 printf %s "(cached) " >&6
8412 else $as_nop
8413 if test -n "$ac_ct_DUMPBIN"; then
8414 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419 IFS=$as_save_IFS
8420 case $as_dir in #(((
8421 '') as_dir=./ ;;
8422 */) ;;
8423 *) as_dir=$as_dir/ ;;
8424 esac
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8427 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8429 break 2
8430 fi
8431 done
8432 done
8433 IFS=$as_save_IFS
8434
8435 fi
8436 fi
8437 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8438 if test -n "$ac_ct_DUMPBIN"; then
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8440 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8441 else
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 printf "%s\n" "no" >&6; }
8444 fi
8445
8446
8447 test -n "$ac_ct_DUMPBIN" && break
8448 done
8449
8450 if test "x$ac_ct_DUMPBIN" = x; then
8451 DUMPBIN=":"
8452 else
8453 case $cross_compiling:$ac_tool_warned in
8454 yes:)
8455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8456 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8457 ac_tool_warned=yes ;;
8458 esac
8459 DUMPBIN=$ac_ct_DUMPBIN
8460 fi
8461 fi
8462
8463 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8464 *COFF*)
8465 DUMPBIN="$DUMPBIN -symbols -headers"
8466 ;;
8467 *)
8468 DUMPBIN=:
8469 ;;
8470 esac
8471 fi
8472
8473 if test : != "$DUMPBIN"; then
8474 NM=$DUMPBIN
8475 fi
8476 fi
8477 test -z "$NM" && NM=nm
8478
8479
8480
8481
8482
8483
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8485 printf %s "checking the name lister ($NM) interface... " >&6; }
8486 if test ${lt_cv_nm_interface+y}
8487 then :
8488 printf %s "(cached) " >&6
8489 else $as_nop
8490 lt_cv_nm_interface="BSD nm"
8491 echo "int some_variable = 0;" > conftest.$ac_ext
8492 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8493 (eval "$ac_compile" 2>conftest.err)
8494 cat conftest.err >&5
8495 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8496 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8497 cat conftest.err >&5
8498 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8499 cat conftest.out >&5
8500 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8501 lt_cv_nm_interface="MS dumpbin"
8502 fi
8503 rm -f conftest*
8504 fi
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8506 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8507
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8509 printf %s "checking whether ln -s works... " >&6; }
8510 LN_S=$as_ln_s
8511 if test "$LN_S" = "ln -s"; then
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8513 printf "%s\n" "yes" >&6; }
8514 else
8515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8516 printf "%s\n" "no, using $LN_S" >&6; }
8517 fi
8518
8519 # find the maximum length of command line arguments
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8521 printf %s "checking the maximum length of command line arguments... " >&6; }
8522 if test ${lt_cv_sys_max_cmd_len+y}
8523 then :
8524 printf %s "(cached) " >&6
8525 else $as_nop
8526 i=0
8527 teststring=ABCD
8528
8529 case $build_os in
8530 msdosdjgpp*)
8531 # On DJGPP, this test can blow up pretty badly due to problems in libc
8532 # (any single argument exceeding 2000 bytes causes a buffer overrun
8533 # during glob expansion). Even if it were fixed, the result of this
8534 # check would be larger than it should be.
8535 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8536 ;;
8537
8538 gnu*)
8539 # Under GNU Hurd, this test is not required because there is
8540 # no limit to the length of command line arguments.
8541 # Libtool will interpret -1 as no limit whatsoever
8542 lt_cv_sys_max_cmd_len=-1;
8543 ;;
8544
8545 cygwin* | mingw* | cegcc*)
8546 # On Win9x/ME, this test blows up -- it succeeds, but takes
8547 # about 5 minutes as the teststring grows exponentially.
8548 # Worse, since 9x/ME are not pre-emptively multitasking,
8549 # you end up with a "frozen" computer, even though with patience
8550 # the test eventually succeeds (with a max line length of 256k).
8551 # Instead, let's just punt: use the minimum linelength reported by
8552 # all of the supported platforms: 8192 (on NT/2K/XP).
8553 lt_cv_sys_max_cmd_len=8192;
8554 ;;
8555
8556 mint*)
8557 # On MiNT this can take a long time and run out of memory.
8558 lt_cv_sys_max_cmd_len=8192;
8559 ;;
8560
8561 amigaos*)
8562 # On AmigaOS with pdksh, this test takes hours, literally.
8563 # So we just punt and use a minimum line length of 8192.
8564 lt_cv_sys_max_cmd_len=8192;
8565 ;;
8566
8567 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8568 # This has been around since 386BSD, at least. Likely further.
8569 if test -x /sbin/sysctl; then
8570 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8571 elif test -x /usr/sbin/sysctl; then
8572 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8573 else
8574 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8575 fi
8576 # And add a safety zone
8577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8579 ;;
8580
8581 interix*)
8582 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8583 lt_cv_sys_max_cmd_len=196608
8584 ;;
8585
8586 os2*)
8587 # The test takes a long time on OS/2.
8588 lt_cv_sys_max_cmd_len=8192
8589 ;;
8590
8591 osf*)
8592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8594 # nice to cause kernel panics so lets avoid the loop below.
8595 # First set a reasonable default.
8596 lt_cv_sys_max_cmd_len=16384
8597 #
8598 if test -x /sbin/sysconfig; then
8599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8601 esac
8602 fi
8603 ;;
8604 sco3.2v5*)
8605 lt_cv_sys_max_cmd_len=102400
8606 ;;
8607 sysv5* | sco5v6* | sysv4.2uw2*)
8608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8609 if test -n "$kargmax"; then
8610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8611 else
8612 lt_cv_sys_max_cmd_len=32768
8613 fi
8614 ;;
8615 *)
8616 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8617 if test -n "$lt_cv_sys_max_cmd_len" && \
8618 test undefined != "$lt_cv_sys_max_cmd_len"; then
8619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8621 else
8622 # Make teststring a little bigger before we do anything with it.
8623 # a 1K string should be a reasonable start.
8624 for i in 1 2 3 4 5 6 7 8; do
8625 teststring=$teststring$teststring
8626 done
8627 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8628 # If test is not a shell built-in, we'll probably end up computing a
8629 # maximum length that is only half of the actual maximum length, but
8630 # we can't tell.
8631 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8632 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8633 test 17 != "$i" # 1/2 MB should be enough
8634 do
8635 i=`expr $i + 1`
8636 teststring=$teststring$teststring
8637 done
8638 # Only check the string length outside the loop.
8639 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8640 teststring=
8641 # Add a significant safety factor because C++ compilers can tack on
8642 # massive amounts of additional arguments before passing them to the
8643 # linker. It appears as though 1/2 is a usable value.
8644 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8645 fi
8646 ;;
8647 esac
8648
8649 fi
8650
8651 if test -n "$lt_cv_sys_max_cmd_len"; then
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8653 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8654 else
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8656 printf "%s\n" "none" >&6; }
8657 fi
8658 max_cmd_len=$lt_cv_sys_max_cmd_len
8659
8660
8661
8662
8663
8664
8665 : ${CP="cp -f"}
8666 : ${MV="mv -f"}
8667 : ${RM="rm -f"}
8668
8669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8670 lt_unset=unset
8671 else
8672 lt_unset=false
8673 fi
8674
8675
8676
8677
8678
8679 # test EBCDIC or ASCII
8680 case `echo X|tr X '\101'` in
8681 A) # ASCII based system
8682 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8683 lt_SP2NL='tr \040 \012'
8684 lt_NL2SP='tr \015\012 \040\040'
8685 ;;
8686 *) # EBCDIC based system
8687 lt_SP2NL='tr \100 \n'
8688 lt_NL2SP='tr \r\n \100\100'
8689 ;;
8690 esac
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8701 printf %s "checking how to convert $build file names to $host format... " >&6; }
8702 if test ${lt_cv_to_host_file_cmd+y}
8703 then :
8704 printf %s "(cached) " >&6
8705 else $as_nop
8706 case $host in
8707 *-*-mingw* )
8708 case $build in
8709 *-*-mingw* ) # actually msys
8710 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8711 ;;
8712 *-*-cygwin* )
8713 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8714 ;;
8715 * ) # otherwise, assume *nix
8716 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8717 ;;
8718 esac
8719 ;;
8720 *-*-cygwin* )
8721 case $build in
8722 *-*-mingw* ) # actually msys
8723 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8724 ;;
8725 *-*-cygwin* )
8726 lt_cv_to_host_file_cmd=func_convert_file_noop
8727 ;;
8728 * ) # otherwise, assume *nix
8729 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8730 ;;
8731 esac
8732 ;;
8733 * ) # unhandled hosts (and "normal" native builds)
8734 lt_cv_to_host_file_cmd=func_convert_file_noop
8735 ;;
8736 esac
8737
8738 fi
8739
8740 to_host_file_cmd=$lt_cv_to_host_file_cmd
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8742 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8743
8744
8745
8746
8747
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8749 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8750 if test ${lt_cv_to_tool_file_cmd+y}
8751 then :
8752 printf %s "(cached) " >&6
8753 else $as_nop
8754 #assume ordinary cross tools, or native build.
8755 lt_cv_to_tool_file_cmd=func_convert_file_noop
8756 case $host in
8757 *-*-mingw* )
8758 case $build in
8759 *-*-mingw* ) # actually msys
8760 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8761 ;;
8762 esac
8763 ;;
8764 esac
8765
8766 fi
8767
8768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8770 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8771
8772
8773
8774
8775
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8777 printf %s "checking for $LD option to reload object files... " >&6; }
8778 if test ${lt_cv_ld_reload_flag+y}
8779 then :
8780 printf %s "(cached) " >&6
8781 else $as_nop
8782 lt_cv_ld_reload_flag='-r'
8783 fi
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8785 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8786 reload_flag=$lt_cv_ld_reload_flag
8787 case $reload_flag in
8788 "" | " "*) ;;
8789 *) reload_flag=" $reload_flag" ;;
8790 esac
8791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8792 case $host_os in
8793 cygwin* | mingw* | pw32* | cegcc*)
8794 if test yes != "$GCC"; then
8795 reload_cmds=false
8796 fi
8797 ;;
8798 darwin*)
8799 if test yes = "$GCC"; then
8800 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8801 else
8802 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8803 fi
8804 ;;
8805 esac
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815 if test -n "$ac_tool_prefix"; then
8816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 printf %s "checking for $ac_word... " >&6; }
8820 if test ${ac_cv_prog_OBJDUMP+y}
8821 then :
8822 printf %s "(cached) " >&6
8823 else $as_nop
8824 if test -n "$OBJDUMP"; then
8825 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830 IFS=$as_save_IFS
8831 case $as_dir in #(((
8832 '') as_dir=./ ;;
8833 */) ;;
8834 *) as_dir=$as_dir/ ;;
8835 esac
8836 for ac_exec_ext in '' $ac_executable_extensions; do
8837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8838 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8840 break 2
8841 fi
8842 done
8843 done
8844 IFS=$as_save_IFS
8845
8846 fi
8847 fi
8848 OBJDUMP=$ac_cv_prog_OBJDUMP
8849 if test -n "$OBJDUMP"; then
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8851 printf "%s\n" "$OBJDUMP" >&6; }
8852 else
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 printf "%s\n" "no" >&6; }
8855 fi
8856
8857
8858 fi
8859 if test -z "$ac_cv_prog_OBJDUMP"; then
8860 ac_ct_OBJDUMP=$OBJDUMP
8861 # Extract the first word of "objdump", so it can be a program name with args.
8862 set dummy objdump; ac_word=$2
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 printf %s "checking for $ac_word... " >&6; }
8865 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8866 then :
8867 printf %s "(cached) " >&6
8868 else $as_nop
8869 if test -n "$ac_ct_OBJDUMP"; then
8870 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8871 else
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873 for as_dir in $PATH
8874 do
8875 IFS=$as_save_IFS
8876 case $as_dir in #(((
8877 '') as_dir=./ ;;
8878 */) ;;
8879 *) as_dir=$as_dir/ ;;
8880 esac
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8883 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8885 break 2
8886 fi
8887 done
8888 done
8889 IFS=$as_save_IFS
8890
8891 fi
8892 fi
8893 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8894 if test -n "$ac_ct_OBJDUMP"; then
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8896 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8897 else
8898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 printf "%s\n" "no" >&6; }
8900 fi
8901
8902 if test "x$ac_ct_OBJDUMP" = x; then
8903 OBJDUMP="false"
8904 else
8905 case $cross_compiling:$ac_tool_warned in
8906 yes:)
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8909 ac_tool_warned=yes ;;
8910 esac
8911 OBJDUMP=$ac_ct_OBJDUMP
8912 fi
8913 else
8914 OBJDUMP="$ac_cv_prog_OBJDUMP"
8915 fi
8916
8917 test -z "$OBJDUMP" && OBJDUMP=objdump
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8928 printf %s "checking how to recognize dependent libraries... " >&6; }
8929 if test ${lt_cv_deplibs_check_method+y}
8930 then :
8931 printf %s "(cached) " >&6
8932 else $as_nop
8933 lt_cv_file_magic_cmd='$MAGIC_CMD'
8934 lt_cv_file_magic_test_file=
8935 lt_cv_deplibs_check_method='unknown'
8936 # Need to set the preceding variable on all platforms that support
8937 # interlibrary dependencies.
8938 # 'none' -- dependencies not supported.
8939 # 'unknown' -- same as none, but documents that we really don't know.
8940 # 'pass_all' -- all dependencies passed with no checks.
8941 # 'test_compile' -- check by making test program.
8942 # 'file_magic [[regex]]' -- check by looking for files in library path
8943 # that responds to the $file_magic_cmd with a given extended regex.
8944 # If you have 'file' or equivalent on your system and you're not sure
8945 # whether 'pass_all' will *always* work, you probably want this one.
8946
8947 case $host_os in
8948 aix[4-9]*)
8949 lt_cv_deplibs_check_method=pass_all
8950 ;;
8951
8952 beos*)
8953 lt_cv_deplibs_check_method=pass_all
8954 ;;
8955
8956 bsdi[45]*)
8957 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8958 lt_cv_file_magic_cmd='/usr/bin/file -L'
8959 lt_cv_file_magic_test_file=/shlib/libc.so
8960 ;;
8961
8962 cygwin*)
8963 # func_win32_libid is a shell function defined in ltmain.sh
8964 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8965 lt_cv_file_magic_cmd='func_win32_libid'
8966 ;;
8967
8968 mingw* | pw32*)
8969 # Base MSYS/MinGW do not provide the 'file' command needed by
8970 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8971 # unless we find 'file', for example because we are cross-compiling.
8972 if ( file / ) >/dev/null 2>&1; then
8973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8974 lt_cv_file_magic_cmd='func_win32_libid'
8975 else
8976 # Keep this pattern in sync with the one in func_win32_libid.
8977 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8978 lt_cv_file_magic_cmd='$OBJDUMP -f'
8979 fi
8980 ;;
8981
8982 cegcc*)
8983 # use the weaker test based on 'objdump'. See mingw*.
8984 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8985 lt_cv_file_magic_cmd='$OBJDUMP -f'
8986 ;;
8987
8988 darwin* | rhapsody*)
8989 lt_cv_deplibs_check_method=pass_all
8990 ;;
8991
8992 freebsd* | dragonfly*)
8993 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8994 case $host_cpu in
8995 i*86 )
8996 # Not sure whether the presence of OpenBSD here was a mistake.
8997 # Let's accept both of them until this is cleared up.
8998 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8999 lt_cv_file_magic_cmd=/usr/bin/file
9000 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9001 ;;
9002 esac
9003 else
9004 lt_cv_deplibs_check_method=pass_all
9005 fi
9006 ;;
9007
9008 haiku*)
9009 lt_cv_deplibs_check_method=pass_all
9010 ;;
9011
9012 hpux10.20* | hpux11*)
9013 lt_cv_file_magic_cmd=/usr/bin/file
9014 case $host_cpu in
9015 ia64*)
9016 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9017 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9018 ;;
9019 hppa*64*)
9020 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]'
9021 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9022 ;;
9023 *)
9024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9025 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9026 ;;
9027 esac
9028 ;;
9029
9030 interix[3-9]*)
9031 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9033 ;;
9034
9035 irix5* | irix6* | nonstopux*)
9036 case $LD in
9037 *-32|*"-32 ") libmagic=32-bit;;
9038 *-n32|*"-n32 ") libmagic=N32;;
9039 *-64|*"-64 ") libmagic=64-bit;;
9040 *) libmagic=never-match;;
9041 esac
9042 lt_cv_deplibs_check_method=pass_all
9043 ;;
9044
9045 # This must be glibc/ELF.
9046 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9047 lt_cv_deplibs_check_method=pass_all
9048 ;;
9049
9050 netbsd* | netbsdelf*-gnu)
9051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9053 else
9054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9055 fi
9056 ;;
9057
9058 newos6*)
9059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9060 lt_cv_file_magic_cmd=/usr/bin/file
9061 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9062 ;;
9063
9064 *nto* | *qnx*)
9065 lt_cv_deplibs_check_method=pass_all
9066 ;;
9067
9068 openbsd* | bitrig*)
9069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9071 else
9072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9073 fi
9074 ;;
9075
9076 osf3* | osf4* | osf5*)
9077 lt_cv_deplibs_check_method=pass_all
9078 ;;
9079
9080 rdos*)
9081 lt_cv_deplibs_check_method=pass_all
9082 ;;
9083
9084 solaris*)
9085 lt_cv_deplibs_check_method=pass_all
9086 ;;
9087
9088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9089 lt_cv_deplibs_check_method=pass_all
9090 ;;
9091
9092 sysv4 | sysv4.3*)
9093 case $host_vendor in
9094 motorola)
9095 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]'
9096 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9097 ;;
9098 ncr)
9099 lt_cv_deplibs_check_method=pass_all
9100 ;;
9101 sequent)
9102 lt_cv_file_magic_cmd='/bin/file'
9103 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9104 ;;
9105 sni)
9106 lt_cv_file_magic_cmd='/bin/file'
9107 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9108 lt_cv_file_magic_test_file=/lib/libc.so
9109 ;;
9110 siemens)
9111 lt_cv_deplibs_check_method=pass_all
9112 ;;
9113 pc)
9114 lt_cv_deplibs_check_method=pass_all
9115 ;;
9116 esac
9117 ;;
9118
9119 tpf*)
9120 lt_cv_deplibs_check_method=pass_all
9121 ;;
9122 os2*)
9123 lt_cv_deplibs_check_method=pass_all
9124 ;;
9125 esac
9126
9127 fi
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9129 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9130
9131 file_magic_glob=
9132 want_nocaseglob=no
9133 if test "$build" = "$host"; then
9134 case $host_os in
9135 mingw* | pw32*)
9136 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9137 want_nocaseglob=yes
9138 else
9139 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9140 fi
9141 ;;
9142 esac
9143 fi
9144
9145 file_magic_cmd=$lt_cv_file_magic_cmd
9146 deplibs_check_method=$lt_cv_deplibs_check_method
9147 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170 if test -n "$ac_tool_prefix"; then
9171 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9172 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9174 printf %s "checking for $ac_word... " >&6; }
9175 if test ${ac_cv_prog_DLLTOOL+y}
9176 then :
9177 printf %s "(cached) " >&6
9178 else $as_nop
9179 if test -n "$DLLTOOL"; then
9180 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9181 else
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 for as_dir in $PATH
9184 do
9185 IFS=$as_save_IFS
9186 case $as_dir in #(((
9187 '') as_dir=./ ;;
9188 */) ;;
9189 *) as_dir=$as_dir/ ;;
9190 esac
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9193 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9195 break 2
9196 fi
9197 done
9198 done
9199 IFS=$as_save_IFS
9200
9201 fi
9202 fi
9203 DLLTOOL=$ac_cv_prog_DLLTOOL
9204 if test -n "$DLLTOOL"; then
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9206 printf "%s\n" "$DLLTOOL" >&6; }
9207 else
9208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 printf "%s\n" "no" >&6; }
9210 fi
9211
9212
9213 fi
9214 if test -z "$ac_cv_prog_DLLTOOL"; then
9215 ac_ct_DLLTOOL=$DLLTOOL
9216 # Extract the first word of "dlltool", so it can be a program name with args.
9217 set dummy dlltool; ac_word=$2
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 printf %s "checking for $ac_word... " >&6; }
9220 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9221 then :
9222 printf %s "(cached) " >&6
9223 else $as_nop
9224 if test -n "$ac_ct_DLLTOOL"; then
9225 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9229 do
9230 IFS=$as_save_IFS
9231 case $as_dir in #(((
9232 '') as_dir=./ ;;
9233 */) ;;
9234 *) as_dir=$as_dir/ ;;
9235 esac
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9238 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9240 break 2
9241 fi
9242 done
9243 done
9244 IFS=$as_save_IFS
9245
9246 fi
9247 fi
9248 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9249 if test -n "$ac_ct_DLLTOOL"; then
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9251 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9252 else
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254 printf "%s\n" "no" >&6; }
9255 fi
9256
9257 if test "x$ac_ct_DLLTOOL" = x; then
9258 DLLTOOL="false"
9259 else
9260 case $cross_compiling:$ac_tool_warned in
9261 yes:)
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9263 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9264 ac_tool_warned=yes ;;
9265 esac
9266 DLLTOOL=$ac_ct_DLLTOOL
9267 fi
9268 else
9269 DLLTOOL="$ac_cv_prog_DLLTOOL"
9270 fi
9271
9272 test -z "$DLLTOOL" && DLLTOOL=dlltool
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9284 printf %s "checking how to associate runtime and link libraries... " >&6; }
9285 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9286 then :
9287 printf %s "(cached) " >&6
9288 else $as_nop
9289 lt_cv_sharedlib_from_linklib_cmd='unknown'
9290
9291 case $host_os in
9292 cygwin* | mingw* | pw32* | cegcc*)
9293 # two different shell functions defined in ltmain.sh;
9294 # decide which one to use based on capabilities of $DLLTOOL
9295 case `$DLLTOOL --help 2>&1` in
9296 *--identify-strict*)
9297 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9298 ;;
9299 *)
9300 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9301 ;;
9302 esac
9303 ;;
9304 *)
9305 # fallback: assume linklib IS sharedlib
9306 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9307 ;;
9308 esac
9309
9310 fi
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9312 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9313 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9314 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9315
9316
9317
9318
9319
9320
9321
9322 if test -n "$ac_tool_prefix"; then
9323 for ac_prog in ar
9324 do
9325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328 printf %s "checking for $ac_word... " >&6; }
9329 if test ${ac_cv_prog_AR+y}
9330 then :
9331 printf %s "(cached) " >&6
9332 else $as_nop
9333 if test -n "$AR"; then
9334 ac_cv_prog_AR="$AR" # Let the user override the test.
9335 else
9336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9338 do
9339 IFS=$as_save_IFS
9340 case $as_dir in #(((
9341 '') as_dir=./ ;;
9342 */) ;;
9343 *) as_dir=$as_dir/ ;;
9344 esac
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9347 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9349 break 2
9350 fi
9351 done
9352 done
9353 IFS=$as_save_IFS
9354
9355 fi
9356 fi
9357 AR=$ac_cv_prog_AR
9358 if test -n "$AR"; then
9359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9360 printf "%s\n" "$AR" >&6; }
9361 else
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 printf "%s\n" "no" >&6; }
9364 fi
9365
9366
9367 test -n "$AR" && break
9368 done
9369 fi
9370 if test -z "$AR"; then
9371 ac_ct_AR=$AR
9372 for ac_prog in ar
9373 do
9374 # Extract the first word of "$ac_prog", so it can be a program name with args.
9375 set dummy $ac_prog; ac_word=$2
9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9377 printf %s "checking for $ac_word... " >&6; }
9378 if test ${ac_cv_prog_ac_ct_AR+y}
9379 then :
9380 printf %s "(cached) " >&6
9381 else $as_nop
9382 if test -n "$ac_ct_AR"; then
9383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9384 else
9385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386 for as_dir in $PATH
9387 do
9388 IFS=$as_save_IFS
9389 case $as_dir in #(((
9390 '') as_dir=./ ;;
9391 */) ;;
9392 *) as_dir=$as_dir/ ;;
9393 esac
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9396 ac_cv_prog_ac_ct_AR="$ac_prog"
9397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9398 break 2
9399 fi
9400 done
9401 done
9402 IFS=$as_save_IFS
9403
9404 fi
9405 fi
9406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9407 if test -n "$ac_ct_AR"; then
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9409 printf "%s\n" "$ac_ct_AR" >&6; }
9410 else
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412 printf "%s\n" "no" >&6; }
9413 fi
9414
9415
9416 test -n "$ac_ct_AR" && break
9417 done
9418
9419 if test "x$ac_ct_AR" = x; then
9420 AR="false"
9421 else
9422 case $cross_compiling:$ac_tool_warned in
9423 yes:)
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9425 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9426 ac_tool_warned=yes ;;
9427 esac
9428 AR=$ac_ct_AR
9429 fi
9430 fi
9431
9432 : ${AR=ar}
9433 : ${AR_FLAGS=cr}
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9446 printf %s "checking for archiver @FILE support... " >&6; }
9447 if test ${lt_cv_ar_at_file+y}
9448 then :
9449 printf %s "(cached) " >&6
9450 else $as_nop
9451 lt_cv_ar_at_file=no
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454
9455 int
9456 main (void)
9457 {
9458
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 if ac_fn_c_try_compile "$LINENO"
9464 then :
9465 echo conftest.$ac_objext > conftest.lst
9466 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9468 (eval $lt_ar_try) 2>&5
9469 ac_status=$?
9470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; }
9472 if test 0 -eq "$ac_status"; then
9473 # Ensure the archiver fails upon bogus file names.
9474 rm -f conftest.$ac_objext libconftest.a
9475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9476 (eval $lt_ar_try) 2>&5
9477 ac_status=$?
9478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9479 test $ac_status = 0; }
9480 if test 0 -ne "$ac_status"; then
9481 lt_cv_ar_at_file=@
9482 fi
9483 fi
9484 rm -f conftest.* libconftest.a
9485
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9488
9489 fi
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9491 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9492
9493 if test no = "$lt_cv_ar_at_file"; then
9494 archiver_list_spec=
9495 else
9496 archiver_list_spec=$lt_cv_ar_at_file
9497 fi
9498
9499
9500
9501
9502
9503
9504
9505 if test -n "$ac_tool_prefix"; then
9506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9507 set dummy ${ac_tool_prefix}strip; ac_word=$2
9508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 printf %s "checking for $ac_word... " >&6; }
9510 if test ${ac_cv_prog_STRIP+y}
9511 then :
9512 printf %s "(cached) " >&6
9513 else $as_nop
9514 if test -n "$STRIP"; then
9515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9516 else
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9518 for as_dir in $PATH
9519 do
9520 IFS=$as_save_IFS
9521 case $as_dir in #(((
9522 '') as_dir=./ ;;
9523 */) ;;
9524 *) as_dir=$as_dir/ ;;
9525 esac
9526 for ac_exec_ext in '' $ac_executable_extensions; do
9527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9530 break 2
9531 fi
9532 done
9533 done
9534 IFS=$as_save_IFS
9535
9536 fi
9537 fi
9538 STRIP=$ac_cv_prog_STRIP
9539 if test -n "$STRIP"; then
9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9541 printf "%s\n" "$STRIP" >&6; }
9542 else
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 printf "%s\n" "no" >&6; }
9545 fi
9546
9547
9548 fi
9549 if test -z "$ac_cv_prog_STRIP"; then
9550 ac_ct_STRIP=$STRIP
9551 # Extract the first word of "strip", so it can be a program name with args.
9552 set dummy strip; ac_word=$2
9553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9554 printf %s "checking for $ac_word... " >&6; }
9555 if test ${ac_cv_prog_ac_ct_STRIP+y}
9556 then :
9557 printf %s "(cached) " >&6
9558 else $as_nop
9559 if test -n "$ac_ct_STRIP"; then
9560 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9561 else
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9564 do
9565 IFS=$as_save_IFS
9566 case $as_dir in #(((
9567 '') as_dir=./ ;;
9568 */) ;;
9569 *) as_dir=$as_dir/ ;;
9570 esac
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9573 ac_cv_prog_ac_ct_STRIP="strip"
9574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9575 break 2
9576 fi
9577 done
9578 done
9579 IFS=$as_save_IFS
9580
9581 fi
9582 fi
9583 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9584 if test -n "$ac_ct_STRIP"; then
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9586 printf "%s\n" "$ac_ct_STRIP" >&6; }
9587 else
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589 printf "%s\n" "no" >&6; }
9590 fi
9591
9592 if test "x$ac_ct_STRIP" = x; then
9593 STRIP=":"
9594 else
9595 case $cross_compiling:$ac_tool_warned in
9596 yes:)
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9598 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9599 ac_tool_warned=yes ;;
9600 esac
9601 STRIP=$ac_ct_STRIP
9602 fi
9603 else
9604 STRIP="$ac_cv_prog_STRIP"
9605 fi
9606
9607 test -z "$STRIP" && STRIP=:
9608
9609
9610
9611
9612
9613
9614 if test -n "$ac_tool_prefix"; then
9615 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618 printf %s "checking for $ac_word... " >&6; }
9619 if test ${ac_cv_prog_RANLIB+y}
9620 then :
9621 printf %s "(cached) " >&6
9622 else $as_nop
9623 if test -n "$RANLIB"; then
9624 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9628 do
9629 IFS=$as_save_IFS
9630 case $as_dir in #(((
9631 '') as_dir=./ ;;
9632 */) ;;
9633 *) as_dir=$as_dir/ ;;
9634 esac
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9639 break 2
9640 fi
9641 done
9642 done
9643 IFS=$as_save_IFS
9644
9645 fi
9646 fi
9647 RANLIB=$ac_cv_prog_RANLIB
9648 if test -n "$RANLIB"; then
9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9650 printf "%s\n" "$RANLIB" >&6; }
9651 else
9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653 printf "%s\n" "no" >&6; }
9654 fi
9655
9656
9657 fi
9658 if test -z "$ac_cv_prog_RANLIB"; then
9659 ac_ct_RANLIB=$RANLIB
9660 # Extract the first word of "ranlib", so it can be a program name with args.
9661 set dummy ranlib; ac_word=$2
9662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 printf %s "checking for $ac_word... " >&6; }
9664 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9665 then :
9666 printf %s "(cached) " >&6
9667 else $as_nop
9668 if test -n "$ac_ct_RANLIB"; then
9669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9670 else
9671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 for as_dir in $PATH
9673 do
9674 IFS=$as_save_IFS
9675 case $as_dir in #(((
9676 '') as_dir=./ ;;
9677 */) ;;
9678 *) as_dir=$as_dir/ ;;
9679 esac
9680 for ac_exec_ext in '' $ac_executable_extensions; do
9681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9682 ac_cv_prog_ac_ct_RANLIB="ranlib"
9683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9684 break 2
9685 fi
9686 done
9687 done
9688 IFS=$as_save_IFS
9689
9690 fi
9691 fi
9692 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9693 if test -n "$ac_ct_RANLIB"; then
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9695 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9696 else
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698 printf "%s\n" "no" >&6; }
9699 fi
9700
9701 if test "x$ac_ct_RANLIB" = x; then
9702 RANLIB=":"
9703 else
9704 case $cross_compiling:$ac_tool_warned in
9705 yes:)
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9708 ac_tool_warned=yes ;;
9709 esac
9710 RANLIB=$ac_ct_RANLIB
9711 fi
9712 else
9713 RANLIB="$ac_cv_prog_RANLIB"
9714 fi
9715
9716 test -z "$RANLIB" && RANLIB=:
9717
9718
9719
9720
9721
9722
9723 # Determine commands to create old-style static archives.
9724 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9725 old_postinstall_cmds='chmod 644 $oldlib'
9726 old_postuninstall_cmds=
9727
9728 if test -n "$RANLIB"; then
9729 case $host_os in
9730 bitrig* | openbsd*)
9731 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9732 ;;
9733 *)
9734 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9735 ;;
9736 esac
9737 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9738 fi
9739
9740 case $host_os in
9741 darwin*)
9742 lock_old_archive_extraction=yes ;;
9743 *)
9744 lock_old_archive_extraction=no ;;
9745 esac
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785 # If no C compiler was specified, use CC.
9786 LTCC=${LTCC-"$CC"}
9787
9788 # If no C compiler flags were specified, use CFLAGS.
9789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9790
9791 # Allow CC to be a program name with arguments.
9792 compiler=$CC
9793
9794
9795 # Check for command to grab the raw symbol name followed by C symbol from nm.
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9797 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9798 if test ${lt_cv_sys_global_symbol_pipe+y}
9799 then :
9800 printf %s "(cached) " >&6
9801 else $as_nop
9802
9803 # These are sane defaults that work on at least a few old systems.
9804 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9805
9806 # Character class describing NM global symbol codes.
9807 symcode='[BCDEGRST]'
9808
9809 # Regexp to match symbols that can be accessed directly from C.
9810 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9811
9812 # Define system-specific variables.
9813 case $host_os in
9814 aix*)
9815 symcode='[BCDT]'
9816 ;;
9817 cygwin* | mingw* | pw32* | cegcc*)
9818 symcode='[ABCDGISTW]'
9819 ;;
9820 hpux*)
9821 if test ia64 = "$host_cpu"; then
9822 symcode='[ABCDEGRST]'
9823 fi
9824 ;;
9825 irix* | nonstopux*)
9826 symcode='[BCDEGRST]'
9827 ;;
9828 osf*)
9829 symcode='[BCDEGQRST]'
9830 ;;
9831 solaris*)
9832 symcode='[BDRT]'
9833 ;;
9834 sco3.2v5*)
9835 symcode='[DT]'
9836 ;;
9837 sysv4.2uw2*)
9838 symcode='[DT]'
9839 ;;
9840 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9841 symcode='[ABDT]'
9842 ;;
9843 sysv4)
9844 symcode='[DFNSTU]'
9845 ;;
9846 esac
9847
9848 # If we're using GNU nm, then use its standard symbol codes.
9849 case `$NM -V 2>&1` in
9850 *GNU* | *'with BFD'*)
9851 symcode='[ABCDGIRSTW]' ;;
9852 esac
9853
9854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9855 # Gets list of data symbols to import.
9856 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9857 # Adjust the below global symbol transforms to fixup imported variables.
9858 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9859 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9860 lt_c_name_lib_hook="\
9861 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9862 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9863 else
9864 # Disable hooks by default.
9865 lt_cv_sys_global_symbol_to_import=
9866 lt_cdecl_hook=
9867 lt_c_name_hook=
9868 lt_c_name_lib_hook=
9869 fi
9870
9871 # Transform an extracted symbol line into a proper C declaration.
9872 # Some systems (esp. on ia64) link data and code symbols differently,
9873 # so use this general approach.
9874 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9875 $lt_cdecl_hook\
9876 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9877 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9878
9879 # Transform an extracted symbol line into symbol name and symbol address
9880 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9881 $lt_c_name_hook\
9882 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9883 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9884
9885 # Transform an extracted symbol line into symbol name with lib prefix and
9886 # symbol address.
9887 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9888 $lt_c_name_lib_hook\
9889 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9890 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9891 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9892
9893 # Handle CRLF in mingw tool chain
9894 opt_cr=
9895 case $build_os in
9896 mingw*)
9897 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9898 ;;
9899 esac
9900
9901 # Try without a prefix underscore, then with it.
9902 for ac_symprfx in "" "_"; do
9903
9904 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9905 symxfrm="\\1 $ac_symprfx\\2 \\2"
9906
9907 # Write the raw and C identifiers.
9908 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9909 # Fake it for dumpbin and say T for any non-static function,
9910 # D for any global variable and I for any imported variable.
9911 # Also find C++ and __fastcall symbols from MSVC++,
9912 # which start with @ or ?.
9913 lt_cv_sys_global_symbol_pipe="$AWK '"\
9914 " {last_section=section; section=\$ 3};"\
9915 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9916 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9917 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9918 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9919 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9920 " \$ 0!~/External *\|/{next};"\
9921 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9922 " {if(hide[section]) next};"\
9923 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9924 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9925 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9926 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9927 " ' prfx=^$ac_symprfx"
9928 else
9929 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9930 fi
9931 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9932
9933 # Check to see that the pipe works correctly.
9934 pipe_works=no
9935
9936 rm -f conftest*
9937 cat > conftest.$ac_ext <<_LT_EOF
9938 #ifdef __cplusplus
9939 extern "C" {
9940 #endif
9941 char nm_test_var;
9942 void nm_test_func(void);
9943 void nm_test_func(void){}
9944 #ifdef __cplusplus
9945 }
9946 #endif
9947 int main(){nm_test_var='a';nm_test_func();return(0);}
9948 _LT_EOF
9949
9950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9951 (eval $ac_compile) 2>&5
9952 ac_status=$?
9953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954 test $ac_status = 0; }; then
9955 # Now try to grab the symbols.
9956 nlist=conftest.nm
9957 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9958 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9959 # Try sorting and uniquifying the output.
9960 if sort "$nlist" | uniq > "$nlist"T; then
9961 mv -f "$nlist"T "$nlist"
9962 else
9963 rm -f "$nlist"T
9964 fi
9965
9966 # Make sure that we snagged all the symbols we need.
9967 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9968 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9969 cat <<_LT_EOF > conftest.$ac_ext
9970 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9971 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9972 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9973 relocations are performed -- see ld's documentation on pseudo-relocs. */
9974 # define LT_DLSYM_CONST
9975 #elif defined __osf__
9976 /* This system does not cope well with relocations in const data. */
9977 # define LT_DLSYM_CONST
9978 #else
9979 # define LT_DLSYM_CONST const
9980 #endif
9981
9982 #ifdef __cplusplus
9983 extern "C" {
9984 #endif
9985
9986 _LT_EOF
9987 # Now generate the symbol file.
9988 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9989
9990 cat <<_LT_EOF >> conftest.$ac_ext
9991
9992 /* The mapping between symbol names and symbols. */
9993 LT_DLSYM_CONST struct {
9994 const char *name;
9995 void *address;
9996 }
9997 lt__PROGRAM__LTX_preloaded_symbols[] =
9998 {
9999 { "@PROGRAM@", (void *) 0 },
10000 _LT_EOF
10001 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10002 cat <<\_LT_EOF >> conftest.$ac_ext
10003 {0, (void *) 0}
10004 };
10005
10006 /* This works around a problem in FreeBSD linker */
10007 #ifdef FREEBSD_WORKAROUND
10008 static const void *lt_preloaded_setup() {
10009 return lt__PROGRAM__LTX_preloaded_symbols;
10010 }
10011 #endif
10012
10013 #ifdef __cplusplus
10014 }
10015 #endif
10016 _LT_EOF
10017 # Now try linking the two files.
10018 mv conftest.$ac_objext conftstm.$ac_objext
10019 lt_globsym_save_LIBS=$LIBS
10020 lt_globsym_save_CFLAGS=$CFLAGS
10021 LIBS=conftstm.$ac_objext
10022 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10024 (eval $ac_link) 2>&5
10025 ac_status=$?
10026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10027 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10028 pipe_works=yes
10029 fi
10030 LIBS=$lt_globsym_save_LIBS
10031 CFLAGS=$lt_globsym_save_CFLAGS
10032 else
10033 echo "cannot find nm_test_func in $nlist" >&5
10034 fi
10035 else
10036 echo "cannot find nm_test_var in $nlist" >&5
10037 fi
10038 else
10039 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10040 fi
10041 else
10042 echo "$progname: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10044 fi
10045 rm -rf conftest* conftst*
10046
10047 # Do not use the global_symbol_pipe unless it works.
10048 if test yes = "$pipe_works"; then
10049 break
10050 else
10051 lt_cv_sys_global_symbol_pipe=
10052 fi
10053 done
10054
10055 fi
10056
10057 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10058 lt_cv_sys_global_symbol_to_cdecl=
10059 fi
10060 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10062 printf "%s\n" "failed" >&6; }
10063 else
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10065 printf "%s\n" "ok" >&6; }
10066 fi
10067
10068 # Response file support.
10069 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10070 nm_file_list_spec='@'
10071 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10072 nm_file_list_spec='@'
10073 fi
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10112 printf %s "checking for sysroot... " >&6; }
10113
10114 # Check whether --with-sysroot was given.
10115 if test ${with_sysroot+y}
10116 then :
10117 withval=$with_sysroot;
10118 else $as_nop
10119 with_sysroot=no
10120 fi
10121
10122
10123 lt_sysroot=
10124 case $with_sysroot in #(
10125 yes)
10126 if test yes = "$GCC"; then
10127 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10128 fi
10129 ;; #(
10130 /*)
10131 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10132 ;; #(
10133 no|'')
10134 ;; #(
10135 *)
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10137 printf "%s\n" "$with_sysroot" >&6; }
10138 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10139 ;;
10140 esac
10141
10142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10143 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10144
10145
10146
10147
10148
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10150 printf %s "checking for a working dd... " >&6; }
10151 if test ${ac_cv_path_lt_DD+y}
10152 then :
10153 printf %s "(cached) " >&6
10154 else $as_nop
10155 printf 0123456789abcdef0123456789abcdef >conftest.i
10156 cat conftest.i conftest.i >conftest2.i
10157 : ${lt_DD:=$DD}
10158 if test -z "$lt_DD"; then
10159 ac_path_lt_DD_found=false
10160 # Loop through the user's path and test for each of PROGNAME-LIST
10161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10163 do
10164 IFS=$as_save_IFS
10165 case $as_dir in #(((
10166 '') as_dir=./ ;;
10167 */) ;;
10168 *) as_dir=$as_dir/ ;;
10169 esac
10170 for ac_prog in dd
10171 do
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10174 as_fn_executable_p "$ac_path_lt_DD" || continue
10175 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10176 cmp -s conftest.i conftest.out \
10177 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10178 fi
10179 $ac_path_lt_DD_found && break 3
10180 done
10181 done
10182 done
10183 IFS=$as_save_IFS
10184 if test -z "$ac_cv_path_lt_DD"; then
10185 :
10186 fi
10187 else
10188 ac_cv_path_lt_DD=$lt_DD
10189 fi
10190
10191 rm -f conftest.i conftest2.i conftest.out
10192 fi
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10194 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10195
10196
10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10198 printf %s "checking how to truncate binary pipes... " >&6; }
10199 if test ${lt_cv_truncate_bin+y}
10200 then :
10201 printf %s "(cached) " >&6
10202 else $as_nop
10203 printf 0123456789abcdef0123456789abcdef >conftest.i
10204 cat conftest.i conftest.i >conftest2.i
10205 lt_cv_truncate_bin=
10206 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10207 cmp -s conftest.i conftest.out \
10208 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10209 fi
10210 rm -f conftest.i conftest2.i conftest.out
10211 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10212 fi
10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10214 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10215
10216
10217
10218
10219
10220
10221
10222 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10223 func_cc_basename ()
10224 {
10225 for cc_temp in $*""; do
10226 case $cc_temp in
10227 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10228 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10229 \-*) ;;
10230 *) break;;
10231 esac
10232 done
10233 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10234 }
10235
10236 # Check whether --enable-libtool-lock was given.
10237 if test ${enable_libtool_lock+y}
10238 then :
10239 enableval=$enable_libtool_lock;
10240 fi
10241
10242 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10243
10244 # Some flags need to be propagated to the compiler or linker for good
10245 # libtool support.
10246 case $host in
10247 ia64-*-hpux*)
10248 # Find out what ABI is being produced by ac_compile, and set mode
10249 # options accordingly.
10250 echo 'int i;' > conftest.$ac_ext
10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10252 (eval $ac_compile) 2>&5
10253 ac_status=$?
10254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255 test $ac_status = 0; }; then
10256 case `/usr/bin/file conftest.$ac_objext` in
10257 *ELF-32*)
10258 HPUX_IA64_MODE=32
10259 ;;
10260 *ELF-64*)
10261 HPUX_IA64_MODE=64
10262 ;;
10263 esac
10264 fi
10265 rm -rf conftest*
10266 ;;
10267 *-*-irix6*)
10268 # Find out what ABI is being produced by ac_compile, and set linker
10269 # options accordingly.
10270 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10272 (eval $ac_compile) 2>&5
10273 ac_status=$?
10274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10275 test $ac_status = 0; }; then
10276 if test yes = "$lt_cv_prog_gnu_ld"; then
10277 case `/usr/bin/file conftest.$ac_objext` in
10278 *32-bit*)
10279 LD="${LD-ld} -melf32bsmip"
10280 ;;
10281 *N32*)
10282 LD="${LD-ld} -melf32bmipn32"
10283 ;;
10284 *64-bit*)
10285 LD="${LD-ld} -melf64bmip"
10286 ;;
10287 esac
10288 else
10289 case `/usr/bin/file conftest.$ac_objext` in
10290 *32-bit*)
10291 LD="${LD-ld} -32"
10292 ;;
10293 *N32*)
10294 LD="${LD-ld} -n32"
10295 ;;
10296 *64-bit*)
10297 LD="${LD-ld} -64"
10298 ;;
10299 esac
10300 fi
10301 fi
10302 rm -rf conftest*
10303 ;;
10304
10305 mips64*-*linux*)
10306 # Find out what ABI is being produced by ac_compile, and set linker
10307 # options accordingly.
10308 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10310 (eval $ac_compile) 2>&5
10311 ac_status=$?
10312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313 test $ac_status = 0; }; then
10314 emul=elf
10315 case `/usr/bin/file conftest.$ac_objext` in
10316 *32-bit*)
10317 emul="${emul}32"
10318 ;;
10319 *64-bit*)
10320 emul="${emul}64"
10321 ;;
10322 esac
10323 case `/usr/bin/file conftest.$ac_objext` in
10324 *MSB*)
10325 emul="${emul}btsmip"
10326 ;;
10327 *LSB*)
10328 emul="${emul}ltsmip"
10329 ;;
10330 esac
10331 case `/usr/bin/file conftest.$ac_objext` in
10332 *N32*)
10333 emul="${emul}n32"
10334 ;;
10335 esac
10336 LD="${LD-ld} -m $emul"
10337 fi
10338 rm -rf conftest*
10339 ;;
10340
10341 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10342 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10343 # Find out what ABI is being produced by ac_compile, and set linker
10344 # options accordingly. Note that the listed cases only cover the
10345 # situations where additional linker options are needed (such as when
10346 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10347 # vice versa); the common cases where no linker options are needed do
10348 # not appear in the list.
10349 echo 'int i;' > conftest.$ac_ext
10350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10351 (eval $ac_compile) 2>&5
10352 ac_status=$?
10353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10354 test $ac_status = 0; }; then
10355 case `/usr/bin/file conftest.o` in
10356 *32-bit*)
10357 case $host in
10358 x86_64-*kfreebsd*-gnu)
10359 LD="${LD-ld} -m elf_i386_fbsd"
10360 ;;
10361 x86_64-*linux*)
10362 case `/usr/bin/file conftest.o` in
10363 *x86-64*)
10364 LD="${LD-ld} -m elf32_x86_64"
10365 ;;
10366 *)
10367 LD="${LD-ld} -m elf_i386"
10368 ;;
10369 esac
10370 ;;
10371 powerpc64le-*linux*)
10372 LD="${LD-ld} -m elf32lppclinux"
10373 ;;
10374 powerpc64-*linux*)
10375 LD="${LD-ld} -m elf32ppclinux"
10376 ;;
10377 s390x-*linux*)
10378 LD="${LD-ld} -m elf_s390"
10379 ;;
10380 sparc64-*linux*)
10381 LD="${LD-ld} -m elf32_sparc"
10382 ;;
10383 esac
10384 ;;
10385 *64-bit*)
10386 case $host in
10387 x86_64-*kfreebsd*-gnu)
10388 LD="${LD-ld} -m elf_x86_64_fbsd"
10389 ;;
10390 x86_64-*linux*)
10391 LD="${LD-ld} -m elf_x86_64"
10392 ;;
10393 powerpcle-*linux*)
10394 LD="${LD-ld} -m elf64lppc"
10395 ;;
10396 powerpc-*linux*)
10397 LD="${LD-ld} -m elf64ppc"
10398 ;;
10399 s390*-*linux*|s390*-*tpf*)
10400 LD="${LD-ld} -m elf64_s390"
10401 ;;
10402 sparc*-*linux*)
10403 LD="${LD-ld} -m elf64_sparc"
10404 ;;
10405 esac
10406 ;;
10407 esac
10408 fi
10409 rm -rf conftest*
10410 ;;
10411
10412 *-*-sco3.2v5*)
10413 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10414 SAVE_CFLAGS=$CFLAGS
10415 CFLAGS="$CFLAGS -belf"
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10417 printf %s "checking whether the C compiler needs -belf... " >&6; }
10418 if test ${lt_cv_cc_needs_belf+y}
10419 then :
10420 printf %s "(cached) " >&6
10421 else $as_nop
10422 ac_ext=c
10423 ac_cpp='$CPP $CPPFLAGS'
10424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10427
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430
10431 int
10432 main (void)
10433 {
10434
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"
10440 then :
10441 lt_cv_cc_needs_belf=yes
10442 else $as_nop
10443 lt_cv_cc_needs_belf=no
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10446 conftest$ac_exeext conftest.$ac_ext
10447 ac_ext=c
10448 ac_cpp='$CPP $CPPFLAGS'
10449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10452
10453 fi
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10455 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10456 if test yes != "$lt_cv_cc_needs_belf"; then
10457 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10458 CFLAGS=$SAVE_CFLAGS
10459 fi
10460 ;;
10461 *-*solaris*)
10462 # Find out what ABI is being produced by ac_compile, and set linker
10463 # options accordingly.
10464 echo 'int i;' > conftest.$ac_ext
10465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10466 (eval $ac_compile) 2>&5
10467 ac_status=$?
10468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10469 test $ac_status = 0; }; then
10470 case `/usr/bin/file conftest.o` in
10471 *64-bit*)
10472 case $lt_cv_prog_gnu_ld in
10473 yes*)
10474 case $host in
10475 i?86-*-solaris*|x86_64-*-solaris*)
10476 LD="${LD-ld} -m elf_x86_64"
10477 ;;
10478 sparc*-*-solaris*)
10479 LD="${LD-ld} -m elf64_sparc"
10480 ;;
10481 esac
10482 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10483 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10484 LD=${LD-ld}_sol2
10485 fi
10486 ;;
10487 *)
10488 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10489 LD="${LD-ld} -64"
10490 fi
10491 ;;
10492 esac
10493 ;;
10494 esac
10495 fi
10496 rm -rf conftest*
10497 ;;
10498 esac
10499
10500 need_locks=$enable_libtool_lock
10501
10502 if test -n "$ac_tool_prefix"; then
10503 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10504 set dummy ${ac_tool_prefix}mt; ac_word=$2
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 printf %s "checking for $ac_word... " >&6; }
10507 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10508 then :
10509 printf %s "(cached) " >&6
10510 else $as_nop
10511 if test -n "$MANIFEST_TOOL"; then
10512 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10513 else
10514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515 for as_dir in $PATH
10516 do
10517 IFS=$as_save_IFS
10518 case $as_dir in #(((
10519 '') as_dir=./ ;;
10520 */) ;;
10521 *) as_dir=$as_dir/ ;;
10522 esac
10523 for ac_exec_ext in '' $ac_executable_extensions; do
10524 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10525 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10527 break 2
10528 fi
10529 done
10530 done
10531 IFS=$as_save_IFS
10532
10533 fi
10534 fi
10535 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10536 if test -n "$MANIFEST_TOOL"; then
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10538 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10539 else
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541 printf "%s\n" "no" >&6; }
10542 fi
10543
10544
10545 fi
10546 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10547 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10548 # Extract the first word of "mt", so it can be a program name with args.
10549 set dummy mt; ac_word=$2
10550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 printf %s "checking for $ac_word... " >&6; }
10552 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10553 then :
10554 printf %s "(cached) " >&6
10555 else $as_nop
10556 if test -n "$ac_ct_MANIFEST_TOOL"; then
10557 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10558 else
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10561 do
10562 IFS=$as_save_IFS
10563 case $as_dir in #(((
10564 '') as_dir=./ ;;
10565 */) ;;
10566 *) as_dir=$as_dir/ ;;
10567 esac
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10570 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10572 break 2
10573 fi
10574 done
10575 done
10576 IFS=$as_save_IFS
10577
10578 fi
10579 fi
10580 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10581 if test -n "$ac_ct_MANIFEST_TOOL"; then
10582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10583 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10584 else
10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 printf "%s\n" "no" >&6; }
10587 fi
10588
10589 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10590 MANIFEST_TOOL=":"
10591 else
10592 case $cross_compiling:$ac_tool_warned in
10593 yes:)
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10595 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10596 ac_tool_warned=yes ;;
10597 esac
10598 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10599 fi
10600 else
10601 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10602 fi
10603
10604 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10606 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10607 if test ${lt_cv_path_mainfest_tool+y}
10608 then :
10609 printf %s "(cached) " >&6
10610 else $as_nop
10611 lt_cv_path_mainfest_tool=no
10612 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10613 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10614 cat conftest.err >&5
10615 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10616 lt_cv_path_mainfest_tool=yes
10617 fi
10618 rm -f conftest*
10619 fi
10620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10621 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10622 if test yes != "$lt_cv_path_mainfest_tool"; then
10623 MANIFEST_TOOL=:
10624 fi
10625
10626
10627
10628
10629
10630
10631 case $host_os in
10632 rhapsody* | darwin*)
10633 if test -n "$ac_tool_prefix"; then
10634 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10635 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637 printf %s "checking for $ac_word... " >&6; }
10638 if test ${ac_cv_prog_DSYMUTIL+y}
10639 then :
10640 printf %s "(cached) " >&6
10641 else $as_nop
10642 if test -n "$DSYMUTIL"; then
10643 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10644 else
10645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646 for as_dir in $PATH
10647 do
10648 IFS=$as_save_IFS
10649 case $as_dir in #(((
10650 '') as_dir=./ ;;
10651 */) ;;
10652 *) as_dir=$as_dir/ ;;
10653 esac
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10656 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10658 break 2
10659 fi
10660 done
10661 done
10662 IFS=$as_save_IFS
10663
10664 fi
10665 fi
10666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10667 if test -n "$DSYMUTIL"; then
10668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10669 printf "%s\n" "$DSYMUTIL" >&6; }
10670 else
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 printf "%s\n" "no" >&6; }
10673 fi
10674
10675
10676 fi
10677 if test -z "$ac_cv_prog_DSYMUTIL"; then
10678 ac_ct_DSYMUTIL=$DSYMUTIL
10679 # Extract the first word of "dsymutil", so it can be a program name with args.
10680 set dummy dsymutil; ac_word=$2
10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10682 printf %s "checking for $ac_word... " >&6; }
10683 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10684 then :
10685 printf %s "(cached) " >&6
10686 else $as_nop
10687 if test -n "$ac_ct_DSYMUTIL"; then
10688 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10689 else
10690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10691 for as_dir in $PATH
10692 do
10693 IFS=$as_save_IFS
10694 case $as_dir in #(((
10695 '') as_dir=./ ;;
10696 */) ;;
10697 *) as_dir=$as_dir/ ;;
10698 esac
10699 for ac_exec_ext in '' $ac_executable_extensions; do
10700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10701 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10703 break 2
10704 fi
10705 done
10706 done
10707 IFS=$as_save_IFS
10708
10709 fi
10710 fi
10711 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10712 if test -n "$ac_ct_DSYMUTIL"; then
10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10714 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10715 else
10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10717 printf "%s\n" "no" >&6; }
10718 fi
10719
10720 if test "x$ac_ct_DSYMUTIL" = x; then
10721 DSYMUTIL=":"
10722 else
10723 case $cross_compiling:$ac_tool_warned in
10724 yes:)
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10727 ac_tool_warned=yes ;;
10728 esac
10729 DSYMUTIL=$ac_ct_DSYMUTIL
10730 fi
10731 else
10732 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10733 fi
10734
10735 if test -n "$ac_tool_prefix"; then
10736 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10737 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739 printf %s "checking for $ac_word... " >&6; }
10740 if test ${ac_cv_prog_NMEDIT+y}
10741 then :
10742 printf %s "(cached) " >&6
10743 else $as_nop
10744 if test -n "$NMEDIT"; then
10745 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10746 else
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748 for as_dir in $PATH
10749 do
10750 IFS=$as_save_IFS
10751 case $as_dir in #(((
10752 '') as_dir=./ ;;
10753 */) ;;
10754 *) as_dir=$as_dir/ ;;
10755 esac
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10758 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762 done
10763 done
10764 IFS=$as_save_IFS
10765
10766 fi
10767 fi
10768 NMEDIT=$ac_cv_prog_NMEDIT
10769 if test -n "$NMEDIT"; then
10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10771 printf "%s\n" "$NMEDIT" >&6; }
10772 else
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 printf "%s\n" "no" >&6; }
10775 fi
10776
10777
10778 fi
10779 if test -z "$ac_cv_prog_NMEDIT"; then
10780 ac_ct_NMEDIT=$NMEDIT
10781 # Extract the first word of "nmedit", so it can be a program name with args.
10782 set dummy nmedit; ac_word=$2
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784 printf %s "checking for $ac_word... " >&6; }
10785 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10786 then :
10787 printf %s "(cached) " >&6
10788 else $as_nop
10789 if test -n "$ac_ct_NMEDIT"; then
10790 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10791 else
10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10793 for as_dir in $PATH
10794 do
10795 IFS=$as_save_IFS
10796 case $as_dir in #(((
10797 '') as_dir=./ ;;
10798 */) ;;
10799 *) as_dir=$as_dir/ ;;
10800 esac
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10803 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10805 break 2
10806 fi
10807 done
10808 done
10809 IFS=$as_save_IFS
10810
10811 fi
10812 fi
10813 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10814 if test -n "$ac_ct_NMEDIT"; then
10815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10816 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10817 else
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819 printf "%s\n" "no" >&6; }
10820 fi
10821
10822 if test "x$ac_ct_NMEDIT" = x; then
10823 NMEDIT=":"
10824 else
10825 case $cross_compiling:$ac_tool_warned in
10826 yes:)
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10828 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10829 ac_tool_warned=yes ;;
10830 esac
10831 NMEDIT=$ac_ct_NMEDIT
10832 fi
10833 else
10834 NMEDIT="$ac_cv_prog_NMEDIT"
10835 fi
10836
10837 if test -n "$ac_tool_prefix"; then
10838 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10839 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841 printf %s "checking for $ac_word... " >&6; }
10842 if test ${ac_cv_prog_LIPO+y}
10843 then :
10844 printf %s "(cached) " >&6
10845 else $as_nop
10846 if test -n "$LIPO"; then
10847 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10848 else
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10851 do
10852 IFS=$as_save_IFS
10853 case $as_dir in #(((
10854 '') as_dir=./ ;;
10855 */) ;;
10856 *) as_dir=$as_dir/ ;;
10857 esac
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10860 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10862 break 2
10863 fi
10864 done
10865 done
10866 IFS=$as_save_IFS
10867
10868 fi
10869 fi
10870 LIPO=$ac_cv_prog_LIPO
10871 if test -n "$LIPO"; then
10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10873 printf "%s\n" "$LIPO" >&6; }
10874 else
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876 printf "%s\n" "no" >&6; }
10877 fi
10878
10879
10880 fi
10881 if test -z "$ac_cv_prog_LIPO"; then
10882 ac_ct_LIPO=$LIPO
10883 # Extract the first word of "lipo", so it can be a program name with args.
10884 set dummy lipo; ac_word=$2
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10886 printf %s "checking for $ac_word... " >&6; }
10887 if test ${ac_cv_prog_ac_ct_LIPO+y}
10888 then :
10889 printf %s "(cached) " >&6
10890 else $as_nop
10891 if test -n "$ac_ct_LIPO"; then
10892 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10893 else
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10896 do
10897 IFS=$as_save_IFS
10898 case $as_dir in #(((
10899 '') as_dir=./ ;;
10900 */) ;;
10901 *) as_dir=$as_dir/ ;;
10902 esac
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10905 ac_cv_prog_ac_ct_LIPO="lipo"
10906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10907 break 2
10908 fi
10909 done
10910 done
10911 IFS=$as_save_IFS
10912
10913 fi
10914 fi
10915 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10916 if test -n "$ac_ct_LIPO"; then
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10918 printf "%s\n" "$ac_ct_LIPO" >&6; }
10919 else
10920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921 printf "%s\n" "no" >&6; }
10922 fi
10923
10924 if test "x$ac_ct_LIPO" = x; then
10925 LIPO=":"
10926 else
10927 case $cross_compiling:$ac_tool_warned in
10928 yes:)
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10931 ac_tool_warned=yes ;;
10932 esac
10933 LIPO=$ac_ct_LIPO
10934 fi
10935 else
10936 LIPO="$ac_cv_prog_LIPO"
10937 fi
10938
10939 if test -n "$ac_tool_prefix"; then
10940 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10941 set dummy ${ac_tool_prefix}otool; ac_word=$2
10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 printf %s "checking for $ac_word... " >&6; }
10944 if test ${ac_cv_prog_OTOOL+y}
10945 then :
10946 printf %s "(cached) " >&6
10947 else $as_nop
10948 if test -n "$OTOOL"; then
10949 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10950 else
10951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10952 for as_dir in $PATH
10953 do
10954 IFS=$as_save_IFS
10955 case $as_dir in #(((
10956 '') as_dir=./ ;;
10957 */) ;;
10958 *) as_dir=$as_dir/ ;;
10959 esac
10960 for ac_exec_ext in '' $ac_executable_extensions; do
10961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10962 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10964 break 2
10965 fi
10966 done
10967 done
10968 IFS=$as_save_IFS
10969
10970 fi
10971 fi
10972 OTOOL=$ac_cv_prog_OTOOL
10973 if test -n "$OTOOL"; then
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10975 printf "%s\n" "$OTOOL" >&6; }
10976 else
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 printf "%s\n" "no" >&6; }
10979 fi
10980
10981
10982 fi
10983 if test -z "$ac_cv_prog_OTOOL"; then
10984 ac_ct_OTOOL=$OTOOL
10985 # Extract the first word of "otool", so it can be a program name with args.
10986 set dummy otool; ac_word=$2
10987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10988 printf %s "checking for $ac_word... " >&6; }
10989 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10990 then :
10991 printf %s "(cached) " >&6
10992 else $as_nop
10993 if test -n "$ac_ct_OTOOL"; then
10994 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10995 else
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
10998 do
10999 IFS=$as_save_IFS
11000 case $as_dir in #(((
11001 '') as_dir=./ ;;
11002 */) ;;
11003 *) as_dir=$as_dir/ ;;
11004 esac
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_ac_ct_OTOOL="otool"
11008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11009 break 2
11010 fi
11011 done
11012 done
11013 IFS=$as_save_IFS
11014
11015 fi
11016 fi
11017 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11018 if test -n "$ac_ct_OTOOL"; then
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11020 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11021 else
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 printf "%s\n" "no" >&6; }
11024 fi
11025
11026 if test "x$ac_ct_OTOOL" = x; then
11027 OTOOL=":"
11028 else
11029 case $cross_compiling:$ac_tool_warned in
11030 yes:)
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11032 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11033 ac_tool_warned=yes ;;
11034 esac
11035 OTOOL=$ac_ct_OTOOL
11036 fi
11037 else
11038 OTOOL="$ac_cv_prog_OTOOL"
11039 fi
11040
11041 if test -n "$ac_tool_prefix"; then
11042 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11043 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045 printf %s "checking for $ac_word... " >&6; }
11046 if test ${ac_cv_prog_OTOOL64+y}
11047 then :
11048 printf %s "(cached) " >&6
11049 else $as_nop
11050 if test -n "$OTOOL64"; then
11051 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11052 else
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11055 do
11056 IFS=$as_save_IFS
11057 case $as_dir in #(((
11058 '') as_dir=./ ;;
11059 */) ;;
11060 *) as_dir=$as_dir/ ;;
11061 esac
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11064 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11066 break 2
11067 fi
11068 done
11069 done
11070 IFS=$as_save_IFS
11071
11072 fi
11073 fi
11074 OTOOL64=$ac_cv_prog_OTOOL64
11075 if test -n "$OTOOL64"; then
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11077 printf "%s\n" "$OTOOL64" >&6; }
11078 else
11079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 printf "%s\n" "no" >&6; }
11081 fi
11082
11083
11084 fi
11085 if test -z "$ac_cv_prog_OTOOL64"; then
11086 ac_ct_OTOOL64=$OTOOL64
11087 # Extract the first word of "otool64", so it can be a program name with args.
11088 set dummy otool64; ac_word=$2
11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11090 printf %s "checking for $ac_word... " >&6; }
11091 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11092 then :
11093 printf %s "(cached) " >&6
11094 else $as_nop
11095 if test -n "$ac_ct_OTOOL64"; then
11096 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11097 else
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11100 do
11101 IFS=$as_save_IFS
11102 case $as_dir in #(((
11103 '') as_dir=./ ;;
11104 */) ;;
11105 *) as_dir=$as_dir/ ;;
11106 esac
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11109 ac_cv_prog_ac_ct_OTOOL64="otool64"
11110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11111 break 2
11112 fi
11113 done
11114 done
11115 IFS=$as_save_IFS
11116
11117 fi
11118 fi
11119 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11120 if test -n "$ac_ct_OTOOL64"; then
11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11122 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11123 else
11124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125 printf "%s\n" "no" >&6; }
11126 fi
11127
11128 if test "x$ac_ct_OTOOL64" = x; then
11129 OTOOL64=":"
11130 else
11131 case $cross_compiling:$ac_tool_warned in
11132 yes:)
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11134 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11135 ac_tool_warned=yes ;;
11136 esac
11137 OTOOL64=$ac_ct_OTOOL64
11138 fi
11139 else
11140 OTOOL64="$ac_cv_prog_OTOOL64"
11141 fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11170 printf %s "checking for -single_module linker flag... " >&6; }
11171 if test ${lt_cv_apple_cc_single_mod+y}
11172 then :
11173 printf %s "(cached) " >&6
11174 else $as_nop
11175 lt_cv_apple_cc_single_mod=no
11176 if test -z "$LT_MULTI_MODULE"; then
11177 # By default we will add the -single_module flag. You can override
11178 # by either setting the environment variable LT_MULTI_MODULE
11179 # non-empty at configure time, or by adding -multi_module to the
11180 # link flags.
11181 rm -rf libconftest.dylib*
11182 echo "int foo(void){return 1;}" > conftest.c
11183 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11184 -dynamiclib -Wl,-single_module conftest.c" >&5
11185 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11186 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11187 _lt_result=$?
11188 # If there is a non-empty error log, and "single_module"
11189 # appears in it, assume the flag caused a linker warning
11190 if test -s conftest.err && $GREP single_module conftest.err; then
11191 cat conftest.err >&5
11192 # Otherwise, if the output was created with a 0 exit code from
11193 # the compiler, it worked.
11194 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11195 lt_cv_apple_cc_single_mod=yes
11196 else
11197 cat conftest.err >&5
11198 fi
11199 rm -rf libconftest.dylib*
11200 rm -f conftest.*
11201 fi
11202 fi
11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11204 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11205
11206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11207 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11208 if test ${lt_cv_ld_exported_symbols_list+y}
11209 then :
11210 printf %s "(cached) " >&6
11211 else $as_nop
11212 lt_cv_ld_exported_symbols_list=no
11213 save_LDFLAGS=$LDFLAGS
11214 echo "_main" > conftest.sym
11215 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217 /* end confdefs.h. */
11218
11219 int
11220 main (void)
11221 {
11222
11223 ;
11224 return 0;
11225 }
11226 _ACEOF
11227 if ac_fn_c_try_link "$LINENO"
11228 then :
11229 lt_cv_ld_exported_symbols_list=yes
11230 else $as_nop
11231 lt_cv_ld_exported_symbols_list=no
11232 fi
11233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11234 conftest$ac_exeext conftest.$ac_ext
11235 LDFLAGS=$save_LDFLAGS
11236
11237 fi
11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11239 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11240
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11242 printf %s "checking for -force_load linker flag... " >&6; }
11243 if test ${lt_cv_ld_force_load+y}
11244 then :
11245 printf %s "(cached) " >&6
11246 else $as_nop
11247 lt_cv_ld_force_load=no
11248 cat > conftest.c << _LT_EOF
11249 int forced_loaded() { return 2;}
11250 _LT_EOF
11251 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11252 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11253 echo "$AR cr libconftest.a conftest.o" >&5
11254 $AR cr libconftest.a conftest.o 2>&5
11255 echo "$RANLIB libconftest.a" >&5
11256 $RANLIB libconftest.a 2>&5
11257 cat > conftest.c << _LT_EOF
11258 int main() { return 0;}
11259 _LT_EOF
11260 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11261 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11262 _lt_result=$?
11263 if test -s conftest.err && $GREP force_load conftest.err; then
11264 cat conftest.err >&5
11265 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11266 lt_cv_ld_force_load=yes
11267 else
11268 cat conftest.err >&5
11269 fi
11270 rm -f conftest.err libconftest.a conftest conftest.c
11271 rm -rf conftest.dSYM
11272
11273 fi
11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11275 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11276 case $host_os in
11277 rhapsody* | darwin1.[012])
11278 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11279 darwin1.*)
11280 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11281 darwin*) # darwin 5.x on
11282 # if running on 10.5 or later, the deployment target defaults
11283 # to the OS version, if on x86, and 10.4, the deployment
11284 # target defaults to 10.4. Don't you love it?
11285 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11286 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
11287 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11288 10.[012][,.]*)
11289 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11290 10.*|11.*)
11291 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11292 esac
11293 ;;
11294 esac
11295 if test yes = "$lt_cv_apple_cc_single_mod"; then
11296 _lt_dar_single_mod='$single_module'
11297 fi
11298 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11299 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11300 else
11301 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11302 fi
11303 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11304 _lt_dsymutil='~$DSYMUTIL $lib || :'
11305 else
11306 _lt_dsymutil=
11307 fi
11308 ;;
11309 esac
11310
11311 # func_munge_path_list VARIABLE PATH
11312 # -----------------------------------
11313 # VARIABLE is name of variable containing _space_ separated list of
11314 # directories to be munged by the contents of PATH, which is string
11315 # having a format:
11316 # "DIR[:DIR]:"
11317 # string "DIR[ DIR]" will be prepended to VARIABLE
11318 # ":DIR[:DIR]"
11319 # string "DIR[ DIR]" will be appended to VARIABLE
11320 # "DIRP[:DIRP]::[DIRA:]DIRA"
11321 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11322 # "DIRA[ DIRA]" will be appended to VARIABLE
11323 # "DIR[:DIR]"
11324 # VARIABLE will be replaced by "DIR[ DIR]"
11325 func_munge_path_list ()
11326 {
11327 case x$2 in
11328 x)
11329 ;;
11330 *:)
11331 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11332 ;;
11333 x:*)
11334 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11335 ;;
11336 *::*)
11337 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11338 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11339 ;;
11340 *)
11341 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11342 ;;
11343 esac
11344 }
11345
11346 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11347 "
11348 if test "x$ac_cv_header_dlfcn_h" = xyes
11349 then :
11350 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11351
11352 fi
11353
11354
11355
11356
11357
11358 # Set options
11359 # Check whether --enable-static was given.
11360 if test ${enable_static+y}
11361 then :
11362 enableval=$enable_static; p=${PACKAGE-default}
11363 case $enableval in
11364 yes) enable_static=yes ;;
11365 no) enable_static=no ;;
11366 *)
11367 enable_static=no
11368 # Look at the argument we got. We use all the common list separators.
11369 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11370 for pkg in $enableval; do
11371 IFS=$lt_save_ifs
11372 if test "X$pkg" = "X$p"; then
11373 enable_static=yes
11374 fi
11375 done
11376 IFS=$lt_save_ifs
11377 ;;
11378 esac
11379 else $as_nop
11380 enable_static=no
11381 fi
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392 enable_dlopen=no
11393
11394
11395 enable_win32_dll=no
11396
11397
11398 # Check whether --enable-shared was given.
11399 if test ${enable_shared+y}
11400 then :
11401 enableval=$enable_shared; p=${PACKAGE-default}
11402 case $enableval in
11403 yes) enable_shared=yes ;;
11404 no) enable_shared=no ;;
11405 *)
11406 enable_shared=no
11407 # Look at the argument we got. We use all the common list separators.
11408 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11409 for pkg in $enableval; do
11410 IFS=$lt_save_ifs
11411 if test "X$pkg" = "X$p"; then
11412 enable_shared=yes
11413 fi
11414 done
11415 IFS=$lt_save_ifs
11416 ;;
11417 esac
11418 else $as_nop
11419 enable_shared=yes
11420 fi
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432 # Check whether --with-pic was given.
11433 if test ${with_pic+y}
11434 then :
11435 withval=$with_pic; lt_p=${PACKAGE-default}
11436 case $withval in
11437 yes|no) pic_mode=$withval ;;
11438 *)
11439 pic_mode=default
11440 # Look at the argument we got. We use all the common list separators.
11441 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11442 for lt_pkg in $withval; do
11443 IFS=$lt_save_ifs
11444 if test "X$lt_pkg" = "X$lt_p"; then
11445 pic_mode=yes
11446 fi
11447 done
11448 IFS=$lt_save_ifs
11449 ;;
11450 esac
11451 else $as_nop
11452 pic_mode=default
11453 fi
11454
11455
11456
11457
11458
11459
11460
11461
11462 # Check whether --enable-fast-install was given.
11463 if test ${enable_fast_install+y}
11464 then :
11465 enableval=$enable_fast_install; p=${PACKAGE-default}
11466 case $enableval in
11467 yes) enable_fast_install=yes ;;
11468 no) enable_fast_install=no ;;
11469 *)
11470 enable_fast_install=no
11471 # Look at the argument we got. We use all the common list separators.
11472 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11473 for pkg in $enableval; do
11474 IFS=$lt_save_ifs
11475 if test "X$pkg" = "X$p"; then
11476 enable_fast_install=yes
11477 fi
11478 done
11479 IFS=$lt_save_ifs
11480 ;;
11481 esac
11482 else $as_nop
11483 enable_fast_install=yes
11484 fi
11485
11486
11487
11488
11489
11490
11491
11492
11493 shared_archive_member_spec=
11494 case $host,$enable_shared in
11495 power*-*-aix[5-9]*,yes)
11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11497 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11498
11499 # Check whether --with-aix-soname was given.
11500 if test ${with_aix_soname+y}
11501 then :
11502 withval=$with_aix_soname; case $withval in
11503 aix|svr4|both)
11504 ;;
11505 *)
11506 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11507 ;;
11508 esac
11509 lt_cv_with_aix_soname=$with_aix_soname
11510 else $as_nop
11511 if test ${lt_cv_with_aix_soname+y}
11512 then :
11513 printf %s "(cached) " >&6
11514 else $as_nop
11515 lt_cv_with_aix_soname=aix
11516 fi
11517
11518 with_aix_soname=$lt_cv_with_aix_soname
11519 fi
11520
11521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11522 printf "%s\n" "$with_aix_soname" >&6; }
11523 if test aix != "$with_aix_soname"; then
11524 # For the AIX way of multilib, we name the shared archive member
11525 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11526 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11527 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11528 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11529 if test 64 = "${OBJECT_MODE-32}"; then
11530 shared_archive_member_spec=shr_64
11531 else
11532 shared_archive_member_spec=shr
11533 fi
11534 fi
11535 ;;
11536 *)
11537 with_aix_soname=aix
11538 ;;
11539 esac
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550 # This can be used to rebuild libtool when needed
11551 LIBTOOL_DEPS=$ltmain
11552
11553 # Always use our own libtool.
11554 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585 test -z "$LN_S" && LN_S="ln -s"
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600 if test -n "${ZSH_VERSION+set}"; then
11601 setopt NO_GLOB_SUBST
11602 fi
11603
11604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11605 printf %s "checking for objdir... " >&6; }
11606 if test ${lt_cv_objdir+y}
11607 then :
11608 printf %s "(cached) " >&6
11609 else $as_nop
11610 rm -f .libs 2>/dev/null
11611 mkdir .libs 2>/dev/null
11612 if test -d .libs; then
11613 lt_cv_objdir=.libs
11614 else
11615 # MS-DOS does not allow filenames that begin with a dot.
11616 lt_cv_objdir=_libs
11617 fi
11618 rmdir .libs 2>/dev/null
11619 fi
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11621 printf "%s\n" "$lt_cv_objdir" >&6; }
11622 objdir=$lt_cv_objdir
11623
11624
11625
11626
11627
11628 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11629
11630
11631
11632
11633 case $host_os in
11634 aix3*)
11635 # AIX sometimes has problems with the GCC collect2 program. For some
11636 # reason, if we set the COLLECT_NAMES environment variable, the problems
11637 # vanish in a puff of smoke.
11638 if test set != "${COLLECT_NAMES+set}"; then
11639 COLLECT_NAMES=
11640 export COLLECT_NAMES
11641 fi
11642 ;;
11643 esac
11644
11645 # Global variables:
11646 ofile=libtool
11647 can_build_shared=yes
11648
11649 # All known linkers require a '.a' archive for static linking (except MSVC,
11650 # which needs '.lib').
11651 libext=a
11652
11653 with_gnu_ld=$lt_cv_prog_gnu_ld
11654
11655 old_CC=$CC
11656 old_CFLAGS=$CFLAGS
11657
11658 # Set sane defaults for various variables
11659 test -z "$CC" && CC=cc
11660 test -z "$LTCC" && LTCC=$CC
11661 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11662 test -z "$LD" && LD=ld
11663 test -z "$ac_objext" && ac_objext=o
11664
11665 func_cc_basename $compiler
11666 cc_basename=$func_cc_basename_result
11667
11668
11669 # Only perform the check for file, if the check method requires it
11670 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11671 case $deplibs_check_method in
11672 file_magic*)
11673 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11675 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11676 if test ${lt_cv_path_MAGIC_CMD+y}
11677 then :
11678 printf %s "(cached) " >&6
11679 else $as_nop
11680 case $MAGIC_CMD in
11681 [\\/*] | ?:[\\/]*)
11682 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11683 ;;
11684 *)
11685 lt_save_MAGIC_CMD=$MAGIC_CMD
11686 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11687 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11688 for ac_dir in $ac_dummy; do
11689 IFS=$lt_save_ifs
11690 test -z "$ac_dir" && ac_dir=.
11691 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11692 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11693 if test -n "$file_magic_test_file"; then
11694 case $deplibs_check_method in
11695 "file_magic "*)
11696 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11697 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11698 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11699 $EGREP "$file_magic_regex" > /dev/null; then
11700 :
11701 else
11702 cat <<_LT_EOF 1>&2
11703
11704 *** Warning: the command libtool uses to detect shared libraries,
11705 *** $file_magic_cmd, produces output that libtool cannot recognize.
11706 *** The result is that libtool may fail to recognize shared libraries
11707 *** as such. This will affect the creation of libtool libraries that
11708 *** depend on shared libraries, but programs linked with such libtool
11709 *** libraries will work regardless of this problem. Nevertheless, you
11710 *** may want to report the problem to your system manager and/or to
11711 *** [email protected]
11712
11713 _LT_EOF
11714 fi ;;
11715 esac
11716 fi
11717 break
11718 fi
11719 done
11720 IFS=$lt_save_ifs
11721 MAGIC_CMD=$lt_save_MAGIC_CMD
11722 ;;
11723 esac
11724 fi
11725
11726 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11727 if test -n "$MAGIC_CMD"; then
11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11729 printf "%s\n" "$MAGIC_CMD" >&6; }
11730 else
11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 printf "%s\n" "no" >&6; }
11733 fi
11734
11735
11736
11737
11738
11739 if test -z "$lt_cv_path_MAGIC_CMD"; then
11740 if test -n "$ac_tool_prefix"; then
11741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11742 printf %s "checking for file... " >&6; }
11743 if test ${lt_cv_path_MAGIC_CMD+y}
11744 then :
11745 printf %s "(cached) " >&6
11746 else $as_nop
11747 case $MAGIC_CMD in
11748 [\\/*] | ?:[\\/]*)
11749 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11750 ;;
11751 *)
11752 lt_save_MAGIC_CMD=$MAGIC_CMD
11753 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11754 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11755 for ac_dir in $ac_dummy; do
11756 IFS=$lt_save_ifs
11757 test -z "$ac_dir" && ac_dir=.
11758 if test -f "$ac_dir/file"; then
11759 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11760 if test -n "$file_magic_test_file"; then
11761 case $deplibs_check_method in
11762 "file_magic "*)
11763 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11764 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11765 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11766 $EGREP "$file_magic_regex" > /dev/null; then
11767 :
11768 else
11769 cat <<_LT_EOF 1>&2
11770
11771 *** Warning: the command libtool uses to detect shared libraries,
11772 *** $file_magic_cmd, produces output that libtool cannot recognize.
11773 *** The result is that libtool may fail to recognize shared libraries
11774 *** as such. This will affect the creation of libtool libraries that
11775 *** depend on shared libraries, but programs linked with such libtool
11776 *** libraries will work regardless of this problem. Nevertheless, you
11777 *** may want to report the problem to your system manager and/or to
11778 *** [email protected]
11779
11780 _LT_EOF
11781 fi ;;
11782 esac
11783 fi
11784 break
11785 fi
11786 done
11787 IFS=$lt_save_ifs
11788 MAGIC_CMD=$lt_save_MAGIC_CMD
11789 ;;
11790 esac
11791 fi
11792
11793 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11794 if test -n "$MAGIC_CMD"; then
11795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11796 printf "%s\n" "$MAGIC_CMD" >&6; }
11797 else
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 printf "%s\n" "no" >&6; }
11800 fi
11801
11802
11803 else
11804 MAGIC_CMD=:
11805 fi
11806 fi
11807
11808 fi
11809 ;;
11810 esac
11811
11812 # Use C for the default configuration in the libtool script
11813
11814 lt_save_CC=$CC
11815 ac_ext=c
11816 ac_cpp='$CPP $CPPFLAGS'
11817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11820
11821
11822 # Source file extension for C test sources.
11823 ac_ext=c
11824
11825 # Object file extension for compiled C test sources.
11826 objext=o
11827 objext=$objext
11828
11829 # Code to be used in simple compile tests
11830 lt_simple_compile_test_code="int some_variable = 0;"
11831
11832 # Code to be used in simple link tests
11833 lt_simple_link_test_code='int main(){return(0);}'
11834
11835
11836
11837
11838
11839
11840
11841 # If no C compiler was specified, use CC.
11842 LTCC=${LTCC-"$CC"}
11843
11844 # If no C compiler flags were specified, use CFLAGS.
11845 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11846
11847 # Allow CC to be a program name with arguments.
11848 compiler=$CC
11849
11850 # Save the default compiler, since it gets overwritten when the other
11851 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11852 compiler_DEFAULT=$CC
11853
11854 # save warnings/boilerplate of simple test code
11855 ac_outfile=conftest.$ac_objext
11856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_compiler_boilerplate=`cat conftest.err`
11859 $RM conftest*
11860
11861 ac_outfile=conftest.$ac_objext
11862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11864 _lt_linker_boilerplate=`cat conftest.err`
11865 $RM -r conftest*
11866
11867
11868 ## CAVEAT EMPTOR:
11869 ## There is no encapsulation within the following macros, do not change
11870 ## the running order or otherwise move them around unless you know exactly
11871 ## what you are doing...
11872 if test -n "$compiler"; then
11873
11874 lt_prog_compiler_no_builtin_flag=
11875
11876 if test yes = "$GCC"; then
11877 case $cc_basename in
11878 nvcc*)
11879 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11880 *)
11881 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11882 esac
11883
11884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11885 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11886 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11887 then :
11888 printf %s "(cached) " >&6
11889 else $as_nop
11890 lt_cv_prog_compiler_rtti_exceptions=no
11891 ac_outfile=conftest.$ac_objext
11892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11893 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11894 # Insert the option either (1) after the last *FLAGS variable, or
11895 # (2) before a word containing "conftest.", or (3) at the end.
11896 # Note that $ac_compile itself does not contain backslashes and begins
11897 # with a dollar sign (not a hyphen), so the echo should work correctly.
11898 # The option is referenced via a variable to avoid confusing sed.
11899 lt_compile=`echo "$ac_compile" | $SED \
11900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11902 -e 's:$: $lt_compiler_flag:'`
11903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11904 (eval "$lt_compile" 2>conftest.err)
11905 ac_status=$?
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 if (exit $ac_status) && test -s "$ac_outfile"; then
11909 # The compiler can only warn and ignore the option if not recognized
11910 # So say no if there are warnings other than the usual output.
11911 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11913 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11914 lt_cv_prog_compiler_rtti_exceptions=yes
11915 fi
11916 fi
11917 $RM conftest*
11918
11919 fi
11920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11921 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11922
11923 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11924 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11925 else
11926 :
11927 fi
11928
11929 fi
11930
11931
11932
11933
11934
11935
11936 lt_prog_compiler_wl=
11937 lt_prog_compiler_pic=
11938 lt_prog_compiler_static=
11939
11940
11941 if test yes = "$GCC"; then
11942 lt_prog_compiler_wl='-Wl,'
11943 lt_prog_compiler_static='-static'
11944
11945 case $host_os in
11946 aix*)
11947 # All AIX code is PIC.
11948 if test ia64 = "$host_cpu"; then
11949 # AIX 5 now supports IA64 processor
11950 lt_prog_compiler_static='-Bstatic'
11951 fi
11952 lt_prog_compiler_pic='-fPIC'
11953 ;;
11954
11955 amigaos*)
11956 case $host_cpu in
11957 powerpc)
11958 # see comment about AmigaOS4 .so support
11959 lt_prog_compiler_pic='-fPIC'
11960 ;;
11961 m68k)
11962 # FIXME: we need at least 68020 code to build shared libraries, but
11963 # adding the '-m68020' flag to GCC prevents building anything better,
11964 # like '-m68040'.
11965 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11966 ;;
11967 esac
11968 ;;
11969
11970 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11971 # PIC is the default for these OSes.
11972 ;;
11973
11974 mingw* | cygwin* | pw32* | os2* | cegcc*)
11975 # This hack is so that the source file can tell whether it is being
11976 # built for inclusion in a dll (and should export symbols for example).
11977 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11978 # (--disable-auto-import) libraries
11979 lt_prog_compiler_pic='-DDLL_EXPORT'
11980 case $host_os in
11981 os2*)
11982 lt_prog_compiler_static='$wl-static'
11983 ;;
11984 esac
11985 ;;
11986
11987 darwin* | rhapsody*)
11988 # PIC is the default on this platform
11989 # Common symbols not allowed in MH_DYLIB files
11990 lt_prog_compiler_pic='-fno-common'
11991 ;;
11992
11993 haiku*)
11994 # PIC is the default for Haiku.
11995 # The "-static" flag exists, but is broken.
11996 lt_prog_compiler_static=
11997 ;;
11998
11999 hpux*)
12000 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12001 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12002 # sets the default TLS model and affects inlining.
12003 case $host_cpu in
12004 hppa*64*)
12005 # +Z the default
12006 ;;
12007 *)
12008 lt_prog_compiler_pic='-fPIC'
12009 ;;
12010 esac
12011 ;;
12012
12013 interix[3-9]*)
12014 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12015 # Instead, we relocate shared libraries at runtime.
12016 ;;
12017
12018 msdosdjgpp*)
12019 # Just because we use GCC doesn't mean we suddenly get shared libraries
12020 # on systems that don't support them.
12021 lt_prog_compiler_can_build_shared=no
12022 enable_shared=no
12023 ;;
12024
12025 *nto* | *qnx*)
12026 # QNX uses GNU C++, but need to define -shared option too, otherwise
12027 # it will coredump.
12028 lt_prog_compiler_pic='-fPIC -shared'
12029 ;;
12030
12031 sysv4*MP*)
12032 if test -d /usr/nec; then
12033 lt_prog_compiler_pic=-Kconform_pic
12034 fi
12035 ;;
12036
12037 *)
12038 lt_prog_compiler_pic='-fPIC'
12039 ;;
12040 esac
12041
12042 case $cc_basename in
12043 nvcc*) # Cuda Compiler Driver 2.2
12044 lt_prog_compiler_wl='-Xlinker '
12045 if test -n "$lt_prog_compiler_pic"; then
12046 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12047 fi
12048 ;;
12049 esac
12050 else
12051 # PORTME Check for flag to pass linker flags through the system compiler.
12052 case $host_os in
12053 aix*)
12054 lt_prog_compiler_wl='-Wl,'
12055 if test ia64 = "$host_cpu"; then
12056 # AIX 5 now supports IA64 processor
12057 lt_prog_compiler_static='-Bstatic'
12058 else
12059 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12060 fi
12061 ;;
12062
12063 darwin* | rhapsody*)
12064 # PIC is the default on this platform
12065 # Common symbols not allowed in MH_DYLIB files
12066 lt_prog_compiler_pic='-fno-common'
12067 case $cc_basename in
12068 nagfor*)
12069 # NAG Fortran compiler
12070 lt_prog_compiler_wl='-Wl,-Wl,,'
12071 lt_prog_compiler_pic='-PIC'
12072 lt_prog_compiler_static='-Bstatic'
12073 ;;
12074 esac
12075 ;;
12076
12077 mingw* | cygwin* | pw32* | os2* | cegcc*)
12078 # This hack is so that the source file can tell whether it is being
12079 # built for inclusion in a dll (and should export symbols for example).
12080 lt_prog_compiler_pic='-DDLL_EXPORT'
12081 case $host_os in
12082 os2*)
12083 lt_prog_compiler_static='$wl-static'
12084 ;;
12085 esac
12086 ;;
12087
12088 hpux9* | hpux10* | hpux11*)
12089 lt_prog_compiler_wl='-Wl,'
12090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12091 # not for PA HP-UX.
12092 case $host_cpu in
12093 hppa*64*|ia64*)
12094 # +Z the default
12095 ;;
12096 *)
12097 lt_prog_compiler_pic='+Z'
12098 ;;
12099 esac
12100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12101 lt_prog_compiler_static='$wl-a ${wl}archive'
12102 ;;
12103
12104 irix5* | irix6* | nonstopux*)
12105 lt_prog_compiler_wl='-Wl,'
12106 # PIC (with -KPIC) is the default.
12107 lt_prog_compiler_static='-non_shared'
12108 ;;
12109
12110 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12111 case $cc_basename in
12112 # old Intel for x86_64, which still supported -KPIC.
12113 ecc*)
12114 lt_prog_compiler_wl='-Wl,'
12115 lt_prog_compiler_pic='-KPIC'
12116 lt_prog_compiler_static='-static'
12117 ;;
12118 # flang / f18. f95 an alias for gfortran or flang on Debian
12119 flang* | f18* | f95*)
12120 lt_prog_compiler_wl='-Wl,'
12121 lt_prog_compiler_pic='-fPIC'
12122 lt_prog_compiler_static='-static'
12123 ;;
12124 # icc used to be incompatible with GCC.
12125 # ICC 10 doesn't accept -KPIC any more.
12126 icc* | ifort*)
12127 lt_prog_compiler_wl='-Wl,'
12128 lt_prog_compiler_pic='-fPIC'
12129 lt_prog_compiler_static='-static'
12130 ;;
12131 # Lahey Fortran 8.1.
12132 lf95*)
12133 lt_prog_compiler_wl='-Wl,'
12134 lt_prog_compiler_pic='--shared'
12135 lt_prog_compiler_static='--static'
12136 ;;
12137 nagfor*)
12138 # NAG Fortran compiler
12139 lt_prog_compiler_wl='-Wl,-Wl,,'
12140 lt_prog_compiler_pic='-PIC'
12141 lt_prog_compiler_static='-Bstatic'
12142 ;;
12143 tcc*)
12144 # Fabrice Bellard et al's Tiny C Compiler
12145 lt_prog_compiler_wl='-Wl,'
12146 lt_prog_compiler_pic='-fPIC'
12147 lt_prog_compiler_static='-static'
12148 ;;
12149 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12150 # Portland Group compilers (*not* the Pentium gcc compiler,
12151 # which looks to be a dead project)
12152 lt_prog_compiler_wl='-Wl,'
12153 lt_prog_compiler_pic='-fpic'
12154 lt_prog_compiler_static='-Bstatic'
12155 ;;
12156 ccc*)
12157 lt_prog_compiler_wl='-Wl,'
12158 # All Alpha code is PIC.
12159 lt_prog_compiler_static='-non_shared'
12160 ;;
12161 xl* | bgxl* | bgf* | mpixl*)
12162 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12163 lt_prog_compiler_wl='-Wl,'
12164 lt_prog_compiler_pic='-qpic'
12165 lt_prog_compiler_static='-qstaticlink'
12166 ;;
12167 *)
12168 case `$CC -V 2>&1 | sed 5q` in
12169 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12170 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12171 lt_prog_compiler_pic='-KPIC'
12172 lt_prog_compiler_static='-Bstatic'
12173 lt_prog_compiler_wl=''
12174 ;;
12175 *Sun\ F* | *Sun*Fortran*)
12176 lt_prog_compiler_pic='-KPIC'
12177 lt_prog_compiler_static='-Bstatic'
12178 lt_prog_compiler_wl='-Qoption ld '
12179 ;;
12180 *Sun\ C*)
12181 # Sun C 5.9
12182 lt_prog_compiler_pic='-KPIC'
12183 lt_prog_compiler_static='-Bstatic'
12184 lt_prog_compiler_wl='-Wl,'
12185 ;;
12186 *Intel*\ [CF]*Compiler*)
12187 lt_prog_compiler_wl='-Wl,'
12188 lt_prog_compiler_pic='-fPIC'
12189 lt_prog_compiler_static='-static'
12190 ;;
12191 *Portland\ Group*)
12192 lt_prog_compiler_wl='-Wl,'
12193 lt_prog_compiler_pic='-fpic'
12194 lt_prog_compiler_static='-Bstatic'
12195 ;;
12196 esac
12197 ;;
12198 esac
12199 ;;
12200
12201 newsos6)
12202 lt_prog_compiler_pic='-KPIC'
12203 lt_prog_compiler_static='-Bstatic'
12204 ;;
12205
12206 *nto* | *qnx*)
12207 # QNX uses GNU C++, but need to define -shared option too, otherwise
12208 # it will coredump.
12209 lt_prog_compiler_pic='-fPIC -shared'
12210 ;;
12211
12212 osf3* | osf4* | osf5*)
12213 lt_prog_compiler_wl='-Wl,'
12214 # All OSF/1 code is PIC.
12215 lt_prog_compiler_static='-non_shared'
12216 ;;
12217
12218 rdos*)
12219 lt_prog_compiler_static='-non_shared'
12220 ;;
12221
12222 solaris*)
12223 lt_prog_compiler_pic='-KPIC'
12224 lt_prog_compiler_static='-Bstatic'
12225 case $cc_basename in
12226 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12227 lt_prog_compiler_wl='-Qoption ld ';;
12228 *)
12229 lt_prog_compiler_wl='-Wl,';;
12230 esac
12231 ;;
12232
12233 sunos4*)
12234 lt_prog_compiler_wl='-Qoption ld '
12235 lt_prog_compiler_pic='-PIC'
12236 lt_prog_compiler_static='-Bstatic'
12237 ;;
12238
12239 sysv4 | sysv4.2uw2* | sysv4.3*)
12240 lt_prog_compiler_wl='-Wl,'
12241 lt_prog_compiler_pic='-KPIC'
12242 lt_prog_compiler_static='-Bstatic'
12243 ;;
12244
12245 sysv4*MP*)
12246 if test -d /usr/nec; then
12247 lt_prog_compiler_pic='-Kconform_pic'
12248 lt_prog_compiler_static='-Bstatic'
12249 fi
12250 ;;
12251
12252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12253 lt_prog_compiler_wl='-Wl,'
12254 lt_prog_compiler_pic='-KPIC'
12255 lt_prog_compiler_static='-Bstatic'
12256 ;;
12257
12258 unicos*)
12259 lt_prog_compiler_wl='-Wl,'
12260 lt_prog_compiler_can_build_shared=no
12261 ;;
12262
12263 uts4*)
12264 lt_prog_compiler_pic='-pic'
12265 lt_prog_compiler_static='-Bstatic'
12266 ;;
12267
12268 *)
12269 lt_prog_compiler_can_build_shared=no
12270 ;;
12271 esac
12272 fi
12273
12274 case $host_os in
12275 # For platforms that do not support PIC, -DPIC is meaningless:
12276 *djgpp*)
12277 lt_prog_compiler_pic=
12278 ;;
12279 *)
12280 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12281 ;;
12282 esac
12283
12284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12285 printf %s "checking for $compiler option to produce PIC... " >&6; }
12286 if test ${lt_cv_prog_compiler_pic+y}
12287 then :
12288 printf %s "(cached) " >&6
12289 else $as_nop
12290 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12291 fi
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12293 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12294 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12295
12296 #
12297 # Check to make sure the PIC flag actually works.
12298 #
12299 if test -n "$lt_prog_compiler_pic"; then
12300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12301 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12302 if test ${lt_cv_prog_compiler_pic_works+y}
12303 then :
12304 printf %s "(cached) " >&6
12305 else $as_nop
12306 lt_cv_prog_compiler_pic_works=no
12307 ac_outfile=conftest.$ac_objext
12308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12309 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12310 # Insert the option either (1) after the last *FLAGS variable, or
12311 # (2) before a word containing "conftest.", or (3) at the end.
12312 # Note that $ac_compile itself does not contain backslashes and begins
12313 # with a dollar sign (not a hyphen), so the echo should work correctly.
12314 # The option is referenced via a variable to avoid confusing sed.
12315 lt_compile=`echo "$ac_compile" | $SED \
12316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12318 -e 's:$: $lt_compiler_flag:'`
12319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12320 (eval "$lt_compile" 2>conftest.err)
12321 ac_status=$?
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 if (exit $ac_status) && test -s "$ac_outfile"; then
12325 # The compiler can only warn and ignore the option if not recognized
12326 # So say no if there are warnings other than the usual output.
12327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12329 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12330 lt_cv_prog_compiler_pic_works=yes
12331 fi
12332 fi
12333 $RM conftest*
12334
12335 fi
12336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12337 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12338
12339 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12340 case $lt_prog_compiler_pic in
12341 "" | " "*) ;;
12342 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12343 esac
12344 else
12345 lt_prog_compiler_pic=
12346 lt_prog_compiler_can_build_shared=no
12347 fi
12348
12349 fi
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361 #
12362 # Check to make sure the static flag actually works.
12363 #
12364 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12366 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12367 if test ${lt_cv_prog_compiler_static_works+y}
12368 then :
12369 printf %s "(cached) " >&6
12370 else $as_nop
12371 lt_cv_prog_compiler_static_works=no
12372 save_LDFLAGS=$LDFLAGS
12373 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12374 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12375 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12376 # The linker can only warn and ignore the option if not recognized
12377 # So say no if there are warnings
12378 if test -s conftest.err; then
12379 # Append any errors to the config.log.
12380 cat conftest.err 1>&5
12381 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12382 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12383 if diff conftest.exp conftest.er2 >/dev/null; then
12384 lt_cv_prog_compiler_static_works=yes
12385 fi
12386 else
12387 lt_cv_prog_compiler_static_works=yes
12388 fi
12389 fi
12390 $RM -r conftest*
12391 LDFLAGS=$save_LDFLAGS
12392
12393 fi
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12395 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12396
12397 if test yes = "$lt_cv_prog_compiler_static_works"; then
12398 :
12399 else
12400 lt_prog_compiler_static=
12401 fi
12402
12403
12404
12405
12406
12407
12408
12409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12411 if test ${lt_cv_prog_compiler_c_o+y}
12412 then :
12413 printf %s "(cached) " >&6
12414 else $as_nop
12415 lt_cv_prog_compiler_c_o=no
12416 $RM -r conftest 2>/dev/null
12417 mkdir conftest
12418 cd conftest
12419 mkdir out
12420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12421
12422 lt_compiler_flag="-o out/conftest2.$ac_objext"
12423 # Insert the option either (1) after the last *FLAGS variable, or
12424 # (2) before a word containing "conftest.", or (3) at the end.
12425 # Note that $ac_compile itself does not contain backslashes and begins
12426 # with a dollar sign (not a hyphen), so the echo should work correctly.
12427 lt_compile=`echo "$ac_compile" | $SED \
12428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12430 -e 's:$: $lt_compiler_flag:'`
12431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12432 (eval "$lt_compile" 2>out/conftest.err)
12433 ac_status=$?
12434 cat out/conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12437 then
12438 # The compiler can only warn and ignore the option if not recognized
12439 # So say no if there are warnings
12440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12443 lt_cv_prog_compiler_c_o=yes
12444 fi
12445 fi
12446 chmod u+w . 2>&5
12447 $RM conftest*
12448 # SGI C++ compiler will create directory out/ii_files/ for
12449 # template instantiation
12450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12451 $RM out/* && rmdir out
12452 cd ..
12453 $RM -r conftest
12454 $RM conftest*
12455
12456 fi
12457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12458 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12459
12460
12461
12462
12463
12464
12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12466 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12467 if test ${lt_cv_prog_compiler_c_o+y}
12468 then :
12469 printf %s "(cached) " >&6
12470 else $as_nop
12471 lt_cv_prog_compiler_c_o=no
12472 $RM -r conftest 2>/dev/null
12473 mkdir conftest
12474 cd conftest
12475 mkdir out
12476 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12477
12478 lt_compiler_flag="-o out/conftest2.$ac_objext"
12479 # Insert the option either (1) after the last *FLAGS variable, or
12480 # (2) before a word containing "conftest.", or (3) at the end.
12481 # Note that $ac_compile itself does not contain backslashes and begins
12482 # with a dollar sign (not a hyphen), so the echo should work correctly.
12483 lt_compile=`echo "$ac_compile" | $SED \
12484 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12486 -e 's:$: $lt_compiler_flag:'`
12487 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12488 (eval "$lt_compile" 2>out/conftest.err)
12489 ac_status=$?
12490 cat out/conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12493 then
12494 # The compiler can only warn and ignore the option if not recognized
12495 # So say no if there are warnings
12496 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12497 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12498 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12499 lt_cv_prog_compiler_c_o=yes
12500 fi
12501 fi
12502 chmod u+w . 2>&5
12503 $RM conftest*
12504 # SGI C++ compiler will create directory out/ii_files/ for
12505 # template instantiation
12506 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12507 $RM out/* && rmdir out
12508 cd ..
12509 $RM -r conftest
12510 $RM conftest*
12511
12512 fi
12513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12514 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12515
12516
12517
12518
12519 hard_links=nottested
12520 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12521 # do not overwrite the value of need_locks provided by the user
12522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12523 printf %s "checking if we can lock with hard links... " >&6; }
12524 hard_links=yes
12525 $RM conftest*
12526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12527 touch conftest.a
12528 ln conftest.a conftest.b 2>&5 || hard_links=no
12529 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12531 printf "%s\n" "$hard_links" >&6; }
12532 if test no = "$hard_links"; then
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12534 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12535 need_locks=warn
12536 fi
12537 else
12538 need_locks=no
12539 fi
12540
12541
12542
12543
12544
12545
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12547 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12548
12549 runpath_var=
12550 allow_undefined_flag=
12551 always_export_symbols=no
12552 archive_cmds=
12553 archive_expsym_cmds=
12554 compiler_needs_object=no
12555 enable_shared_with_static_runtimes=no
12556 export_dynamic_flag_spec=
12557 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12558 hardcode_automatic=no
12559 hardcode_direct=no
12560 hardcode_direct_absolute=no
12561 hardcode_libdir_flag_spec=
12562 hardcode_libdir_separator=
12563 hardcode_minus_L=no
12564 hardcode_shlibpath_var=unsupported
12565 inherit_rpath=no
12566 link_all_deplibs=unknown
12567 module_cmds=
12568 module_expsym_cmds=
12569 old_archive_from_new_cmds=
12570 old_archive_from_expsyms_cmds=
12571 thread_safe_flag_spec=
12572 whole_archive_flag_spec=
12573 # include_expsyms should be a list of space-separated symbols to be *always*
12574 # included in the symbol list
12575 include_expsyms=
12576 # exclude_expsyms can be an extended regexp of symbols to exclude
12577 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12578 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12579 # as well as any symbol that contains 'd'.
12580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12582 # platforms (ab)use it in PIC code, but their linkers get confused if
12583 # the symbol is explicitly referenced. Since portable code cannot
12584 # rely on this symbol name, it's probably fine to never include it in
12585 # preloaded symbol tables.
12586 # Exclude shared library initialization/finalization symbols.
12587 extract_expsyms_cmds=
12588
12589 case $host_os in
12590 cygwin* | mingw* | pw32* | cegcc*)
12591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12592 # When not using gcc, we currently assume that we are using
12593 # Microsoft Visual C++.
12594 if test yes != "$GCC"; then
12595 with_gnu_ld=no
12596 fi
12597 ;;
12598 interix*)
12599 # we just hope/assume this is gcc and not c89 (= MSVC++)
12600 with_gnu_ld=yes
12601 ;;
12602 openbsd* | bitrig*)
12603 with_gnu_ld=no
12604 ;;
12605 linux* | k*bsd*-gnu | gnu*)
12606 link_all_deplibs=no
12607 ;;
12608 esac
12609
12610 ld_shlibs=yes
12611
12612 # On some targets, GNU ld is compatible enough with the native linker
12613 # that we're better off using the native interface for both.
12614 lt_use_gnu_ld_interface=no
12615 if test yes = "$with_gnu_ld"; then
12616 case $host_os in
12617 aix*)
12618 # The AIX port of GNU ld has always aspired to compatibility
12619 # with the native linker. However, as the warning in the GNU ld
12620 # block says, versions before 2.19.5* couldn't really create working
12621 # shared libraries, regardless of the interface used.
12622 case `$LD -v 2>&1` in
12623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12626 *)
12627 lt_use_gnu_ld_interface=yes
12628 ;;
12629 esac
12630 ;;
12631 *)
12632 lt_use_gnu_ld_interface=yes
12633 ;;
12634 esac
12635 fi
12636
12637 if test yes = "$lt_use_gnu_ld_interface"; then
12638 # If archive_cmds runs LD, not CC, wlarc should be empty
12639 wlarc='$wl'
12640
12641 # Set some defaults for GNU ld with shared library support. These
12642 # are reset later if shared libraries are not supported. Putting them
12643 # here allows them to be overridden if necessary.
12644 runpath_var=LD_RUN_PATH
12645 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12646 export_dynamic_flag_spec='$wl--export-dynamic'
12647 # ancient GNU ld didn't support --whole-archive et. al.
12648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12649 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12650 else
12651 whole_archive_flag_spec=
12652 fi
12653 supports_anon_versioning=no
12654 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12655 *GNU\ gold*) supports_anon_versioning=yes ;;
12656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12659 *\ 2.11.*) ;; # other 2.11 versions
12660 *) supports_anon_versioning=yes ;;
12661 esac
12662
12663 # See if GNU ld supports shared libraries.
12664 case $host_os in
12665 aix[3-9]*)
12666 # On AIX/PPC, the GNU linker is very broken
12667 if test ia64 != "$host_cpu"; then
12668 ld_shlibs=no
12669 cat <<_LT_EOF 1>&2
12670
12671 *** Warning: the GNU linker, at least up to release 2.19, is reported
12672 *** to be unable to reliably create shared libraries on AIX.
12673 *** Therefore, libtool is disabling shared libraries support. If you
12674 *** really care for shared libraries, you may want to install binutils
12675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12676 *** You will then need to restart the configuration process.
12677
12678 _LT_EOF
12679 fi
12680 ;;
12681
12682 amigaos*)
12683 case $host_cpu in
12684 powerpc)
12685 # see comment about AmigaOS4 .so support
12686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12687 archive_expsym_cmds=''
12688 ;;
12689 m68k)
12690 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)'
12691 hardcode_libdir_flag_spec='-L$libdir'
12692 hardcode_minus_L=yes
12693 ;;
12694 esac
12695 ;;
12696
12697 beos*)
12698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12699 allow_undefined_flag=unsupported
12700 # Joseph Beckenbach <[email protected]> says some releases of gcc
12701 # support --undefined. This deserves some investigation. FIXME
12702 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12703 else
12704 ld_shlibs=no
12705 fi
12706 ;;
12707
12708 cygwin* | mingw* | pw32* | cegcc*)
12709 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12710 # as there is no search path for DLLs.
12711 hardcode_libdir_flag_spec='-L$libdir'
12712 export_dynamic_flag_spec='$wl--export-all-symbols'
12713 allow_undefined_flag=unsupported
12714 always_export_symbols=no
12715 enable_shared_with_static_runtimes=yes
12716 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'
12717 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12718
12719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12721 # If the export-symbols file already is a .def file, use it as
12722 # is; otherwise, prepend EXPORTS...
12723 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12724 cp $export_symbols $output_objdir/$soname.def;
12725 else
12726 echo EXPORTS > $output_objdir/$soname.def;
12727 cat $export_symbols >> $output_objdir/$soname.def;
12728 fi~
12729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12730 else
12731 ld_shlibs=no
12732 fi
12733 ;;
12734
12735 haiku*)
12736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12737 link_all_deplibs=yes
12738 ;;
12739
12740 os2*)
12741 hardcode_libdir_flag_spec='-L$libdir'
12742 hardcode_minus_L=yes
12743 allow_undefined_flag=unsupported
12744 shrext_cmds=.dll
12745 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12746 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12747 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12748 $ECHO EXPORTS >> $output_objdir/$libname.def~
12749 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12750 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12751 emximp -o $lib $output_objdir/$libname.def'
12752 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12753 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12754 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12755 $ECHO EXPORTS >> $output_objdir/$libname.def~
12756 prefix_cmds="$SED"~
12757 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12758 prefix_cmds="$prefix_cmds -e 1d";
12759 fi~
12760 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12761 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12762 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12763 emximp -o $lib $output_objdir/$libname.def'
12764 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12765 enable_shared_with_static_runtimes=yes
12766 ;;
12767
12768 interix[3-9]*)
12769 hardcode_direct=no
12770 hardcode_shlibpath_var=no
12771 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12772 export_dynamic_flag_spec='$wl-E'
12773 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12774 # Instead, shared libraries are loaded at an image base (0x10000000 by
12775 # default) and relocated if they conflict, which is a slow very memory
12776 # consuming and fragmenting process. To avoid this, we pick a random,
12777 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12778 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12780 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'
12781 ;;
12782
12783 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12784 tmp_diet=no
12785 if test linux-dietlibc = "$host_os"; then
12786 case $cc_basename in
12787 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12788 esac
12789 fi
12790 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12791 && test no = "$tmp_diet"
12792 then
12793 tmp_addflag=' $pic_flag'
12794 tmp_sharedflag='-shared'
12795 case $cc_basename,$host_cpu in
12796 pgcc*) # Portland Group C compiler
12797 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'
12798 tmp_addflag=' $pic_flag'
12799 ;;
12800 pgf77* | pgf90* | pgf95* | pgfortran*)
12801 # Portland Group f77 and f90 compilers
12802 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'
12803 tmp_addflag=' $pic_flag -Mnomain' ;;
12804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12805 tmp_addflag=' -i_dynamic' ;;
12806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12807 tmp_addflag=' -i_dynamic -nofor_main' ;;
12808 ifc* | ifort*) # Intel Fortran compiler
12809 tmp_addflag=' -nofor_main' ;;
12810 lf95*) # Lahey Fortran 8.1
12811 whole_archive_flag_spec=
12812 tmp_sharedflag='--shared' ;;
12813 nagfor*) # NAGFOR 5.3
12814 tmp_sharedflag='-Wl,-shared' ;;
12815 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12816 tmp_sharedflag='-qmkshrobj'
12817 tmp_addflag= ;;
12818 nvcc*) # Cuda Compiler Driver 2.2
12819 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'
12820 compiler_needs_object=yes
12821 ;;
12822 esac
12823 case `$CC -V 2>&1 | sed 5q` in
12824 *Sun\ C*) # Sun C 5.9
12825 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'
12826 compiler_needs_object=yes
12827 tmp_sharedflag='-G' ;;
12828 *Sun\ F*) # Sun Fortran 8.3
12829 tmp_sharedflag='-G' ;;
12830 esac
12831 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12832
12833 if test yes = "$supports_anon_versioning"; then
12834 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12836 echo "local: *; };" >> $output_objdir/$libname.ver~
12837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12838 fi
12839
12840 case $cc_basename in
12841 tcc*)
12842 export_dynamic_flag_spec='-rdynamic'
12843 ;;
12844 xlf* | bgf* | bgxlf* | mpixlf*)
12845 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12846 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12847 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12848 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12849 if test yes = "$supports_anon_versioning"; then
12850 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12851 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12852 echo "local: *; };" >> $output_objdir/$libname.ver~
12853 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12854 fi
12855 ;;
12856 esac
12857 else
12858 ld_shlibs=no
12859 fi
12860 ;;
12861
12862 netbsd* | netbsdelf*-gnu)
12863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12864 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12865 wlarc=
12866 else
12867 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12868 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12869 fi
12870 ;;
12871
12872 solaris*)
12873 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12874 ld_shlibs=no
12875 cat <<_LT_EOF 1>&2
12876
12877 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12878 *** create shared libraries on Solaris systems. Therefore, libtool
12879 *** is disabling shared libraries support. We urge you to upgrade GNU
12880 *** binutils to release 2.9.1 or newer. Another option is to modify
12881 *** your PATH or compiler configuration so that the native linker is
12882 *** used, and then restart.
12883
12884 _LT_EOF
12885 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12888 else
12889 ld_shlibs=no
12890 fi
12891 ;;
12892
12893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12894 case `$LD -v 2>&1` in
12895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12896 ld_shlibs=no
12897 cat <<_LT_EOF 1>&2
12898
12899 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12900 *** reliably create shared libraries on SCO systems. Therefore, libtool
12901 *** is disabling shared libraries support. We urge you to upgrade GNU
12902 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12903 *** your PATH or compiler configuration so that the native linker is
12904 *** used, and then restart.
12905
12906 _LT_EOF
12907 ;;
12908 *)
12909 # For security reasons, it is highly recommended that you always
12910 # use absolute paths for naming shared libraries, and exclude the
12911 # DT_RUNPATH tag from executables and libraries. But doing so
12912 # requires that you compile everything twice, which is a pain.
12913 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12917 else
12918 ld_shlibs=no
12919 fi
12920 ;;
12921 esac
12922 ;;
12923
12924 sunos4*)
12925 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12926 wlarc=
12927 hardcode_direct=yes
12928 hardcode_shlibpath_var=no
12929 ;;
12930
12931 *)
12932 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12935 else
12936 ld_shlibs=no
12937 fi
12938 ;;
12939 esac
12940
12941 if test no = "$ld_shlibs"; then
12942 runpath_var=
12943 hardcode_libdir_flag_spec=
12944 export_dynamic_flag_spec=
12945 whole_archive_flag_spec=
12946 fi
12947 else
12948 # PORTME fill in a description of your system's linker (not GNU ld)
12949 case $host_os in
12950 aix3*)
12951 allow_undefined_flag=unsupported
12952 always_export_symbols=yes
12953 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'
12954 # Note: this linker hardcodes the directories in LIBPATH if there
12955 # are no directories specified by -L.
12956 hardcode_minus_L=yes
12957 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12958 # Neither direct hardcoding nor static linking is supported with a
12959 # broken collect2.
12960 hardcode_direct=unsupported
12961 fi
12962 ;;
12963
12964 aix[4-9]*)
12965 if test ia64 = "$host_cpu"; then
12966 # On IA64, the linker does run time linking by default, so we don't
12967 # have to do anything special.
12968 aix_use_runtimelinking=no
12969 exp_sym_flag='-Bexport'
12970 no_entry_flag=
12971 else
12972 # If we're using GNU nm, then we don't want the "-C" option.
12973 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12974 # Without the "-l" option, or with the "-B" option, AIX nm treats
12975 # weak defined symbols like other global defined symbols, whereas
12976 # GNU nm marks them as "W".
12977 # While the 'weak' keyword is ignored in the Export File, we need
12978 # it in the Import File for the 'aix-soname' feature, so we have
12979 # to replace the "-B" option with "-P" for AIX nm.
12980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12981 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12982 else
12983 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12984 fi
12985 aix_use_runtimelinking=no
12986
12987 # Test if we are trying to use run time linking or normal
12988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12989 # have runtime linking enabled, and use it for executables.
12990 # For shared libraries, we enable/disable runtime linking
12991 # depending on the kind of the shared library created -
12992 # when "with_aix_soname,aix_use_runtimelinking" is:
12993 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12994 # "aix,yes" lib.so shared, rtl:yes, for executables
12995 # lib.a static archive
12996 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12997 # lib.a(lib.so.V) shared, rtl:no, for executables
12998 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12999 # lib.a(lib.so.V) shared, rtl:no
13000 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13001 # lib.a static archive
13002 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13003 for ld_flag in $LDFLAGS; do
13004 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13005 aix_use_runtimelinking=yes
13006 break
13007 fi
13008 done
13009 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13010 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13011 # so we don't have lib.a shared libs to link our executables.
13012 # We have to force runtime linking in this case.
13013 aix_use_runtimelinking=yes
13014 LDFLAGS="$LDFLAGS -Wl,-brtl"
13015 fi
13016 ;;
13017 esac
13018
13019 exp_sym_flag='-bexport'
13020 no_entry_flag='-bnoentry'
13021 fi
13022
13023 # When large executables or shared objects are built, AIX ld can
13024 # have problems creating the table of contents. If linking a library
13025 # or program results in "error TOC overflow" add -mminimal-toc to
13026 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13027 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13028
13029 archive_cmds=''
13030 hardcode_direct=yes
13031 hardcode_direct_absolute=yes
13032 hardcode_libdir_separator=':'
13033 link_all_deplibs=yes
13034 file_list_spec='$wl-f,'
13035 case $with_aix_soname,$aix_use_runtimelinking in
13036 aix,*) ;; # traditional, no import file
13037 svr4,* | *,yes) # use import file
13038 # The Import File defines what to hardcode.
13039 hardcode_direct=no
13040 hardcode_direct_absolute=no
13041 ;;
13042 esac
13043
13044 if test yes = "$GCC"; then
13045 case $host_os in aix4.[012]|aix4.[012].*)
13046 # We only want to do this on AIX 4.2 and lower, the check
13047 # below for broken collect2 doesn't work under 4.3+
13048 collect2name=`$CC -print-prog-name=collect2`
13049 if test -f "$collect2name" &&
13050 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13051 then
13052 # We have reworked collect2
13053 :
13054 else
13055 # We have old collect2
13056 hardcode_direct=unsupported
13057 # It fails to find uninstalled libraries when the uninstalled
13058 # path is not listed in the libpath. Setting hardcode_minus_L
13059 # to unsupported forces relinking
13060 hardcode_minus_L=yes
13061 hardcode_libdir_flag_spec='-L$libdir'
13062 hardcode_libdir_separator=
13063 fi
13064 ;;
13065 esac
13066 shared_flag='-shared'
13067 if test yes = "$aix_use_runtimelinking"; then
13068 shared_flag="$shared_flag "'$wl-G'
13069 fi
13070 # Need to ensure runtime linking is disabled for the traditional
13071 # shared library, or the linker may eventually find shared libraries
13072 # /with/ Import File - we do not want to mix them.
13073 shared_flag_aix='-shared'
13074 shared_flag_svr4='-shared $wl-G'
13075 else
13076 # not using gcc
13077 if test ia64 = "$host_cpu"; then
13078 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13079 # chokes on -Wl,-G. The following line is correct:
13080 shared_flag='-G'
13081 else
13082 if test yes = "$aix_use_runtimelinking"; then
13083 shared_flag='$wl-G'
13084 else
13085 shared_flag='$wl-bM:SRE'
13086 fi
13087 shared_flag_aix='$wl-bM:SRE'
13088 shared_flag_svr4='$wl-G'
13089 fi
13090 fi
13091
13092 export_dynamic_flag_spec='$wl-bexpall'
13093 # It seems that -bexpall does not export symbols beginning with
13094 # underscore (_), so it is better to generate a list of symbols to export.
13095 always_export_symbols=yes
13096 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13097 # Warning - without using the other runtime loading flags (-brtl),
13098 # -berok will link without error, but may produce a broken library.
13099 allow_undefined_flag='-berok'
13100 # Determine the default libpath from the value encoded in an
13101 # empty executable.
13102 if test set = "${lt_cv_aix_libpath+set}"; then
13103 aix_libpath=$lt_cv_aix_libpath
13104 else
13105 if test ${lt_cv_aix_libpath_+y}
13106 then :
13107 printf %s "(cached) " >&6
13108 else $as_nop
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111
13112 int
13113 main (void)
13114 {
13115
13116 ;
13117 return 0;
13118 }
13119 _ACEOF
13120 if ac_fn_c_try_link "$LINENO"
13121 then :
13122
13123 lt_aix_libpath_sed='
13124 /Import File Strings/,/^$/ {
13125 /^0/ {
13126 s/^0 *\([^ ]*\) *$/\1/
13127 p
13128 }
13129 }'
13130 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13131 # Check for a 64-bit object if we didn't find anything.
13132 if test -z "$lt_cv_aix_libpath_"; then
13133 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13134 fi
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13137 conftest$ac_exeext conftest.$ac_ext
13138 if test -z "$lt_cv_aix_libpath_"; then
13139 lt_cv_aix_libpath_=/usr/lib:/lib
13140 fi
13141
13142 fi
13143
13144 aix_libpath=$lt_cv_aix_libpath_
13145 fi
13146
13147 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13148 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13149 else
13150 if test ia64 = "$host_cpu"; then
13151 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13152 allow_undefined_flag="-z nodefs"
13153 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"
13154 else
13155 # Determine the default libpath from the value encoded in an
13156 # empty executable.
13157 if test set = "${lt_cv_aix_libpath+set}"; then
13158 aix_libpath=$lt_cv_aix_libpath
13159 else
13160 if test ${lt_cv_aix_libpath_+y}
13161 then :
13162 printf %s "(cached) " >&6
13163 else $as_nop
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13166
13167 int
13168 main (void)
13169 {
13170
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"
13176 then :
13177
13178 lt_aix_libpath_sed='
13179 /Import File Strings/,/^$/ {
13180 /^0/ {
13181 s/^0 *\([^ ]*\) *$/\1/
13182 p
13183 }
13184 }'
13185 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13186 # Check for a 64-bit object if we didn't find anything.
13187 if test -z "$lt_cv_aix_libpath_"; then
13188 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13189 fi
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13192 conftest$ac_exeext conftest.$ac_ext
13193 if test -z "$lt_cv_aix_libpath_"; then
13194 lt_cv_aix_libpath_=/usr/lib:/lib
13195 fi
13196
13197 fi
13198
13199 aix_libpath=$lt_cv_aix_libpath_
13200 fi
13201
13202 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13203 # Warning - without using the other run time loading flags,
13204 # -berok will link without error, but may produce a broken library.
13205 no_undefined_flag=' $wl-bernotok'
13206 allow_undefined_flag=' $wl-berok'
13207 if test yes = "$with_gnu_ld"; then
13208 # We only use this code for GNU lds that support --whole-archive.
13209 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13210 else
13211 # Exported symbols can be pulled into shared objects from archives
13212 whole_archive_flag_spec='$convenience'
13213 fi
13214 archive_cmds_need_lc=yes
13215 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13216 # -brtl affects multiple linker settings, -berok does not and is overridden later
13217 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13218 if test svr4 != "$with_aix_soname"; then
13219 # This is similar to how AIX traditionally builds its shared libraries.
13220 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13221 fi
13222 if test aix != "$with_aix_soname"; then
13223 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13224 else
13225 # used by -dlpreopen to get the symbols
13226 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13227 fi
13228 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13229 fi
13230 fi
13231 ;;
13232
13233 amigaos*)
13234 case $host_cpu in
13235 powerpc)
13236 # see comment about AmigaOS4 .so support
13237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13238 archive_expsym_cmds=''
13239 ;;
13240 m68k)
13241 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)'
13242 hardcode_libdir_flag_spec='-L$libdir'
13243 hardcode_minus_L=yes
13244 ;;
13245 esac
13246 ;;
13247
13248 bsdi[45]*)
13249 export_dynamic_flag_spec=-rdynamic
13250 ;;
13251
13252 cygwin* | mingw* | pw32* | cegcc*)
13253 # When not using gcc, we currently assume that we are using
13254 # Microsoft Visual C++.
13255 # hardcode_libdir_flag_spec is actually meaningless, as there is
13256 # no search path for DLLs.
13257 case $cc_basename in
13258 cl*)
13259 # Native MSVC
13260 hardcode_libdir_flag_spec=' '
13261 allow_undefined_flag=unsupported
13262 always_export_symbols=yes
13263 file_list_spec='@'
13264 # Tell ltmain to make .lib files, not .a files.
13265 libext=lib
13266 # Tell ltmain to make .dll files, not .so files.
13267 shrext_cmds=.dll
13268 # FIXME: Setting linknames here is a bad hack.
13269 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13270 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13271 cp "$export_symbols" "$output_objdir/$soname.def";
13272 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13273 else
13274 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13275 fi~
13276 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13277 linknames='
13278 # The linker will not automatically build a static lib if we build a DLL.
13279 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13280 enable_shared_with_static_runtimes=yes
13281 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13282 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13283 # Don't use ranlib
13284 old_postinstall_cmds='chmod 644 $oldlib'
13285 postlink_cmds='lt_outputfile="@OUTPUT@"~
13286 lt_tool_outputfile="@TOOL_OUTPUT@"~
13287 case $lt_outputfile in
13288 *.exe|*.EXE) ;;
13289 *)
13290 lt_outputfile=$lt_outputfile.exe
13291 lt_tool_outputfile=$lt_tool_outputfile.exe
13292 ;;
13293 esac~
13294 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13295 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13296 $RM "$lt_outputfile.manifest";
13297 fi'
13298 ;;
13299 *)
13300 # Assume MSVC wrapper
13301 hardcode_libdir_flag_spec=' '
13302 allow_undefined_flag=unsupported
13303 # Tell ltmain to make .lib files, not .a files.
13304 libext=lib
13305 # Tell ltmain to make .dll files, not .so files.
13306 shrext_cmds=.dll
13307 # FIXME: Setting linknames here is a bad hack.
13308 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13309 # The linker will automatically build a .lib file if we build a DLL.
13310 old_archive_from_new_cmds='true'
13311 # FIXME: Should let the user specify the lib program.
13312 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13313 enable_shared_with_static_runtimes=yes
13314 ;;
13315 esac
13316 ;;
13317
13318 darwin* | rhapsody*)
13319
13320
13321 archive_cmds_need_lc=no
13322 hardcode_direct=no
13323 hardcode_automatic=yes
13324 hardcode_shlibpath_var=unsupported
13325 if test yes = "$lt_cv_ld_force_load"; then
13326 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\"`'
13327
13328 else
13329 whole_archive_flag_spec=''
13330 fi
13331 link_all_deplibs=yes
13332 allow_undefined_flag=$_lt_dar_allow_undefined
13333 case $cc_basename in
13334 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13335 *) _lt_dar_can_shared=$GCC ;;
13336 esac
13337 if test yes = "$_lt_dar_can_shared"; then
13338 output_verbose_link_cmd=func_echo_all
13339 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13340 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13341 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"
13342 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"
13343
13344 else
13345 ld_shlibs=no
13346 fi
13347
13348 ;;
13349
13350 dgux*)
13351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13352 hardcode_libdir_flag_spec='-L$libdir'
13353 hardcode_shlibpath_var=no
13354 ;;
13355
13356 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13357 # support. Future versions do this automatically, but an explicit c++rt0.o
13358 # does not break anything, and helps significantly (at the cost of a little
13359 # extra space).
13360 freebsd2.2*)
13361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13362 hardcode_libdir_flag_spec='-R$libdir'
13363 hardcode_direct=yes
13364 hardcode_shlibpath_var=no
13365 ;;
13366
13367 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13368 freebsd2.*)
13369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13370 hardcode_direct=yes
13371 hardcode_minus_L=yes
13372 hardcode_shlibpath_var=no
13373 ;;
13374
13375 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13376 freebsd* | dragonfly*)
13377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13378 hardcode_libdir_flag_spec='-R$libdir'
13379 hardcode_direct=yes
13380 hardcode_shlibpath_var=no
13381 ;;
13382
13383 hpux9*)
13384 if test yes = "$GCC"; then
13385 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13386 else
13387 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13388 fi
13389 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13390 hardcode_libdir_separator=:
13391 hardcode_direct=yes
13392
13393 # hardcode_minus_L: Not really in the search PATH,
13394 # but as the default location of the library.
13395 hardcode_minus_L=yes
13396 export_dynamic_flag_spec='$wl-E'
13397 ;;
13398
13399 hpux10*)
13400 if test yes,no = "$GCC,$with_gnu_ld"; then
13401 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13402 else
13403 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13404 fi
13405 if test no = "$with_gnu_ld"; then
13406 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13407 hardcode_libdir_separator=:
13408 hardcode_direct=yes
13409 hardcode_direct_absolute=yes
13410 export_dynamic_flag_spec='$wl-E'
13411 # hardcode_minus_L: Not really in the search PATH,
13412 # but as the default location of the library.
13413 hardcode_minus_L=yes
13414 fi
13415 ;;
13416
13417 hpux11*)
13418 if test yes,no = "$GCC,$with_gnu_ld"; then
13419 case $host_cpu in
13420 hppa*64*)
13421 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13422 ;;
13423 ia64*)
13424 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13425 ;;
13426 *)
13427 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13428 ;;
13429 esac
13430 else
13431 case $host_cpu in
13432 hppa*64*)
13433 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13434 ;;
13435 ia64*)
13436 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13437 ;;
13438 *)
13439
13440 # Older versions of the 11.00 compiler do not understand -b yet
13441 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13443 printf %s "checking if $CC understands -b... " >&6; }
13444 if test ${lt_cv_prog_compiler__b+y}
13445 then :
13446 printf %s "(cached) " >&6
13447 else $as_nop
13448 lt_cv_prog_compiler__b=no
13449 save_LDFLAGS=$LDFLAGS
13450 LDFLAGS="$LDFLAGS -b"
13451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13453 # The linker can only warn and ignore the option if not recognized
13454 # So say no if there are warnings
13455 if test -s conftest.err; then
13456 # Append any errors to the config.log.
13457 cat conftest.err 1>&5
13458 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13460 if diff conftest.exp conftest.er2 >/dev/null; then
13461 lt_cv_prog_compiler__b=yes
13462 fi
13463 else
13464 lt_cv_prog_compiler__b=yes
13465 fi
13466 fi
13467 $RM -r conftest*
13468 LDFLAGS=$save_LDFLAGS
13469
13470 fi
13471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13472 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13473
13474 if test yes = "$lt_cv_prog_compiler__b"; then
13475 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13476 else
13477 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13478 fi
13479
13480 ;;
13481 esac
13482 fi
13483 if test no = "$with_gnu_ld"; then
13484 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13485 hardcode_libdir_separator=:
13486
13487 case $host_cpu in
13488 hppa*64*|ia64*)
13489 hardcode_direct=no
13490 hardcode_shlibpath_var=no
13491 ;;
13492 *)
13493 hardcode_direct=yes
13494 hardcode_direct_absolute=yes
13495 export_dynamic_flag_spec='$wl-E'
13496
13497 # hardcode_minus_L: Not really in the search PATH,
13498 # but as the default location of the library.
13499 hardcode_minus_L=yes
13500 ;;
13501 esac
13502 fi
13503 ;;
13504
13505 irix5* | irix6* | nonstopux*)
13506 if test yes = "$GCC"; then
13507 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'
13508 # Try to use the -exported_symbol ld option, if it does not
13509 # work, assume that -exports_file does not work either and
13510 # implicitly export all symbols.
13511 # This should be the same for all languages, so no per-tag cache variable.
13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13513 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13514 if test ${lt_cv_irix_exported_symbol+y}
13515 then :
13516 printf %s "(cached) " >&6
13517 else $as_nop
13518 save_LDFLAGS=$LDFLAGS
13519 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521 /* end confdefs.h. */
13522 int foo (void) { return 0; }
13523 _ACEOF
13524 if ac_fn_c_try_link "$LINENO"
13525 then :
13526 lt_cv_irix_exported_symbol=yes
13527 else $as_nop
13528 lt_cv_irix_exported_symbol=no
13529 fi
13530 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LDFLAGS=$save_LDFLAGS
13533 fi
13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13535 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13536 if test yes = "$lt_cv_irix_exported_symbol"; then
13537 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'
13538 fi
13539 link_all_deplibs=no
13540 else
13541 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'
13542 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'
13543 fi
13544 archive_cmds_need_lc='no'
13545 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13546 hardcode_libdir_separator=:
13547 inherit_rpath=yes
13548 link_all_deplibs=yes
13549 ;;
13550
13551 linux*)
13552 case $cc_basename in
13553 tcc*)
13554 # Fabrice Bellard et al's Tiny C Compiler
13555 ld_shlibs=yes
13556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13557 ;;
13558 esac
13559 ;;
13560
13561 netbsd* | netbsdelf*-gnu)
13562 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13564 else
13565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13566 fi
13567 hardcode_libdir_flag_spec='-R$libdir'
13568 hardcode_direct=yes
13569 hardcode_shlibpath_var=no
13570 ;;
13571
13572 newsos6)
13573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13574 hardcode_direct=yes
13575 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13576 hardcode_libdir_separator=:
13577 hardcode_shlibpath_var=no
13578 ;;
13579
13580 *nto* | *qnx*)
13581 ;;
13582
13583 openbsd* | bitrig*)
13584 if test -f /usr/libexec/ld.so; then
13585 hardcode_direct=yes
13586 hardcode_shlibpath_var=no
13587 hardcode_direct_absolute=yes
13588 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13590 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13591 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13592 export_dynamic_flag_spec='$wl-E'
13593 else
13594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13595 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13596 fi
13597 else
13598 ld_shlibs=no
13599 fi
13600 ;;
13601
13602 os2*)
13603 hardcode_libdir_flag_spec='-L$libdir'
13604 hardcode_minus_L=yes
13605 allow_undefined_flag=unsupported
13606 shrext_cmds=.dll
13607 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13608 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13609 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13610 $ECHO EXPORTS >> $output_objdir/$libname.def~
13611 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13612 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13613 emximp -o $lib $output_objdir/$libname.def'
13614 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13615 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13616 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13617 $ECHO EXPORTS >> $output_objdir/$libname.def~
13618 prefix_cmds="$SED"~
13619 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13620 prefix_cmds="$prefix_cmds -e 1d";
13621 fi~
13622 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13623 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13624 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13625 emximp -o $lib $output_objdir/$libname.def'
13626 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13627 enable_shared_with_static_runtimes=yes
13628 ;;
13629
13630 osf3*)
13631 if test yes = "$GCC"; then
13632 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13633 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'
13634 else
13635 allow_undefined_flag=' -expect_unresolved \*'
13636 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'
13637 fi
13638 archive_cmds_need_lc='no'
13639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13640 hardcode_libdir_separator=:
13641 ;;
13642
13643 osf4* | osf5*) # as osf3* with the addition of -msym flag
13644 if test yes = "$GCC"; then
13645 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13646 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'
13647 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13648 else
13649 allow_undefined_flag=' -expect_unresolved \*'
13650 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'
13651 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~
13652 $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'
13653
13654 # Both c and cxx compiler support -rpath directly
13655 hardcode_libdir_flag_spec='-rpath $libdir'
13656 fi
13657 archive_cmds_need_lc='no'
13658 hardcode_libdir_separator=:
13659 ;;
13660
13661 solaris*)
13662 no_undefined_flag=' -z defs'
13663 if test yes = "$GCC"; then
13664 wlarc='$wl'
13665 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13666 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13667 $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'
13668 else
13669 case `$CC -V 2>&1` in
13670 *"Compilers 5.0"*)
13671 wlarc=''
13672 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13673 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13674 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13675 ;;
13676 *)
13677 wlarc='$wl'
13678 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13680 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13681 ;;
13682 esac
13683 fi
13684 hardcode_libdir_flag_spec='-R$libdir'
13685 hardcode_shlibpath_var=no
13686 case $host_os in
13687 solaris2.[0-5] | solaris2.[0-5].*) ;;
13688 *)
13689 # The compiler driver will combine and reorder linker options,
13690 # but understands '-z linker_flag'. GCC discards it without '$wl',
13691 # but is careful enough not to reorder.
13692 # Supported since Solaris 2.6 (maybe 2.5.1?)
13693 if test yes = "$GCC"; then
13694 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13695 else
13696 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13697 fi
13698 ;;
13699 esac
13700 link_all_deplibs=yes
13701 ;;
13702
13703 sunos4*)
13704 if test sequent = "$host_vendor"; then
13705 # Use $CC to link under sequent, because it throws in some extra .o
13706 # files that make .init and .fini sections work.
13707 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13708 else
13709 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13710 fi
13711 hardcode_libdir_flag_spec='-L$libdir'
13712 hardcode_direct=yes
13713 hardcode_minus_L=yes
13714 hardcode_shlibpath_var=no
13715 ;;
13716
13717 sysv4)
13718 case $host_vendor in
13719 sni)
13720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13721 hardcode_direct=yes # is this really true???
13722 ;;
13723 siemens)
13724 ## LD is ld it makes a PLAMLIB
13725 ## CC just makes a GrossModule.
13726 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13727 reload_cmds='$CC -r -o $output$reload_objs'
13728 hardcode_direct=no
13729 ;;
13730 motorola)
13731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13732 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13733 ;;
13734 esac
13735 runpath_var='LD_RUN_PATH'
13736 hardcode_shlibpath_var=no
13737 ;;
13738
13739 sysv4.3*)
13740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13741 hardcode_shlibpath_var=no
13742 export_dynamic_flag_spec='-Bexport'
13743 ;;
13744
13745 sysv4*MP*)
13746 if test -d /usr/nec; then
13747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13748 hardcode_shlibpath_var=no
13749 runpath_var=LD_RUN_PATH
13750 hardcode_runpath_var=yes
13751 ld_shlibs=yes
13752 fi
13753 ;;
13754
13755 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13756 no_undefined_flag='$wl-z,text'
13757 archive_cmds_need_lc=no
13758 hardcode_shlibpath_var=no
13759 runpath_var='LD_RUN_PATH'
13760
13761 if test yes = "$GCC"; then
13762 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 else
13765 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13767 fi
13768 ;;
13769
13770 sysv5* | sco3.2v5* | sco5v6*)
13771 # Note: We CANNOT use -z defs as we might desire, because we do not
13772 # link with -lc, and that would cause any symbols used from libc to
13773 # always be unresolved, which means just about no library would
13774 # ever link correctly. If we're not using GNU ld we use -z text
13775 # though, which does catch some bad symbols but isn't as heavy-handed
13776 # as -z defs.
13777 no_undefined_flag='$wl-z,text'
13778 allow_undefined_flag='$wl-z,nodefs'
13779 archive_cmds_need_lc=no
13780 hardcode_shlibpath_var=no
13781 hardcode_libdir_flag_spec='$wl-R,$libdir'
13782 hardcode_libdir_separator=':'
13783 link_all_deplibs=yes
13784 export_dynamic_flag_spec='$wl-Bexport'
13785 runpath_var='LD_RUN_PATH'
13786
13787 if test yes = "$GCC"; then
13788 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 else
13791 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13792 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 fi
13794 ;;
13795
13796 uts4*)
13797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_libdir_flag_spec='-L$libdir'
13799 hardcode_shlibpath_var=no
13800 ;;
13801
13802 *)
13803 ld_shlibs=no
13804 ;;
13805 esac
13806
13807 if test sni = "$host_vendor"; then
13808 case $host in
13809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13810 export_dynamic_flag_spec='$wl-Blargedynsym'
13811 ;;
13812 esac
13813 fi
13814 fi
13815
13816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13817 printf "%s\n" "$ld_shlibs" >&6; }
13818 test no = "$ld_shlibs" && can_build_shared=no
13819
13820 with_gnu_ld=$with_gnu_ld
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836 #
13837 # Do we need to explicitly link libc?
13838 #
13839 case "x$archive_cmds_need_lc" in
13840 x|xyes)
13841 # Assume -lc should be added
13842 archive_cmds_need_lc=yes
13843
13844 if test yes,yes = "$GCC,$enable_shared"; then
13845 case $archive_cmds in
13846 *'~'*)
13847 # FIXME: we may have to deal with multi-command sequences.
13848 ;;
13849 '$CC '*)
13850 # Test whether the compiler implicitly links with -lc since on some
13851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13852 # to ld, don't add -lc before -lgcc.
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13854 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13855 if test ${lt_cv_archive_cmds_need_lc+y}
13856 then :
13857 printf %s "(cached) " >&6
13858 else $as_nop
13859 $RM conftest*
13860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13861
13862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13863 (eval $ac_compile) 2>&5
13864 ac_status=$?
13865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866 test $ac_status = 0; } 2>conftest.err; then
13867 soname=conftest
13868 lib=conftest
13869 libobjs=conftest.$ac_objext
13870 deplibs=
13871 wl=$lt_prog_compiler_wl
13872 pic_flag=$lt_prog_compiler_pic
13873 compiler_flags=-v
13874 linker_flags=-v
13875 verstring=
13876 output_objdir=.
13877 libname=conftest
13878 lt_save_allow_undefined_flag=$allow_undefined_flag
13879 allow_undefined_flag=
13880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13881 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13882 ac_status=$?
13883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13884 test $ac_status = 0; }
13885 then
13886 lt_cv_archive_cmds_need_lc=no
13887 else
13888 lt_cv_archive_cmds_need_lc=yes
13889 fi
13890 allow_undefined_flag=$lt_save_allow_undefined_flag
13891 else
13892 cat conftest.err 1>&5
13893 fi
13894 $RM conftest*
13895
13896 fi
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13898 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13899 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13900 ;;
13901 esac
13902 fi
13903 ;;
13904 esac
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14058 printf %s "checking dynamic linker characteristics... " >&6; }
14059
14060 if test yes = "$GCC"; then
14061 case $host_os in
14062 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14063 *) lt_awk_arg='/^libraries:/' ;;
14064 esac
14065 case $host_os in
14066 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14067 *) lt_sed_strip_eq='s|=/|/|g' ;;
14068 esac
14069 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14070 case $lt_search_path_spec in
14071 *\;*)
14072 # if the path contains ";" then we assume it to be the separator
14073 # otherwise default to the standard path separator (i.e. ":") - it is
14074 # assumed that no part of a normal pathname contains ";" but that should
14075 # okay in the real world where ";" in dirpaths is itself problematic.
14076 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14077 ;;
14078 *)
14079 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14080 ;;
14081 esac
14082 # Ok, now we have the path, separated by spaces, we can step through it
14083 # and add multilib dir if necessary...
14084 lt_tmp_lt_search_path_spec=
14085 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14086 # ...but if some path component already ends with the multilib dir we assume
14087 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14088 case "$lt_multi_os_dir; $lt_search_path_spec " in
14089 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14090 lt_multi_os_dir=
14091 ;;
14092 esac
14093 for lt_sys_path in $lt_search_path_spec; do
14094 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14095 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14096 elif test -n "$lt_multi_os_dir"; then
14097 test -d "$lt_sys_path" && \
14098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14099 fi
14100 done
14101 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14102 BEGIN {RS = " "; FS = "/|\n";} {
14103 lt_foo = "";
14104 lt_count = 0;
14105 for (lt_i = NF; lt_i > 0; lt_i--) {
14106 if ($lt_i != "" && $lt_i != ".") {
14107 if ($lt_i == "..") {
14108 lt_count++;
14109 } else {
14110 if (lt_count == 0) {
14111 lt_foo = "/" $lt_i lt_foo;
14112 } else {
14113 lt_count--;
14114 }
14115 }
14116 }
14117 }
14118 if (lt_foo != "") { lt_freq[lt_foo]++; }
14119 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14120 }'`
14121 # AWK program above erroneously prepends '/' to C:/dos/paths
14122 # for these hosts.
14123 case $host_os in
14124 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14125 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14126 esac
14127 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14128 else
14129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14130 fi
14131 library_names_spec=
14132 libname_spec='lib$name'
14133 soname_spec=
14134 shrext_cmds=.so
14135 postinstall_cmds=
14136 postuninstall_cmds=
14137 finish_cmds=
14138 finish_eval=
14139 shlibpath_var=
14140 shlibpath_overrides_runpath=unknown
14141 version_type=none
14142 dynamic_linker="$host_os ld.so"
14143 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14144 need_lib_prefix=unknown
14145 hardcode_into_libs=no
14146
14147 # when you set need_version to no, make sure it does not cause -set_version
14148 # flags to be left without arguments
14149 need_version=unknown
14150
14151
14152
14153 case $host_os in
14154 aix3*)
14155 version_type=linux # correct to gnu/linux during the next big refactor
14156 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14157 shlibpath_var=LIBPATH
14158
14159 # AIX 3 has no versioning support, so we append a major version to the name.
14160 soname_spec='$libname$release$shared_ext$major'
14161 ;;
14162
14163 aix[4-9]*)
14164 version_type=linux # correct to gnu/linux during the next big refactor
14165 need_lib_prefix=no
14166 need_version=no
14167 hardcode_into_libs=yes
14168 if test ia64 = "$host_cpu"; then
14169 # AIX 5 supports IA64
14170 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14171 shlibpath_var=LD_LIBRARY_PATH
14172 else
14173 # With GCC up to 2.95.x, collect2 would create an import file
14174 # for dependence libraries. The import file would start with
14175 # the line '#! .'. This would cause the generated library to
14176 # depend on '.', always an invalid library. This was fixed in
14177 # development snapshots of GCC prior to 3.0.
14178 case $host_os in
14179 aix4 | aix4.[01] | aix4.[01].*)
14180 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14181 echo ' yes '
14182 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14183 :
14184 else
14185 can_build_shared=no
14186 fi
14187 ;;
14188 esac
14189 # Using Import Files as archive members, it is possible to support
14190 # filename-based versioning of shared library archives on AIX. While
14191 # this would work for both with and without runtime linking, it will
14192 # prevent static linking of such archives. So we do filename-based
14193 # shared library versioning with .so extension only, which is used
14194 # when both runtime linking and shared linking is enabled.
14195 # Unfortunately, runtime linking may impact performance, so we do
14196 # not want this to be the default eventually. Also, we use the
14197 # versioned .so libs for executables only if there is the -brtl
14198 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14199 # To allow for filename-based versioning support, we need to create
14200 # libNAME.so.V as an archive file, containing:
14201 # *) an Import File, referring to the versioned filename of the
14202 # archive as well as the shared archive member, telling the
14203 # bitwidth (32 or 64) of that shared object, and providing the
14204 # list of exported symbols of that shared object, eventually
14205 # decorated with the 'weak' keyword
14206 # *) the shared object with the F_LOADONLY flag set, to really avoid
14207 # it being seen by the linker.
14208 # At run time we better use the real file rather than another symlink,
14209 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14210
14211 case $with_aix_soname,$aix_use_runtimelinking in
14212 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14213 # soname into executable. Probably we can add versioning support to
14214 # collect2, so additional links can be useful in future.
14215 aix,yes) # traditional libtool
14216 dynamic_linker='AIX unversionable lib.so'
14217 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14218 # instead of lib<name>.a to let people know that these are not
14219 # typical AIX shared libraries.
14220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14221 ;;
14222 aix,no) # traditional AIX only
14223 dynamic_linker='AIX lib.a(lib.so.V)'
14224 # We preserve .a as extension for shared libraries through AIX4.2
14225 # and later when we are not doing run time linking.
14226 library_names_spec='$libname$release.a $libname.a'
14227 soname_spec='$libname$release$shared_ext$major'
14228 ;;
14229 svr4,*) # full svr4 only
14230 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14231 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14232 # We do not specify a path in Import Files, so LIBPATH fires.
14233 shlibpath_overrides_runpath=yes
14234 ;;
14235 *,yes) # both, prefer svr4
14236 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14237 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14238 # unpreferred sharedlib libNAME.a needs extra handling
14239 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14240 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14241 # We do not specify a path in Import Files, so LIBPATH fires.
14242 shlibpath_overrides_runpath=yes
14243 ;;
14244 *,no) # both, prefer aix
14245 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14246 library_names_spec='$libname$release.a $libname.a'
14247 soname_spec='$libname$release$shared_ext$major'
14248 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14249 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14250 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14251 ;;
14252 esac
14253 shlibpath_var=LIBPATH
14254 fi
14255 ;;
14256
14257 amigaos*)
14258 case $host_cpu in
14259 powerpc)
14260 # Since July 2007 AmigaOS4 officially supports .so libraries.
14261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14263 ;;
14264 m68k)
14265 library_names_spec='$libname.ixlibrary $libname.a'
14266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14267 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
14268 ;;
14269 esac
14270 ;;
14271
14272 beos*)
14273 library_names_spec='$libname$shared_ext'
14274 dynamic_linker="$host_os ld.so"
14275 shlibpath_var=LIBRARY_PATH
14276 ;;
14277
14278 bsdi[45]*)
14279 version_type=linux # correct to gnu/linux during the next big refactor
14280 need_version=no
14281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14282 soname_spec='$libname$release$shared_ext$major'
14283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14287 # the default ld.so.conf also contains /usr/contrib/lib and
14288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14289 # libtool to hard-code these into programs
14290 ;;
14291
14292 cygwin* | mingw* | pw32* | cegcc*)
14293 version_type=windows
14294 shrext_cmds=.dll
14295 need_version=no
14296 need_lib_prefix=no
14297
14298 case $GCC,$cc_basename in
14299 yes,*)
14300 # gcc
14301 library_names_spec='$libname.dll.a'
14302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14303 postinstall_cmds='base_file=`basename \$file`~
14304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14305 dldir=$destdir/`dirname \$dlpath`~
14306 test -d \$dldir || mkdir -p \$dldir~
14307 $install_prog $dir/$dlname \$dldir/$dlname~
14308 chmod a+x \$dldir/$dlname~
14309 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14310 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14311 fi'
14312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14313 dlpath=$dir/\$dldll~
14314 $RM \$dlpath'
14315 shlibpath_overrides_runpath=yes
14316
14317 case $host_os in
14318 cygwin*)
14319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14320 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14321
14322 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14323 ;;
14324 mingw* | cegcc*)
14325 # MinGW DLLs use traditional 'lib' prefix
14326 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14327 ;;
14328 pw32*)
14329 # pw32 DLLs use 'pw' prefix rather than 'lib'
14330 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14331 ;;
14332 esac
14333 dynamic_linker='Win32 ld.exe'
14334 ;;
14335
14336 *,cl*)
14337 # Native MSVC
14338 libname_spec='$name'
14339 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14340 library_names_spec='$libname.dll.lib'
14341
14342 case $build_os in
14343 mingw*)
14344 sys_lib_search_path_spec=
14345 lt_save_ifs=$IFS
14346 IFS=';'
14347 for lt_path in $LIB
14348 do
14349 IFS=$lt_save_ifs
14350 # Let DOS variable expansion print the short 8.3 style file name.
14351 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14352 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14353 done
14354 IFS=$lt_save_ifs
14355 # Convert to MSYS style.
14356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14357 ;;
14358 cygwin*)
14359 # Convert to unix form, then to dos form, then back to unix form
14360 # but this time dos style (no spaces!) so that the unix form looks
14361 # like /cygdrive/c/PROGRA~1:/cygdr...
14362 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14363 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14364 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14365 ;;
14366 *)
14367 sys_lib_search_path_spec=$LIB
14368 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14369 # It is most probably a Windows format PATH.
14370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14371 else
14372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14373 fi
14374 # FIXME: find the short name or the path components, as spaces are
14375 # common. (e.g. "Program Files" -> "PROGRA~1")
14376 ;;
14377 esac
14378
14379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14380 postinstall_cmds='base_file=`basename \$file`~
14381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14382 dldir=$destdir/`dirname \$dlpath`~
14383 test -d \$dldir || mkdir -p \$dldir~
14384 $install_prog $dir/$dlname \$dldir/$dlname'
14385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14386 dlpath=$dir/\$dldll~
14387 $RM \$dlpath'
14388 shlibpath_overrides_runpath=yes
14389 dynamic_linker='Win32 link.exe'
14390 ;;
14391
14392 *)
14393 # Assume MSVC wrapper
14394 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14395 dynamic_linker='Win32 ld.exe'
14396 ;;
14397 esac
14398 # FIXME: first we should search . and the directory the executable is in
14399 shlibpath_var=PATH
14400 ;;
14401
14402 darwin* | rhapsody*)
14403 dynamic_linker="$host_os dyld"
14404 version_type=darwin
14405 need_lib_prefix=no
14406 need_version=no
14407 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14408 soname_spec='$libname$release$major$shared_ext'
14409 shlibpath_overrides_runpath=yes
14410 shlibpath_var=DYLD_LIBRARY_PATH
14411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14412
14413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14415 ;;
14416
14417 dgux*)
14418 version_type=linux # correct to gnu/linux during the next big refactor
14419 need_lib_prefix=no
14420 need_version=no
14421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14422 soname_spec='$libname$release$shared_ext$major'
14423 shlibpath_var=LD_LIBRARY_PATH
14424 ;;
14425
14426 freebsd* | dragonfly*)
14427 # DragonFly does not have aout. When/if they implement a new
14428 # versioning mechanism, adjust this.
14429 if test -x /usr/bin/objformat; then
14430 objformat=`/usr/bin/objformat`
14431 else
14432 case $host_os in
14433 freebsd[23].*) objformat=aout ;;
14434 *) objformat=elf ;;
14435 esac
14436 fi
14437 version_type=freebsd-$objformat
14438 case $version_type in
14439 freebsd-elf*)
14440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14441 soname_spec='$libname$release$shared_ext$major'
14442 need_version=no
14443 need_lib_prefix=no
14444 ;;
14445 freebsd-*)
14446 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14447 need_version=yes
14448 ;;
14449 esac
14450 shlibpath_var=LD_LIBRARY_PATH
14451 case $host_os in
14452 freebsd2.*)
14453 shlibpath_overrides_runpath=yes
14454 ;;
14455 freebsd3.[01]* | freebsdelf3.[01]*)
14456 shlibpath_overrides_runpath=yes
14457 hardcode_into_libs=yes
14458 ;;
14459 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14460 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14461 shlibpath_overrides_runpath=no
14462 hardcode_into_libs=yes
14463 ;;
14464 *) # from 4.6 on, and DragonFly
14465 shlibpath_overrides_runpath=yes
14466 hardcode_into_libs=yes
14467 ;;
14468 esac
14469 ;;
14470
14471 haiku*)
14472 version_type=linux # correct to gnu/linux during the next big refactor
14473 need_lib_prefix=no
14474 need_version=no
14475 dynamic_linker="$host_os runtime_loader"
14476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14477 soname_spec='$libname$release$shared_ext$major'
14478 shlibpath_var=LIBRARY_PATH
14479 shlibpath_overrides_runpath=no
14480 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14481 hardcode_into_libs=yes
14482 ;;
14483
14484 hpux9* | hpux10* | hpux11*)
14485 # Give a soname corresponding to the major version so that dld.sl refuses to
14486 # link against other versions.
14487 version_type=sunos
14488 need_lib_prefix=no
14489 need_version=no
14490 case $host_cpu in
14491 ia64*)
14492 shrext_cmds='.so'
14493 hardcode_into_libs=yes
14494 dynamic_linker="$host_os dld.so"
14495 shlibpath_var=LD_LIBRARY_PATH
14496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14497 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14498 soname_spec='$libname$release$shared_ext$major'
14499 if test 32 = "$HPUX_IA64_MODE"; then
14500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14501 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14502 else
14503 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14504 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14505 fi
14506 ;;
14507 hppa*64*)
14508 shrext_cmds='.sl'
14509 hardcode_into_libs=yes
14510 dynamic_linker="$host_os dld.sl"
14511 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14513 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14514 soname_spec='$libname$release$shared_ext$major'
14515 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14517 ;;
14518 *)
14519 shrext_cmds='.sl'
14520 dynamic_linker="$host_os dld.sl"
14521 shlibpath_var=SHLIB_PATH
14522 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14524 soname_spec='$libname$release$shared_ext$major'
14525 ;;
14526 esac
14527 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14528 postinstall_cmds='chmod 555 $lib'
14529 # or fails outright, so override atomically:
14530 install_override_mode=555
14531 ;;
14532
14533 interix[3-9]*)
14534 version_type=linux # correct to gnu/linux during the next big refactor
14535 need_lib_prefix=no
14536 need_version=no
14537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14538 soname_spec='$libname$release$shared_ext$major'
14539 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=no
14542 hardcode_into_libs=yes
14543 ;;
14544
14545 irix5* | irix6* | nonstopux*)
14546 case $host_os in
14547 nonstopux*) version_type=nonstopux ;;
14548 *)
14549 if test yes = "$lt_cv_prog_gnu_ld"; then
14550 version_type=linux # correct to gnu/linux during the next big refactor
14551 else
14552 version_type=irix
14553 fi ;;
14554 esac
14555 need_lib_prefix=no
14556 need_version=no
14557 soname_spec='$libname$release$shared_ext$major'
14558 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14559 case $host_os in
14560 irix5* | nonstopux*)
14561 libsuff= shlibsuff=
14562 ;;
14563 *)
14564 case $LD in # libtool.m4 will add one of these switches to LD
14565 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14566 libsuff= shlibsuff= libmagic=32-bit;;
14567 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14568 libsuff=32 shlibsuff=N32 libmagic=N32;;
14569 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14570 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14571 *) libsuff= shlibsuff= libmagic=never-match;;
14572 esac
14573 ;;
14574 esac
14575 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14576 shlibpath_overrides_runpath=no
14577 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14578 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14579 hardcode_into_libs=yes
14580 ;;
14581
14582 # No shared lib support for Linux oldld, aout, or coff.
14583 linux*oldld* | linux*aout* | linux*coff*)
14584 dynamic_linker=no
14585 ;;
14586
14587 linux*android*)
14588 version_type=none # Android doesn't support versioned libraries.
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='$libname$release$shared_ext'
14592 soname_spec='$libname$release$shared_ext'
14593 finish_cmds=
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=yes
14596
14597 # This implies no fast_install, which is unacceptable.
14598 # Some rework will be needed to allow for fast_install
14599 # before this can be enabled.
14600 hardcode_into_libs=yes
14601
14602 dynamic_linker='Android linker'
14603 # Don't embed -rpath directories since the linker doesn't support them.
14604 hardcode_libdir_flag_spec='-L$libdir'
14605 ;;
14606
14607 # This must be glibc/ELF.
14608 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14609 version_type=linux # correct to gnu/linux during the next big refactor
14610 need_lib_prefix=no
14611 need_version=no
14612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14613 soname_spec='$libname$release$shared_ext$major'
14614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617
14618 # Some binutils ld are patched to set DT_RUNPATH
14619 if test ${lt_cv_shlibpath_overrides_runpath+y}
14620 then :
14621 printf %s "(cached) " >&6
14622 else $as_nop
14623 lt_cv_shlibpath_overrides_runpath=no
14624 save_LDFLAGS=$LDFLAGS
14625 save_libdir=$libdir
14626 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14627 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14630
14631 int
14632 main (void)
14633 {
14634
14635 ;
14636 return 0;
14637 }
14638 _ACEOF
14639 if ac_fn_c_try_link "$LINENO"
14640 then :
14641 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14642 then :
14643 lt_cv_shlibpath_overrides_runpath=yes
14644 fi
14645 fi
14646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14647 conftest$ac_exeext conftest.$ac_ext
14648 LDFLAGS=$save_LDFLAGS
14649 libdir=$save_libdir
14650
14651 fi
14652
14653 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14654
14655 # This implies no fast_install, which is unacceptable.
14656 # Some rework will be needed to allow for fast_install
14657 # before this can be enabled.
14658 hardcode_into_libs=yes
14659
14660 # Ideally, we could use ldconfig to report *all* directores which are
14661 # searched for libraries, however this is still not possible. Aside from not
14662 # being certain /sbin/ldconfig is available, command
14663 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14664 # even though it is searched at run-time. Try to do the best guess by
14665 # appending ld.so.conf contents (and includes) to the search path.
14666 if test -f /etc/ld.so.conf; then
14667 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' ' '`
14668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14669 fi
14670
14671 # We used to test for /lib/ld.so.1 and disable shared libraries on
14672 # powerpc, because MkLinux only supported shared libraries with the
14673 # GNU dynamic linker. Since this was broken with cross compilers,
14674 # most powerpc-linux boxes support dynamic linking these days and
14675 # people can always --disable-shared, the test was removed, and we
14676 # assume the GNU/Linux dynamic linker is in use.
14677 dynamic_linker='GNU/Linux ld.so'
14678 ;;
14679
14680 netbsdelf*-gnu)
14681 version_type=linux
14682 need_lib_prefix=no
14683 need_version=no
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 shlibpath_var=LD_LIBRARY_PATH
14687 shlibpath_overrides_runpath=no
14688 hardcode_into_libs=yes
14689 dynamic_linker='NetBSD ld.elf_so'
14690 ;;
14691
14692 netbsd*)
14693 version_type=sunos
14694 need_lib_prefix=no
14695 need_version=no
14696 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14697 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14699 dynamic_linker='NetBSD (a.out) ld.so'
14700 else
14701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14702 soname_spec='$libname$release$shared_ext$major'
14703 dynamic_linker='NetBSD ld.elf_so'
14704 fi
14705 shlibpath_var=LD_LIBRARY_PATH
14706 shlibpath_overrides_runpath=yes
14707 hardcode_into_libs=yes
14708 ;;
14709
14710 newsos6)
14711 version_type=linux # correct to gnu/linux during the next big refactor
14712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14713 shlibpath_var=LD_LIBRARY_PATH
14714 shlibpath_overrides_runpath=yes
14715 ;;
14716
14717 *nto* | *qnx*)
14718 version_type=qnx
14719 need_lib_prefix=no
14720 need_version=no
14721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14722 soname_spec='$libname$release$shared_ext$major'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=no
14725 hardcode_into_libs=yes
14726 dynamic_linker='ldqnx.so'
14727 ;;
14728
14729 openbsd* | bitrig*)
14730 version_type=sunos
14731 sys_lib_dlsearch_path_spec=/usr/lib
14732 need_lib_prefix=no
14733 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14734 need_version=no
14735 else
14736 need_version=yes
14737 fi
14738 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14740 shlibpath_var=LD_LIBRARY_PATH
14741 shlibpath_overrides_runpath=yes
14742 ;;
14743
14744 os2*)
14745 libname_spec='$name'
14746 version_type=windows
14747 shrext_cmds=.dll
14748 need_version=no
14749 need_lib_prefix=no
14750 # OS/2 can only load a DLL with a base name of 8 characters or less.
14751 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14752 v=$($ECHO $release$versuffix | tr -d .-);
14753 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14754 $ECHO $n$v`$shared_ext'
14755 library_names_spec='${libname}_dll.$libext'
14756 dynamic_linker='OS/2 ld.exe'
14757 shlibpath_var=BEGINLIBPATH
14758 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14760 postinstall_cmds='base_file=`basename \$file`~
14761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14762 dldir=$destdir/`dirname \$dlpath`~
14763 test -d \$dldir || mkdir -p \$dldir~
14764 $install_prog $dir/$dlname \$dldir/$dlname~
14765 chmod a+x \$dldir/$dlname~
14766 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14767 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14768 fi'
14769 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14770 dlpath=$dir/\$dldll~
14771 $RM \$dlpath'
14772 ;;
14773
14774 osf3* | osf4* | osf5*)
14775 version_type=osf
14776 need_lib_prefix=no
14777 need_version=no
14778 soname_spec='$libname$release$shared_ext$major'
14779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14780 shlibpath_var=LD_LIBRARY_PATH
14781 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14782 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14783 ;;
14784
14785 rdos*)
14786 dynamic_linker=no
14787 ;;
14788
14789 solaris*)
14790 version_type=linux # correct to gnu/linux during the next big refactor
14791 need_lib_prefix=no
14792 need_version=no
14793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14794 soname_spec='$libname$release$shared_ext$major'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 shlibpath_overrides_runpath=yes
14797 hardcode_into_libs=yes
14798 # ldd complains unless libraries are executable
14799 postinstall_cmds='chmod +x $lib'
14800 ;;
14801
14802 sunos4*)
14803 version_type=sunos
14804 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14805 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14806 shlibpath_var=LD_LIBRARY_PATH
14807 shlibpath_overrides_runpath=yes
14808 if test yes = "$with_gnu_ld"; then
14809 need_lib_prefix=no
14810 fi
14811 need_version=yes
14812 ;;
14813
14814 sysv4 | sysv4.3*)
14815 version_type=linux # correct to gnu/linux during the next big refactor
14816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14817 soname_spec='$libname$release$shared_ext$major'
14818 shlibpath_var=LD_LIBRARY_PATH
14819 case $host_vendor in
14820 sni)
14821 shlibpath_overrides_runpath=no
14822 need_lib_prefix=no
14823 runpath_var=LD_RUN_PATH
14824 ;;
14825 siemens)
14826 need_lib_prefix=no
14827 ;;
14828 motorola)
14829 need_lib_prefix=no
14830 need_version=no
14831 shlibpath_overrides_runpath=no
14832 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14833 ;;
14834 esac
14835 ;;
14836
14837 sysv4*MP*)
14838 if test -d /usr/nec; then
14839 version_type=linux # correct to gnu/linux during the next big refactor
14840 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14841 soname_spec='$libname$shared_ext.$major'
14842 shlibpath_var=LD_LIBRARY_PATH
14843 fi
14844 ;;
14845
14846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14847 version_type=sco
14848 need_lib_prefix=no
14849 need_version=no
14850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14851 soname_spec='$libname$release$shared_ext$major'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 shlibpath_overrides_runpath=yes
14854 hardcode_into_libs=yes
14855 if test yes = "$with_gnu_ld"; then
14856 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14857 else
14858 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14859 case $host_os in
14860 sco3.2v5*)
14861 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14862 ;;
14863 esac
14864 fi
14865 sys_lib_dlsearch_path_spec='/usr/lib'
14866 ;;
14867
14868 tpf*)
14869 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14870 version_type=linux # correct to gnu/linux during the next big refactor
14871 need_lib_prefix=no
14872 need_version=no
14873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14877 ;;
14878
14879 uts4*)
14880 version_type=linux # correct to gnu/linux during the next big refactor
14881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14882 soname_spec='$libname$release$shared_ext$major'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 ;;
14885
14886 *)
14887 dynamic_linker=no
14888 ;;
14889 esac
14890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14891 printf "%s\n" "$dynamic_linker" >&6; }
14892 test no = "$dynamic_linker" && can_build_shared=no
14893
14894 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14895 if test yes = "$GCC"; then
14896 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14897 fi
14898
14899 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14900 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14901 fi
14902
14903 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14904 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14905 fi
14906
14907 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14908 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14909
14910 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14911 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14912
14913 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14914 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15013 printf %s "checking how to hardcode library paths into programs... " >&6; }
15014 hardcode_action=
15015 if test -n "$hardcode_libdir_flag_spec" ||
15016 test -n "$runpath_var" ||
15017 test yes = "$hardcode_automatic"; then
15018
15019 # We can hardcode non-existent directories.
15020 if test no != "$hardcode_direct" &&
15021 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15022 # have to relink, otherwise we might link with an installed library
15023 # when we should be linking with a yet-to-be-installed one
15024 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15025 test no != "$hardcode_minus_L"; then
15026 # Linking always hardcodes the temporary library directory.
15027 hardcode_action=relink
15028 else
15029 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15030 hardcode_action=immediate
15031 fi
15032 else
15033 # We cannot hardcode anything, or else we can only hardcode existing
15034 # directories.
15035 hardcode_action=unsupported
15036 fi
15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15038 printf "%s\n" "$hardcode_action" >&6; }
15039
15040 if test relink = "$hardcode_action" ||
15041 test yes = "$inherit_rpath"; then
15042 # Fast installation is not supported
15043 enable_fast_install=no
15044 elif test yes = "$shlibpath_overrides_runpath" ||
15045 test no = "$enable_shared"; then
15046 # Fast installation is not necessary
15047 enable_fast_install=needless
15048 fi
15049
15050
15051
15052
15053
15054
15055 if test yes != "$enable_dlopen"; then
15056 enable_dlopen=unknown
15057 enable_dlopen_self=unknown
15058 enable_dlopen_self_static=unknown
15059 else
15060 lt_cv_dlopen=no
15061 lt_cv_dlopen_libs=
15062
15063 case $host_os in
15064 beos*)
15065 lt_cv_dlopen=load_add_on
15066 lt_cv_dlopen_libs=
15067 lt_cv_dlopen_self=yes
15068 ;;
15069
15070 mingw* | pw32* | cegcc*)
15071 lt_cv_dlopen=LoadLibrary
15072 lt_cv_dlopen_libs=
15073 ;;
15074
15075 cygwin*)
15076 lt_cv_dlopen=dlopen
15077 lt_cv_dlopen_libs=
15078 ;;
15079
15080 darwin*)
15081 # if libdl is installed we need to link against it
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15083 printf %s "checking for dlopen in -ldl... " >&6; }
15084 if test ${ac_cv_lib_dl_dlopen+y}
15085 then :
15086 printf %s "(cached) " >&6
15087 else $as_nop
15088 ac_check_lib_save_LIBS=$LIBS
15089 LIBS="-ldl $LIBS"
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092
15093 /* Override any GCC internal prototype to avoid an error.
15094 Use char because int might match the return type of a GCC
15095 builtin and then its argument prototype would still apply. */
15096 char dlopen ();
15097 int
15098 main (void)
15099 {
15100 return dlopen ();
15101 ;
15102 return 0;
15103 }
15104 _ACEOF
15105 if ac_fn_c_try_link "$LINENO"
15106 then :
15107 ac_cv_lib_dl_dlopen=yes
15108 else $as_nop
15109 ac_cv_lib_dl_dlopen=no
15110 fi
15111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15112 conftest$ac_exeext conftest.$ac_ext
15113 LIBS=$ac_check_lib_save_LIBS
15114 fi
15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15116 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15117 if test "x$ac_cv_lib_dl_dlopen" = xyes
15118 then :
15119 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15120 else $as_nop
15121
15122 lt_cv_dlopen=dyld
15123 lt_cv_dlopen_libs=
15124 lt_cv_dlopen_self=yes
15125
15126 fi
15127
15128 ;;
15129
15130 tpf*)
15131 # Don't try to run any link tests for TPF. We know it's impossible
15132 # because TPF is a cross-compiler, and we know how we open DSOs.
15133 lt_cv_dlopen=dlopen
15134 lt_cv_dlopen_libs=
15135 lt_cv_dlopen_self=no
15136 ;;
15137
15138 *)
15139 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15140 if test "x$ac_cv_func_shl_load" = xyes
15141 then :
15142 lt_cv_dlopen=shl_load
15143 else $as_nop
15144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15145 printf %s "checking for shl_load in -ldld... " >&6; }
15146 if test ${ac_cv_lib_dld_shl_load+y}
15147 then :
15148 printf %s "(cached) " >&6
15149 else $as_nop
15150 ac_check_lib_save_LIBS=$LIBS
15151 LIBS="-ldld $LIBS"
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154
15155 /* Override any GCC internal prototype to avoid an error.
15156 Use char because int might match the return type of a GCC
15157 builtin and then its argument prototype would still apply. */
15158 char shl_load ();
15159 int
15160 main (void)
15161 {
15162 return shl_load ();
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_link "$LINENO"
15168 then :
15169 ac_cv_lib_dld_shl_load=yes
15170 else $as_nop
15171 ac_cv_lib_dld_shl_load=no
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15176 fi
15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15178 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15179 if test "x$ac_cv_lib_dld_shl_load" = xyes
15180 then :
15181 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15182 else $as_nop
15183 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15184 if test "x$ac_cv_func_dlopen" = xyes
15185 then :
15186 lt_cv_dlopen=dlopen
15187 else $as_nop
15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15189 printf %s "checking for dlopen in -ldl... " >&6; }
15190 if test ${ac_cv_lib_dl_dlopen+y}
15191 then :
15192 printf %s "(cached) " >&6
15193 else $as_nop
15194 ac_check_lib_save_LIBS=$LIBS
15195 LIBS="-ldl $LIBS"
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply. */
15202 char dlopen ();
15203 int
15204 main (void)
15205 {
15206 return dlopen ();
15207 ;
15208 return 0;
15209 }
15210 _ACEOF
15211 if ac_fn_c_try_link "$LINENO"
15212 then :
15213 ac_cv_lib_dl_dlopen=yes
15214 else $as_nop
15215 ac_cv_lib_dl_dlopen=no
15216 fi
15217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15218 conftest$ac_exeext conftest.$ac_ext
15219 LIBS=$ac_check_lib_save_LIBS
15220 fi
15221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15222 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15223 if test "x$ac_cv_lib_dl_dlopen" = xyes
15224 then :
15225 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15226 else $as_nop
15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15228 printf %s "checking for dlopen in -lsvld... " >&6; }
15229 if test ${ac_cv_lib_svld_dlopen+y}
15230 then :
15231 printf %s "(cached) " >&6
15232 else $as_nop
15233 ac_check_lib_save_LIBS=$LIBS
15234 LIBS="-lsvld $LIBS"
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237
15238 /* Override any GCC internal prototype to avoid an error.
15239 Use char because int might match the return type of a GCC
15240 builtin and then its argument prototype would still apply. */
15241 char dlopen ();
15242 int
15243 main (void)
15244 {
15245 return dlopen ();
15246 ;
15247 return 0;
15248 }
15249 _ACEOF
15250 if ac_fn_c_try_link "$LINENO"
15251 then :
15252 ac_cv_lib_svld_dlopen=yes
15253 else $as_nop
15254 ac_cv_lib_svld_dlopen=no
15255 fi
15256 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15257 conftest$ac_exeext conftest.$ac_ext
15258 LIBS=$ac_check_lib_save_LIBS
15259 fi
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15261 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15262 if test "x$ac_cv_lib_svld_dlopen" = xyes
15263 then :
15264 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15265 else $as_nop
15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15267 printf %s "checking for dld_link in -ldld... " >&6; }
15268 if test ${ac_cv_lib_dld_dld_link+y}
15269 then :
15270 printf %s "(cached) " >&6
15271 else $as_nop
15272 ac_check_lib_save_LIBS=$LIBS
15273 LIBS="-ldld $LIBS"
15274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15275 /* end confdefs.h. */
15276
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15280 char dld_link ();
15281 int
15282 main (void)
15283 {
15284 return dld_link ();
15285 ;
15286 return 0;
15287 }
15288 _ACEOF
15289 if ac_fn_c_try_link "$LINENO"
15290 then :
15291 ac_cv_lib_dld_dld_link=yes
15292 else $as_nop
15293 ac_cv_lib_dld_dld_link=no
15294 fi
15295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15296 conftest$ac_exeext conftest.$ac_ext
15297 LIBS=$ac_check_lib_save_LIBS
15298 fi
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15300 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15301 if test "x$ac_cv_lib_dld_dld_link" = xyes
15302 then :
15303 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15304 fi
15305
15306
15307 fi
15308
15309
15310 fi
15311
15312
15313 fi
15314
15315
15316 fi
15317
15318
15319 fi
15320
15321 ;;
15322 esac
15323
15324 if test no = "$lt_cv_dlopen"; then
15325 enable_dlopen=no
15326 else
15327 enable_dlopen=yes
15328 fi
15329
15330 case $lt_cv_dlopen in
15331 dlopen)
15332 save_CPPFLAGS=$CPPFLAGS
15333 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15334
15335 save_LDFLAGS=$LDFLAGS
15336 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15337
15338 save_LIBS=$LIBS
15339 LIBS="$lt_cv_dlopen_libs $LIBS"
15340
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15342 printf %s "checking whether a program can dlopen itself... " >&6; }
15343 if test ${lt_cv_dlopen_self+y}
15344 then :
15345 printf %s "(cached) " >&6
15346 else $as_nop
15347 if test yes = "$cross_compiling"; then :
15348 lt_cv_dlopen_self=cross
15349 else
15350 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15351 lt_status=$lt_dlunknown
15352 cat > conftest.$ac_ext <<_LT_EOF
15353 #line $LINENO "configure"
15354 #include "confdefs.h"
15355
15356 #if HAVE_DLFCN_H
15357 #include <dlfcn.h>
15358 #endif
15359
15360 #include <stdio.h>
15361
15362 #ifdef RTLD_GLOBAL
15363 # define LT_DLGLOBAL RTLD_GLOBAL
15364 #else
15365 # ifdef DL_GLOBAL
15366 # define LT_DLGLOBAL DL_GLOBAL
15367 # else
15368 # define LT_DLGLOBAL 0
15369 # endif
15370 #endif
15371
15372 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15373 find out it does not work in some platform. */
15374 #ifndef LT_DLLAZY_OR_NOW
15375 # ifdef RTLD_LAZY
15376 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15377 # else
15378 # ifdef DL_LAZY
15379 # define LT_DLLAZY_OR_NOW DL_LAZY
15380 # else
15381 # ifdef RTLD_NOW
15382 # define LT_DLLAZY_OR_NOW RTLD_NOW
15383 # else
15384 # ifdef DL_NOW
15385 # define LT_DLLAZY_OR_NOW DL_NOW
15386 # else
15387 # define LT_DLLAZY_OR_NOW 0
15388 # endif
15389 # endif
15390 # endif
15391 # endif
15392 #endif
15393
15394 /* When -fvisibility=hidden is used, assume the code has been annotated
15395 correspondingly for the symbols needed. */
15396 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15397 int fnord () __attribute__((visibility("default")));
15398 #endif
15399
15400 int fnord () { return 42; }
15401 int main ()
15402 {
15403 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15404 int status = $lt_dlunknown;
15405
15406 if (self)
15407 {
15408 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15409 else
15410 {
15411 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15412 else puts (dlerror ());
15413 }
15414 /* dlclose (self); */
15415 }
15416 else
15417 puts (dlerror ());
15418
15419 return status;
15420 }
15421 _LT_EOF
15422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15423 (eval $ac_link) 2>&5
15424 ac_status=$?
15425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15426 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15427 (./conftest; exit; ) >&5 2>/dev/null
15428 lt_status=$?
15429 case x$lt_status in
15430 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15431 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15432 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15433 esac
15434 else :
15435 # compilation failed
15436 lt_cv_dlopen_self=no
15437 fi
15438 fi
15439 rm -fr conftest*
15440
15441
15442 fi
15443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15444 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15445
15446 if test yes = "$lt_cv_dlopen_self"; then
15447 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15449 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15450 if test ${lt_cv_dlopen_self_static+y}
15451 then :
15452 printf %s "(cached) " >&6
15453 else $as_nop
15454 if test yes = "$cross_compiling"; then :
15455 lt_cv_dlopen_self_static=cross
15456 else
15457 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15458 lt_status=$lt_dlunknown
15459 cat > conftest.$ac_ext <<_LT_EOF
15460 #line $LINENO "configure"
15461 #include "confdefs.h"
15462
15463 #if HAVE_DLFCN_H
15464 #include <dlfcn.h>
15465 #endif
15466
15467 #include <stdio.h>
15468
15469 #ifdef RTLD_GLOBAL
15470 # define LT_DLGLOBAL RTLD_GLOBAL
15471 #else
15472 # ifdef DL_GLOBAL
15473 # define LT_DLGLOBAL DL_GLOBAL
15474 # else
15475 # define LT_DLGLOBAL 0
15476 # endif
15477 #endif
15478
15479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15480 find out it does not work in some platform. */
15481 #ifndef LT_DLLAZY_OR_NOW
15482 # ifdef RTLD_LAZY
15483 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15484 # else
15485 # ifdef DL_LAZY
15486 # define LT_DLLAZY_OR_NOW DL_LAZY
15487 # else
15488 # ifdef RTLD_NOW
15489 # define LT_DLLAZY_OR_NOW RTLD_NOW
15490 # else
15491 # ifdef DL_NOW
15492 # define LT_DLLAZY_OR_NOW DL_NOW
15493 # else
15494 # define LT_DLLAZY_OR_NOW 0
15495 # endif
15496 # endif
15497 # endif
15498 # endif
15499 #endif
15500
15501 /* When -fvisibility=hidden is used, assume the code has been annotated
15502 correspondingly for the symbols needed. */
15503 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15504 int fnord () __attribute__((visibility("default")));
15505 #endif
15506
15507 int fnord () { return 42; }
15508 int main ()
15509 {
15510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15511 int status = $lt_dlunknown;
15512
15513 if (self)
15514 {
15515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15516 else
15517 {
15518 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15519 else puts (dlerror ());
15520 }
15521 /* dlclose (self); */
15522 }
15523 else
15524 puts (dlerror ());
15525
15526 return status;
15527 }
15528 _LT_EOF
15529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15530 (eval $ac_link) 2>&5
15531 ac_status=$?
15532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15533 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15534 (./conftest; exit; ) >&5 2>/dev/null
15535 lt_status=$?
15536 case x$lt_status in
15537 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15538 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15539 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15540 esac
15541 else :
15542 # compilation failed
15543 lt_cv_dlopen_self_static=no
15544 fi
15545 fi
15546 rm -fr conftest*
15547
15548
15549 fi
15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15551 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15552 fi
15553
15554 CPPFLAGS=$save_CPPFLAGS
15555 LDFLAGS=$save_LDFLAGS
15556 LIBS=$save_LIBS
15557 ;;
15558 esac
15559
15560 case $lt_cv_dlopen_self in
15561 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15562 *) enable_dlopen_self=unknown ;;
15563 esac
15564
15565 case $lt_cv_dlopen_self_static in
15566 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15567 *) enable_dlopen_self_static=unknown ;;
15568 esac
15569 fi
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587 striplib=
15588 old_striplib=
15589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15590 printf %s "checking whether stripping libraries is possible... " >&6; }
15591 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15592 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15593 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15595 printf "%s\n" "yes" >&6; }
15596 else
15597 # FIXME - insert some real tests, host_os isn't really good enough
15598 case $host_os in
15599 darwin*)
15600 if test -n "$STRIP"; then
15601 striplib="$STRIP -x"
15602 old_striplib="$STRIP -S"
15603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15604 printf "%s\n" "yes" >&6; }
15605 else
15606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15607 printf "%s\n" "no" >&6; }
15608 fi
15609 ;;
15610 *)
15611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 printf "%s\n" "no" >&6; }
15613 ;;
15614 esac
15615 fi
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628 # Report what library types will actually be built
15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15630 printf %s "checking if libtool supports shared libraries... " >&6; }
15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15632 printf "%s\n" "$can_build_shared" >&6; }
15633
15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15635 printf %s "checking whether to build shared libraries... " >&6; }
15636 test no = "$can_build_shared" && enable_shared=no
15637
15638 # On AIX, shared libraries and static libraries use the same namespace, and
15639 # are all built from PIC.
15640 case $host_os in
15641 aix3*)
15642 test yes = "$enable_shared" && enable_static=no
15643 if test -n "$RANLIB"; then
15644 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15645 postinstall_cmds='$RANLIB $lib'
15646 fi
15647 ;;
15648
15649 aix[4-9]*)
15650 if test ia64 != "$host_cpu"; then
15651 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15652 yes,aix,yes) ;; # shared object as lib.so file only
15653 yes,svr4,*) ;; # shared object as lib.so archive member only
15654 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15655 esac
15656 fi
15657 ;;
15658 esac
15659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15660 printf "%s\n" "$enable_shared" >&6; }
15661
15662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15663 printf %s "checking whether to build static libraries... " >&6; }
15664 # Make sure either enable_shared or enable_static is yes.
15665 test yes = "$enable_shared" || enable_static=yes
15666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15667 printf "%s\n" "$enable_static" >&6; }
15668
15669
15670
15671
15672 fi
15673 ac_ext=c
15674 ac_cpp='$CPP $CPPFLAGS'
15675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15678
15679 CC=$lt_save_CC
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695 ac_config_commands="$ac_config_commands libtool"
15696
15697
15698
15699
15700 # Only expand once:
15701
15702
15703
15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -Wl,--version-script works" >&5
15705 printf %s "checking if -Wl,--version-script works... " >&6; }
15706 if test ${rra_cv_ld_version_script+y}
15707 then :
15708 printf %s "(cached) " >&6
15709 else $as_nop
15710 save_LDFLAGS="$LDFLAGS"
15711 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
15712 cat > conftest.map <<EOF
15713 VERSION_1 {
15714 global:
15715 sym;
15716
15717 local:
15718 *;
15719 };
15720 EOF
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15723
15724 int
15725 main (void)
15726 {
15727
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 if ac_fn_c_try_link "$LINENO"
15733 then :
15734 rra_cv_ld_version_script=yes
15735 else $as_nop
15736 rra_cv_ld_version_script=no
15737 fi
15738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15739 conftest$ac_exeext conftest.$ac_ext
15740 rm -f conftest.map
15741 LDFLAGS="$save_LDFLAGS"
15742 fi
15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_ld_version_script" >&5
15744 printf "%s\n" "$rra_cv_ld_version_script" >&6; }
15745 if test x"$rra_cv_ld_version_script" = xyes; then
15746 HAVE_LD_VERSION_SCRIPT_TRUE=
15747 HAVE_LD_VERSION_SCRIPT_FALSE='#'
15748 else
15749 HAVE_LD_VERSION_SCRIPT_TRUE='#'
15750 HAVE_LD_VERSION_SCRIPT_FALSE=
15751 fi
15752
15753
15754
15755 # Extract the first word of "openssl", so it can be a program name with args.
15756 set dummy openssl; ac_word=$2
15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15758 printf %s "checking for $ac_word... " >&6; }
15759 if test ${ac_cv_path_PATH_OPENSSL+y}
15760 then :
15761 printf %s "(cached) " >&6
15762 else $as_nop
15763 case $PATH_OPENSSL in
15764 [\\/]* | ?:[\\/]*)
15765 ac_cv_path_PATH_OPENSSL="$PATH_OPENSSL" # Let the user override the test with a path.
15766 ;;
15767 *)
15768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15769 for as_dir in $PATH
15770 do
15771 IFS=$as_save_IFS
15772 case $as_dir in #(((
15773 '') as_dir=./ ;;
15774 */) ;;
15775 *) as_dir=$as_dir/ ;;
15776 esac
15777 for ac_exec_ext in '' $ac_executable_extensions; do
15778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15779 ac_cv_path_PATH_OPENSSL="$as_dir$ac_word$ac_exec_ext"
15780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15781 break 2
15782 fi
15783 done
15784 done
15785 IFS=$as_save_IFS
15786
15787 ;;
15788 esac
15789 fi
15790 PATH_OPENSSL=$ac_cv_path_PATH_OPENSSL
15791 if test -n "$PATH_OPENSSL"; then
15792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_OPENSSL" >&5
15793 printf "%s\n" "$PATH_OPENSSL" >&6; }
15794 else
15795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15796 printf "%s\n" "no" >&6; }
15797 fi
15798
15799
15800 if test x"$PATH_OPENSSL" != x
15801 then :
15802
15803 printf "%s\n" "#define PATH_OPENSSL \"$PATH_OPENSSL\"" >>confdefs.h
15804
15805 fi
15806
15807 # Extract the first word of "valgrind", so it can be a program name with args.
15808 set dummy valgrind; ac_word=$2
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15810 printf %s "checking for $ac_word... " >&6; }
15811 if test ${ac_cv_path_PATH_VALGRIND+y}
15812 then :
15813 printf %s "(cached) " >&6
15814 else $as_nop
15815 case $PATH_VALGRIND in
15816 [\\/]* | ?:[\\/]*)
15817 ac_cv_path_PATH_VALGRIND="$PATH_VALGRIND" # Let the user override the test with a path.
15818 ;;
15819 *)
15820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15822 do
15823 IFS=$as_save_IFS
15824 case $as_dir in #(((
15825 '') as_dir=./ ;;
15826 */) ;;
15827 *) as_dir=$as_dir/ ;;
15828 esac
15829 for ac_exec_ext in '' $ac_executable_extensions; do
15830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15831 ac_cv_path_PATH_VALGRIND="$as_dir$ac_word$ac_exec_ext"
15832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15833 break 2
15834 fi
15835 done
15836 done
15837 IFS=$as_save_IFS
15838
15839 ;;
15840 esac
15841 fi
15842 PATH_VALGRIND=$ac_cv_path_PATH_VALGRIND
15843 if test -n "$PATH_VALGRIND"; then
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_VALGRIND" >&5
15845 printf "%s\n" "$PATH_VALGRIND" >&6; }
15846 else
15847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848 printf "%s\n" "no" >&6; }
15849 fi
15850
15851
15852
15853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pam_set_data" >&5
15854 printf %s "checking for library containing pam_set_data... " >&6; }
15855 if test ${ac_cv_search_pam_set_data+y}
15856 then :
15857 printf %s "(cached) " >&6
15858 else $as_nop
15859 ac_func_search_save_LIBS=$LIBS
15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862
15863 /* Override any GCC internal prototype to avoid an error.
15864 Use char because int might match the return type of a GCC
15865 builtin and then its argument prototype would still apply. */
15866 char pam_set_data ();
15867 int
15868 main (void)
15869 {
15870 return pam_set_data ();
15871 ;
15872 return 0;
15873 }
15874 _ACEOF
15875 for ac_lib in '' pam
15876 do
15877 if test -z "$ac_lib"; then
15878 ac_res="none required"
15879 else
15880 ac_res=-l$ac_lib
15881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15882 fi
15883 if ac_fn_c_try_link "$LINENO"
15884 then :
15885 ac_cv_search_pam_set_data=$ac_res
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15888 conftest$ac_exeext
15889 if test ${ac_cv_search_pam_set_data+y}
15890 then :
15891 break
15892 fi
15893 done
15894 if test ${ac_cv_search_pam_set_data+y}
15895 then :
15896
15897 else $as_nop
15898 ac_cv_search_pam_set_data=no
15899 fi
15900 rm conftest.$ac_ext
15901 LIBS=$ac_func_search_save_LIBS
15902 fi
15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pam_set_data" >&5
15904 printf "%s\n" "$ac_cv_search_pam_set_data" >&6; }
15905 ac_res=$ac_cv_search_pam_set_data
15906 if test "$ac_res" != no
15907 then :
15908 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15909
15910 fi
15911
15912 ac_fn_c_check_func "$LINENO" "pam_getenv" "ac_cv_func_pam_getenv"
15913 if test "x$ac_cv_func_pam_getenv" = xyes
15914 then :
15915 printf "%s\n" "#define HAVE_PAM_GETENV 1" >>confdefs.h
15916
15917 fi
15918 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
15919 if test "x$ac_cv_func_pam_getenvlist" = xyes
15920 then :
15921 printf "%s\n" "#define HAVE_PAM_GETENVLIST 1" >>confdefs.h
15922
15923 fi
15924 ac_fn_c_check_func "$LINENO" "pam_modutil_getpwnam" "ac_cv_func_pam_modutil_getpwnam"
15925 if test "x$ac_cv_func_pam_modutil_getpwnam" = xyes
15926 then :
15927 printf "%s\n" "#define HAVE_PAM_MODUTIL_GETPWNAM 1" >>confdefs.h
15928
15929 fi
15930
15931 ac_fn_c_check_func "$LINENO" "pam_syslog" "ac_cv_func_pam_syslog"
15932 if test "x$ac_cv_func_pam_syslog" = xyes
15933 then :
15934 printf "%s\n" "#define HAVE_PAM_SYSLOG 1" >>confdefs.h
15935
15936 else $as_nop
15937 case " $LIBOBJS " in
15938 *" pam_syslog.$ac_objext "* ) ;;
15939 *) LIBOBJS="$LIBOBJS pam_syslog.$ac_objext"
15940 ;;
15941 esac
15942
15943 fi
15944 ac_fn_c_check_func "$LINENO" "pam_vsyslog" "ac_cv_func_pam_vsyslog"
15945 if test "x$ac_cv_func_pam_vsyslog" = xyes
15946 then :
15947 printf "%s\n" "#define HAVE_PAM_VSYSLOG 1" >>confdefs.h
15948
15949 else $as_nop
15950 case " $LIBOBJS " in
15951 *" pam_vsyslog.$ac_objext "* ) ;;
15952 *) LIBOBJS="$LIBOBJS pam_vsyslog.$ac_objext"
15953 ;;
15954 esac
15955
15956 fi
15957
15958 for ac_header in security/pam_modutil.h
15959 do :
15960 ac_fn_c_check_header_compile "$LINENO" "security/pam_modutil.h" "ac_cv_header_security_pam_modutil_h" "$ac_includes_default"
15961 if test "x$ac_cv_header_security_pam_modutil_h" = xyes
15962 then :
15963 printf "%s\n" "#define HAVE_SECURITY_PAM_MODUTIL_H 1" >>confdefs.h
15964
15965 else $as_nop
15966 ac_fn_c_check_header_compile "$LINENO" "pam/pam_modutil.h" "ac_cv_header_pam_pam_modutil_h" "$ac_includes_default"
15967 if test "x$ac_cv_header_pam_pam_modutil_h" = xyes
15968 then :
15969 printf "%s\n" "#define HAVE_PAM_PAM_MODUTIL_H 1" >>confdefs.h
15970
15971 fi
15972
15973 fi
15974
15975 done
15976 for ac_header in security/pam_appl.h
15977 do :
15978 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
15979 if test "x$ac_cv_header_security_pam_appl_h" = xyes
15980 then :
15981 printf "%s\n" "#define HAVE_SECURITY_PAM_APPL_H 1" >>confdefs.h
15982
15983 else $as_nop
15984 for ac_header in pam/pam_appl.h
15985 do :
15986 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
15987 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
15988 then :
15989 printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
15990
15991 else $as_nop
15992 as_fn_error $? "No PAM header files found" "$LINENO" 5
15993 fi
15994
15995 done
15996 fi
15997
15998 done
15999 for ac_header in security/pam_ext.h
16000 do :
16001 ac_fn_c_check_header_compile "$LINENO" "security/pam_ext.h" "ac_cv_header_security_pam_ext_h" "$ac_includes_default"
16002 if test "x$ac_cv_header_security_pam_ext_h" = xyes
16003 then :
16004 printf "%s\n" "#define HAVE_SECURITY_PAM_EXT_H 1" >>confdefs.h
16005
16006 else $as_nop
16007 ac_fn_c_check_header_compile "$LINENO" "pam/pam_ext.h" "ac_cv_header_pam_pam_ext_h" "$ac_includes_default"
16008 if test "x$ac_cv_header_pam_pam_ext_h" = xyes
16009 then :
16010 printf "%s\n" "#define HAVE_PAM_PAM_EXT_H 1" >>confdefs.h
16011
16012 fi
16013
16014 fi
16015
16016 done
16017 ac_ext=c
16018 ac_cpp='$CPP $CPPFLAGS'
16019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
16023 printf %s "checking how to run the C preprocessor... " >&6; }
16024 # On Suns, sometimes $CPP names a directory.
16025 if test -n "$CPP" && test -d "$CPP"; then
16026 CPP=
16027 fi
16028 if test -z "$CPP"; then
16029 if test ${ac_cv_prog_CPP+y}
16030 then :
16031 printf %s "(cached) " >&6
16032 else $as_nop
16033 # Double quotes because $CC needs to be expanded
16034 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
16035 do
16036 ac_preproc_ok=false
16037 for ac_c_preproc_warn_flag in '' yes
16038 do
16039 # Use a header file that comes with gcc, so configuring glibc
16040 # with a fresh cross-compiler works.
16041 # On the NeXT, cc -E runs the code through the compiler's parser,
16042 # not just through cpp. "Syntax error" is here to catch this case.
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16045 #include <limits.h>
16046 Syntax error
16047 _ACEOF
16048 if ac_fn_c_try_cpp "$LINENO"
16049 then :
16050
16051 else $as_nop
16052 # Broken: fails on valid input.
16053 continue
16054 fi
16055 rm -f conftest.err conftest.i conftest.$ac_ext
16056
16057 # OK, works on sane cases. Now check whether nonexistent headers
16058 # can be detected and how.
16059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16060 /* end confdefs.h. */
16061 #include <ac_nonexistent.h>
16062 _ACEOF
16063 if ac_fn_c_try_cpp "$LINENO"
16064 then :
16065 # Broken: success on invalid input.
16066 continue
16067 else $as_nop
16068 # Passes both tests.
16069 ac_preproc_ok=:
16070 break
16071 fi
16072 rm -f conftest.err conftest.i conftest.$ac_ext
16073
16074 done
16075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16076 rm -f conftest.i conftest.err conftest.$ac_ext
16077 if $ac_preproc_ok
16078 then :
16079 break
16080 fi
16081
16082 done
16083 ac_cv_prog_CPP=$CPP
16084
16085 fi
16086 CPP=$ac_cv_prog_CPP
16087 else
16088 ac_cv_prog_CPP=$CPP
16089 fi
16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
16091 printf "%s\n" "$CPP" >&6; }
16092 ac_preproc_ok=false
16093 for ac_c_preproc_warn_flag in '' yes
16094 do
16095 # Use a header file that comes with gcc, so configuring glibc
16096 # with a fresh cross-compiler works.
16097 # On the NeXT, cc -E runs the code through the compiler's parser,
16098 # not just through cpp. "Syntax error" is here to catch this case.
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 #include <limits.h>
16102 Syntax error
16103 _ACEOF
16104 if ac_fn_c_try_cpp "$LINENO"
16105 then :
16106
16107 else $as_nop
16108 # Broken: fails on valid input.
16109 continue
16110 fi
16111 rm -f conftest.err conftest.i conftest.$ac_ext
16112
16113 # OK, works on sane cases. Now check whether nonexistent headers
16114 # can be detected and how.
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117 #include <ac_nonexistent.h>
16118 _ACEOF
16119 if ac_fn_c_try_cpp "$LINENO"
16120 then :
16121 # Broken: success on invalid input.
16122 continue
16123 else $as_nop
16124 # Passes both tests.
16125 ac_preproc_ok=:
16126 break
16127 fi
16128 rm -f conftest.err conftest.i conftest.$ac_ext
16129
16130 done
16131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16132 rm -f conftest.i conftest.err conftest.$ac_ext
16133 if $ac_preproc_ok
16134 then :
16135
16136 else $as_nop
16137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16138 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16139 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16140 See \`config.log' for more details" "$LINENO" 5; }
16141 fi
16142
16143 ac_ext=c
16144 ac_cpp='$CPP $CPPFLAGS'
16145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16148
16149
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PAM prefers const" >&5
16151 printf %s "checking whether PAM prefers const... " >&6; }
16152 if test ${rra_cv_header_pam_const+y}
16153 then :
16154 printf %s "(cached) " >&6
16155 else $as_nop
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 #ifdef HAVE_SECURITY_PAM_APPL_H
16159 # include <security/pam_appl.h>
16160 #else
16161 # include <pam/pam_appl.h>
16162 #endif
16163
16164 _ACEOF
16165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16166 $EGREP "const void \*\* *_?item" >/dev/null 2>&1
16167 then :
16168 rra_cv_header_pam_const=yes
16169 else $as_nop
16170 rra_cv_header_pam_const=no
16171 fi
16172 rm -rf conftest*
16173
16174 fi
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_header_pam_const" >&5
16176 printf "%s\n" "$rra_cv_header_pam_const" >&6; }
16177 if test x"$rra_cv_header_pam_const" = xyes
16178 then :
16179 rra_header_pam_const=const
16180 else $as_nop
16181 rra_header_pam_const=
16182 fi
16183
16184 printf "%s\n" "#define PAM_CONST $rra_header_pam_const" >>confdefs.h
16185
16186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pam_strerror uses const" >&5
16187 printf %s "checking whether pam_strerror uses const... " >&6; }
16188 if test ${rra_cv_header_pam_strerror_const+y}
16189 then :
16190 printf %s "(cached) " >&6
16191 else $as_nop
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16194 #ifdef HAVE_SECURITY_PAM_APPL_H
16195 # include <security/pam_appl.h>
16196 #else
16197 # include <pam/pam_appl.h>
16198 #endif
16199
16200 _ACEOF
16201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16202 $EGREP "pam_strerror *\(const" >/dev/null 2>&1
16203 then :
16204 rra_cv_header_pam_strerror_const=yes
16205 else $as_nop
16206 rra_cv_header_pam_strerror_const=no
16207 fi
16208 rm -rf conftest*
16209
16210 fi
16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_header_pam_strerror_const" >&5
16212 printf "%s\n" "$rra_cv_header_pam_strerror_const" >&6; }
16213 if test x"$rra_cv_header_pam_strerror_const" = xyes
16214 then :
16215 rra_header_pam_strerror_const=const
16216 else $as_nop
16217 rra_header_pam_strerror_const=
16218 fi
16219
16220 printf "%s\n" "#define PAM_STRERROR_CONST $rra_header_pam_strerror_const" >>confdefs.h
16221
16222
16223 printf "%s\n" "#define MODULE_NAME \"pam_krb5\"" >>confdefs.h
16224
16225
16226 rra_reduced_depends=false
16227 # Check whether --enable-reduced-depends was given.
16228 if test ${enable_reduced_depends+y}
16229 then :
16230 enableval=$enable_reduced_depends; if test x"$enableval" = xyes
16231 then :
16232 rra_reduced_depends=true
16233 fi
16234 fi
16235
16236 rra_lib_arch_name=lib
16237 # The cast to long int works around a bug in the HP C Compiler
16238 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16239 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16240 # This bug is HP SR number 8606223364.
16241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16242 printf %s "checking size of long... " >&6; }
16243 if test ${ac_cv_sizeof_long+y}
16244 then :
16245 printf %s "(cached) " >&6
16246 else $as_nop
16247 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
16248 then :
16249
16250 else $as_nop
16251 if test "$ac_cv_type_long" = yes; then
16252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16254 as_fn_error 77 "cannot compute sizeof (long)
16255 See \`config.log' for more details" "$LINENO" 5; }
16256 else
16257 ac_cv_sizeof_long=0
16258 fi
16259 fi
16260
16261 fi
16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16263 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
16264
16265
16266
16267 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
16268
16269
16270 if test "$ac_cv_sizeof_long" -eq 4
16271 then :
16272 rra_lib_arch_name=lib32
16273 else $as_nop
16274 if test "$ac_cv_sizeof_long" -eq 8
16275 then :
16276 rra_lib_arch_name=lib64
16277 fi
16278 fi
16279 rra_krb5_root=
16280 rra_krb5_libdir=
16281 rra_krb5_includedir=
16282 rra_use_KRB5=true
16283
16284
16285 # Check whether --with-krb5 was given.
16286 if test ${with_krb5+y}
16287 then :
16288 withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno
16289 then :
16290 rra_krb5_root="$withval"
16291 fi
16292 fi
16293
16294
16295 # Check whether --with-krb5-include was given.
16296 if test ${with_krb5_include+y}
16297 then :
16298 withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno
16299 then :
16300 rra_krb5_includedir="$withval"
16301 fi
16302 fi
16303
16304
16305 # Check whether --with-krb5-lib was given.
16306 if test ${with_krb5_lib+y}
16307 then :
16308 withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno
16309 then :
16310 rra_krb5_libdir="$withval"
16311 fi
16312 fi
16313
16314
16315 rra_krb5_incroot=
16316
16317
16318
16319
16320 if test x"$rra_krb5_includedir" != x
16321 then :
16322 rra_krb5_incroot="$rra_krb5_includedir"
16323 else $as_nop
16324 if test x"$rra_krb5_root" != x
16325 then :
16326 rra_krb5_incroot="${rra_krb5_root}/include"
16327 fi
16328 fi
16329 if test x"$rra_reduced_depends" = xtrue
16330 then :
16331 if test x"$rra_krb5_libdir" != x
16332 then :
16333 KRB5_LDFLAGS="-L$rra_krb5_libdir"
16334 else $as_nop
16335 if test x"$rra_krb5_root" != x
16336 then :
16337
16338 if test -d "$rra_krb5_root/$rra_lib_arch_name"
16339 then :
16340 if test x"" = x
16341 then :
16342 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
16343 else $as_nop
16344 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
16345 fi
16346 else $as_nop
16347 if test x"" = x
16348 then :
16349 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
16350 else $as_nop
16351 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
16352 fi
16353 fi
16354 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
16355 fi
16356 fi
16357 if test x"$rra_krb5_includedir" != x
16358 then :
16359 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
16360 else $as_nop
16361 if test x"$rra_krb5_root" != x
16362 then :
16363 if test x"$rra_krb5_root" != x/usr
16364 then :
16365 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
16366 fi
16367 fi
16368 fi
16369 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16370 rra_krb5_save_LDFLAGS="$LDFLAGS"
16371 rra_krb5_save_LIBS="$LIBS"
16372 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16373 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16374 LIBS="$KRB5_LIBS $LIBS"
16375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16376 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
16377 if test ${ac_cv_lib_krb5_krb5_init_context+y}
16378 then :
16379 printf %s "(cached) " >&6
16380 else $as_nop
16381 ac_check_lib_save_LIBS=$LIBS
16382 LIBS="-lkrb5 $LIBS"
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385
16386 /* Override any GCC internal prototype to avoid an error.
16387 Use char because int might match the return type of a GCC
16388 builtin and then its argument prototype would still apply. */
16389 char krb5_init_context ();
16390 int
16391 main (void)
16392 {
16393 return krb5_init_context ();
16394 ;
16395 return 0;
16396 }
16397 _ACEOF
16398 if ac_fn_c_try_link "$LINENO"
16399 then :
16400 ac_cv_lib_krb5_krb5_init_context=yes
16401 else $as_nop
16402 ac_cv_lib_krb5_krb5_init_context=no
16403 fi
16404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16407 fi
16408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16409 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16410 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
16411 then :
16412 KRB5_LIBS="-lkrb5"
16413 LIBS="$KRB5_LIBS $LIBS"
16414
16415 for ac_func in krb5_get_error_message
16416 do :
16417 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16418 if test "x$ac_cv_func_krb5_get_error_message" = xyes
16419 then :
16420 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
16421 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16422 if test "x$ac_cv_func_krb5_free_error_message" = xyes
16423 then :
16424 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
16425
16426 fi
16427
16428 else $as_nop
16429
16430 for ac_func in krb5_get_error_string
16431 do :
16432 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16433 if test "x$ac_cv_func_krb5_get_error_string" = xyes
16434 then :
16435 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
16436
16437 else $as_nop
16438
16439 for ac_func in krb5_get_err_txt
16440 do :
16441 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16442 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
16443 then :
16444 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
16445
16446 else $as_nop
16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
16448 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
16449 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
16450 then :
16451 printf %s "(cached) " >&6
16452 else $as_nop
16453 ac_check_lib_save_LIBS=$LIBS
16454 LIBS="-lksvc $LIBS"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457
16458 /* Override any GCC internal prototype to avoid an error.
16459 Use char because int might match the return type of a GCC
16460 builtin and then its argument prototype would still apply. */
16461 char krb5_svc_get_msg ();
16462 int
16463 main (void)
16464 {
16465 return krb5_svc_get_msg ();
16466 ;
16467 return 0;
16468 }
16469 _ACEOF
16470 if ac_fn_c_try_link "$LINENO"
16471 then :
16472 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
16473 else $as_nop
16474 ac_cv_lib_ksvc_krb5_svc_get_msg=no
16475 fi
16476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16477 conftest$ac_exeext conftest.$ac_ext
16478 LIBS=$ac_check_lib_save_LIBS
16479 fi
16480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
16481 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
16482 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
16483 then :
16484 KRB5_LIBS="$KRB5_LIBS -lksvc"
16485 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
16486
16487 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16488 #if HAVE_KRB5_H
16489 # include <krb5.h>
16490 #elif HAVE_KERBEROSV5_KRB5_H
16491 # include <kerberosv5/krb5.h>
16492 #else
16493 # include <krb5/krb5.h>
16494 #endif
16495
16496 "
16497 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
16498 then :
16499 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
16500
16501 fi
16502
16503 else $as_nop
16504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16505 printf %s "checking for com_err in -lcom_err... " >&6; }
16506 if test ${ac_cv_lib_com_err_com_err+y}
16507 then :
16508 printf %s "(cached) " >&6
16509 else $as_nop
16510 ac_check_lib_save_LIBS=$LIBS
16511 LIBS="-lcom_err $LIBS"
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514
16515 /* Override any GCC internal prototype to avoid an error.
16516 Use char because int might match the return type of a GCC
16517 builtin and then its argument prototype would still apply. */
16518 char com_err ();
16519 int
16520 main (void)
16521 {
16522 return com_err ();
16523 ;
16524 return 0;
16525 }
16526 _ACEOF
16527 if ac_fn_c_try_link "$LINENO"
16528 then :
16529 ac_cv_lib_com_err_com_err=yes
16530 else $as_nop
16531 ac_cv_lib_com_err_com_err=no
16532 fi
16533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16534 conftest$ac_exeext conftest.$ac_ext
16535 LIBS=$ac_check_lib_save_LIBS
16536 fi
16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16538 printf "%s\n" "$ac_cv_lib_com_err_com_err" >&6; }
16539 if test "x$ac_cv_lib_com_err_com_err" = xyes
16540 then :
16541 KRB5_LIBS="$KRB5_LIBS -lcom_err"
16542 else $as_nop
16543 if test x"true" = xtrue
16544 then :
16545 as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
16546 else $as_nop
16547 KRB5_LIBS=""
16548 fi
16549 fi
16550
16551 if test x"$rra_krb5_incroot" = x
16552 then :
16553 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
16554 if test "x$ac_cv_header_et_com_err_h" = xyes
16555 then :
16556 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
16557
16558 fi
16559 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
16560 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
16561 then :
16562 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
16563
16564 fi
16565
16566 else $as_nop
16567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
16568 printf %s "checking for et/com_err.h... " >&6; }
16569 if test -f "${rra_krb5_incroot}/et/com_err.h"
16570 then :
16571
16572 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
16573
16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16575 printf "%s\n" "yes" >&6; }
16576
16577 else $as_nop
16578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579 printf "%s\n" "no" >&6; }
16580 fi
16581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
16582 printf %s "checking for kerberosv5/com_err.h... " >&6; }
16583 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
16584 then :
16585
16586 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
16587
16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16589 printf "%s\n" "yes" >&6; }
16590
16591 else $as_nop
16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16593 printf "%s\n" "no" >&6; }
16594 fi
16595 fi
16596 fi
16597
16598 fi
16599
16600 done
16601 fi
16602
16603 done
16604 fi
16605
16606 done
16607 rra_krb5_found_header=
16608 if test x"$rra_krb5_incroot" = x
16609 then :
16610 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16611 do :
16612 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
16613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16614 if eval test \"x\$"$as_ac_Header"\" = x"yes"
16615 then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
16618 _ACEOF
16619 rra_krb5_found_header=true
16620 fi
16621
16622 done
16623 else $as_nop
16624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16625 printf %s "checking for krb5.h... " >&6; }
16626 if test -f "${rra_krb5_incroot}/krb5.h"
16627 then :
16628
16629 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
16630
16631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16632 printf "%s\n" "yes" >&6; }
16633 rra_krb5_found_header=true
16634 else $as_nop
16635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636 printf "%s\n" "no" >&6; }
16637 fi
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16639 printf %s "checking for kerberosv5/krb5.h... " >&6; }
16640 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
16641 then :
16642
16643 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
16644
16645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16646 printf "%s\n" "yes" >&6; }
16647 rra_krb5_found_header=true
16648 else $as_nop
16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 printf "%s\n" "no" >&6; }
16651 fi
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16653 printf %s "checking for krb5/krb5.h... " >&6; }
16654 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
16655 then :
16656
16657 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
16658
16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16660 printf "%s\n" "yes" >&6; }
16661 rra_krb5_found_header=true
16662 else $as_nop
16663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16664 printf "%s\n" "no" >&6; }
16665 fi
16666 fi
16667 if test x"$rra_krb5_found_header" = xtrue
16668 then :
16669
16670 else $as_nop
16671 KRB5_CPPFLAGS=
16672 KRB5_LIBS=
16673 if test x"true" = xtrue
16674 then :
16675 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
16676 fi
16677 fi
16678 else $as_nop
16679 if test x"true" = xtrue
16680 then :
16681 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
16682 fi
16683 fi
16684
16685 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16686 LDFLAGS="$rra_krb5_save_LDFLAGS"
16687 LIBS="$rra_krb5_save_LIBS"
16688 else $as_nop
16689 if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x
16690 then :
16691 rra_krb5_config_KRB5=
16692 rra_krb5_config_KRB5_ok=
16693 if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"
16694 then :
16695 rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
16696 else $as_nop
16697
16698 # Extract the first word of "krb5-config", so it can be a program name with args.
16699 set dummy krb5-config; ac_word=$2
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16701 printf %s "checking for $ac_word... " >&6; }
16702 if test ${ac_cv_path_PATH_KRB5_CONFIG+y}
16703 then :
16704 printf %s "(cached) " >&6
16705 else $as_nop
16706 case $PATH_KRB5_CONFIG in
16707 [\\/]* | ?:[\\/]*)
16708 ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
16709 ;;
16710 *)
16711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 as_dummy="${PATH}:/usr/kerberos/bin"
16713 for as_dir in $as_dummy
16714 do
16715 IFS=$as_save_IFS
16716 case $as_dir in #(((
16717 '') as_dir=./ ;;
16718 */) ;;
16719 *) as_dir=$as_dir/ ;;
16720 esac
16721 for ac_exec_ext in '' $ac_executable_extensions; do
16722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16723 ac_cv_path_PATH_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
16724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16725 break 2
16726 fi
16727 done
16728 done
16729 IFS=$as_save_IFS
16730
16731 ;;
16732 esac
16733 fi
16734 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
16735 if test -n "$PATH_KRB5_CONFIG"; then
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
16737 printf "%s\n" "$PATH_KRB5_CONFIG" >&6; }
16738 else
16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16740 printf "%s\n" "no" >&6; }
16741 fi
16742
16743
16744 rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
16745 fi
16746 if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"
16747 then :
16748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
16749 printf %s "checking for krb5 support in krb5-config... " >&6; }
16750 if test ${rra_cv_lib_KRB5_config+y}
16751 then :
16752 printf %s "(cached) " >&6
16753 else $as_nop
16754 if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1
16755 then :
16756 rra_cv_lib_KRB5_config=yes
16757 else $as_nop
16758 rra_cv_lib_KRB5_config=no
16759 fi
16760 fi
16761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
16762 printf "%s\n" "$rra_cv_lib_KRB5_config" >&6; }
16763 if test "$rra_cv_lib_KRB5_config" = yes
16764 then :
16765 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
16766
16767
16768
16769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
16770 printf %s "checking for --deps support in krb5-config... " >&6; }
16771 if test ${rra_cv_krb5_config_deps+y}
16772 then :
16773 printf %s "(cached) " >&6
16774 else $as_nop
16775 if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1
16776 then :
16777 rra_cv_krb5_config_deps=yes
16778 else $as_nop
16779 rra_cv_krb5_config_deps=no
16780 fi
16781 fi
16782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
16783 printf "%s\n" "$rra_cv_krb5_config_deps" >&6; }
16784 if test x"$rra_reduced_depends" = xfalse \
16785 && test x"$rra_cv_krb5_config_deps" = xyes
16786 then :
16787 KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
16788 else $as_nop
16789 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
16790 fi
16791 rra_krb5_config_KRB5_ok=yes
16792 else $as_nop
16793 if test x"krb5" = xkrb5
16794 then :
16795 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
16796 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
16797 rra_krb5_config_KRB5_ok=yes
16798 fi
16799 fi
16800 fi
16801 if test x"$rra_krb5_config_KRB5_ok" = xyes
16802 then :
16803 KRB5_CPPFLAGS=`printf "%s\n" "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
16804 KRB5_CPPFLAGS=`printf "%s\n" "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
16805 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16806 rra_krb5_save_LDFLAGS="$LDFLAGS"
16807 rra_krb5_save_LIBS="$LIBS"
16808 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16809 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16810 LIBS="$KRB5_LIBS $LIBS"
16811 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
16812 if test "x$ac_cv_func_krb5_init_context" = xyes
16813 then :
16814 rra_krb5_found_header=
16815 if test x"$rra_krb5_incroot" = x
16816 then :
16817 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
16818 do :
16819 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
16820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16821 if eval test \"x\$"$as_ac_Header"\" = x"yes"
16822 then :
16823 cat >>confdefs.h <<_ACEOF
16824 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
16825 _ACEOF
16826 rra_krb5_found_header=true
16827 fi
16828
16829 done
16830 else $as_nop
16831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
16832 printf %s "checking for krb5.h... " >&6; }
16833 if test -f "${rra_krb5_incroot}/krb5.h"
16834 then :
16835
16836 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
16837
16838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16839 printf "%s\n" "yes" >&6; }
16840 rra_krb5_found_header=true
16841 else $as_nop
16842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843 printf "%s\n" "no" >&6; }
16844 fi
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
16846 printf %s "checking for kerberosv5/krb5.h... " >&6; }
16847 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
16848 then :
16849
16850 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
16851
16852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 printf "%s\n" "yes" >&6; }
16854 rra_krb5_found_header=true
16855 else $as_nop
16856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16857 printf "%s\n" "no" >&6; }
16858 fi
16859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
16860 printf %s "checking for krb5/krb5.h... " >&6; }
16861 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
16862 then :
16863
16864 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
16865
16866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16867 printf "%s\n" "yes" >&6; }
16868 rra_krb5_found_header=true
16869 else $as_nop
16870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16871 printf "%s\n" "no" >&6; }
16872 fi
16873 fi
16874 if test x"$rra_krb5_found_header" = xtrue
16875 then :
16876 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16877 LDFLAGS="$rra_krb5_save_LDFLAGS"
16878 LIBS="$rra_krb5_save_LIBS"
16879 else $as_nop
16880 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
16881 LDFLAGS="$rra_krb5_save_LDFLAGS"
16882 LIBS="$rra_krb5_save_LIBS"
16883 KRB5_CPPFLAGS=
16884 KRB5_LIBS=
16885 if test x"$rra_krb5_libdir" != x
16886 then :
16887 KRB5_LDFLAGS="-L$rra_krb5_libdir"
16888 else $as_nop
16889 if test x"$rra_krb5_root" != x
16890 then :
16891
16892 if test -d "$rra_krb5_root/$rra_lib_arch_name"
16893 then :
16894 if test x"" = x
16895 then :
16896 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
16897 else $as_nop
16898 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
16899 fi
16900 else $as_nop
16901 if test x"" = x
16902 then :
16903 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
16904 else $as_nop
16905 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
16906 fi
16907 fi
16908 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
16909 fi
16910 fi
16911 if test x"$rra_krb5_includedir" != x
16912 then :
16913 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
16914 else $as_nop
16915 if test x"$rra_krb5_root" != x
16916 then :
16917 if test x"$rra_krb5_root" != x/usr
16918 then :
16919 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
16920 fi
16921 fi
16922 fi
16923 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16924 rra_krb5_save_LDFLAGS="$LDFLAGS"
16925 rra_krb5_save_LIBS="$LIBS"
16926 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16927 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16928 LIBS="$KRB5_LIBS $LIBS"
16929 rra_krb5_extra=
16930 LIBS=
16931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
16932 printf %s "checking for library containing res_search... " >&6; }
16933 if test ${ac_cv_search_res_search+y}
16934 then :
16935 printf %s "(cached) " >&6
16936 else $as_nop
16937 ac_func_search_save_LIBS=$LIBS
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940
16941 /* Override any GCC internal prototype to avoid an error.
16942 Use char because int might match the return type of a GCC
16943 builtin and then its argument prototype would still apply. */
16944 char res_search ();
16945 int
16946 main (void)
16947 {
16948 return res_search ();
16949 ;
16950 return 0;
16951 }
16952 _ACEOF
16953 for ac_lib in '' resolv
16954 do
16955 if test -z "$ac_lib"; then
16956 ac_res="none required"
16957 else
16958 ac_res=-l$ac_lib
16959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16960 fi
16961 if ac_fn_c_try_link "$LINENO"
16962 then :
16963 ac_cv_search_res_search=$ac_res
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16966 conftest$ac_exeext
16967 if test ${ac_cv_search_res_search+y}
16968 then :
16969 break
16970 fi
16971 done
16972 if test ${ac_cv_search_res_search+y}
16973 then :
16974
16975 else $as_nop
16976 ac_cv_search_res_search=no
16977 fi
16978 rm conftest.$ac_ext
16979 LIBS=$ac_func_search_save_LIBS
16980 fi
16981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
16982 printf "%s\n" "$ac_cv_search_res_search" >&6; }
16983 ac_res=$ac_cv_search_res_search
16984 if test "$ac_res" != no
16985 then :
16986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16987
16988 else $as_nop
16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
16990 printf %s "checking for library containing __res_search... " >&6; }
16991 if test ${ac_cv_search___res_search+y}
16992 then :
16993 printf %s "(cached) " >&6
16994 else $as_nop
16995 ac_func_search_save_LIBS=$LIBS
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17002 char __res_search ();
17003 int
17004 main (void)
17005 {
17006 return __res_search ();
17007 ;
17008 return 0;
17009 }
17010 _ACEOF
17011 for ac_lib in '' resolv
17012 do
17013 if test -z "$ac_lib"; then
17014 ac_res="none required"
17015 else
17016 ac_res=-l$ac_lib
17017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17018 fi
17019 if ac_fn_c_try_link "$LINENO"
17020 then :
17021 ac_cv_search___res_search=$ac_res
17022 fi
17023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17024 conftest$ac_exeext
17025 if test ${ac_cv_search___res_search+y}
17026 then :
17027 break
17028 fi
17029 done
17030 if test ${ac_cv_search___res_search+y}
17031 then :
17032
17033 else $as_nop
17034 ac_cv_search___res_search=no
17035 fi
17036 rm conftest.$ac_ext
17037 LIBS=$ac_func_search_save_LIBS
17038 fi
17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
17040 printf "%s\n" "$ac_cv_search___res_search" >&6; }
17041 ac_res=$ac_cv_search___res_search
17042 if test "$ac_res" != no
17043 then :
17044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17045
17046 fi
17047
17048 fi
17049
17050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
17051 printf %s "checking for library containing gethostbyname... " >&6; }
17052 if test ${ac_cv_search_gethostbyname+y}
17053 then :
17054 printf %s "(cached) " >&6
17055 else $as_nop
17056 ac_func_search_save_LIBS=$LIBS
17057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058 /* end confdefs.h. */
17059
17060 /* Override any GCC internal prototype to avoid an error.
17061 Use char because int might match the return type of a GCC
17062 builtin and then its argument prototype would still apply. */
17063 char gethostbyname ();
17064 int
17065 main (void)
17066 {
17067 return gethostbyname ();
17068 ;
17069 return 0;
17070 }
17071 _ACEOF
17072 for ac_lib in '' nsl
17073 do
17074 if test -z "$ac_lib"; then
17075 ac_res="none required"
17076 else
17077 ac_res=-l$ac_lib
17078 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17079 fi
17080 if ac_fn_c_try_link "$LINENO"
17081 then :
17082 ac_cv_search_gethostbyname=$ac_res
17083 fi
17084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17085 conftest$ac_exeext
17086 if test ${ac_cv_search_gethostbyname+y}
17087 then :
17088 break
17089 fi
17090 done
17091 if test ${ac_cv_search_gethostbyname+y}
17092 then :
17093
17094 else $as_nop
17095 ac_cv_search_gethostbyname=no
17096 fi
17097 rm conftest.$ac_ext
17098 LIBS=$ac_func_search_save_LIBS
17099 fi
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
17101 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
17102 ac_res=$ac_cv_search_gethostbyname
17103 if test "$ac_res" != no
17104 then :
17105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17106
17107 fi
17108
17109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17110 printf %s "checking for library containing socket... " >&6; }
17111 if test ${ac_cv_search_socket+y}
17112 then :
17113 printf %s "(cached) " >&6
17114 else $as_nop
17115 ac_func_search_save_LIBS=$LIBS
17116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17117 /* end confdefs.h. */
17118
17119 /* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
17122 char socket ();
17123 int
17124 main (void)
17125 {
17126 return socket ();
17127 ;
17128 return 0;
17129 }
17130 _ACEOF
17131 for ac_lib in '' socket
17132 do
17133 if test -z "$ac_lib"; then
17134 ac_res="none required"
17135 else
17136 ac_res=-l$ac_lib
17137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17138 fi
17139 if ac_fn_c_try_link "$LINENO"
17140 then :
17141 ac_cv_search_socket=$ac_res
17142 fi
17143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17144 conftest$ac_exeext
17145 if test ${ac_cv_search_socket+y}
17146 then :
17147 break
17148 fi
17149 done
17150 if test ${ac_cv_search_socket+y}
17151 then :
17152
17153 else $as_nop
17154 ac_cv_search_socket=no
17155 fi
17156 rm conftest.$ac_ext
17157 LIBS=$ac_func_search_save_LIBS
17158 fi
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17160 printf "%s\n" "$ac_cv_search_socket" >&6; }
17161 ac_res=$ac_cv_search_socket
17162 if test "$ac_res" != no
17163 then :
17164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17165
17166 else $as_nop
17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
17168 printf %s "checking for socket in -lnsl... " >&6; }
17169 if test ${ac_cv_lib_nsl_socket+y}
17170 then :
17171 printf %s "(cached) " >&6
17172 else $as_nop
17173 ac_check_lib_save_LIBS=$LIBS
17174 LIBS="-lnsl -lsocket $LIBS"
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17177
17178 /* Override any GCC internal prototype to avoid an error.
17179 Use char because int might match the return type of a GCC
17180 builtin and then its argument prototype would still apply. */
17181 char socket ();
17182 int
17183 main (void)
17184 {
17185 return socket ();
17186 ;
17187 return 0;
17188 }
17189 _ACEOF
17190 if ac_fn_c_try_link "$LINENO"
17191 then :
17192 ac_cv_lib_nsl_socket=yes
17193 else $as_nop
17194 ac_cv_lib_nsl_socket=no
17195 fi
17196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17199 fi
17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
17201 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
17202 if test "x$ac_cv_lib_nsl_socket" = xyes
17203 then :
17204 LIBS="-lnsl -lsocket $LIBS"
17205 fi
17206
17207 fi
17208
17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17210 printf %s "checking for library containing crypt... " >&6; }
17211 if test ${ac_cv_search_crypt+y}
17212 then :
17213 printf %s "(cached) " >&6
17214 else $as_nop
17215 ac_func_search_save_LIBS=$LIBS
17216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17217 /* end confdefs.h. */
17218
17219 /* Override any GCC internal prototype to avoid an error.
17220 Use char because int might match the return type of a GCC
17221 builtin and then its argument prototype would still apply. */
17222 char crypt ();
17223 int
17224 main (void)
17225 {
17226 return crypt ();
17227 ;
17228 return 0;
17229 }
17230 _ACEOF
17231 for ac_lib in '' crypt
17232 do
17233 if test -z "$ac_lib"; then
17234 ac_res="none required"
17235 else
17236 ac_res=-l$ac_lib
17237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17238 fi
17239 if ac_fn_c_try_link "$LINENO"
17240 then :
17241 ac_cv_search_crypt=$ac_res
17242 fi
17243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17244 conftest$ac_exeext
17245 if test ${ac_cv_search_crypt+y}
17246 then :
17247 break
17248 fi
17249 done
17250 if test ${ac_cv_search_crypt+y}
17251 then :
17252
17253 else $as_nop
17254 ac_cv_search_crypt=no
17255 fi
17256 rm conftest.$ac_ext
17257 LIBS=$ac_func_search_save_LIBS
17258 fi
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17260 printf "%s\n" "$ac_cv_search_crypt" >&6; }
17261 ac_res=$ac_cv_search_crypt
17262 if test "$ac_res" != no
17263 then :
17264 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17265
17266 fi
17267
17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
17269 printf %s "checking for library containing roken_concat... " >&6; }
17270 if test ${ac_cv_search_roken_concat+y}
17271 then :
17272 printf %s "(cached) " >&6
17273 else $as_nop
17274 ac_func_search_save_LIBS=$LIBS
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17281 char roken_concat ();
17282 int
17283 main (void)
17284 {
17285 return roken_concat ();
17286 ;
17287 return 0;
17288 }
17289 _ACEOF
17290 for ac_lib in '' roken
17291 do
17292 if test -z "$ac_lib"; then
17293 ac_res="none required"
17294 else
17295 ac_res=-l$ac_lib
17296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17297 fi
17298 if ac_fn_c_try_link "$LINENO"
17299 then :
17300 ac_cv_search_roken_concat=$ac_res
17301 fi
17302 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17303 conftest$ac_exeext
17304 if test ${ac_cv_search_roken_concat+y}
17305 then :
17306 break
17307 fi
17308 done
17309 if test ${ac_cv_search_roken_concat+y}
17310 then :
17311
17312 else $as_nop
17313 ac_cv_search_roken_concat=no
17314 fi
17315 rm conftest.$ac_ext
17316 LIBS=$ac_func_search_save_LIBS
17317 fi
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
17319 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
17320 ac_res=$ac_cv_search_roken_concat
17321 if test "$ac_res" != no
17322 then :
17323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17324
17325 fi
17326
17327 rra_krb5_extra="$LIBS"
17328 LIBS="$rra_krb5_save_LIBS"
17329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17330 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
17331 if test ${ac_cv_lib_krb5_krb5_init_context+y}
17332 then :
17333 printf %s "(cached) " >&6
17334 else $as_nop
17335 ac_check_lib_save_LIBS=$LIBS
17336 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17339
17340 /* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17343 char krb5_init_context ();
17344 int
17345 main (void)
17346 {
17347 return krb5_init_context ();
17348 ;
17349 return 0;
17350 }
17351 _ACEOF
17352 if ac_fn_c_try_link "$LINENO"
17353 then :
17354 ac_cv_lib_krb5_krb5_init_context=yes
17355 else $as_nop
17356 ac_cv_lib_krb5_krb5_init_context=no
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17359 conftest$ac_exeext conftest.$ac_ext
17360 LIBS=$ac_check_lib_save_LIBS
17361 fi
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17363 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17364 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
17365 then :
17366 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
17367 else $as_nop
17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
17369 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
17370 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
17371 then :
17372 printf %s "(cached) " >&6
17373 else $as_nop
17374 ac_check_lib_save_LIBS=$LIBS
17375 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
17376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17377 /* end confdefs.h. */
17378
17379 /* Override any GCC internal prototype to avoid an error.
17380 Use char because int might match the return type of a GCC
17381 builtin and then its argument prototype would still apply. */
17382 char krb5int_getspecific ();
17383 int
17384 main (void)
17385 {
17386 return krb5int_getspecific ();
17387 ;
17388 return 0;
17389 }
17390 _ACEOF
17391 if ac_fn_c_try_link "$LINENO"
17392 then :
17393 ac_cv_lib_krb5support_krb5int_getspecific=yes
17394 else $as_nop
17395 ac_cv_lib_krb5support_krb5int_getspecific=no
17396 fi
17397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17398 conftest$ac_exeext conftest.$ac_ext
17399 LIBS=$ac_check_lib_save_LIBS
17400 fi
17401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
17402 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
17403 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
17404 then :
17405 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
17406 else $as_nop
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
17408 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
17409 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
17410 then :
17411 printf %s "(cached) " >&6
17412 else $as_nop
17413 ac_check_lib_save_LIBS=$LIBS
17414 LIBS="-lpthreads $LIBS"
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h. */
17417
17418 /* Override any GCC internal prototype to avoid an error.
17419 Use char because int might match the return type of a GCC
17420 builtin and then its argument prototype would still apply. */
17421 char pthread_setspecific ();
17422 int
17423 main (void)
17424 {
17425 return pthread_setspecific ();
17426 ;
17427 return 0;
17428 }
17429 _ACEOF
17430 if ac_fn_c_try_link "$LINENO"
17431 then :
17432 ac_cv_lib_pthreads_pthread_setspecific=yes
17433 else $as_nop
17434 ac_cv_lib_pthreads_pthread_setspecific=no
17435 fi
17436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17437 conftest$ac_exeext conftest.$ac_ext
17438 LIBS=$ac_check_lib_save_LIBS
17439 fi
17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
17441 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
17442 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
17443 then :
17444 rra_krb5_pthread="-lpthreads"
17445 else $as_nop
17446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
17447 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
17448 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
17449 then :
17450 printf %s "(cached) " >&6
17451 else $as_nop
17452 ac_check_lib_save_LIBS=$LIBS
17453 LIBS="-lpthread $LIBS"
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17456
17457 /* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17460 char pthread_setspecific ();
17461 int
17462 main (void)
17463 {
17464 return pthread_setspecific ();
17465 ;
17466 return 0;
17467 }
17468 _ACEOF
17469 if ac_fn_c_try_link "$LINENO"
17470 then :
17471 ac_cv_lib_pthread_pthread_setspecific=yes
17472 else $as_nop
17473 ac_cv_lib_pthread_pthread_setspecific=no
17474 fi
17475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17476 conftest$ac_exeext conftest.$ac_ext
17477 LIBS=$ac_check_lib_save_LIBS
17478 fi
17479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
17480 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
17481 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
17482 then :
17483 rra_krb5_pthread="-lpthread"
17484 fi
17485
17486 fi
17487
17488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
17489 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
17490 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
17491 then :
17492 printf %s "(cached) " >&6
17493 else $as_nop
17494 ac_check_lib_save_LIBS=$LIBS
17495 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17498
17499 /* Override any GCC internal prototype to avoid an error.
17500 Use char because int might match the return type of a GCC
17501 builtin and then its argument prototype would still apply. */
17502 char krb5int_setspecific ();
17503 int
17504 main (void)
17505 {
17506 return krb5int_setspecific ();
17507 ;
17508 return 0;
17509 }
17510 _ACEOF
17511 if ac_fn_c_try_link "$LINENO"
17512 then :
17513 ac_cv_lib_krb5support_krb5int_setspecific=yes
17514 else $as_nop
17515 ac_cv_lib_krb5support_krb5int_setspecific=no
17516 fi
17517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17518 conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17520 fi
17521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
17522 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
17523 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
17524 then :
17525 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
17526 fi
17527
17528 fi
17529
17530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
17531 printf %s "checking for error_message in -lcom_err... " >&6; }
17532 if test ${ac_cv_lib_com_err_error_message+y}
17533 then :
17534 printf %s "(cached) " >&6
17535 else $as_nop
17536 ac_check_lib_save_LIBS=$LIBS
17537 LIBS="-lcom_err $rra_krb5_extra $LIBS"
17538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539 /* end confdefs.h. */
17540
17541 /* Override any GCC internal prototype to avoid an error.
17542 Use char because int might match the return type of a GCC
17543 builtin and then its argument prototype would still apply. */
17544 char error_message ();
17545 int
17546 main (void)
17547 {
17548 return error_message ();
17549 ;
17550 return 0;
17551 }
17552 _ACEOF
17553 if ac_fn_c_try_link "$LINENO"
17554 then :
17555 ac_cv_lib_com_err_error_message=yes
17556 else $as_nop
17557 ac_cv_lib_com_err_error_message=no
17558 fi
17559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17560 conftest$ac_exeext conftest.$ac_ext
17561 LIBS=$ac_check_lib_save_LIBS
17562 fi
17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
17564 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
17565 if test "x$ac_cv_lib_com_err_error_message" = xyes
17566 then :
17567 rra_krb5_extra="-lcom_err $rra_krb5_extra"
17568 fi
17569
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
17571 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
17572 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
17573 then :
17574 printf %s "(cached) " >&6
17575 else $as_nop
17576 ac_check_lib_save_LIBS=$LIBS
17577 LIBS="-lksvc $rra_krb5_extra $LIBS"
17578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h. */
17580
17581 /* Override any GCC internal prototype to avoid an error.
17582 Use char because int might match the return type of a GCC
17583 builtin and then its argument prototype would still apply. */
17584 char krb5_svc_get_msg ();
17585 int
17586 main (void)
17587 {
17588 return krb5_svc_get_msg ();
17589 ;
17590 return 0;
17591 }
17592 _ACEOF
17593 if ac_fn_c_try_link "$LINENO"
17594 then :
17595 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
17596 else $as_nop
17597 ac_cv_lib_ksvc_krb5_svc_get_msg=no
17598 fi
17599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17600 conftest$ac_exeext conftest.$ac_ext
17601 LIBS=$ac_check_lib_save_LIBS
17602 fi
17603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
17604 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
17605 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
17606 then :
17607 rra_krb5_extra="-lksvc $rra_krb5_extra"
17608 fi
17609
17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
17611 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
17612 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
17613 then :
17614 printf %s "(cached) " >&6
17615 else $as_nop
17616 ac_check_lib_save_LIBS=$LIBS
17617 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17619 /* end confdefs.h. */
17620
17621 /* Override any GCC internal prototype to avoid an error.
17622 Use char because int might match the return type of a GCC
17623 builtin and then its argument prototype would still apply. */
17624 char krb5int_hash_md5 ();
17625 int
17626 main (void)
17627 {
17628 return krb5int_hash_md5 ();
17629 ;
17630 return 0;
17631 }
17632 _ACEOF
17633 if ac_fn_c_try_link "$LINENO"
17634 then :
17635 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
17636 else $as_nop
17637 ac_cv_lib_k5crypto_krb5int_hash_md5=no
17638 fi
17639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17640 conftest$ac_exeext conftest.$ac_ext
17641 LIBS=$ac_check_lib_save_LIBS
17642 fi
17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
17644 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
17645 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
17646 then :
17647 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
17648 fi
17649
17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
17651 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
17652 if test ${ac_cv_lib_k5profile_profile_get_values+y}
17653 then :
17654 printf %s "(cached) " >&6
17655 else $as_nop
17656 ac_check_lib_save_LIBS=$LIBS
17657 LIBS="-lk5profile $rra_krb5_extra $LIBS"
17658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h. */
17660
17661 /* Override any GCC internal prototype to avoid an error.
17662 Use char because int might match the return type of a GCC
17663 builtin and then its argument prototype would still apply. */
17664 char profile_get_values ();
17665 int
17666 main (void)
17667 {
17668 return profile_get_values ();
17669 ;
17670 return 0;
17671 }
17672 _ACEOF
17673 if ac_fn_c_try_link "$LINENO"
17674 then :
17675 ac_cv_lib_k5profile_profile_get_values=yes
17676 else $as_nop
17677 ac_cv_lib_k5profile_profile_get_values=no
17678 fi
17679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17680 conftest$ac_exeext conftest.$ac_ext
17681 LIBS=$ac_check_lib_save_LIBS
17682 fi
17683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
17684 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
17685 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
17686 then :
17687 rra_krb5_extra="-lk5profile $rra_krb5_extra"
17688 fi
17689
17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
17691 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
17692 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
17693 then :
17694 printf %s "(cached) " >&6
17695 else $as_nop
17696 ac_check_lib_save_LIBS=$LIBS
17697 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700
17701 /* Override any GCC internal prototype to avoid an error.
17702 Use char because int might match the return type of a GCC
17703 builtin and then its argument prototype would still apply. */
17704 char krb5_cc_default ();
17705 int
17706 main (void)
17707 {
17708 return krb5_cc_default ();
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_link "$LINENO"
17714 then :
17715 ac_cv_lib_krb5_krb5_cc_default=yes
17716 else $as_nop
17717 ac_cv_lib_krb5_krb5_cc_default=no
17718 fi
17719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17720 conftest$ac_exeext conftest.$ac_ext
17721 LIBS=$ac_check_lib_save_LIBS
17722 fi
17723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
17724 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
17725 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
17726 then :
17727 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
17728 else $as_nop
17729 if test x"true" = xtrue
17730 then :
17731 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
17732 fi
17733 fi
17734
17735 fi
17736
17737 LIBS="$KRB5_LIBS $LIBS"
17738
17739 for ac_func in krb5_get_error_message
17740 do :
17741 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
17742 if test "x$ac_cv_func_krb5_get_error_message" = xyes
17743 then :
17744 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
17745 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
17746 if test "x$ac_cv_func_krb5_free_error_message" = xyes
17747 then :
17748 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
17749
17750 fi
17751
17752 else $as_nop
17753
17754 for ac_func in krb5_get_error_string
17755 do :
17756 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
17757 if test "x$ac_cv_func_krb5_get_error_string" = xyes
17758 then :
17759 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
17760
17761 else $as_nop
17762
17763 for ac_func in krb5_get_err_txt
17764 do :
17765 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
17766 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
17767 then :
17768 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
17769
17770 else $as_nop
17771
17772 for ac_func in krb5_svc_get_msg
17773 do :
17774 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
17775 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
17776 then :
17777 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
17778 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
17779 #if HAVE_KRB5_H
17780 # include <krb5.h>
17781 #elif HAVE_KERBEROSV5_KRB5_H
17782 # include <kerberosv5/krb5.h>
17783 #else
17784 # include <krb5/krb5.h>
17785 #endif
17786
17787 "
17788 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
17789 then :
17790 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
17791
17792 fi
17793
17794 else $as_nop
17795 if test x"$rra_krb5_incroot" = x
17796 then :
17797 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
17798 if test "x$ac_cv_header_et_com_err_h" = xyes
17799 then :
17800 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
17801
17802 fi
17803 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
17804 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
17805 then :
17806 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
17807
17808 fi
17809
17810 else $as_nop
17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
17812 printf %s "checking for et/com_err.h... " >&6; }
17813 if test -f "${rra_krb5_incroot}/et/com_err.h"
17814 then :
17815
17816 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
17817
17818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17819 printf "%s\n" "yes" >&6; }
17820
17821 else $as_nop
17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17823 printf "%s\n" "no" >&6; }
17824 fi
17825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
17826 printf %s "checking for kerberosv5/com_err.h... " >&6; }
17827 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
17828 then :
17829
17830 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
17831
17832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17833 printf "%s\n" "yes" >&6; }
17834
17835 else $as_nop
17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17837 printf "%s\n" "no" >&6; }
17838 fi
17839 fi
17840 fi
17841
17842 done
17843 fi
17844
17845 done
17846 fi
17847
17848 done
17849 fi
17850
17851 done
17852 rra_krb5_found_header=
17853 if test x"$rra_krb5_incroot" = x
17854 then :
17855 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
17856 do :
17857 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
17858 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17859 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17860 then :
17861 cat >>confdefs.h <<_ACEOF
17862 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
17863 _ACEOF
17864 rra_krb5_found_header=true
17865 fi
17866
17867 done
17868 else $as_nop
17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
17870 printf %s "checking for krb5.h... " >&6; }
17871 if test -f "${rra_krb5_incroot}/krb5.h"
17872 then :
17873
17874 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
17875
17876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17877 printf "%s\n" "yes" >&6; }
17878 rra_krb5_found_header=true
17879 else $as_nop
17880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17881 printf "%s\n" "no" >&6; }
17882 fi
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
17884 printf %s "checking for kerberosv5/krb5.h... " >&6; }
17885 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
17886 then :
17887
17888 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
17889
17890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17891 printf "%s\n" "yes" >&6; }
17892 rra_krb5_found_header=true
17893 else $as_nop
17894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17895 printf "%s\n" "no" >&6; }
17896 fi
17897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
17898 printf %s "checking for krb5/krb5.h... " >&6; }
17899 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
17900 then :
17901
17902 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
17903
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17905 printf "%s\n" "yes" >&6; }
17906 rra_krb5_found_header=true
17907 else $as_nop
17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17909 printf "%s\n" "no" >&6; }
17910 fi
17911 fi
17912 if test x"$rra_krb5_found_header" = xtrue
17913 then :
17914
17915 else $as_nop
17916 KRB5_CPPFLAGS=
17917 KRB5_LIBS=
17918 if test x"true" = xtrue
17919 then :
17920 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
17921 fi
17922 fi
17923 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17924 LDFLAGS="$rra_krb5_save_LDFLAGS"
17925 LIBS="$rra_krb5_save_LIBS"
17926 fi
17927 else $as_nop
17928 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17929 LDFLAGS="$rra_krb5_save_LDFLAGS"
17930 LIBS="$rra_krb5_save_LIBS"
17931 KRB5_CPPFLAGS=
17932 KRB5_LIBS=
17933 if test x"$rra_krb5_libdir" != x
17934 then :
17935 KRB5_LDFLAGS="-L$rra_krb5_libdir"
17936 else $as_nop
17937 if test x"$rra_krb5_root" != x
17938 then :
17939
17940 if test -d "$rra_krb5_root/$rra_lib_arch_name"
17941 then :
17942 if test x"" = x
17943 then :
17944 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
17945 else $as_nop
17946 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
17947 fi
17948 else $as_nop
17949 if test x"" = x
17950 then :
17951 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
17952 else $as_nop
17953 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
17954 fi
17955 fi
17956 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
17957 fi
17958 fi
17959 if test x"$rra_krb5_includedir" != x
17960 then :
17961 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
17962 else $as_nop
17963 if test x"$rra_krb5_root" != x
17964 then :
17965 if test x"$rra_krb5_root" != x/usr
17966 then :
17967 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
17968 fi
17969 fi
17970 fi
17971 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
17972 rra_krb5_save_LDFLAGS="$LDFLAGS"
17973 rra_krb5_save_LIBS="$LIBS"
17974 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
17975 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
17976 LIBS="$KRB5_LIBS $LIBS"
17977 rra_krb5_extra=
17978 LIBS=
17979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
17980 printf %s "checking for library containing res_search... " >&6; }
17981 if test ${ac_cv_search_res_search+y}
17982 then :
17983 printf %s "(cached) " >&6
17984 else $as_nop
17985 ac_func_search_save_LIBS=$LIBS
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17988
17989 /* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
17992 char res_search ();
17993 int
17994 main (void)
17995 {
17996 return res_search ();
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 for ac_lib in '' resolv
18002 do
18003 if test -z "$ac_lib"; then
18004 ac_res="none required"
18005 else
18006 ac_res=-l$ac_lib
18007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18008 fi
18009 if ac_fn_c_try_link "$LINENO"
18010 then :
18011 ac_cv_search_res_search=$ac_res
18012 fi
18013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18014 conftest$ac_exeext
18015 if test ${ac_cv_search_res_search+y}
18016 then :
18017 break
18018 fi
18019 done
18020 if test ${ac_cv_search_res_search+y}
18021 then :
18022
18023 else $as_nop
18024 ac_cv_search_res_search=no
18025 fi
18026 rm conftest.$ac_ext
18027 LIBS=$ac_func_search_save_LIBS
18028 fi
18029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
18030 printf "%s\n" "$ac_cv_search_res_search" >&6; }
18031 ac_res=$ac_cv_search_res_search
18032 if test "$ac_res" != no
18033 then :
18034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18035
18036 else $as_nop
18037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
18038 printf %s "checking for library containing __res_search... " >&6; }
18039 if test ${ac_cv_search___res_search+y}
18040 then :
18041 printf %s "(cached) " >&6
18042 else $as_nop
18043 ac_func_search_save_LIBS=$LIBS
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18046
18047 /* Override any GCC internal prototype to avoid an error.
18048 Use char because int might match the return type of a GCC
18049 builtin and then its argument prototype would still apply. */
18050 char __res_search ();
18051 int
18052 main (void)
18053 {
18054 return __res_search ();
18055 ;
18056 return 0;
18057 }
18058 _ACEOF
18059 for ac_lib in '' resolv
18060 do
18061 if test -z "$ac_lib"; then
18062 ac_res="none required"
18063 else
18064 ac_res=-l$ac_lib
18065 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18066 fi
18067 if ac_fn_c_try_link "$LINENO"
18068 then :
18069 ac_cv_search___res_search=$ac_res
18070 fi
18071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18072 conftest$ac_exeext
18073 if test ${ac_cv_search___res_search+y}
18074 then :
18075 break
18076 fi
18077 done
18078 if test ${ac_cv_search___res_search+y}
18079 then :
18080
18081 else $as_nop
18082 ac_cv_search___res_search=no
18083 fi
18084 rm conftest.$ac_ext
18085 LIBS=$ac_func_search_save_LIBS
18086 fi
18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
18088 printf "%s\n" "$ac_cv_search___res_search" >&6; }
18089 ac_res=$ac_cv_search___res_search
18090 if test "$ac_res" != no
18091 then :
18092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18093
18094 fi
18095
18096 fi
18097
18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18099 printf %s "checking for library containing gethostbyname... " >&6; }
18100 if test ${ac_cv_search_gethostbyname+y}
18101 then :
18102 printf %s "(cached) " >&6
18103 else $as_nop
18104 ac_func_search_save_LIBS=$LIBS
18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106 /* end confdefs.h. */
18107
18108 /* Override any GCC internal prototype to avoid an error.
18109 Use char because int might match the return type of a GCC
18110 builtin and then its argument prototype would still apply. */
18111 char gethostbyname ();
18112 int
18113 main (void)
18114 {
18115 return gethostbyname ();
18116 ;
18117 return 0;
18118 }
18119 _ACEOF
18120 for ac_lib in '' nsl
18121 do
18122 if test -z "$ac_lib"; then
18123 ac_res="none required"
18124 else
18125 ac_res=-l$ac_lib
18126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18127 fi
18128 if ac_fn_c_try_link "$LINENO"
18129 then :
18130 ac_cv_search_gethostbyname=$ac_res
18131 fi
18132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18133 conftest$ac_exeext
18134 if test ${ac_cv_search_gethostbyname+y}
18135 then :
18136 break
18137 fi
18138 done
18139 if test ${ac_cv_search_gethostbyname+y}
18140 then :
18141
18142 else $as_nop
18143 ac_cv_search_gethostbyname=no
18144 fi
18145 rm conftest.$ac_ext
18146 LIBS=$ac_func_search_save_LIBS
18147 fi
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18149 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
18150 ac_res=$ac_cv_search_gethostbyname
18151 if test "$ac_res" != no
18152 then :
18153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18154
18155 fi
18156
18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18158 printf %s "checking for library containing socket... " >&6; }
18159 if test ${ac_cv_search_socket+y}
18160 then :
18161 printf %s "(cached) " >&6
18162 else $as_nop
18163 ac_func_search_save_LIBS=$LIBS
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h. */
18166
18167 /* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18170 char socket ();
18171 int
18172 main (void)
18173 {
18174 return socket ();
18175 ;
18176 return 0;
18177 }
18178 _ACEOF
18179 for ac_lib in '' socket
18180 do
18181 if test -z "$ac_lib"; then
18182 ac_res="none required"
18183 else
18184 ac_res=-l$ac_lib
18185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18186 fi
18187 if ac_fn_c_try_link "$LINENO"
18188 then :
18189 ac_cv_search_socket=$ac_res
18190 fi
18191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18192 conftest$ac_exeext
18193 if test ${ac_cv_search_socket+y}
18194 then :
18195 break
18196 fi
18197 done
18198 if test ${ac_cv_search_socket+y}
18199 then :
18200
18201 else $as_nop
18202 ac_cv_search_socket=no
18203 fi
18204 rm conftest.$ac_ext
18205 LIBS=$ac_func_search_save_LIBS
18206 fi
18207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18208 printf "%s\n" "$ac_cv_search_socket" >&6; }
18209 ac_res=$ac_cv_search_socket
18210 if test "$ac_res" != no
18211 then :
18212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18213
18214 else $as_nop
18215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
18216 printf %s "checking for socket in -lnsl... " >&6; }
18217 if test ${ac_cv_lib_nsl_socket+y}
18218 then :
18219 printf %s "(cached) " >&6
18220 else $as_nop
18221 ac_check_lib_save_LIBS=$LIBS
18222 LIBS="-lnsl -lsocket $LIBS"
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225
18226 /* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
18229 char socket ();
18230 int
18231 main (void)
18232 {
18233 return socket ();
18234 ;
18235 return 0;
18236 }
18237 _ACEOF
18238 if ac_fn_c_try_link "$LINENO"
18239 then :
18240 ac_cv_lib_nsl_socket=yes
18241 else $as_nop
18242 ac_cv_lib_nsl_socket=no
18243 fi
18244 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18245 conftest$ac_exeext conftest.$ac_ext
18246 LIBS=$ac_check_lib_save_LIBS
18247 fi
18248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
18249 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
18250 if test "x$ac_cv_lib_nsl_socket" = xyes
18251 then :
18252 LIBS="-lnsl -lsocket $LIBS"
18253 fi
18254
18255 fi
18256
18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18258 printf %s "checking for library containing crypt... " >&6; }
18259 if test ${ac_cv_search_crypt+y}
18260 then :
18261 printf %s "(cached) " >&6
18262 else $as_nop
18263 ac_func_search_save_LIBS=$LIBS
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266
18267 /* Override any GCC internal prototype to avoid an error.
18268 Use char because int might match the return type of a GCC
18269 builtin and then its argument prototype would still apply. */
18270 char crypt ();
18271 int
18272 main (void)
18273 {
18274 return crypt ();
18275 ;
18276 return 0;
18277 }
18278 _ACEOF
18279 for ac_lib in '' crypt
18280 do
18281 if test -z "$ac_lib"; then
18282 ac_res="none required"
18283 else
18284 ac_res=-l$ac_lib
18285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18286 fi
18287 if ac_fn_c_try_link "$LINENO"
18288 then :
18289 ac_cv_search_crypt=$ac_res
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18292 conftest$ac_exeext
18293 if test ${ac_cv_search_crypt+y}
18294 then :
18295 break
18296 fi
18297 done
18298 if test ${ac_cv_search_crypt+y}
18299 then :
18300
18301 else $as_nop
18302 ac_cv_search_crypt=no
18303 fi
18304 rm conftest.$ac_ext
18305 LIBS=$ac_func_search_save_LIBS
18306 fi
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
18308 printf "%s\n" "$ac_cv_search_crypt" >&6; }
18309 ac_res=$ac_cv_search_crypt
18310 if test "$ac_res" != no
18311 then :
18312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18313
18314 fi
18315
18316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
18317 printf %s "checking for library containing roken_concat... " >&6; }
18318 if test ${ac_cv_search_roken_concat+y}
18319 then :
18320 printf %s "(cached) " >&6
18321 else $as_nop
18322 ac_func_search_save_LIBS=$LIBS
18323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18324 /* end confdefs.h. */
18325
18326 /* Override any GCC internal prototype to avoid an error.
18327 Use char because int might match the return type of a GCC
18328 builtin and then its argument prototype would still apply. */
18329 char roken_concat ();
18330 int
18331 main (void)
18332 {
18333 return roken_concat ();
18334 ;
18335 return 0;
18336 }
18337 _ACEOF
18338 for ac_lib in '' roken
18339 do
18340 if test -z "$ac_lib"; then
18341 ac_res="none required"
18342 else
18343 ac_res=-l$ac_lib
18344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18345 fi
18346 if ac_fn_c_try_link "$LINENO"
18347 then :
18348 ac_cv_search_roken_concat=$ac_res
18349 fi
18350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18351 conftest$ac_exeext
18352 if test ${ac_cv_search_roken_concat+y}
18353 then :
18354 break
18355 fi
18356 done
18357 if test ${ac_cv_search_roken_concat+y}
18358 then :
18359
18360 else $as_nop
18361 ac_cv_search_roken_concat=no
18362 fi
18363 rm conftest.$ac_ext
18364 LIBS=$ac_func_search_save_LIBS
18365 fi
18366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
18367 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
18368 ac_res=$ac_cv_search_roken_concat
18369 if test "$ac_res" != no
18370 then :
18371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18372
18373 fi
18374
18375 rra_krb5_extra="$LIBS"
18376 LIBS="$rra_krb5_save_LIBS"
18377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18378 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
18379 if test ${ac_cv_lib_krb5_krb5_init_context+y}
18380 then :
18381 printf %s "(cached) " >&6
18382 else $as_nop
18383 ac_check_lib_save_LIBS=$LIBS
18384 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18387
18388 /* Override any GCC internal prototype to avoid an error.
18389 Use char because int might match the return type of a GCC
18390 builtin and then its argument prototype would still apply. */
18391 char krb5_init_context ();
18392 int
18393 main (void)
18394 {
18395 return krb5_init_context ();
18396 ;
18397 return 0;
18398 }
18399 _ACEOF
18400 if ac_fn_c_try_link "$LINENO"
18401 then :
18402 ac_cv_lib_krb5_krb5_init_context=yes
18403 else $as_nop
18404 ac_cv_lib_krb5_krb5_init_context=no
18405 fi
18406 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18407 conftest$ac_exeext conftest.$ac_ext
18408 LIBS=$ac_check_lib_save_LIBS
18409 fi
18410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18411 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18412 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
18413 then :
18414 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
18415 else $as_nop
18416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
18417 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
18418 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
18419 then :
18420 printf %s "(cached) " >&6
18421 else $as_nop
18422 ac_check_lib_save_LIBS=$LIBS
18423 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18425 /* end confdefs.h. */
18426
18427 /* Override any GCC internal prototype to avoid an error.
18428 Use char because int might match the return type of a GCC
18429 builtin and then its argument prototype would still apply. */
18430 char krb5int_getspecific ();
18431 int
18432 main (void)
18433 {
18434 return krb5int_getspecific ();
18435 ;
18436 return 0;
18437 }
18438 _ACEOF
18439 if ac_fn_c_try_link "$LINENO"
18440 then :
18441 ac_cv_lib_krb5support_krb5int_getspecific=yes
18442 else $as_nop
18443 ac_cv_lib_krb5support_krb5int_getspecific=no
18444 fi
18445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18446 conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18448 fi
18449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18450 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18451 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
18452 then :
18453 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
18454 else $as_nop
18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
18456 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
18457 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
18458 then :
18459 printf %s "(cached) " >&6
18460 else $as_nop
18461 ac_check_lib_save_LIBS=$LIBS
18462 LIBS="-lpthreads $LIBS"
18463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18464 /* end confdefs.h. */
18465
18466 /* Override any GCC internal prototype to avoid an error.
18467 Use char because int might match the return type of a GCC
18468 builtin and then its argument prototype would still apply. */
18469 char pthread_setspecific ();
18470 int
18471 main (void)
18472 {
18473 return pthread_setspecific ();
18474 ;
18475 return 0;
18476 }
18477 _ACEOF
18478 if ac_fn_c_try_link "$LINENO"
18479 then :
18480 ac_cv_lib_pthreads_pthread_setspecific=yes
18481 else $as_nop
18482 ac_cv_lib_pthreads_pthread_setspecific=no
18483 fi
18484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18485 conftest$ac_exeext conftest.$ac_ext
18486 LIBS=$ac_check_lib_save_LIBS
18487 fi
18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
18489 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
18490 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
18491 then :
18492 rra_krb5_pthread="-lpthreads"
18493 else $as_nop
18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
18495 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
18496 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
18497 then :
18498 printf %s "(cached) " >&6
18499 else $as_nop
18500 ac_check_lib_save_LIBS=$LIBS
18501 LIBS="-lpthread $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 char pthread_setspecific ();
18509 int
18510 main (void)
18511 {
18512 return pthread_setspecific ();
18513 ;
18514 return 0;
18515 }
18516 _ACEOF
18517 if ac_fn_c_try_link "$LINENO"
18518 then :
18519 ac_cv_lib_pthread_pthread_setspecific=yes
18520 else $as_nop
18521 ac_cv_lib_pthread_pthread_setspecific=no
18522 fi
18523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18524 conftest$ac_exeext conftest.$ac_ext
18525 LIBS=$ac_check_lib_save_LIBS
18526 fi
18527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
18528 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
18529 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
18530 then :
18531 rra_krb5_pthread="-lpthread"
18532 fi
18533
18534 fi
18535
18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
18537 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
18538 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
18539 then :
18540 printf %s "(cached) " >&6
18541 else $as_nop
18542 ac_check_lib_save_LIBS=$LIBS
18543 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545 /* end confdefs.h. */
18546
18547 /* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18550 char krb5int_setspecific ();
18551 int
18552 main (void)
18553 {
18554 return krb5int_setspecific ();
18555 ;
18556 return 0;
18557 }
18558 _ACEOF
18559 if ac_fn_c_try_link "$LINENO"
18560 then :
18561 ac_cv_lib_krb5support_krb5int_setspecific=yes
18562 else $as_nop
18563 ac_cv_lib_krb5support_krb5int_setspecific=no
18564 fi
18565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18566 conftest$ac_exeext conftest.$ac_ext
18567 LIBS=$ac_check_lib_save_LIBS
18568 fi
18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
18570 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
18571 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
18572 then :
18573 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
18574 fi
18575
18576 fi
18577
18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
18579 printf %s "checking for error_message in -lcom_err... " >&6; }
18580 if test ${ac_cv_lib_com_err_error_message+y}
18581 then :
18582 printf %s "(cached) " >&6
18583 else $as_nop
18584 ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lcom_err $rra_krb5_extra $LIBS"
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18588
18589 /* Override any GCC internal prototype to avoid an error.
18590 Use char because int might match the return type of a GCC
18591 builtin and then its argument prototype would still apply. */
18592 char error_message ();
18593 int
18594 main (void)
18595 {
18596 return error_message ();
18597 ;
18598 return 0;
18599 }
18600 _ACEOF
18601 if ac_fn_c_try_link "$LINENO"
18602 then :
18603 ac_cv_lib_com_err_error_message=yes
18604 else $as_nop
18605 ac_cv_lib_com_err_error_message=no
18606 fi
18607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18608 conftest$ac_exeext conftest.$ac_ext
18609 LIBS=$ac_check_lib_save_LIBS
18610 fi
18611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
18612 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
18613 if test "x$ac_cv_lib_com_err_error_message" = xyes
18614 then :
18615 rra_krb5_extra="-lcom_err $rra_krb5_extra"
18616 fi
18617
18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
18619 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
18620 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
18621 then :
18622 printf %s "(cached) " >&6
18623 else $as_nop
18624 ac_check_lib_save_LIBS=$LIBS
18625 LIBS="-lksvc $rra_krb5_extra $LIBS"
18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18628
18629 /* Override any GCC internal prototype to avoid an error.
18630 Use char because int might match the return type of a GCC
18631 builtin and then its argument prototype would still apply. */
18632 char krb5_svc_get_msg ();
18633 int
18634 main (void)
18635 {
18636 return krb5_svc_get_msg ();
18637 ;
18638 return 0;
18639 }
18640 _ACEOF
18641 if ac_fn_c_try_link "$LINENO"
18642 then :
18643 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
18644 else $as_nop
18645 ac_cv_lib_ksvc_krb5_svc_get_msg=no
18646 fi
18647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18648 conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18650 fi
18651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
18652 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
18653 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
18654 then :
18655 rra_krb5_extra="-lksvc $rra_krb5_extra"
18656 fi
18657
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
18659 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
18660 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
18661 then :
18662 printf %s "(cached) " >&6
18663 else $as_nop
18664 ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
18666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18667 /* end confdefs.h. */
18668
18669 /* Override any GCC internal prototype to avoid an error.
18670 Use char because int might match the return type of a GCC
18671 builtin and then its argument prototype would still apply. */
18672 char krb5int_hash_md5 ();
18673 int
18674 main (void)
18675 {
18676 return krb5int_hash_md5 ();
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_c_try_link "$LINENO"
18682 then :
18683 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
18684 else $as_nop
18685 ac_cv_lib_k5crypto_krb5int_hash_md5=no
18686 fi
18687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18688 conftest$ac_exeext conftest.$ac_ext
18689 LIBS=$ac_check_lib_save_LIBS
18690 fi
18691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
18692 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
18693 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
18694 then :
18695 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
18696 fi
18697
18698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
18699 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
18700 if test ${ac_cv_lib_k5profile_profile_get_values+y}
18701 then :
18702 printf %s "(cached) " >&6
18703 else $as_nop
18704 ac_check_lib_save_LIBS=$LIBS
18705 LIBS="-lk5profile $rra_krb5_extra $LIBS"
18706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18708
18709 /* Override any GCC internal prototype to avoid an error.
18710 Use char because int might match the return type of a GCC
18711 builtin and then its argument prototype would still apply. */
18712 char profile_get_values ();
18713 int
18714 main (void)
18715 {
18716 return profile_get_values ();
18717 ;
18718 return 0;
18719 }
18720 _ACEOF
18721 if ac_fn_c_try_link "$LINENO"
18722 then :
18723 ac_cv_lib_k5profile_profile_get_values=yes
18724 else $as_nop
18725 ac_cv_lib_k5profile_profile_get_values=no
18726 fi
18727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18728 conftest$ac_exeext conftest.$ac_ext
18729 LIBS=$ac_check_lib_save_LIBS
18730 fi
18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
18732 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
18733 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
18734 then :
18735 rra_krb5_extra="-lk5profile $rra_krb5_extra"
18736 fi
18737
18738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
18739 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
18740 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
18741 then :
18742 printf %s "(cached) " >&6
18743 else $as_nop
18744 ac_check_lib_save_LIBS=$LIBS
18745 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
18746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747 /* end confdefs.h. */
18748
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18752 char krb5_cc_default ();
18753 int
18754 main (void)
18755 {
18756 return krb5_cc_default ();
18757 ;
18758 return 0;
18759 }
18760 _ACEOF
18761 if ac_fn_c_try_link "$LINENO"
18762 then :
18763 ac_cv_lib_krb5_krb5_cc_default=yes
18764 else $as_nop
18765 ac_cv_lib_krb5_krb5_cc_default=no
18766 fi
18767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18768 conftest$ac_exeext conftest.$ac_ext
18769 LIBS=$ac_check_lib_save_LIBS
18770 fi
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
18772 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
18773 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
18774 then :
18775 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
18776 else $as_nop
18777 if test x"true" = xtrue
18778 then :
18779 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
18780 fi
18781 fi
18782
18783 fi
18784
18785 LIBS="$KRB5_LIBS $LIBS"
18786
18787 for ac_func in krb5_get_error_message
18788 do :
18789 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
18790 if test "x$ac_cv_func_krb5_get_error_message" = xyes
18791 then :
18792 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
18793 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
18794 if test "x$ac_cv_func_krb5_free_error_message" = xyes
18795 then :
18796 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
18797
18798 fi
18799
18800 else $as_nop
18801
18802 for ac_func in krb5_get_error_string
18803 do :
18804 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
18805 if test "x$ac_cv_func_krb5_get_error_string" = xyes
18806 then :
18807 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
18808
18809 else $as_nop
18810
18811 for ac_func in krb5_get_err_txt
18812 do :
18813 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
18814 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
18815 then :
18816 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
18817
18818 else $as_nop
18819
18820 for ac_func in krb5_svc_get_msg
18821 do :
18822 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
18823 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
18824 then :
18825 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
18826 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
18827 #if HAVE_KRB5_H
18828 # include <krb5.h>
18829 #elif HAVE_KERBEROSV5_KRB5_H
18830 # include <kerberosv5/krb5.h>
18831 #else
18832 # include <krb5/krb5.h>
18833 #endif
18834
18835 "
18836 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
18837 then :
18838 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
18839
18840 fi
18841
18842 else $as_nop
18843 if test x"$rra_krb5_incroot" = x
18844 then :
18845 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
18846 if test "x$ac_cv_header_et_com_err_h" = xyes
18847 then :
18848 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
18849
18850 fi
18851 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
18852 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
18853 then :
18854 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
18855
18856 fi
18857
18858 else $as_nop
18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
18860 printf %s "checking for et/com_err.h... " >&6; }
18861 if test -f "${rra_krb5_incroot}/et/com_err.h"
18862 then :
18863
18864 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
18865
18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18867 printf "%s\n" "yes" >&6; }
18868
18869 else $as_nop
18870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18871 printf "%s\n" "no" >&6; }
18872 fi
18873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
18874 printf %s "checking for kerberosv5/com_err.h... " >&6; }
18875 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
18876 then :
18877
18878 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
18879
18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18881 printf "%s\n" "yes" >&6; }
18882
18883 else $as_nop
18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18885 printf "%s\n" "no" >&6; }
18886 fi
18887 fi
18888 fi
18889
18890 done
18891 fi
18892
18893 done
18894 fi
18895
18896 done
18897 fi
18898
18899 done
18900 rra_krb5_found_header=
18901 if test x"$rra_krb5_incroot" = x
18902 then :
18903 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
18904 do :
18905 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
18906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18907 if eval test \"x\$"$as_ac_Header"\" = x"yes"
18908 then :
18909 cat >>confdefs.h <<_ACEOF
18910 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
18911 _ACEOF
18912 rra_krb5_found_header=true
18913 fi
18914
18915 done
18916 else $as_nop
18917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
18918 printf %s "checking for krb5.h... " >&6; }
18919 if test -f "${rra_krb5_incroot}/krb5.h"
18920 then :
18921
18922 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
18923
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18925 printf "%s\n" "yes" >&6; }
18926 rra_krb5_found_header=true
18927 else $as_nop
18928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 printf "%s\n" "no" >&6; }
18930 fi
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
18932 printf %s "checking for kerberosv5/krb5.h... " >&6; }
18933 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
18934 then :
18935
18936 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
18937
18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18939 printf "%s\n" "yes" >&6; }
18940 rra_krb5_found_header=true
18941 else $as_nop
18942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18943 printf "%s\n" "no" >&6; }
18944 fi
18945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
18946 printf %s "checking for krb5/krb5.h... " >&6; }
18947 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
18948 then :
18949
18950 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
18951
18952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18953 printf "%s\n" "yes" >&6; }
18954 rra_krb5_found_header=true
18955 else $as_nop
18956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957 printf "%s\n" "no" >&6; }
18958 fi
18959 fi
18960 if test x"$rra_krb5_found_header" = xtrue
18961 then :
18962
18963 else $as_nop
18964 KRB5_CPPFLAGS=
18965 KRB5_LIBS=
18966 if test x"true" = xtrue
18967 then :
18968 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
18969 fi
18970 fi
18971 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
18972 LDFLAGS="$rra_krb5_save_LDFLAGS"
18973 LIBS="$rra_krb5_save_LIBS"
18974 fi
18975
18976 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
18977 rra_krb5_save_LDFLAGS="$LDFLAGS"
18978 rra_krb5_save_LIBS="$LIBS"
18979 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
18980 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
18981 LIBS="$KRB5_LIBS $LIBS"
18982
18983 for ac_func in krb5_get_error_message
18984 do :
18985 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
18986 if test "x$ac_cv_func_krb5_get_error_message" = xyes
18987 then :
18988 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
18989 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
18990 if test "x$ac_cv_func_krb5_free_error_message" = xyes
18991 then :
18992 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
18993
18994 fi
18995
18996 else $as_nop
18997
18998 for ac_func in krb5_get_error_string
18999 do :
19000 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
19001 if test "x$ac_cv_func_krb5_get_error_string" = xyes
19002 then :
19003 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
19004
19005 else $as_nop
19006
19007 for ac_func in krb5_get_err_txt
19008 do :
19009 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
19010 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
19011 then :
19012 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
19013
19014 else $as_nop
19015
19016 for ac_func in krb5_svc_get_msg
19017 do :
19018 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
19019 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
19020 then :
19021 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
19022 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
19023 #if HAVE_KRB5_H
19024 # include <krb5.h>
19025 #elif HAVE_KERBEROSV5_KRB5_H
19026 # include <kerberosv5/krb5.h>
19027 #else
19028 # include <krb5/krb5.h>
19029 #endif
19030
19031 "
19032 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
19033 then :
19034 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
19035
19036 fi
19037
19038 else $as_nop
19039 if test x"$rra_krb5_incroot" = x
19040 then :
19041 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
19042 if test "x$ac_cv_header_et_com_err_h" = xyes
19043 then :
19044 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
19045
19046 fi
19047 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
19048 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
19049 then :
19050 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
19051
19052 fi
19053
19054 else $as_nop
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
19056 printf %s "checking for et/com_err.h... " >&6; }
19057 if test -f "${rra_krb5_incroot}/et/com_err.h"
19058 then :
19059
19060 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
19061
19062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19063 printf "%s\n" "yes" >&6; }
19064
19065 else $as_nop
19066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19067 printf "%s\n" "no" >&6; }
19068 fi
19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
19070 printf %s "checking for kerberosv5/com_err.h... " >&6; }
19071 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
19072 then :
19073
19074 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
19075
19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19077 printf "%s\n" "yes" >&6; }
19078
19079 else $as_nop
19080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081 printf "%s\n" "no" >&6; }
19082 fi
19083 fi
19084 fi
19085
19086 done
19087 fi
19088
19089 done
19090 fi
19091
19092 done
19093 fi
19094
19095 done
19096 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
19097 LDFLAGS="$rra_krb5_save_LDFLAGS"
19098 LIBS="$rra_krb5_save_LIBS"
19099 else $as_nop
19100 if test x"$rra_krb5_libdir" != x
19101 then :
19102 KRB5_LDFLAGS="-L$rra_krb5_libdir"
19103 else $as_nop
19104 if test x"$rra_krb5_root" != x
19105 then :
19106
19107 if test -d "$rra_krb5_root/$rra_lib_arch_name"
19108 then :
19109 if test x"" = x
19110 then :
19111 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
19112 else $as_nop
19113 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
19114 fi
19115 else $as_nop
19116 if test x"" = x
19117 then :
19118 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
19119 else $as_nop
19120 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
19121 fi
19122 fi
19123 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
19124 fi
19125 fi
19126 if test x"$rra_krb5_includedir" != x
19127 then :
19128 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
19129 else $as_nop
19130 if test x"$rra_krb5_root" != x
19131 then :
19132 if test x"$rra_krb5_root" != x/usr
19133 then :
19134 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
19135 fi
19136 fi
19137 fi
19138 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
19139 rra_krb5_save_LDFLAGS="$LDFLAGS"
19140 rra_krb5_save_LIBS="$LIBS"
19141 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
19142 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
19143 LIBS="$KRB5_LIBS $LIBS"
19144 rra_krb5_extra=
19145 LIBS=
19146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
19147 printf %s "checking for library containing res_search... " >&6; }
19148 if test ${ac_cv_search_res_search+y}
19149 then :
19150 printf %s "(cached) " >&6
19151 else $as_nop
19152 ac_func_search_save_LIBS=$LIBS
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19155
19156 /* Override any GCC internal prototype to avoid an error.
19157 Use char because int might match the return type of a GCC
19158 builtin and then its argument prototype would still apply. */
19159 char res_search ();
19160 int
19161 main (void)
19162 {
19163 return res_search ();
19164 ;
19165 return 0;
19166 }
19167 _ACEOF
19168 for ac_lib in '' resolv
19169 do
19170 if test -z "$ac_lib"; then
19171 ac_res="none required"
19172 else
19173 ac_res=-l$ac_lib
19174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19175 fi
19176 if ac_fn_c_try_link "$LINENO"
19177 then :
19178 ac_cv_search_res_search=$ac_res
19179 fi
19180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19181 conftest$ac_exeext
19182 if test ${ac_cv_search_res_search+y}
19183 then :
19184 break
19185 fi
19186 done
19187 if test ${ac_cv_search_res_search+y}
19188 then :
19189
19190 else $as_nop
19191 ac_cv_search_res_search=no
19192 fi
19193 rm conftest.$ac_ext
19194 LIBS=$ac_func_search_save_LIBS
19195 fi
19196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
19197 printf "%s\n" "$ac_cv_search_res_search" >&6; }
19198 ac_res=$ac_cv_search_res_search
19199 if test "$ac_res" != no
19200 then :
19201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19202
19203 else $as_nop
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
19205 printf %s "checking for library containing __res_search... " >&6; }
19206 if test ${ac_cv_search___res_search+y}
19207 then :
19208 printf %s "(cached) " >&6
19209 else $as_nop
19210 ac_func_search_save_LIBS=$LIBS
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19213
19214 /* Override any GCC internal prototype to avoid an error.
19215 Use char because int might match the return type of a GCC
19216 builtin and then its argument prototype would still apply. */
19217 char __res_search ();
19218 int
19219 main (void)
19220 {
19221 return __res_search ();
19222 ;
19223 return 0;
19224 }
19225 _ACEOF
19226 for ac_lib in '' resolv
19227 do
19228 if test -z "$ac_lib"; then
19229 ac_res="none required"
19230 else
19231 ac_res=-l$ac_lib
19232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19233 fi
19234 if ac_fn_c_try_link "$LINENO"
19235 then :
19236 ac_cv_search___res_search=$ac_res
19237 fi
19238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19239 conftest$ac_exeext
19240 if test ${ac_cv_search___res_search+y}
19241 then :
19242 break
19243 fi
19244 done
19245 if test ${ac_cv_search___res_search+y}
19246 then :
19247
19248 else $as_nop
19249 ac_cv_search___res_search=no
19250 fi
19251 rm conftest.$ac_ext
19252 LIBS=$ac_func_search_save_LIBS
19253 fi
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
19255 printf "%s\n" "$ac_cv_search___res_search" >&6; }
19256 ac_res=$ac_cv_search___res_search
19257 if test "$ac_res" != no
19258 then :
19259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19260
19261 fi
19262
19263 fi
19264
19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19266 printf %s "checking for library containing gethostbyname... " >&6; }
19267 if test ${ac_cv_search_gethostbyname+y}
19268 then :
19269 printf %s "(cached) " >&6
19270 else $as_nop
19271 ac_func_search_save_LIBS=$LIBS
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19274
19275 /* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19278 char gethostbyname ();
19279 int
19280 main (void)
19281 {
19282 return gethostbyname ();
19283 ;
19284 return 0;
19285 }
19286 _ACEOF
19287 for ac_lib in '' nsl
19288 do
19289 if test -z "$ac_lib"; then
19290 ac_res="none required"
19291 else
19292 ac_res=-l$ac_lib
19293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19294 fi
19295 if ac_fn_c_try_link "$LINENO"
19296 then :
19297 ac_cv_search_gethostbyname=$ac_res
19298 fi
19299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19300 conftest$ac_exeext
19301 if test ${ac_cv_search_gethostbyname+y}
19302 then :
19303 break
19304 fi
19305 done
19306 if test ${ac_cv_search_gethostbyname+y}
19307 then :
19308
19309 else $as_nop
19310 ac_cv_search_gethostbyname=no
19311 fi
19312 rm conftest.$ac_ext
19313 LIBS=$ac_func_search_save_LIBS
19314 fi
19315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19316 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
19317 ac_res=$ac_cv_search_gethostbyname
19318 if test "$ac_res" != no
19319 then :
19320 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19321
19322 fi
19323
19324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19325 printf %s "checking for library containing socket... " >&6; }
19326 if test ${ac_cv_search_socket+y}
19327 then :
19328 printf %s "(cached) " >&6
19329 else $as_nop
19330 ac_func_search_save_LIBS=$LIBS
19331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19332 /* end confdefs.h. */
19333
19334 /* Override any GCC internal prototype to avoid an error.
19335 Use char because int might match the return type of a GCC
19336 builtin and then its argument prototype would still apply. */
19337 char socket ();
19338 int
19339 main (void)
19340 {
19341 return socket ();
19342 ;
19343 return 0;
19344 }
19345 _ACEOF
19346 for ac_lib in '' socket
19347 do
19348 if test -z "$ac_lib"; then
19349 ac_res="none required"
19350 else
19351 ac_res=-l$ac_lib
19352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19353 fi
19354 if ac_fn_c_try_link "$LINENO"
19355 then :
19356 ac_cv_search_socket=$ac_res
19357 fi
19358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19359 conftest$ac_exeext
19360 if test ${ac_cv_search_socket+y}
19361 then :
19362 break
19363 fi
19364 done
19365 if test ${ac_cv_search_socket+y}
19366 then :
19367
19368 else $as_nop
19369 ac_cv_search_socket=no
19370 fi
19371 rm conftest.$ac_ext
19372 LIBS=$ac_func_search_save_LIBS
19373 fi
19374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19375 printf "%s\n" "$ac_cv_search_socket" >&6; }
19376 ac_res=$ac_cv_search_socket
19377 if test "$ac_res" != no
19378 then :
19379 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19380
19381 else $as_nop
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
19383 printf %s "checking for socket in -lnsl... " >&6; }
19384 if test ${ac_cv_lib_nsl_socket+y}
19385 then :
19386 printf %s "(cached) " >&6
19387 else $as_nop
19388 ac_check_lib_save_LIBS=$LIBS
19389 LIBS="-lnsl -lsocket $LIBS"
19390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391 /* end confdefs.h. */
19392
19393 /* Override any GCC internal prototype to avoid an error.
19394 Use char because int might match the return type of a GCC
19395 builtin and then its argument prototype would still apply. */
19396 char socket ();
19397 int
19398 main (void)
19399 {
19400 return socket ();
19401 ;
19402 return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_link "$LINENO"
19406 then :
19407 ac_cv_lib_nsl_socket=yes
19408 else $as_nop
19409 ac_cv_lib_nsl_socket=no
19410 fi
19411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19412 conftest$ac_exeext conftest.$ac_ext
19413 LIBS=$ac_check_lib_save_LIBS
19414 fi
19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
19416 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
19417 if test "x$ac_cv_lib_nsl_socket" = xyes
19418 then :
19419 LIBS="-lnsl -lsocket $LIBS"
19420 fi
19421
19422 fi
19423
19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19425 printf %s "checking for library containing crypt... " >&6; }
19426 if test ${ac_cv_search_crypt+y}
19427 then :
19428 printf %s "(cached) " >&6
19429 else $as_nop
19430 ac_func_search_save_LIBS=$LIBS
19431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h. */
19433
19434 /* Override any GCC internal prototype to avoid an error.
19435 Use char because int might match the return type of a GCC
19436 builtin and then its argument prototype would still apply. */
19437 char crypt ();
19438 int
19439 main (void)
19440 {
19441 return crypt ();
19442 ;
19443 return 0;
19444 }
19445 _ACEOF
19446 for ac_lib in '' crypt
19447 do
19448 if test -z "$ac_lib"; then
19449 ac_res="none required"
19450 else
19451 ac_res=-l$ac_lib
19452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19453 fi
19454 if ac_fn_c_try_link "$LINENO"
19455 then :
19456 ac_cv_search_crypt=$ac_res
19457 fi
19458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19459 conftest$ac_exeext
19460 if test ${ac_cv_search_crypt+y}
19461 then :
19462 break
19463 fi
19464 done
19465 if test ${ac_cv_search_crypt+y}
19466 then :
19467
19468 else $as_nop
19469 ac_cv_search_crypt=no
19470 fi
19471 rm conftest.$ac_ext
19472 LIBS=$ac_func_search_save_LIBS
19473 fi
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19475 printf "%s\n" "$ac_cv_search_crypt" >&6; }
19476 ac_res=$ac_cv_search_crypt
19477 if test "$ac_res" != no
19478 then :
19479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19480
19481 fi
19482
19483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
19484 printf %s "checking for library containing roken_concat... " >&6; }
19485 if test ${ac_cv_search_roken_concat+y}
19486 then :
19487 printf %s "(cached) " >&6
19488 else $as_nop
19489 ac_func_search_save_LIBS=$LIBS
19490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491 /* end confdefs.h. */
19492
19493 /* Override any GCC internal prototype to avoid an error.
19494 Use char because int might match the return type of a GCC
19495 builtin and then its argument prototype would still apply. */
19496 char roken_concat ();
19497 int
19498 main (void)
19499 {
19500 return roken_concat ();
19501 ;
19502 return 0;
19503 }
19504 _ACEOF
19505 for ac_lib in '' roken
19506 do
19507 if test -z "$ac_lib"; then
19508 ac_res="none required"
19509 else
19510 ac_res=-l$ac_lib
19511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19512 fi
19513 if ac_fn_c_try_link "$LINENO"
19514 then :
19515 ac_cv_search_roken_concat=$ac_res
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19518 conftest$ac_exeext
19519 if test ${ac_cv_search_roken_concat+y}
19520 then :
19521 break
19522 fi
19523 done
19524 if test ${ac_cv_search_roken_concat+y}
19525 then :
19526
19527 else $as_nop
19528 ac_cv_search_roken_concat=no
19529 fi
19530 rm conftest.$ac_ext
19531 LIBS=$ac_func_search_save_LIBS
19532 fi
19533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
19534 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
19535 ac_res=$ac_cv_search_roken_concat
19536 if test "$ac_res" != no
19537 then :
19538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19539
19540 fi
19541
19542 rra_krb5_extra="$LIBS"
19543 LIBS="$rra_krb5_save_LIBS"
19544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19545 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
19546 if test ${ac_cv_lib_krb5_krb5_init_context+y}
19547 then :
19548 printf %s "(cached) " >&6
19549 else $as_nop
19550 ac_check_lib_save_LIBS=$LIBS
19551 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
19552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19553 /* end confdefs.h. */
19554
19555 /* Override any GCC internal prototype to avoid an error.
19556 Use char because int might match the return type of a GCC
19557 builtin and then its argument prototype would still apply. */
19558 char krb5_init_context ();
19559 int
19560 main (void)
19561 {
19562 return krb5_init_context ();
19563 ;
19564 return 0;
19565 }
19566 _ACEOF
19567 if ac_fn_c_try_link "$LINENO"
19568 then :
19569 ac_cv_lib_krb5_krb5_init_context=yes
19570 else $as_nop
19571 ac_cv_lib_krb5_krb5_init_context=no
19572 fi
19573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19574 conftest$ac_exeext conftest.$ac_ext
19575 LIBS=$ac_check_lib_save_LIBS
19576 fi
19577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19578 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
19579 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
19580 then :
19581 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
19582 else $as_nop
19583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
19584 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
19585 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
19586 then :
19587 printf %s "(cached) " >&6
19588 else $as_nop
19589 ac_check_lib_save_LIBS=$LIBS
19590 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
19591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19592 /* end confdefs.h. */
19593
19594 /* Override any GCC internal prototype to avoid an error.
19595 Use char because int might match the return type of a GCC
19596 builtin and then its argument prototype would still apply. */
19597 char krb5int_getspecific ();
19598 int
19599 main (void)
19600 {
19601 return krb5int_getspecific ();
19602 ;
19603 return 0;
19604 }
19605 _ACEOF
19606 if ac_fn_c_try_link "$LINENO"
19607 then :
19608 ac_cv_lib_krb5support_krb5int_getspecific=yes
19609 else $as_nop
19610 ac_cv_lib_krb5support_krb5int_getspecific=no
19611 fi
19612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19613 conftest$ac_exeext conftest.$ac_ext
19614 LIBS=$ac_check_lib_save_LIBS
19615 fi
19616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
19617 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
19618 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
19619 then :
19620 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
19621 else $as_nop
19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
19623 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
19624 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
19625 then :
19626 printf %s "(cached) " >&6
19627 else $as_nop
19628 ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lpthreads $LIBS"
19630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631 /* end confdefs.h. */
19632
19633 /* Override any GCC internal prototype to avoid an error.
19634 Use char because int might match the return type of a GCC
19635 builtin and then its argument prototype would still apply. */
19636 char pthread_setspecific ();
19637 int
19638 main (void)
19639 {
19640 return pthread_setspecific ();
19641 ;
19642 return 0;
19643 }
19644 _ACEOF
19645 if ac_fn_c_try_link "$LINENO"
19646 then :
19647 ac_cv_lib_pthreads_pthread_setspecific=yes
19648 else $as_nop
19649 ac_cv_lib_pthreads_pthread_setspecific=no
19650 fi
19651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19654 fi
19655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
19656 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
19657 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
19658 then :
19659 rra_krb5_pthread="-lpthreads"
19660 else $as_nop
19661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
19662 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
19663 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
19664 then :
19665 printf %s "(cached) " >&6
19666 else $as_nop
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lpthread $LIBS"
19669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h. */
19671
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19675 char pthread_setspecific ();
19676 int
19677 main (void)
19678 {
19679 return pthread_setspecific ();
19680 ;
19681 return 0;
19682 }
19683 _ACEOF
19684 if ac_fn_c_try_link "$LINENO"
19685 then :
19686 ac_cv_lib_pthread_pthread_setspecific=yes
19687 else $as_nop
19688 ac_cv_lib_pthread_pthread_setspecific=no
19689 fi
19690 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19691 conftest$ac_exeext conftest.$ac_ext
19692 LIBS=$ac_check_lib_save_LIBS
19693 fi
19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
19695 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
19696 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
19697 then :
19698 rra_krb5_pthread="-lpthread"
19699 fi
19700
19701 fi
19702
19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
19704 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
19705 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
19706 then :
19707 printf %s "(cached) " >&6
19708 else $as_nop
19709 ac_check_lib_save_LIBS=$LIBS
19710 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19713
19714 /* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717 char krb5int_setspecific ();
19718 int
19719 main (void)
19720 {
19721 return krb5int_setspecific ();
19722 ;
19723 return 0;
19724 }
19725 _ACEOF
19726 if ac_fn_c_try_link "$LINENO"
19727 then :
19728 ac_cv_lib_krb5support_krb5int_setspecific=yes
19729 else $as_nop
19730 ac_cv_lib_krb5support_krb5int_setspecific=no
19731 fi
19732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19733 conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19735 fi
19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
19737 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
19738 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
19739 then :
19740 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
19741 fi
19742
19743 fi
19744
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
19746 printf %s "checking for error_message in -lcom_err... " >&6; }
19747 if test ${ac_cv_lib_com_err_error_message+y}
19748 then :
19749 printf %s "(cached) " >&6
19750 else $as_nop
19751 ac_check_lib_save_LIBS=$LIBS
19752 LIBS="-lcom_err $rra_krb5_extra $LIBS"
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754 /* end confdefs.h. */
19755
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19759 char error_message ();
19760 int
19761 main (void)
19762 {
19763 return error_message ();
19764 ;
19765 return 0;
19766 }
19767 _ACEOF
19768 if ac_fn_c_try_link "$LINENO"
19769 then :
19770 ac_cv_lib_com_err_error_message=yes
19771 else $as_nop
19772 ac_cv_lib_com_err_error_message=no
19773 fi
19774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19775 conftest$ac_exeext conftest.$ac_ext
19776 LIBS=$ac_check_lib_save_LIBS
19777 fi
19778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
19779 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
19780 if test "x$ac_cv_lib_com_err_error_message" = xyes
19781 then :
19782 rra_krb5_extra="-lcom_err $rra_krb5_extra"
19783 fi
19784
19785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
19786 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
19787 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
19788 then :
19789 printf %s "(cached) " >&6
19790 else $as_nop
19791 ac_check_lib_save_LIBS=$LIBS
19792 LIBS="-lksvc $rra_krb5_extra $LIBS"
19793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19794 /* end confdefs.h. */
19795
19796 /* Override any GCC internal prototype to avoid an error.
19797 Use char because int might match the return type of a GCC
19798 builtin and then its argument prototype would still apply. */
19799 char krb5_svc_get_msg ();
19800 int
19801 main (void)
19802 {
19803 return krb5_svc_get_msg ();
19804 ;
19805 return 0;
19806 }
19807 _ACEOF
19808 if ac_fn_c_try_link "$LINENO"
19809 then :
19810 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
19811 else $as_nop
19812 ac_cv_lib_ksvc_krb5_svc_get_msg=no
19813 fi
19814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19815 conftest$ac_exeext conftest.$ac_ext
19816 LIBS=$ac_check_lib_save_LIBS
19817 fi
19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
19819 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
19820 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
19821 then :
19822 rra_krb5_extra="-lksvc $rra_krb5_extra"
19823 fi
19824
19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
19826 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
19827 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
19828 then :
19829 printf %s "(cached) " >&6
19830 else $as_nop
19831 ac_check_lib_save_LIBS=$LIBS
19832 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
19833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19834 /* end confdefs.h. */
19835
19836 /* Override any GCC internal prototype to avoid an error.
19837 Use char because int might match the return type of a GCC
19838 builtin and then its argument prototype would still apply. */
19839 char krb5int_hash_md5 ();
19840 int
19841 main (void)
19842 {
19843 return krb5int_hash_md5 ();
19844 ;
19845 return 0;
19846 }
19847 _ACEOF
19848 if ac_fn_c_try_link "$LINENO"
19849 then :
19850 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
19851 else $as_nop
19852 ac_cv_lib_k5crypto_krb5int_hash_md5=no
19853 fi
19854 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LIBS=$ac_check_lib_save_LIBS
19857 fi
19858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
19859 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
19860 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
19861 then :
19862 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
19863 fi
19864
19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
19866 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
19867 if test ${ac_cv_lib_k5profile_profile_get_values+y}
19868 then :
19869 printf %s "(cached) " >&6
19870 else $as_nop
19871 ac_check_lib_save_LIBS=$LIBS
19872 LIBS="-lk5profile $rra_krb5_extra $LIBS"
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19875
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19879 char profile_get_values ();
19880 int
19881 main (void)
19882 {
19883 return profile_get_values ();
19884 ;
19885 return 0;
19886 }
19887 _ACEOF
19888 if ac_fn_c_try_link "$LINENO"
19889 then :
19890 ac_cv_lib_k5profile_profile_get_values=yes
19891 else $as_nop
19892 ac_cv_lib_k5profile_profile_get_values=no
19893 fi
19894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19895 conftest$ac_exeext conftest.$ac_ext
19896 LIBS=$ac_check_lib_save_LIBS
19897 fi
19898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
19899 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
19900 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
19901 then :
19902 rra_krb5_extra="-lk5profile $rra_krb5_extra"
19903 fi
19904
19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
19906 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
19907 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
19908 then :
19909 printf %s "(cached) " >&6
19910 else $as_nop
19911 ac_check_lib_save_LIBS=$LIBS
19912 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
19913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19915
19916 /* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19919 char krb5_cc_default ();
19920 int
19921 main (void)
19922 {
19923 return krb5_cc_default ();
19924 ;
19925 return 0;
19926 }
19927 _ACEOF
19928 if ac_fn_c_try_link "$LINENO"
19929 then :
19930 ac_cv_lib_krb5_krb5_cc_default=yes
19931 else $as_nop
19932 ac_cv_lib_krb5_krb5_cc_default=no
19933 fi
19934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19935 conftest$ac_exeext conftest.$ac_ext
19936 LIBS=$ac_check_lib_save_LIBS
19937 fi
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
19939 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
19940 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
19941 then :
19942 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
19943 else $as_nop
19944 if test x"true" = xtrue
19945 then :
19946 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
19947 fi
19948 fi
19949
19950 fi
19951
19952 LIBS="$KRB5_LIBS $LIBS"
19953
19954 for ac_func in krb5_get_error_message
19955 do :
19956 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
19957 if test "x$ac_cv_func_krb5_get_error_message" = xyes
19958 then :
19959 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
19960 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
19961 if test "x$ac_cv_func_krb5_free_error_message" = xyes
19962 then :
19963 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
19964
19965 fi
19966
19967 else $as_nop
19968
19969 for ac_func in krb5_get_error_string
19970 do :
19971 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
19972 if test "x$ac_cv_func_krb5_get_error_string" = xyes
19973 then :
19974 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
19975
19976 else $as_nop
19977
19978 for ac_func in krb5_get_err_txt
19979 do :
19980 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
19981 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
19982 then :
19983 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
19984
19985 else $as_nop
19986
19987 for ac_func in krb5_svc_get_msg
19988 do :
19989 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
19990 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
19991 then :
19992 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
19993 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
19994 #if HAVE_KRB5_H
19995 # include <krb5.h>
19996 #elif HAVE_KERBEROSV5_KRB5_H
19997 # include <kerberosv5/krb5.h>
19998 #else
19999 # include <krb5/krb5.h>
20000 #endif
20001
20002 "
20003 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
20004 then :
20005 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
20006
20007 fi
20008
20009 else $as_nop
20010 if test x"$rra_krb5_incroot" = x
20011 then :
20012 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
20013 if test "x$ac_cv_header_et_com_err_h" = xyes
20014 then :
20015 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
20016
20017 fi
20018 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
20019 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
20020 then :
20021 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
20022
20023 fi
20024
20025 else $as_nop
20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
20027 printf %s "checking for et/com_err.h... " >&6; }
20028 if test -f "${rra_krb5_incroot}/et/com_err.h"
20029 then :
20030
20031 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
20032
20033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20034 printf "%s\n" "yes" >&6; }
20035
20036 else $as_nop
20037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20038 printf "%s\n" "no" >&6; }
20039 fi
20040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
20041 printf %s "checking for kerberosv5/com_err.h... " >&6; }
20042 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
20043 then :
20044
20045 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
20046
20047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20048 printf "%s\n" "yes" >&6; }
20049
20050 else $as_nop
20051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20052 printf "%s\n" "no" >&6; }
20053 fi
20054 fi
20055 fi
20056
20057 done
20058 fi
20059
20060 done
20061 fi
20062
20063 done
20064 fi
20065
20066 done
20067 rra_krb5_found_header=
20068 if test x"$rra_krb5_incroot" = x
20069 then :
20070 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
20071 do :
20072 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
20073 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20074 if eval test \"x\$"$as_ac_Header"\" = x"yes"
20075 then :
20076 cat >>confdefs.h <<_ACEOF
20077 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
20078 _ACEOF
20079 rra_krb5_found_header=true
20080 fi
20081
20082 done
20083 else $as_nop
20084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
20085 printf %s "checking for krb5.h... " >&6; }
20086 if test -f "${rra_krb5_incroot}/krb5.h"
20087 then :
20088
20089 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
20090
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20092 printf "%s\n" "yes" >&6; }
20093 rra_krb5_found_header=true
20094 else $as_nop
20095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20096 printf "%s\n" "no" >&6; }
20097 fi
20098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
20099 printf %s "checking for kerberosv5/krb5.h... " >&6; }
20100 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
20101 then :
20102
20103 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
20104
20105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20106 printf "%s\n" "yes" >&6; }
20107 rra_krb5_found_header=true
20108 else $as_nop
20109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20110 printf "%s\n" "no" >&6; }
20111 fi
20112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
20113 printf %s "checking for krb5/krb5.h... " >&6; }
20114 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
20115 then :
20116
20117 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
20118
20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20120 printf "%s\n" "yes" >&6; }
20121 rra_krb5_found_header=true
20122 else $as_nop
20123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20124 printf "%s\n" "no" >&6; }
20125 fi
20126 fi
20127 if test x"$rra_krb5_found_header" = xtrue
20128 then :
20129
20130 else $as_nop
20131 KRB5_CPPFLAGS=
20132 KRB5_LIBS=
20133 if test x"true" = xtrue
20134 then :
20135 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
20136 fi
20137 fi
20138 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
20139 LDFLAGS="$rra_krb5_save_LDFLAGS"
20140 LIBS="$rra_krb5_save_LIBS"
20141 fi
20142 else $as_nop
20143 if test x"$rra_krb5_libdir" != x
20144 then :
20145 KRB5_LDFLAGS="-L$rra_krb5_libdir"
20146 else $as_nop
20147 if test x"$rra_krb5_root" != x
20148 then :
20149
20150 if test -d "$rra_krb5_root/$rra_lib_arch_name"
20151 then :
20152 if test x"" = x
20153 then :
20154 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
20155 else $as_nop
20156 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
20157 fi
20158 else $as_nop
20159 if test x"" = x
20160 then :
20161 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
20162 else $as_nop
20163 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
20164 fi
20165 fi
20166 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
20167 fi
20168 fi
20169 if test x"$rra_krb5_includedir" != x
20170 then :
20171 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
20172 else $as_nop
20173 if test x"$rra_krb5_root" != x
20174 then :
20175 if test x"$rra_krb5_root" != x/usr
20176 then :
20177 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
20178 fi
20179 fi
20180 fi
20181 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
20182 rra_krb5_save_LDFLAGS="$LDFLAGS"
20183 rra_krb5_save_LIBS="$LIBS"
20184 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
20185 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
20186 LIBS="$KRB5_LIBS $LIBS"
20187 rra_krb5_extra=
20188 LIBS=
20189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
20190 printf %s "checking for library containing res_search... " >&6; }
20191 if test ${ac_cv_search_res_search+y}
20192 then :
20193 printf %s "(cached) " >&6
20194 else $as_nop
20195 ac_func_search_save_LIBS=$LIBS
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20198
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20202 char res_search ();
20203 int
20204 main (void)
20205 {
20206 return res_search ();
20207 ;
20208 return 0;
20209 }
20210 _ACEOF
20211 for ac_lib in '' resolv
20212 do
20213 if test -z "$ac_lib"; then
20214 ac_res="none required"
20215 else
20216 ac_res=-l$ac_lib
20217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20218 fi
20219 if ac_fn_c_try_link "$LINENO"
20220 then :
20221 ac_cv_search_res_search=$ac_res
20222 fi
20223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20224 conftest$ac_exeext
20225 if test ${ac_cv_search_res_search+y}
20226 then :
20227 break
20228 fi
20229 done
20230 if test ${ac_cv_search_res_search+y}
20231 then :
20232
20233 else $as_nop
20234 ac_cv_search_res_search=no
20235 fi
20236 rm conftest.$ac_ext
20237 LIBS=$ac_func_search_save_LIBS
20238 fi
20239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
20240 printf "%s\n" "$ac_cv_search_res_search" >&6; }
20241 ac_res=$ac_cv_search_res_search
20242 if test "$ac_res" != no
20243 then :
20244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20245
20246 else $as_nop
20247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
20248 printf %s "checking for library containing __res_search... " >&6; }
20249 if test ${ac_cv_search___res_search+y}
20250 then :
20251 printf %s "(cached) " >&6
20252 else $as_nop
20253 ac_func_search_save_LIBS=$LIBS
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h. */
20256
20257 /* Override any GCC internal prototype to avoid an error.
20258 Use char because int might match the return type of a GCC
20259 builtin and then its argument prototype would still apply. */
20260 char __res_search ();
20261 int
20262 main (void)
20263 {
20264 return __res_search ();
20265 ;
20266 return 0;
20267 }
20268 _ACEOF
20269 for ac_lib in '' resolv
20270 do
20271 if test -z "$ac_lib"; then
20272 ac_res="none required"
20273 else
20274 ac_res=-l$ac_lib
20275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20276 fi
20277 if ac_fn_c_try_link "$LINENO"
20278 then :
20279 ac_cv_search___res_search=$ac_res
20280 fi
20281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20282 conftest$ac_exeext
20283 if test ${ac_cv_search___res_search+y}
20284 then :
20285 break
20286 fi
20287 done
20288 if test ${ac_cv_search___res_search+y}
20289 then :
20290
20291 else $as_nop
20292 ac_cv_search___res_search=no
20293 fi
20294 rm conftest.$ac_ext
20295 LIBS=$ac_func_search_save_LIBS
20296 fi
20297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
20298 printf "%s\n" "$ac_cv_search___res_search" >&6; }
20299 ac_res=$ac_cv_search___res_search
20300 if test "$ac_res" != no
20301 then :
20302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20303
20304 fi
20305
20306 fi
20307
20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20309 printf %s "checking for library containing gethostbyname... " >&6; }
20310 if test ${ac_cv_search_gethostbyname+y}
20311 then :
20312 printf %s "(cached) " >&6
20313 else $as_nop
20314 ac_func_search_save_LIBS=$LIBS
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20317
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20321 char gethostbyname ();
20322 int
20323 main (void)
20324 {
20325 return gethostbyname ();
20326 ;
20327 return 0;
20328 }
20329 _ACEOF
20330 for ac_lib in '' nsl
20331 do
20332 if test -z "$ac_lib"; then
20333 ac_res="none required"
20334 else
20335 ac_res=-l$ac_lib
20336 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20337 fi
20338 if ac_fn_c_try_link "$LINENO"
20339 then :
20340 ac_cv_search_gethostbyname=$ac_res
20341 fi
20342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20343 conftest$ac_exeext
20344 if test ${ac_cv_search_gethostbyname+y}
20345 then :
20346 break
20347 fi
20348 done
20349 if test ${ac_cv_search_gethostbyname+y}
20350 then :
20351
20352 else $as_nop
20353 ac_cv_search_gethostbyname=no
20354 fi
20355 rm conftest.$ac_ext
20356 LIBS=$ac_func_search_save_LIBS
20357 fi
20358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20359 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
20360 ac_res=$ac_cv_search_gethostbyname
20361 if test "$ac_res" != no
20362 then :
20363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20364
20365 fi
20366
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20368 printf %s "checking for library containing socket... " >&6; }
20369 if test ${ac_cv_search_socket+y}
20370 then :
20371 printf %s "(cached) " >&6
20372 else $as_nop
20373 ac_func_search_save_LIBS=$LIBS
20374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20375 /* end confdefs.h. */
20376
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20380 char socket ();
20381 int
20382 main (void)
20383 {
20384 return socket ();
20385 ;
20386 return 0;
20387 }
20388 _ACEOF
20389 for ac_lib in '' socket
20390 do
20391 if test -z "$ac_lib"; then
20392 ac_res="none required"
20393 else
20394 ac_res=-l$ac_lib
20395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20396 fi
20397 if ac_fn_c_try_link "$LINENO"
20398 then :
20399 ac_cv_search_socket=$ac_res
20400 fi
20401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20402 conftest$ac_exeext
20403 if test ${ac_cv_search_socket+y}
20404 then :
20405 break
20406 fi
20407 done
20408 if test ${ac_cv_search_socket+y}
20409 then :
20410
20411 else $as_nop
20412 ac_cv_search_socket=no
20413 fi
20414 rm conftest.$ac_ext
20415 LIBS=$ac_func_search_save_LIBS
20416 fi
20417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20418 printf "%s\n" "$ac_cv_search_socket" >&6; }
20419 ac_res=$ac_cv_search_socket
20420 if test "$ac_res" != no
20421 then :
20422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20423
20424 else $as_nop
20425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
20426 printf %s "checking for socket in -lnsl... " >&6; }
20427 if test ${ac_cv_lib_nsl_socket+y}
20428 then :
20429 printf %s "(cached) " >&6
20430 else $as_nop
20431 ac_check_lib_save_LIBS=$LIBS
20432 LIBS="-lnsl -lsocket $LIBS"
20433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20434 /* end confdefs.h. */
20435
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439 char socket ();
20440 int
20441 main (void)
20442 {
20443 return socket ();
20444 ;
20445 return 0;
20446 }
20447 _ACEOF
20448 if ac_fn_c_try_link "$LINENO"
20449 then :
20450 ac_cv_lib_nsl_socket=yes
20451 else $as_nop
20452 ac_cv_lib_nsl_socket=no
20453 fi
20454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20455 conftest$ac_exeext conftest.$ac_ext
20456 LIBS=$ac_check_lib_save_LIBS
20457 fi
20458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
20459 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
20460 if test "x$ac_cv_lib_nsl_socket" = xyes
20461 then :
20462 LIBS="-lnsl -lsocket $LIBS"
20463 fi
20464
20465 fi
20466
20467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
20468 printf %s "checking for library containing crypt... " >&6; }
20469 if test ${ac_cv_search_crypt+y}
20470 then :
20471 printf %s "(cached) " >&6
20472 else $as_nop
20473 ac_func_search_save_LIBS=$LIBS
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20476
20477 /* Override any GCC internal prototype to avoid an error.
20478 Use char because int might match the return type of a GCC
20479 builtin and then its argument prototype would still apply. */
20480 char crypt ();
20481 int
20482 main (void)
20483 {
20484 return crypt ();
20485 ;
20486 return 0;
20487 }
20488 _ACEOF
20489 for ac_lib in '' crypt
20490 do
20491 if test -z "$ac_lib"; then
20492 ac_res="none required"
20493 else
20494 ac_res=-l$ac_lib
20495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20496 fi
20497 if ac_fn_c_try_link "$LINENO"
20498 then :
20499 ac_cv_search_crypt=$ac_res
20500 fi
20501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20502 conftest$ac_exeext
20503 if test ${ac_cv_search_crypt+y}
20504 then :
20505 break
20506 fi
20507 done
20508 if test ${ac_cv_search_crypt+y}
20509 then :
20510
20511 else $as_nop
20512 ac_cv_search_crypt=no
20513 fi
20514 rm conftest.$ac_ext
20515 LIBS=$ac_func_search_save_LIBS
20516 fi
20517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
20518 printf "%s\n" "$ac_cv_search_crypt" >&6; }
20519 ac_res=$ac_cv_search_crypt
20520 if test "$ac_res" != no
20521 then :
20522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20523
20524 fi
20525
20526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
20527 printf %s "checking for library containing roken_concat... " >&6; }
20528 if test ${ac_cv_search_roken_concat+y}
20529 then :
20530 printf %s "(cached) " >&6
20531 else $as_nop
20532 ac_func_search_save_LIBS=$LIBS
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h. */
20535
20536 /* Override any GCC internal prototype to avoid an error.
20537 Use char because int might match the return type of a GCC
20538 builtin and then its argument prototype would still apply. */
20539 char roken_concat ();
20540 int
20541 main (void)
20542 {
20543 return roken_concat ();
20544 ;
20545 return 0;
20546 }
20547 _ACEOF
20548 for ac_lib in '' roken
20549 do
20550 if test -z "$ac_lib"; then
20551 ac_res="none required"
20552 else
20553 ac_res=-l$ac_lib
20554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20555 fi
20556 if ac_fn_c_try_link "$LINENO"
20557 then :
20558 ac_cv_search_roken_concat=$ac_res
20559 fi
20560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20561 conftest$ac_exeext
20562 if test ${ac_cv_search_roken_concat+y}
20563 then :
20564 break
20565 fi
20566 done
20567 if test ${ac_cv_search_roken_concat+y}
20568 then :
20569
20570 else $as_nop
20571 ac_cv_search_roken_concat=no
20572 fi
20573 rm conftest.$ac_ext
20574 LIBS=$ac_func_search_save_LIBS
20575 fi
20576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
20577 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
20578 ac_res=$ac_cv_search_roken_concat
20579 if test "$ac_res" != no
20580 then :
20581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20582
20583 fi
20584
20585 rra_krb5_extra="$LIBS"
20586 LIBS="$rra_krb5_save_LIBS"
20587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
20588 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
20589 if test ${ac_cv_lib_krb5_krb5_init_context+y}
20590 then :
20591 printf %s "(cached) " >&6
20592 else $as_nop
20593 ac_check_lib_save_LIBS=$LIBS
20594 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20597
20598 /* Override any GCC internal prototype to avoid an error.
20599 Use char because int might match the return type of a GCC
20600 builtin and then its argument prototype would still apply. */
20601 char krb5_init_context ();
20602 int
20603 main (void)
20604 {
20605 return krb5_init_context ();
20606 ;
20607 return 0;
20608 }
20609 _ACEOF
20610 if ac_fn_c_try_link "$LINENO"
20611 then :
20612 ac_cv_lib_krb5_krb5_init_context=yes
20613 else $as_nop
20614 ac_cv_lib_krb5_krb5_init_context=no
20615 fi
20616 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20617 conftest$ac_exeext conftest.$ac_ext
20618 LIBS=$ac_check_lib_save_LIBS
20619 fi
20620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20621 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
20622 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
20623 then :
20624 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
20625 else $as_nop
20626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
20627 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
20628 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
20629 then :
20630 printf %s "(cached) " >&6
20631 else $as_nop
20632 ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
20634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20635 /* end confdefs.h. */
20636
20637 /* Override any GCC internal prototype to avoid an error.
20638 Use char because int might match the return type of a GCC
20639 builtin and then its argument prototype would still apply. */
20640 char krb5int_getspecific ();
20641 int
20642 main (void)
20643 {
20644 return krb5int_getspecific ();
20645 ;
20646 return 0;
20647 }
20648 _ACEOF
20649 if ac_fn_c_try_link "$LINENO"
20650 then :
20651 ac_cv_lib_krb5support_krb5int_getspecific=yes
20652 else $as_nop
20653 ac_cv_lib_krb5support_krb5int_getspecific=no
20654 fi
20655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20656 conftest$ac_exeext conftest.$ac_ext
20657 LIBS=$ac_check_lib_save_LIBS
20658 fi
20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
20660 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
20661 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
20662 then :
20663 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
20664 else $as_nop
20665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
20666 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
20667 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
20668 then :
20669 printf %s "(cached) " >&6
20670 else $as_nop
20671 ac_check_lib_save_LIBS=$LIBS
20672 LIBS="-lpthreads $LIBS"
20673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20674 /* end confdefs.h. */
20675
20676 /* Override any GCC internal prototype to avoid an error.
20677 Use char because int might match the return type of a GCC
20678 builtin and then its argument prototype would still apply. */
20679 char pthread_setspecific ();
20680 int
20681 main (void)
20682 {
20683 return pthread_setspecific ();
20684 ;
20685 return 0;
20686 }
20687 _ACEOF
20688 if ac_fn_c_try_link "$LINENO"
20689 then :
20690 ac_cv_lib_pthreads_pthread_setspecific=yes
20691 else $as_nop
20692 ac_cv_lib_pthreads_pthread_setspecific=no
20693 fi
20694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20695 conftest$ac_exeext conftest.$ac_ext
20696 LIBS=$ac_check_lib_save_LIBS
20697 fi
20698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
20699 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
20700 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
20701 then :
20702 rra_krb5_pthread="-lpthreads"
20703 else $as_nop
20704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
20705 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
20706 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
20707 then :
20708 printf %s "(cached) " >&6
20709 else $as_nop
20710 ac_check_lib_save_LIBS=$LIBS
20711 LIBS="-lpthread $LIBS"
20712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20713 /* end confdefs.h. */
20714
20715 /* Override any GCC internal prototype to avoid an error.
20716 Use char because int might match the return type of a GCC
20717 builtin and then its argument prototype would still apply. */
20718 char pthread_setspecific ();
20719 int
20720 main (void)
20721 {
20722 return pthread_setspecific ();
20723 ;
20724 return 0;
20725 }
20726 _ACEOF
20727 if ac_fn_c_try_link "$LINENO"
20728 then :
20729 ac_cv_lib_pthread_pthread_setspecific=yes
20730 else $as_nop
20731 ac_cv_lib_pthread_pthread_setspecific=no
20732 fi
20733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20734 conftest$ac_exeext conftest.$ac_ext
20735 LIBS=$ac_check_lib_save_LIBS
20736 fi
20737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
20738 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
20739 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
20740 then :
20741 rra_krb5_pthread="-lpthread"
20742 fi
20743
20744 fi
20745
20746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
20747 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
20748 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
20749 then :
20750 printf %s "(cached) " >&6
20751 else $as_nop
20752 ac_check_lib_save_LIBS=$LIBS
20753 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
20754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h. */
20756
20757 /* Override any GCC internal prototype to avoid an error.
20758 Use char because int might match the return type of a GCC
20759 builtin and then its argument prototype would still apply. */
20760 char krb5int_setspecific ();
20761 int
20762 main (void)
20763 {
20764 return krb5int_setspecific ();
20765 ;
20766 return 0;
20767 }
20768 _ACEOF
20769 if ac_fn_c_try_link "$LINENO"
20770 then :
20771 ac_cv_lib_krb5support_krb5int_setspecific=yes
20772 else $as_nop
20773 ac_cv_lib_krb5support_krb5int_setspecific=no
20774 fi
20775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20776 conftest$ac_exeext conftest.$ac_ext
20777 LIBS=$ac_check_lib_save_LIBS
20778 fi
20779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
20780 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
20781 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
20782 then :
20783 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
20784 fi
20785
20786 fi
20787
20788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
20789 printf %s "checking for error_message in -lcom_err... " >&6; }
20790 if test ${ac_cv_lib_com_err_error_message+y}
20791 then :
20792 printf %s "(cached) " >&6
20793 else $as_nop
20794 ac_check_lib_save_LIBS=$LIBS
20795 LIBS="-lcom_err $rra_krb5_extra $LIBS"
20796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797 /* end confdefs.h. */
20798
20799 /* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20802 char error_message ();
20803 int
20804 main (void)
20805 {
20806 return error_message ();
20807 ;
20808 return 0;
20809 }
20810 _ACEOF
20811 if ac_fn_c_try_link "$LINENO"
20812 then :
20813 ac_cv_lib_com_err_error_message=yes
20814 else $as_nop
20815 ac_cv_lib_com_err_error_message=no
20816 fi
20817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20818 conftest$ac_exeext conftest.$ac_ext
20819 LIBS=$ac_check_lib_save_LIBS
20820 fi
20821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
20822 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
20823 if test "x$ac_cv_lib_com_err_error_message" = xyes
20824 then :
20825 rra_krb5_extra="-lcom_err $rra_krb5_extra"
20826 fi
20827
20828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
20829 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
20830 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
20831 then :
20832 printf %s "(cached) " >&6
20833 else $as_nop
20834 ac_check_lib_save_LIBS=$LIBS
20835 LIBS="-lksvc $rra_krb5_extra $LIBS"
20836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h. */
20838
20839 /* Override any GCC internal prototype to avoid an error.
20840 Use char because int might match the return type of a GCC
20841 builtin and then its argument prototype would still apply. */
20842 char krb5_svc_get_msg ();
20843 int
20844 main (void)
20845 {
20846 return krb5_svc_get_msg ();
20847 ;
20848 return 0;
20849 }
20850 _ACEOF
20851 if ac_fn_c_try_link "$LINENO"
20852 then :
20853 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
20854 else $as_nop
20855 ac_cv_lib_ksvc_krb5_svc_get_msg=no
20856 fi
20857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20858 conftest$ac_exeext conftest.$ac_ext
20859 LIBS=$ac_check_lib_save_LIBS
20860 fi
20861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
20862 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
20863 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
20864 then :
20865 rra_krb5_extra="-lksvc $rra_krb5_extra"
20866 fi
20867
20868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
20869 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
20870 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
20871 then :
20872 printf %s "(cached) " >&6
20873 else $as_nop
20874 ac_check_lib_save_LIBS=$LIBS
20875 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
20876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h. */
20878
20879 /* Override any GCC internal prototype to avoid an error.
20880 Use char because int might match the return type of a GCC
20881 builtin and then its argument prototype would still apply. */
20882 char krb5int_hash_md5 ();
20883 int
20884 main (void)
20885 {
20886 return krb5int_hash_md5 ();
20887 ;
20888 return 0;
20889 }
20890 _ACEOF
20891 if ac_fn_c_try_link "$LINENO"
20892 then :
20893 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
20894 else $as_nop
20895 ac_cv_lib_k5crypto_krb5int_hash_md5=no
20896 fi
20897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20900 fi
20901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
20902 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
20903 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
20904 then :
20905 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
20906 fi
20907
20908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
20909 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
20910 if test ${ac_cv_lib_k5profile_profile_get_values+y}
20911 then :
20912 printf %s "(cached) " >&6
20913 else $as_nop
20914 ac_check_lib_save_LIBS=$LIBS
20915 LIBS="-lk5profile $rra_krb5_extra $LIBS"
20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20918
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20922 char profile_get_values ();
20923 int
20924 main (void)
20925 {
20926 return profile_get_values ();
20927 ;
20928 return 0;
20929 }
20930 _ACEOF
20931 if ac_fn_c_try_link "$LINENO"
20932 then :
20933 ac_cv_lib_k5profile_profile_get_values=yes
20934 else $as_nop
20935 ac_cv_lib_k5profile_profile_get_values=no
20936 fi
20937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20938 conftest$ac_exeext conftest.$ac_ext
20939 LIBS=$ac_check_lib_save_LIBS
20940 fi
20941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
20942 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
20943 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
20944 then :
20945 rra_krb5_extra="-lk5profile $rra_krb5_extra"
20946 fi
20947
20948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
20949 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
20950 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
20951 then :
20952 printf %s "(cached) " >&6
20953 else $as_nop
20954 ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
20956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20957 /* end confdefs.h. */
20958
20959 /* Override any GCC internal prototype to avoid an error.
20960 Use char because int might match the return type of a GCC
20961 builtin and then its argument prototype would still apply. */
20962 char krb5_cc_default ();
20963 int
20964 main (void)
20965 {
20966 return krb5_cc_default ();
20967 ;
20968 return 0;
20969 }
20970 _ACEOF
20971 if ac_fn_c_try_link "$LINENO"
20972 then :
20973 ac_cv_lib_krb5_krb5_cc_default=yes
20974 else $as_nop
20975 ac_cv_lib_krb5_krb5_cc_default=no
20976 fi
20977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20978 conftest$ac_exeext conftest.$ac_ext
20979 LIBS=$ac_check_lib_save_LIBS
20980 fi
20981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
20982 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
20983 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
20984 then :
20985 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
20986 else $as_nop
20987 if test x"true" = xtrue
20988 then :
20989 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
20990 fi
20991 fi
20992
20993 fi
20994
20995 LIBS="$KRB5_LIBS $LIBS"
20996
20997 for ac_func in krb5_get_error_message
20998 do :
20999 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
21000 if test "x$ac_cv_func_krb5_get_error_message" = xyes
21001 then :
21002 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
21003 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
21004 if test "x$ac_cv_func_krb5_free_error_message" = xyes
21005 then :
21006 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
21007
21008 fi
21009
21010 else $as_nop
21011
21012 for ac_func in krb5_get_error_string
21013 do :
21014 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
21015 if test "x$ac_cv_func_krb5_get_error_string" = xyes
21016 then :
21017 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
21018
21019 else $as_nop
21020
21021 for ac_func in krb5_get_err_txt
21022 do :
21023 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
21024 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
21025 then :
21026 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
21027
21028 else $as_nop
21029
21030 for ac_func in krb5_svc_get_msg
21031 do :
21032 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
21033 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
21034 then :
21035 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
21036 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
21037 #if HAVE_KRB5_H
21038 # include <krb5.h>
21039 #elif HAVE_KERBEROSV5_KRB5_H
21040 # include <kerberosv5/krb5.h>
21041 #else
21042 # include <krb5/krb5.h>
21043 #endif
21044
21045 "
21046 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
21047 then :
21048 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
21049
21050 fi
21051
21052 else $as_nop
21053 if test x"$rra_krb5_incroot" = x
21054 then :
21055 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
21056 if test "x$ac_cv_header_et_com_err_h" = xyes
21057 then :
21058 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
21059
21060 fi
21061 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
21062 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
21063 then :
21064 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
21065
21066 fi
21067
21068 else $as_nop
21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
21070 printf %s "checking for et/com_err.h... " >&6; }
21071 if test -f "${rra_krb5_incroot}/et/com_err.h"
21072 then :
21073
21074 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
21075
21076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21077 printf "%s\n" "yes" >&6; }
21078
21079 else $as_nop
21080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21081 printf "%s\n" "no" >&6; }
21082 fi
21083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
21084 printf %s "checking for kerberosv5/com_err.h... " >&6; }
21085 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
21086 then :
21087
21088 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
21089
21090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21091 printf "%s\n" "yes" >&6; }
21092
21093 else $as_nop
21094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21095 printf "%s\n" "no" >&6; }
21096 fi
21097 fi
21098 fi
21099
21100 done
21101 fi
21102
21103 done
21104 fi
21105
21106 done
21107 fi
21108
21109 done
21110 rra_krb5_found_header=
21111 if test x"$rra_krb5_incroot" = x
21112 then :
21113 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
21114 do :
21115 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
21116 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21117 if eval test \"x\$"$as_ac_Header"\" = x"yes"
21118 then :
21119 cat >>confdefs.h <<_ACEOF
21120 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
21121 _ACEOF
21122 rra_krb5_found_header=true
21123 fi
21124
21125 done
21126 else $as_nop
21127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
21128 printf %s "checking for krb5.h... " >&6; }
21129 if test -f "${rra_krb5_incroot}/krb5.h"
21130 then :
21131
21132 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
21133
21134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21135 printf "%s\n" "yes" >&6; }
21136 rra_krb5_found_header=true
21137 else $as_nop
21138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21139 printf "%s\n" "no" >&6; }
21140 fi
21141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
21142 printf %s "checking for kerberosv5/krb5.h... " >&6; }
21143 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
21144 then :
21145
21146 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
21147
21148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21149 printf "%s\n" "yes" >&6; }
21150 rra_krb5_found_header=true
21151 else $as_nop
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21153 printf "%s\n" "no" >&6; }
21154 fi
21155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
21156 printf %s "checking for krb5/krb5.h... " >&6; }
21157 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
21158 then :
21159
21160 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
21161
21162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21163 printf "%s\n" "yes" >&6; }
21164 rra_krb5_found_header=true
21165 else $as_nop
21166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21167 printf "%s\n" "no" >&6; }
21168 fi
21169 fi
21170 if test x"$rra_krb5_found_header" = xtrue
21171 then :
21172
21173 else $as_nop
21174 KRB5_CPPFLAGS=
21175 KRB5_LIBS=
21176 if test x"true" = xtrue
21177 then :
21178 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
21179 fi
21180 fi
21181 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
21182 LDFLAGS="$rra_krb5_save_LDFLAGS"
21183 LIBS="$rra_krb5_save_LIBS"
21184 fi
21185 fi
21186 rra_krb5_uses_com_err=false
21187 case $KRB5_LIBS in #(
21188 *-lcom_err*) :
21189 rra_krb5_uses_com_err=true ;; #(
21190 *) :
21191 ;;
21192 esac
21193 if test x"$rra_krb5_uses_com_err" = xtrue; then
21194 KRB5_USES_COM_ERR_TRUE=
21195 KRB5_USES_COM_ERR_FALSE='#'
21196 else
21197 KRB5_USES_COM_ERR_TRUE='#'
21198 KRB5_USES_COM_ERR_FALSE=
21199 fi
21200
21201 KRB5_CPPFLAGS_WARNINGS=`printf "%s\n" "$KRB5_CPPFLAGS" | sed 's/-I/-isystem /g'`
21202
21203 printf "%s\n" "#define HAVE_KRB5 1" >>confdefs.h
21204
21205 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
21206 rra_krb5_save_LDFLAGS="$LDFLAGS"
21207 rra_krb5_save_LIBS="$LIBS"
21208 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
21209 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
21210 LIBS="$KRB5_LIBS $LIBS"
21211 ac_fn_c_check_header_compile "$LINENO" "hx509_err.h" "ac_cv_header_hx509_err_h" "$ac_includes_default"
21212 if test "x$ac_cv_header_hx509_err_h" = xyes
21213 then :
21214 printf "%s\n" "#define HAVE_HX509_ERR_H 1" >>confdefs.h
21215
21216 fi
21217
21218 ac_fn_c_check_member "$LINENO" "krb5_creds" "session" "ac_cv_member_krb5_creds_session" "
21219 #if HAVE_KRB5_H
21220 # include <krb5.h>
21221 #elif HAVE_KERBEROSV5_KRB5_H
21222 # include <kerberosv5/krb5.h>
21223 #else
21224 # include <krb5/krb5.h>
21225 #endif
21226
21227 "
21228 if test "x$ac_cv_member_krb5_creds_session" = xyes
21229 then :
21230
21231 printf "%s\n" "#define HAVE_KRB5_HEIMDAL 1" >>confdefs.h
21232
21233 else $as_nop
21234
21235 printf "%s\n" "#define HAVE_KRB5_MIT 1" >>confdefs.h
21236
21237 fi
21238
21239 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
21240 #if HAVE_KRB5_H
21241 # include <krb5.h>
21242 #elif HAVE_KERBEROSV5_KRB5_H
21243 # include <kerberosv5/krb5.h>
21244 #else
21245 # include <krb5/krb5.h>
21246 #endif
21247
21248 "
21249 if test "x$ac_cv_type_krb5_realm" = xyes
21250 then :
21251
21252 printf "%s\n" "#define HAVE_KRB5_REALM 1" >>confdefs.h
21253
21254
21255 fi
21256
21257 ac_fn_c_check_func "$LINENO" "krb5_cc_get_full_name" "ac_cv_func_krb5_cc_get_full_name"
21258 if test "x$ac_cv_func_krb5_cc_get_full_name" = xyes
21259 then :
21260 printf "%s\n" "#define HAVE_KRB5_CC_GET_FULL_NAME 1" >>confdefs.h
21261
21262 fi
21263 ac_fn_c_check_func "$LINENO" "krb5_data_free" "ac_cv_func_krb5_data_free"
21264 if test "x$ac_cv_func_krb5_data_free" = xyes
21265 then :
21266 printf "%s\n" "#define HAVE_KRB5_DATA_FREE 1" >>confdefs.h
21267
21268 fi
21269 ac_fn_c_check_func "$LINENO" "krb5_free_default_realm" "ac_cv_func_krb5_free_default_realm"
21270 if test "x$ac_cv_func_krb5_free_default_realm" = xyes
21271 then :
21272 printf "%s\n" "#define HAVE_KRB5_FREE_DEFAULT_REALM 1" >>confdefs.h
21273
21274 fi
21275 ac_fn_c_check_func "$LINENO" "krb5_free_string" "ac_cv_func_krb5_free_string"
21276 if test "x$ac_cv_func_krb5_free_string" = xyes
21277 then :
21278 printf "%s\n" "#define HAVE_KRB5_FREE_STRING 1" >>confdefs.h
21279
21280 fi
21281 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
21282 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes
21283 then :
21284 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1" >>confdefs.h
21285
21286 fi
21287 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_anonymous" "ac_cv_func_krb5_get_init_creds_opt_set_anonymous"
21288 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_anonymous" = xyes
21289 then :
21290 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_ANONYMOUS 1" >>confdefs.h
21291
21292 fi
21293 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_change_password_prompt" "ac_cv_func_krb5_get_init_creds_opt_set_change_password_prompt"
21294 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_change_password_prompt" = xyes
21295 then :
21296 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_CHANGE_PASSWORD_PROMPT 1" >>confdefs.h
21297
21298 fi
21299 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_default_flags" "ac_cv_func_krb5_get_init_creds_opt_set_default_flags"
21300 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_default_flags" = xyes
21301 then :
21302 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_DEFAULT_FLAGS 1" >>confdefs.h
21303
21304 fi
21305 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_fast_ccache_name" "ac_cv_func_krb5_get_init_creds_opt_set_fast_ccache_name"
21306 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_fast_ccache_name" = xyes
21307 then :
21308 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_FAST_CCACHE_NAME 1" >>confdefs.h
21309
21310 fi
21311 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_out_ccache" "ac_cv_func_krb5_get_init_creds_opt_set_out_ccache"
21312 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_out_ccache" = xyes
21313 then :
21314 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_OUT_CCACHE 1" >>confdefs.h
21315
21316 fi
21317 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_pa" "ac_cv_func_krb5_get_init_creds_opt_set_pa"
21318 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_pa" = xyes
21319 then :
21320 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PA 1" >>confdefs.h
21321
21322 fi
21323 ac_fn_c_check_func "$LINENO" "krb5_get_prompt_types" "ac_cv_func_krb5_get_prompt_types"
21324 if test "x$ac_cv_func_krb5_get_prompt_types" = xyes
21325 then :
21326 printf "%s\n" "#define HAVE_KRB5_GET_PROMPT_TYPES 1" >>confdefs.h
21327
21328 fi
21329 ac_fn_c_check_func "$LINENO" "krb5_init_secure_context" "ac_cv_func_krb5_init_secure_context"
21330 if test "x$ac_cv_func_krb5_init_secure_context" = xyes
21331 then :
21332 printf "%s\n" "#define HAVE_KRB5_INIT_SECURE_CONTEXT 1" >>confdefs.h
21333
21334 fi
21335 ac_fn_c_check_func "$LINENO" "krb5_principal_get_realm" "ac_cv_func_krb5_principal_get_realm"
21336 if test "x$ac_cv_func_krb5_principal_get_realm" = xyes
21337 then :
21338 printf "%s\n" "#define HAVE_KRB5_PRINCIPAL_GET_REALM 1" >>confdefs.h
21339
21340 fi
21341 ac_fn_c_check_func "$LINENO" "krb5_principal_set_comp_string" "ac_cv_func_krb5_principal_set_comp_string"
21342 if test "x$ac_cv_func_krb5_principal_set_comp_string" = xyes
21343 then :
21344 printf "%s\n" "#define HAVE_KRB5_PRINCIPAL_SET_COMP_STRING 1" >>confdefs.h
21345
21346 fi
21347 ac_fn_c_check_func "$LINENO" "krb5_set_password" "ac_cv_func_krb5_set_password"
21348 if test "x$ac_cv_func_krb5_set_password" = xyes
21349 then :
21350 printf "%s\n" "#define HAVE_KRB5_SET_PASSWORD 1" >>confdefs.h
21351
21352 fi
21353 ac_fn_c_check_func "$LINENO" "krb5_set_trace_filename" "ac_cv_func_krb5_set_trace_filename"
21354 if test "x$ac_cv_func_krb5_set_trace_filename" = xyes
21355 then :
21356 printf "%s\n" "#define HAVE_KRB5_SET_TRACE_FILENAME 1" >>confdefs.h
21357
21358 fi
21359 ac_fn_c_check_func "$LINENO" "krb5_verify_init_creds_opt_init" "ac_cv_func_krb5_verify_init_creds_opt_init"
21360 if test "x$ac_cv_func_krb5_verify_init_creds_opt_init" = xyes
21361 then :
21362 printf "%s\n" "#define HAVE_KRB5_VERIFY_INIT_CREDS_OPT_INIT 1" >>confdefs.h
21363
21364 fi
21365 ac_fn_c_check_func "$LINENO" "krb5_xfree" "ac_cv_func_krb5_xfree"
21366 if test "x$ac_cv_func_krb5_xfree" = xyes
21367 then :
21368 printf "%s\n" "#define HAVE_KRB5_XFREE 1" >>confdefs.h
21369
21370 fi
21371
21372
21373 for ac_func in krb5_get_init_creds_opt_set_pkinit
21374 do :
21375 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_pkinit" "ac_cv_func_krb5_get_init_creds_opt_set_pkinit"
21376 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_pkinit" = xyes
21377 then :
21378 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PKINIT 1" >>confdefs.h
21379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_set_pkinit takes 9 arguments" >&5
21380 printf %s "checking if krb5_get_init_creds_opt_set_pkinit takes 9 arguments... " >&6; }
21381 if test ${rra_cv_func_krb5_get_init_creds_opt_set_pkinit_args+y}
21382 then :
21383 printf %s "(cached) " >&6
21384 else $as_nop
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21387
21388 #if HAVE_KRB5_H
21389 # include <krb5.h>
21390 #elif HAVE_KERBEROSV5_KRB5_H
21391 # include <kerberosv5/krb5.h>
21392 #else
21393 # include <krb5/krb5.h>
21394 #endif
21395
21396 int
21397 main(void)
21398 {
21399 krb5_context c;
21400 krb5_get_init_creds_opt *o;
21401 krb5_principal p;
21402
21403 krb5_get_init_creds_opt_set_pkinit(c, o, p, NULL, NULL, 0, NULL, NULL,
21404 NULL);
21405 }
21406
21407 _ACEOF
21408 if ac_fn_c_try_compile "$LINENO"
21409 then :
21410 rra_cv_func_krb5_get_init_creds_opt_set_pkinit_args=yes
21411 else $as_nop
21412 rra_cv_func_krb5_get_init_creds_opt_set_pkinit_args=no
21413 fi
21414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21415 fi
21416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_set_pkinit_args" >&5
21417 printf "%s\n" "$rra_cv_func_krb5_get_init_creds_opt_set_pkinit_args" >&6; }
21418 if test $rra_cv_func_krb5_get_init_creds_opt_set_pkinit_args = yes
21419 then :
21420
21421 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PKINIT_9_ARGS 1" >>confdefs.h
21422
21423 fi
21424 fi
21425
21426 done
21427
21428 for ac_func in krb5_get_init_creds_opt_free
21429 do :
21430 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
21431 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes
21432 then :
21433 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1" >>confdefs.h
21434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
21435 printf %s "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
21436 if test ${rra_cv_func_krb5_get_init_creds_opt_free_args+y}
21437 then :
21438 printf %s "(cached) " >&6
21439 else $as_nop
21440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21441 /* end confdefs.h. */
21442
21443 #if HAVE_KRB5_H
21444 # include <krb5.h>
21445 #elif HAVE_KERBEROSV5_KRB5_H
21446 # include <kerberosv5/krb5.h>
21447 #else
21448 # include <krb5/krb5.h>
21449 #endif
21450
21451 int
21452 main(void)
21453 {
21454 krb5_get_init_creds_opt *opts;
21455 krb5_context c;
21456 krb5_get_init_creds_opt_free(c, opts);
21457 }
21458
21459 _ACEOF
21460 if ac_fn_c_try_compile "$LINENO"
21461 then :
21462 rra_cv_func_krb5_get_init_creds_opt_free_args=yes
21463 else $as_nop
21464 rra_cv_func_krb5_get_init_creds_opt_free_args=no
21465 fi
21466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21467 fi
21468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
21469 printf "%s\n" "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
21470 if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes
21471 then :
21472
21473 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
21474
21475 fi
21476 fi
21477
21478 done
21479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
21480 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
21481 if test ${ac_cv_c_undeclared_builtin_options+y}
21482 then :
21483 printf %s "(cached) " >&6
21484 else $as_nop
21485 ac_save_CFLAGS=$CFLAGS
21486 ac_cv_c_undeclared_builtin_options='cannot detect'
21487 for ac_arg in '' -fno-builtin; do
21488 CFLAGS="$ac_save_CFLAGS $ac_arg"
21489 # This test program should *not* compile successfully.
21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h. */
21492
21493 int
21494 main (void)
21495 {
21496 (void) strchr;
21497 ;
21498 return 0;
21499 }
21500 _ACEOF
21501 if ac_fn_c_try_compile "$LINENO"
21502 then :
21503
21504 else $as_nop
21505 # This test program should compile successfully.
21506 # No library function is consistently available on
21507 # freestanding implementations, so test against a dummy
21508 # declaration. Include always-available headers on the
21509 # off chance that they somehow elicit warnings.
21510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511 /* end confdefs.h. */
21512 #include <float.h>
21513 #include <limits.h>
21514 #include <stdarg.h>
21515 #include <stddef.h>
21516 extern void ac_decl (int, char *);
21517
21518 int
21519 main (void)
21520 {
21521 (void) ac_decl (0, (char *) 0);
21522 (void) ac_decl;
21523
21524 ;
21525 return 0;
21526 }
21527 _ACEOF
21528 if ac_fn_c_try_compile "$LINENO"
21529 then :
21530 if test x"$ac_arg" = x
21531 then :
21532 ac_cv_c_undeclared_builtin_options='none needed'
21533 else $as_nop
21534 ac_cv_c_undeclared_builtin_options=$ac_arg
21535 fi
21536 break
21537 fi
21538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21539 fi
21540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21541 done
21542 CFLAGS=$ac_save_CFLAGS
21543
21544 fi
21545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
21546 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
21547 case $ac_cv_c_undeclared_builtin_options in #(
21548 'cannot detect') :
21549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21550 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21551 as_fn_error $? "cannot make $CC report undeclared builtins
21552 See \`config.log' for more details" "$LINENO" 5; } ;; #(
21553 'none needed') :
21554 ac_c_undeclared_builtin_options='' ;; #(
21555 *) :
21556 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
21557 esac
21558
21559 ac_fn_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "
21560 #if HAVE_KRB5_H
21561 # include <krb5.h>
21562 #elif HAVE_KERBEROSV5_KRB5_H
21563 # include <kerberosv5/krb5.h>
21564 #else
21565 # include <krb5/krb5.h>
21566 #endif
21567
21568 " "$ac_c_undeclared_builtin_options" "CFLAGS"
21569 if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes
21570 then :
21571 ac_have_decl=1
21572 else $as_nop
21573 ac_have_decl=0
21574 fi
21575 printf "%s\n" "#define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl" >>confdefs.h
21576
21577
21578 for ac_func in krb5_appdefault_string
21579 do :
21580 ac_fn_c_check_func "$LINENO" "krb5_appdefault_string" "ac_cv_func_krb5_appdefault_string"
21581 if test "x$ac_cv_func_krb5_appdefault_string" = xyes
21582 then :
21583 printf "%s\n" "#define HAVE_KRB5_APPDEFAULT_STRING 1" >>confdefs.h
21584
21585 else $as_nop
21586 ac_fn_c_check_func "$LINENO" "krb5_get_profile" "ac_cv_func_krb5_get_profile"
21587 if test "x$ac_cv_func_krb5_get_profile" = xyes
21588 then :
21589 printf "%s\n" "#define HAVE_KRB5_GET_PROFILE 1" >>confdefs.h
21590
21591 fi
21592
21593 ac_fn_c_check_header_compile "$LINENO" "k5profile.h" "ac_cv_header_k5profile_h" "$ac_includes_default"
21594 if test "x$ac_cv_header_k5profile_h" = xyes
21595 then :
21596 printf "%s\n" "#define HAVE_K5PROFILE_H 1" >>confdefs.h
21597
21598 fi
21599 ac_fn_c_check_header_compile "$LINENO" "profile.h" "ac_cv_header_profile_h" "$ac_includes_default"
21600 if test "x$ac_cv_header_profile_h" = xyes
21601 then :
21602 printf "%s\n" "#define HAVE_PROFILE_H 1" >>confdefs.h
21603
21604 fi
21605
21606 case " $LIBOBJS " in
21607 *" krb5-profile.$ac_objext "* ) ;;
21608 *) LIBOBJS="$LIBOBJS krb5-profile.$ac_objext"
21609 ;;
21610 esac
21611
21612 fi
21613
21614 done
21615 case " $LIBOBJS " in
21616 *" krb5-extra.$ac_objext "* ) ;;
21617 *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
21618 ;;
21619 esac
21620
21621 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
21622 LDFLAGS="$rra_krb5_save_LDFLAGS"
21623 LIBS="$rra_krb5_save_LIBS"
21624
21625 rra_KADM5CLNT_root=
21626 rra_KADM5CLNT_libdir=
21627 rra_KADM5CLNT_includedir=
21628 rra_use_KADM5CLNT=
21629 KADM5CLNT_CPPFLAGS=
21630 KADM5CLNT_LDFLAGS=
21631 KADM5CLNT_LIBS=
21632
21633
21634
21635
21636 # Check whether --with-kadm-client was given.
21637 if test ${with_kadm_client+y}
21638 then :
21639 withval=$with_kadm_client; if test x"$withval" = xno
21640 then :
21641 rra_use_KADM5CLNT=false
21642 else $as_nop
21643 if test x"$withval" != xyes
21644 then :
21645 rra_KADM5CLNT_root="$withval"
21646 fi
21647 rra_use_KADM5CLNT=true
21648 fi
21649 fi
21650
21651
21652 # Check whether --with-kadm-client-include was given.
21653 if test ${with_kadm_client_include+y}
21654 then :
21655 withval=$with_kadm_client_include; if test x"$withval" != xyes && test x"$withval" != xno
21656 then :
21657 rra_KADM5CLNT_includedir="$withval"
21658 fi
21659 fi
21660
21661
21662 # Check whether --with-kadm-client-lib was given.
21663 if test ${with_kadm_client_lib+y}
21664 then :
21665 withval=$with_kadm_client_lib; if test x"$withval" != xyes && test x"$withval" != xno
21666 then :
21667 rra_KADM5CLNT_libdir="$withval"
21668 fi
21669 fi
21670
21671 if test x"$rra_use_KADM5CLNT" != xfalse
21672 then :
21673 if test x"$rra_use_KADM5CLNT" = xtrue
21674 then :
21675
21676 if test x"$rra_reduced_depends" = xtrue
21677 then :
21678 if test x"$rra_KADM5CLNT_libdir" != x
21679 then :
21680 KADM5CLNT_LDFLAGS="-L$rra_KADM5CLNT_libdir"
21681 else $as_nop
21682 if test x"$rra_KADM5CLNT_root" != x
21683 then :
21684
21685 if test -d "${rra_KADM5CLNT_root}/$rra_lib_arch_name"
21686 then :
21687 if test x"" = x
21688 then :
21689 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}"
21690 else $as_nop
21691 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}/"
21692 fi
21693 else $as_nop
21694 if test x"" = x
21695 then :
21696 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib"
21697 else $as_nop
21698 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib/"
21699 fi
21700 fi
21701 KADM5CLNT_LDFLAGS=`printf "%s\n" "$KADM5CLNT_LDFLAGS" | sed -e 's/^ *//'`
21702 fi
21703 fi
21704 if test x"$rra_KADM5CLNT_includedir" != x
21705 then :
21706 KADM5CLNT_CPPFLAGS="-I$rra_KADM5CLNT_includedir"
21707 else $as_nop
21708 if test x"$rra_KADM5CLNT_root" != x
21709 then :
21710 if test x"$rra_KADM5CLNT_root" != x/usr
21711 then :
21712 KADM5CLNT_CPPFLAGS="-I${rra_KADM5CLNT_root}/include"
21713 fi
21714 fi
21715 fi
21716 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
21717 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
21718 rra_KADM5CLNT_save_LIBS="$LIBS"
21719 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
21720 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
21721 LIBS="$KADM5CLNT_LIBS $LIBS"
21722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5clnt" >&5
21723 printf %s "checking for kadm5_init_with_password in -lkadm5clnt... " >&6; }
21724 if test ${ac_cv_lib_kadm5clnt_kadm5_init_with_password+y}
21725 then :
21726 printf %s "(cached) " >&6
21727 else $as_nop
21728 ac_check_lib_save_LIBS=$LIBS
21729 LIBS="-lkadm5clnt $LIBS"
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h. */
21732
21733 /* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21736 char kadm5_init_with_password ();
21737 int
21738 main (void)
21739 {
21740 return kadm5_init_with_password ();
21741 ;
21742 return 0;
21743 }
21744 _ACEOF
21745 if ac_fn_c_try_link "$LINENO"
21746 then :
21747 ac_cv_lib_kadm5clnt_kadm5_init_with_password=yes
21748 else $as_nop
21749 ac_cv_lib_kadm5clnt_kadm5_init_with_password=no
21750 fi
21751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21752 conftest$ac_exeext conftest.$ac_ext
21753 LIBS=$ac_check_lib_save_LIBS
21754 fi
21755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&5
21756 printf "%s\n" "$ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&6; }
21757 if test "x$ac_cv_lib_kadm5clnt_kadm5_init_with_password" = xyes
21758 then :
21759 KADM5CLNT_LIBS=-lkadm5clnt
21760 else $as_nop
21761 if test x"true" = xtrue
21762 then :
21763 as_fn_error $? "cannot find usable kadmin client library" "$LINENO" 5
21764 fi
21765 fi
21766
21767 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
21768 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
21769 LIBS="$rra_KADM5CLNT_save_LIBS"
21770 else $as_nop
21771 if test x"$rra_KADM5CLNT_includedir" = x \
21772 && test x"$rra_KADM5CLNT_libdir" = x
21773 then :
21774 rra_krb5_config_KADM5CLNT=
21775 rra_krb5_config_KADM5CLNT_ok=
21776 if test x"${rra_KADM5CLNT_root}" != x && test -x "${rra_KADM5CLNT_root}/bin/krb5-config"
21777 then :
21778 rra_krb5_config_KADM5CLNT="${rra_KADM5CLNT_root}/bin/krb5-config"
21779 else $as_nop
21780
21781 # Extract the first word of "krb5-config", so it can be a program name with args.
21782 set dummy krb5-config; ac_word=$2
21783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21784 printf %s "checking for $ac_word... " >&6; }
21785 if test ${ac_cv_path_PATH_KRB5_CONFIG+y}
21786 then :
21787 printf %s "(cached) " >&6
21788 else $as_nop
21789 case $PATH_KRB5_CONFIG in
21790 [\\/]* | ?:[\\/]*)
21791 ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
21792 ;;
21793 *)
21794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21795 as_dummy="${PATH}:/usr/kerberos/bin"
21796 for as_dir in $as_dummy
21797 do
21798 IFS=$as_save_IFS
21799 case $as_dir in #(((
21800 '') as_dir=./ ;;
21801 */) ;;
21802 *) as_dir=$as_dir/ ;;
21803 esac
21804 for ac_exec_ext in '' $ac_executable_extensions; do
21805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21806 ac_cv_path_PATH_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
21807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21808 break 2
21809 fi
21810 done
21811 done
21812 IFS=$as_save_IFS
21813
21814 ;;
21815 esac
21816 fi
21817 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
21818 if test -n "$PATH_KRB5_CONFIG"; then
21819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
21820 printf "%s\n" "$PATH_KRB5_CONFIG" >&6; }
21821 else
21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21823 printf "%s\n" "no" >&6; }
21824 fi
21825
21826
21827 rra_krb5_config_KADM5CLNT="$PATH_KRB5_CONFIG"
21828 fi
21829 if test x"$rra_krb5_config_KADM5CLNT" != x && test -x "$rra_krb5_config_KADM5CLNT"
21830 then :
21831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm-client support in krb5-config" >&5
21832 printf %s "checking for kadm-client support in krb5-config... " >&6; }
21833 if test ${rra_cv_lib_KADM5CLNT_config+y}
21834 then :
21835 printf %s "(cached) " >&6
21836 else $as_nop
21837 if "$rra_krb5_config_KADM5CLNT" 2>&1 | grep kadm-client >/dev/null 2>&1
21838 then :
21839 rra_cv_lib_KADM5CLNT_config=yes
21840 else $as_nop
21841 rra_cv_lib_KADM5CLNT_config=no
21842 fi
21843 fi
21844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KADM5CLNT_config" >&5
21845 printf "%s\n" "$rra_cv_lib_KADM5CLNT_config" >&6; }
21846 if test "$rra_cv_lib_KADM5CLNT_config" = yes
21847 then :
21848 KADM5CLNT_CPPFLAGS=`"$rra_krb5_config_KADM5CLNT" --cflags kadm-client 2>/dev/null`
21849
21850
21851
21852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
21853 printf %s "checking for --deps support in krb5-config... " >&6; }
21854 if test ${rra_cv_krb5_config_deps+y}
21855 then :
21856 printf %s "(cached) " >&6
21857 else $as_nop
21858 if "$rra_krb5_config_KADM5CLNT" 2>&1 | grep deps >/dev/null 2>&1
21859 then :
21860 rra_cv_krb5_config_deps=yes
21861 else $as_nop
21862 rra_cv_krb5_config_deps=no
21863 fi
21864 fi
21865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
21866 printf "%s\n" "$rra_cv_krb5_config_deps" >&6; }
21867 if test x"$rra_reduced_depends" = xfalse \
21868 && test x"$rra_cv_krb5_config_deps" = xyes
21869 then :
21870 KADM5CLNT_LIBS=`"$rra_krb5_config_KADM5CLNT" --deps --libs kadm-client 2>/dev/null`
21871 else $as_nop
21872 KADM5CLNT_LIBS=`"$rra_krb5_config_KADM5CLNT" --libs kadm-client 2>/dev/null`
21873 fi
21874 rra_krb5_config_KADM5CLNT_ok=yes
21875 else $as_nop
21876 if test x"kadm-client" = xkrb5
21877 then :
21878 KADM5CLNT_CPPFLAGS=`"$rra_krb5_config_KADM5CLNT" --cflags 2>/dev/null`
21879 KADM5CLNT_LIBS=`"$rra_krb5_config_KADM5CLNT" --libs kadm-client 2>/dev/null`
21880 rra_krb5_config_KADM5CLNT_ok=yes
21881 fi
21882 fi
21883 fi
21884 if test x"$rra_krb5_config_KADM5CLNT_ok" = xyes
21885 then :
21886 KADM5CLNT_CPPFLAGS=`printf "%s\n" "$KADM5CLNT_CPPFLAGS" | sed 's%-I/usr/include %%'`
21887 KADM5CLNT_CPPFLAGS=`printf "%s\n" "$KADM5CLNT_CPPFLAGS" | sed 's%-I/usr/include$%%'`
21888 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
21889 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
21890 rra_KADM5CLNT_save_LIBS="$LIBS"
21891 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
21892 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
21893 LIBS="$KADM5CLNT_LIBS $LIBS"
21894 ac_fn_c_check_func "$LINENO" "kadm5_init_with_password" "ac_cv_func_kadm5_init_with_password"
21895 if test "x$ac_cv_func_kadm5_init_with_password" = xyes
21896 then :
21897
21898 else $as_nop
21899 if test x"true" = xtrue
21900 then :
21901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21903 as_fn_error $? "unable to link with kadmin client library
21904 See \`config.log' for more details" "$LINENO" 5; }
21905 fi
21906 KADM5CLNT_CPPFLAGS=
21907 KADM5CLNT_LDFLAGS=
21908 KADM5CLNT_LIBS=
21909 fi
21910
21911 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
21912 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
21913 LIBS="$rra_KADM5CLNT_save_LIBS"
21914 else $as_nop
21915 if test x"$rra_KADM5CLNT_libdir" != x
21916 then :
21917 KADM5CLNT_LDFLAGS="-L$rra_KADM5CLNT_libdir"
21918 else $as_nop
21919 if test x"$rra_KADM5CLNT_root" != x
21920 then :
21921
21922 if test -d "${rra_KADM5CLNT_root}/$rra_lib_arch_name"
21923 then :
21924 if test x"" = x
21925 then :
21926 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}"
21927 else $as_nop
21928 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}/"
21929 fi
21930 else $as_nop
21931 if test x"" = x
21932 then :
21933 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib"
21934 else $as_nop
21935 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib/"
21936 fi
21937 fi
21938 KADM5CLNT_LDFLAGS=`printf "%s\n" "$KADM5CLNT_LDFLAGS" | sed -e 's/^ *//'`
21939 fi
21940 fi
21941 if test x"$rra_KADM5CLNT_includedir" != x
21942 then :
21943 KADM5CLNT_CPPFLAGS="-I$rra_KADM5CLNT_includedir"
21944 else $as_nop
21945 if test x"$rra_KADM5CLNT_root" != x
21946 then :
21947 if test x"$rra_KADM5CLNT_root" != x/usr
21948 then :
21949 KADM5CLNT_CPPFLAGS="-I${rra_KADM5CLNT_root}/include"
21950 fi
21951 fi
21952 fi
21953 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
21954 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
21955 rra_KADM5CLNT_save_LIBS="$LIBS"
21956 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
21957 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
21958 LIBS="$KADM5CLNT_LIBS $LIBS"
21959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5clnt" >&5
21960 printf %s "checking for kadm5_init_with_password in -lkadm5clnt... " >&6; }
21961 if test ${ac_cv_lib_kadm5clnt_kadm5_init_with_password+y}
21962 then :
21963 printf %s "(cached) " >&6
21964 else $as_nop
21965 ac_check_lib_save_LIBS=$LIBS
21966 LIBS="-lkadm5clnt $LIBS"
21967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h. */
21969
21970 /* Override any GCC internal prototype to avoid an error.
21971 Use char because int might match the return type of a GCC
21972 builtin and then its argument prototype would still apply. */
21973 char kadm5_init_with_password ();
21974 int
21975 main (void)
21976 {
21977 return kadm5_init_with_password ();
21978 ;
21979 return 0;
21980 }
21981 _ACEOF
21982 if ac_fn_c_try_link "$LINENO"
21983 then :
21984 ac_cv_lib_kadm5clnt_kadm5_init_with_password=yes
21985 else $as_nop
21986 ac_cv_lib_kadm5clnt_kadm5_init_with_password=no
21987 fi
21988 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21989 conftest$ac_exeext conftest.$ac_ext
21990 LIBS=$ac_check_lib_save_LIBS
21991 fi
21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&5
21993 printf "%s\n" "$ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&6; }
21994 if test "x$ac_cv_lib_kadm5clnt_kadm5_init_with_password" = xyes
21995 then :
21996 KADM5CLNT_LIBS=-lkadm5clnt
21997 else $as_nop
21998 if test x"true" = xtrue
21999 then :
22000 as_fn_error $? "cannot find usable kadmin client library" "$LINENO" 5
22001 fi
22002 fi
22003
22004 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
22005 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
22006 LIBS="$rra_KADM5CLNT_save_LIBS"
22007 fi
22008 else $as_nop
22009 if test x"$rra_KADM5CLNT_libdir" != x
22010 then :
22011 KADM5CLNT_LDFLAGS="-L$rra_KADM5CLNT_libdir"
22012 else $as_nop
22013 if test x"$rra_KADM5CLNT_root" != x
22014 then :
22015
22016 if test -d "${rra_KADM5CLNT_root}/$rra_lib_arch_name"
22017 then :
22018 if test x"" = x
22019 then :
22020 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}"
22021 else $as_nop
22022 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}/"
22023 fi
22024 else $as_nop
22025 if test x"" = x
22026 then :
22027 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib"
22028 else $as_nop
22029 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib/"
22030 fi
22031 fi
22032 KADM5CLNT_LDFLAGS=`printf "%s\n" "$KADM5CLNT_LDFLAGS" | sed -e 's/^ *//'`
22033 fi
22034 fi
22035 if test x"$rra_KADM5CLNT_includedir" != x
22036 then :
22037 KADM5CLNT_CPPFLAGS="-I$rra_KADM5CLNT_includedir"
22038 else $as_nop
22039 if test x"$rra_KADM5CLNT_root" != x
22040 then :
22041 if test x"$rra_KADM5CLNT_root" != x/usr
22042 then :
22043 KADM5CLNT_CPPFLAGS="-I${rra_KADM5CLNT_root}/include"
22044 fi
22045 fi
22046 fi
22047 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
22048 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
22049 rra_KADM5CLNT_save_LIBS="$LIBS"
22050 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
22051 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
22052 LIBS="$KADM5CLNT_LIBS $LIBS"
22053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5clnt" >&5
22054 printf %s "checking for kadm5_init_with_password in -lkadm5clnt... " >&6; }
22055 if test ${ac_cv_lib_kadm5clnt_kadm5_init_with_password+y}
22056 then :
22057 printf %s "(cached) " >&6
22058 else $as_nop
22059 ac_check_lib_save_LIBS=$LIBS
22060 LIBS="-lkadm5clnt $LIBS"
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063
22064 /* Override any GCC internal prototype to avoid an error.
22065 Use char because int might match the return type of a GCC
22066 builtin and then its argument prototype would still apply. */
22067 char kadm5_init_with_password ();
22068 int
22069 main (void)
22070 {
22071 return kadm5_init_with_password ();
22072 ;
22073 return 0;
22074 }
22075 _ACEOF
22076 if ac_fn_c_try_link "$LINENO"
22077 then :
22078 ac_cv_lib_kadm5clnt_kadm5_init_with_password=yes
22079 else $as_nop
22080 ac_cv_lib_kadm5clnt_kadm5_init_with_password=no
22081 fi
22082 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22083 conftest$ac_exeext conftest.$ac_ext
22084 LIBS=$ac_check_lib_save_LIBS
22085 fi
22086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&5
22087 printf "%s\n" "$ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&6; }
22088 if test "x$ac_cv_lib_kadm5clnt_kadm5_init_with_password" = xyes
22089 then :
22090 KADM5CLNT_LIBS=-lkadm5clnt
22091 else $as_nop
22092 if test x"true" = xtrue
22093 then :
22094 as_fn_error $? "cannot find usable kadmin client library" "$LINENO" 5
22095 fi
22096 fi
22097
22098 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
22099 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
22100 LIBS="$rra_KADM5CLNT_save_LIBS"
22101 fi
22102 fi
22103 else $as_nop
22104
22105 if test x"$rra_reduced_depends" = xtrue
22106 then :
22107 if test x"$rra_KADM5CLNT_libdir" != x
22108 then :
22109 KADM5CLNT_LDFLAGS="-L$rra_KADM5CLNT_libdir"
22110 else $as_nop
22111 if test x"$rra_KADM5CLNT_root" != x
22112 then :
22113
22114 if test -d "${rra_KADM5CLNT_root}/$rra_lib_arch_name"
22115 then :
22116 if test x"" = x
22117 then :
22118 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}"
22119 else $as_nop
22120 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}/"
22121 fi
22122 else $as_nop
22123 if test x"" = x
22124 then :
22125 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib"
22126 else $as_nop
22127 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib/"
22128 fi
22129 fi
22130 KADM5CLNT_LDFLAGS=`printf "%s\n" "$KADM5CLNT_LDFLAGS" | sed -e 's/^ *//'`
22131 fi
22132 fi
22133 if test x"$rra_KADM5CLNT_includedir" != x
22134 then :
22135 KADM5CLNT_CPPFLAGS="-I$rra_KADM5CLNT_includedir"
22136 else $as_nop
22137 if test x"$rra_KADM5CLNT_root" != x
22138 then :
22139 if test x"$rra_KADM5CLNT_root" != x/usr
22140 then :
22141 KADM5CLNT_CPPFLAGS="-I${rra_KADM5CLNT_root}/include"
22142 fi
22143 fi
22144 fi
22145 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
22146 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
22147 rra_KADM5CLNT_save_LIBS="$LIBS"
22148 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
22149 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
22150 LIBS="$KADM5CLNT_LIBS $LIBS"
22151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5clnt" >&5
22152 printf %s "checking for kadm5_init_with_password in -lkadm5clnt... " >&6; }
22153 if test ${ac_cv_lib_kadm5clnt_kadm5_init_with_password+y}
22154 then :
22155 printf %s "(cached) " >&6
22156 else $as_nop
22157 ac_check_lib_save_LIBS=$LIBS
22158 LIBS="-lkadm5clnt $LIBS"
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22161
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22165 char kadm5_init_with_password ();
22166 int
22167 main (void)
22168 {
22169 return kadm5_init_with_password ();
22170 ;
22171 return 0;
22172 }
22173 _ACEOF
22174 if ac_fn_c_try_link "$LINENO"
22175 then :
22176 ac_cv_lib_kadm5clnt_kadm5_init_with_password=yes
22177 else $as_nop
22178 ac_cv_lib_kadm5clnt_kadm5_init_with_password=no
22179 fi
22180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22181 conftest$ac_exeext conftest.$ac_ext
22182 LIBS=$ac_check_lib_save_LIBS
22183 fi
22184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&5
22185 printf "%s\n" "$ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&6; }
22186 if test "x$ac_cv_lib_kadm5clnt_kadm5_init_with_password" = xyes
22187 then :
22188 KADM5CLNT_LIBS=-lkadm5clnt
22189 else $as_nop
22190 if test x"false" = xtrue
22191 then :
22192 as_fn_error $? "cannot find usable kadmin client library" "$LINENO" 5
22193 fi
22194 fi
22195
22196 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
22197 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
22198 LIBS="$rra_KADM5CLNT_save_LIBS"
22199 else $as_nop
22200 if test x"$rra_KADM5CLNT_includedir" = x \
22201 && test x"$rra_KADM5CLNT_libdir" = x
22202 then :
22203 rra_krb5_config_KADM5CLNT=
22204 rra_krb5_config_KADM5CLNT_ok=
22205 if test x"${rra_KADM5CLNT_root}" != x && test -x "${rra_KADM5CLNT_root}/bin/krb5-config"
22206 then :
22207 rra_krb5_config_KADM5CLNT="${rra_KADM5CLNT_root}/bin/krb5-config"
22208 else $as_nop
22209
22210 # Extract the first word of "krb5-config", so it can be a program name with args.
22211 set dummy krb5-config; ac_word=$2
22212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22213 printf %s "checking for $ac_word... " >&6; }
22214 if test ${ac_cv_path_PATH_KRB5_CONFIG+y}
22215 then :
22216 printf %s "(cached) " >&6
22217 else $as_nop
22218 case $PATH_KRB5_CONFIG in
22219 [\\/]* | ?:[\\/]*)
22220 ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
22221 ;;
22222 *)
22223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22224 as_dummy="${PATH}:/usr/kerberos/bin"
22225 for as_dir in $as_dummy
22226 do
22227 IFS=$as_save_IFS
22228 case $as_dir in #(((
22229 '') as_dir=./ ;;
22230 */) ;;
22231 *) as_dir=$as_dir/ ;;
22232 esac
22233 for ac_exec_ext in '' $ac_executable_extensions; do
22234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22235 ac_cv_path_PATH_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
22236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22237 break 2
22238 fi
22239 done
22240 done
22241 IFS=$as_save_IFS
22242
22243 ;;
22244 esac
22245 fi
22246 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
22247 if test -n "$PATH_KRB5_CONFIG"; then
22248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
22249 printf "%s\n" "$PATH_KRB5_CONFIG" >&6; }
22250 else
22251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22252 printf "%s\n" "no" >&6; }
22253 fi
22254
22255
22256 rra_krb5_config_KADM5CLNT="$PATH_KRB5_CONFIG"
22257 fi
22258 if test x"$rra_krb5_config_KADM5CLNT" != x && test -x "$rra_krb5_config_KADM5CLNT"
22259 then :
22260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm-client support in krb5-config" >&5
22261 printf %s "checking for kadm-client support in krb5-config... " >&6; }
22262 if test ${rra_cv_lib_KADM5CLNT_config+y}
22263 then :
22264 printf %s "(cached) " >&6
22265 else $as_nop
22266 if "$rra_krb5_config_KADM5CLNT" 2>&1 | grep kadm-client >/dev/null 2>&1
22267 then :
22268 rra_cv_lib_KADM5CLNT_config=yes
22269 else $as_nop
22270 rra_cv_lib_KADM5CLNT_config=no
22271 fi
22272 fi
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KADM5CLNT_config" >&5
22274 printf "%s\n" "$rra_cv_lib_KADM5CLNT_config" >&6; }
22275 if test "$rra_cv_lib_KADM5CLNT_config" = yes
22276 then :
22277 KADM5CLNT_CPPFLAGS=`"$rra_krb5_config_KADM5CLNT" --cflags kadm-client 2>/dev/null`
22278
22279
22280
22281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
22282 printf %s "checking for --deps support in krb5-config... " >&6; }
22283 if test ${rra_cv_krb5_config_deps+y}
22284 then :
22285 printf %s "(cached) " >&6
22286 else $as_nop
22287 if "$rra_krb5_config_KADM5CLNT" 2>&1 | grep deps >/dev/null 2>&1
22288 then :
22289 rra_cv_krb5_config_deps=yes
22290 else $as_nop
22291 rra_cv_krb5_config_deps=no
22292 fi
22293 fi
22294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
22295 printf "%s\n" "$rra_cv_krb5_config_deps" >&6; }
22296 if test x"$rra_reduced_depends" = xfalse \
22297 && test x"$rra_cv_krb5_config_deps" = xyes
22298 then :
22299 KADM5CLNT_LIBS=`"$rra_krb5_config_KADM5CLNT" --deps --libs kadm-client 2>/dev/null`
22300 else $as_nop
22301 KADM5CLNT_LIBS=`"$rra_krb5_config_KADM5CLNT" --libs kadm-client 2>/dev/null`
22302 fi
22303 rra_krb5_config_KADM5CLNT_ok=yes
22304 else $as_nop
22305 if test x"kadm-client" = xkrb5
22306 then :
22307 KADM5CLNT_CPPFLAGS=`"$rra_krb5_config_KADM5CLNT" --cflags 2>/dev/null`
22308 KADM5CLNT_LIBS=`"$rra_krb5_config_KADM5CLNT" --libs kadm-client 2>/dev/null`
22309 rra_krb5_config_KADM5CLNT_ok=yes
22310 fi
22311 fi
22312 fi
22313 if test x"$rra_krb5_config_KADM5CLNT_ok" = xyes
22314 then :
22315 KADM5CLNT_CPPFLAGS=`printf "%s\n" "$KADM5CLNT_CPPFLAGS" | sed 's%-I/usr/include %%'`
22316 KADM5CLNT_CPPFLAGS=`printf "%s\n" "$KADM5CLNT_CPPFLAGS" | sed 's%-I/usr/include$%%'`
22317 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
22318 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
22319 rra_KADM5CLNT_save_LIBS="$LIBS"
22320 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
22321 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
22322 LIBS="$KADM5CLNT_LIBS $LIBS"
22323 ac_fn_c_check_func "$LINENO" "kadm5_init_with_password" "ac_cv_func_kadm5_init_with_password"
22324 if test "x$ac_cv_func_kadm5_init_with_password" = xyes
22325 then :
22326
22327 else $as_nop
22328 if test x"false" = xtrue
22329 then :
22330 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22331 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22332 as_fn_error $? "unable to link with kadmin client library
22333 See \`config.log' for more details" "$LINENO" 5; }
22334 fi
22335 KADM5CLNT_CPPFLAGS=
22336 KADM5CLNT_LDFLAGS=
22337 KADM5CLNT_LIBS=
22338 fi
22339
22340 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
22341 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
22342 LIBS="$rra_KADM5CLNT_save_LIBS"
22343 else $as_nop
22344 if test x"$rra_KADM5CLNT_libdir" != x
22345 then :
22346 KADM5CLNT_LDFLAGS="-L$rra_KADM5CLNT_libdir"
22347 else $as_nop
22348 if test x"$rra_KADM5CLNT_root" != x
22349 then :
22350
22351 if test -d "${rra_KADM5CLNT_root}/$rra_lib_arch_name"
22352 then :
22353 if test x"" = x
22354 then :
22355 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}"
22356 else $as_nop
22357 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}/"
22358 fi
22359 else $as_nop
22360 if test x"" = x
22361 then :
22362 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib"
22363 else $as_nop
22364 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib/"
22365 fi
22366 fi
22367 KADM5CLNT_LDFLAGS=`printf "%s\n" "$KADM5CLNT_LDFLAGS" | sed -e 's/^ *//'`
22368 fi
22369 fi
22370 if test x"$rra_KADM5CLNT_includedir" != x
22371 then :
22372 KADM5CLNT_CPPFLAGS="-I$rra_KADM5CLNT_includedir"
22373 else $as_nop
22374 if test x"$rra_KADM5CLNT_root" != x
22375 then :
22376 if test x"$rra_KADM5CLNT_root" != x/usr
22377 then :
22378 KADM5CLNT_CPPFLAGS="-I${rra_KADM5CLNT_root}/include"
22379 fi
22380 fi
22381 fi
22382 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
22383 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
22384 rra_KADM5CLNT_save_LIBS="$LIBS"
22385 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
22386 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
22387 LIBS="$KADM5CLNT_LIBS $LIBS"
22388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5clnt" >&5
22389 printf %s "checking for kadm5_init_with_password in -lkadm5clnt... " >&6; }
22390 if test ${ac_cv_lib_kadm5clnt_kadm5_init_with_password+y}
22391 then :
22392 printf %s "(cached) " >&6
22393 else $as_nop
22394 ac_check_lib_save_LIBS=$LIBS
22395 LIBS="-lkadm5clnt $LIBS"
22396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h. */
22398
22399 /* Override any GCC internal prototype to avoid an error.
22400 Use char because int might match the return type of a GCC
22401 builtin and then its argument prototype would still apply. */
22402 char kadm5_init_with_password ();
22403 int
22404 main (void)
22405 {
22406 return kadm5_init_with_password ();
22407 ;
22408 return 0;
22409 }
22410 _ACEOF
22411 if ac_fn_c_try_link "$LINENO"
22412 then :
22413 ac_cv_lib_kadm5clnt_kadm5_init_with_password=yes
22414 else $as_nop
22415 ac_cv_lib_kadm5clnt_kadm5_init_with_password=no
22416 fi
22417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22418 conftest$ac_exeext conftest.$ac_ext
22419 LIBS=$ac_check_lib_save_LIBS
22420 fi
22421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&5
22422 printf "%s\n" "$ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&6; }
22423 if test "x$ac_cv_lib_kadm5clnt_kadm5_init_with_password" = xyes
22424 then :
22425 KADM5CLNT_LIBS=-lkadm5clnt
22426 else $as_nop
22427 if test x"false" = xtrue
22428 then :
22429 as_fn_error $? "cannot find usable kadmin client library" "$LINENO" 5
22430 fi
22431 fi
22432
22433 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
22434 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
22435 LIBS="$rra_KADM5CLNT_save_LIBS"
22436 fi
22437 else $as_nop
22438 if test x"$rra_KADM5CLNT_libdir" != x
22439 then :
22440 KADM5CLNT_LDFLAGS="-L$rra_KADM5CLNT_libdir"
22441 else $as_nop
22442 if test x"$rra_KADM5CLNT_root" != x
22443 then :
22444
22445 if test -d "${rra_KADM5CLNT_root}/$rra_lib_arch_name"
22446 then :
22447 if test x"" = x
22448 then :
22449 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}"
22450 else $as_nop
22451 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/${rra_lib_arch_name}/"
22452 fi
22453 else $as_nop
22454 if test x"" = x
22455 then :
22456 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib"
22457 else $as_nop
22458 KADM5CLNT_LDFLAGS="$KADM5CLNT_LDFLAGS -L${rra_KADM5CLNT_root}/lib/"
22459 fi
22460 fi
22461 KADM5CLNT_LDFLAGS=`printf "%s\n" "$KADM5CLNT_LDFLAGS" | sed -e 's/^ *//'`
22462 fi
22463 fi
22464 if test x"$rra_KADM5CLNT_includedir" != x
22465 then :
22466 KADM5CLNT_CPPFLAGS="-I$rra_KADM5CLNT_includedir"
22467 else $as_nop
22468 if test x"$rra_KADM5CLNT_root" != x
22469 then :
22470 if test x"$rra_KADM5CLNT_root" != x/usr
22471 then :
22472 KADM5CLNT_CPPFLAGS="-I${rra_KADM5CLNT_root}/include"
22473 fi
22474 fi
22475 fi
22476 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
22477 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
22478 rra_KADM5CLNT_save_LIBS="$LIBS"
22479 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
22480 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
22481 LIBS="$KADM5CLNT_LIBS $LIBS"
22482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kadm5_init_with_password in -lkadm5clnt" >&5
22483 printf %s "checking for kadm5_init_with_password in -lkadm5clnt... " >&6; }
22484 if test ${ac_cv_lib_kadm5clnt_kadm5_init_with_password+y}
22485 then :
22486 printf %s "(cached) " >&6
22487 else $as_nop
22488 ac_check_lib_save_LIBS=$LIBS
22489 LIBS="-lkadm5clnt $LIBS"
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22492
22493 /* Override any GCC internal prototype to avoid an error.
22494 Use char because int might match the return type of a GCC
22495 builtin and then its argument prototype would still apply. */
22496 char kadm5_init_with_password ();
22497 int
22498 main (void)
22499 {
22500 return kadm5_init_with_password ();
22501 ;
22502 return 0;
22503 }
22504 _ACEOF
22505 if ac_fn_c_try_link "$LINENO"
22506 then :
22507 ac_cv_lib_kadm5clnt_kadm5_init_with_password=yes
22508 else $as_nop
22509 ac_cv_lib_kadm5clnt_kadm5_init_with_password=no
22510 fi
22511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22512 conftest$ac_exeext conftest.$ac_ext
22513 LIBS=$ac_check_lib_save_LIBS
22514 fi
22515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&5
22516 printf "%s\n" "$ac_cv_lib_kadm5clnt_kadm5_init_with_password" >&6; }
22517 if test "x$ac_cv_lib_kadm5clnt_kadm5_init_with_password" = xyes
22518 then :
22519 KADM5CLNT_LIBS=-lkadm5clnt
22520 else $as_nop
22521 if test x"false" = xtrue
22522 then :
22523 as_fn_error $? "cannot find usable kadmin client library" "$LINENO" 5
22524 fi
22525 fi
22526
22527 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
22528 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
22529 LIBS="$rra_KADM5CLNT_save_LIBS"
22530 fi
22531 fi
22532 fi
22533 fi
22534 if test x"$KADM5CLNT_LIBS" != x
22535 then :
22536 rra_use_KADM5CLNT=true
22537
22538 printf "%s\n" "#define HAVE_KADM5CLNT 1" >>confdefs.h
22539
22540 fi
22541 rra_KADM5CLNT_save_CPPFLAGS="$CPPFLAGS"
22542 rra_KADM5CLNT_save_LDFLAGS="$LDFLAGS"
22543 rra_KADM5CLNT_save_LIBS="$LIBS"
22544 CPPFLAGS="$KADM5CLNT_CPPFLAGS $CPPFLAGS"
22545 LDFLAGS="$KADM5CLNT_LDFLAGS $LDFLAGS"
22546 LIBS="$KADM5CLNT_LIBS $LIBS"
22547 ac_fn_c_check_header_compile "$LINENO" "kadm5/kadm5_err.h" "ac_cv_header_kadm5_kadm5_err_h" "$ac_includes_default"
22548 if test "x$ac_cv_header_kadm5_kadm5_err_h" = xyes
22549 then :
22550 printf "%s\n" "#define HAVE_KADM5_KADM5_ERR_H 1" >>confdefs.h
22551
22552 fi
22553
22554 ac_fn_c_check_func "$LINENO" "kadm5_init_krb5_context" "ac_cv_func_kadm5_init_krb5_context"
22555 if test "x$ac_cv_func_kadm5_init_krb5_context" = xyes
22556 then :
22557 printf "%s\n" "#define HAVE_KADM5_INIT_KRB5_CONTEXT 1" >>confdefs.h
22558
22559 fi
22560 ac_fn_c_check_func "$LINENO" "kadm5_init_with_skey_ctx" "ac_cv_func_kadm5_init_with_skey_ctx"
22561 if test "x$ac_cv_func_kadm5_init_with_skey_ctx" = xyes
22562 then :
22563 printf "%s\n" "#define HAVE_KADM5_INIT_WITH_SKEY_CTX 1" >>confdefs.h
22564
22565 fi
22566
22567 CPPFLAGS="$rra_KADM5CLNT_save_CPPFLAGS"
22568 LDFLAGS="$rra_KADM5CLNT_save_LDFLAGS"
22569 LIBS="$rra_KADM5CLNT_save_LIBS"
22570
22571 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
22572 if test "x$ac_cv_header_regex_h" = xyes
22573 then :
22574 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
22575 if test "x$ac_cv_func_regcomp" = xyes
22576 then :
22577 printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
22578
22579 fi
22580
22581 fi
22582
22583
22584 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22585 if test "x$ac_cv_type__Bool" = xyes
22586 then :
22587
22588 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
22589
22590
22591 fi
22592
22593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22594 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
22595 if test ${ac_cv_header_stdbool_h+y}
22596 then :
22597 printf %s "(cached) " >&6
22598 else $as_nop
22599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h. */
22601 #include <stdbool.h>
22602
22603 #ifndef __bool_true_false_are_defined
22604 #error "__bool_true_false_are_defined is not defined"
22605 #endif
22606 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
22607
22608 /* Regardless of whether this is C++ or "_Bool" is a
22609 valid type name, "true" and "false" should be usable
22610 in #if expressions and integer constant expressions,
22611 and "bool" should be a valid type name. */
22612
22613 #if !true
22614 #error "'true' is not true"
22615 #endif
22616 #if true != 1
22617 #error "'true' is not equal to 1"
22618 #endif
22619 char b[true == 1 ? 1 : -1];
22620 char c[true];
22621
22622 #if false
22623 #error "'false' is not false"
22624 #endif
22625 #if false != 0
22626 #error "'false' is not equal to 0"
22627 #endif
22628 char d[false == 0 ? 1 : -1];
22629
22630 enum { e = false, f = true, g = false * true, h = true * 256 };
22631
22632 char i[(bool) 0.5 == true ? 1 : -1];
22633 char j[(bool) 0.0 == false ? 1 : -1];
22634 char k[sizeof (bool) > 0 ? 1 : -1];
22635
22636 struct sb { bool s: 1; bool t; } s;
22637 char l[sizeof s.t > 0 ? 1 : -1];
22638
22639 /* The following fails for
22640 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22641 bool m[h];
22642 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
22643 char o[-1 - (bool) 0 < 0 ? 1 : -1];
22644 /* Catch a bug in an HP-UX C compiler. See
22645 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22646 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22647 */
22648 bool p = true;
22649 bool *pp = &p;
22650
22651 /* C 1999 specifies that bool, true, and false are to be
22652 macros, but C++ 2011 and later overrule this. */
22653 #if __cplusplus < 201103
22654 #ifndef bool
22655 #error "bool is not defined"
22656 #endif
22657 #ifndef false
22658 #error "false is not defined"
22659 #endif
22660 #ifndef true
22661 #error "true is not defined"
22662 #endif
22663 #endif
22664
22665 /* If _Bool is available, repeat with it all the tests
22666 above that used bool. */
22667 #ifdef HAVE__BOOL
22668 struct sB { _Bool s: 1; _Bool t; } t;
22669
22670 char q[(_Bool) 0.5 == true ? 1 : -1];
22671 char r[(_Bool) 0.0 == false ? 1 : -1];
22672 char u[sizeof (_Bool) > 0 ? 1 : -1];
22673 char v[sizeof t.t > 0 ? 1 : -1];
22674
22675 _Bool w[h];
22676 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
22677 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
22678 _Bool z = true;
22679 _Bool *pz = &p;
22680 #endif
22681
22682 int
22683 main (void)
22684 {
22685
22686 bool ps = &s;
22687 *pp |= p;
22688 *pp |= ! p;
22689
22690 #ifdef HAVE__BOOL
22691 _Bool pt = &t;
22692 *pz |= z;
22693 *pz |= ! z;
22694 #endif
22695
22696 /* Refer to every declared value, so they cannot be
22697 discarded as unused. */
22698 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
22699 + !l + !m + !n + !o + !p + !pp + !ps
22700 #ifdef HAVE__BOOL
22701 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
22702 #endif
22703 );
22704
22705 ;
22706 return 0;
22707 }
22708 _ACEOF
22709 if ac_fn_c_try_compile "$LINENO"
22710 then :
22711 ac_cv_header_stdbool_h=yes
22712 else $as_nop
22713 ac_cv_header_stdbool_h=no
22714 fi
22715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22716 fi
22717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22718 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
22719
22720 if test $ac_cv_header_stdbool_h = yes; then
22721
22722 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
22723
22724 fi
22725
22726 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
22727 if test "x$ac_cv_header_strings_h" = xyes
22728 then :
22729 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
22730
22731 fi
22732 ac_fn_c_check_header_compile "$LINENO" "sys/bittypes.h" "ac_cv_header_sys_bittypes_h" "$ac_includes_default"
22733 if test "x$ac_cv_header_sys_bittypes_h" = xyes
22734 then :
22735 printf "%s\n" "#define HAVE_SYS_BITTYPES_H 1" >>confdefs.h
22736
22737 fi
22738 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
22739 if test "x$ac_cv_header_sys_select_h" = xyes
22740 then :
22741 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
22742
22743 fi
22744 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22745 if test "x$ac_cv_header_sys_time_h" = xyes
22746 then :
22747 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22748
22749 fi
22750
22751 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22752 if test "x$ac_cv_have_decl_reallocarray" = xyes
22753 then :
22754 ac_have_decl=1
22755 else $as_nop
22756 ac_have_decl=0
22757 fi
22758 printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
22759
22760
22761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22762 printf %s "checking for unsigned long long int... " >&6; }
22763 if test ${ac_cv_type_unsigned_long_long_int+y}
22764 then :
22765 printf %s "(cached) " >&6
22766 else $as_nop
22767 ac_cv_type_unsigned_long_long_int=yes
22768 case $ac_prog_cc_stdc in
22769 no | c89) ;;
22770 *)
22771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22772 /* end confdefs.h. */
22773
22774 /* For now, do not test the preprocessor; as of 2007 there are too many
22775 implementations with broken preprocessors. Perhaps this can
22776 be revisited in 2012. In the meantime, code should not expect
22777 #if to work with literals wider than 32 bits. */
22778 /* Test literals. */
22779 long long int ll = 9223372036854775807ll;
22780 long long int nll = -9223372036854775807LL;
22781 unsigned long long int ull = 18446744073709551615ULL;
22782 /* Test constant expressions. */
22783 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22784 ? 1 : -1)];
22785 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22786 ? 1 : -1)];
22787 int i = 63;
22788 int
22789 main (void)
22790 {
22791 /* Test availability of runtime routines for shift and division. */
22792 long long int llmax = 9223372036854775807ll;
22793 unsigned long long int ullmax = 18446744073709551615ull;
22794 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22795 | (llmax / ll) | (llmax % ll)
22796 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22797 | (ullmax / ull) | (ullmax % ull));
22798 ;
22799 return 0;
22800 }
22801
22802 _ACEOF
22803 if ac_fn_c_try_link "$LINENO"
22804 then :
22805
22806 else $as_nop
22807 ac_cv_type_unsigned_long_long_int=no
22808 fi
22809 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22810 conftest$ac_exeext conftest.$ac_ext;;
22811 esac
22812 fi
22813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22814 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
22815 if test $ac_cv_type_unsigned_long_long_int = yes; then
22816
22817 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22818
22819 fi
22820
22821
22822
22823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22824 printf %s "checking for long long int... " >&6; }
22825 if test ${ac_cv_type_long_long_int+y}
22826 then :
22827 printf %s "(cached) " >&6
22828 else $as_nop
22829 ac_cv_type_long_long_int=yes
22830 case $ac_prog_cc_stdc in
22831 no | c89) ;;
22832 *)
22833 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22834 if test $ac_cv_type_long_long_int = yes; then
22835 if test "$cross_compiling" = yes
22836 then :
22837 :
22838 else $as_nop
22839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h. */
22841 #include <limits.h>
22842 #ifndef LLONG_MAX
22843 # define HALF \
22844 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22845 # define LLONG_MAX (HALF - 1 + HALF)
22846 #endif
22847 int
22848 main (void)
22849 {
22850 long long int n = 1;
22851 int i;
22852 for (i = 0; ; i++)
22853 {
22854 long long int m = n << i;
22855 if (m >> i != n)
22856 return 1;
22857 if (LLONG_MAX / 2 < m)
22858 break;
22859 }
22860 return 0;
22861 ;
22862 return 0;
22863 }
22864 _ACEOF
22865 if ac_fn_c_try_run "$LINENO"
22866 then :
22867
22868 else $as_nop
22869 ac_cv_type_long_long_int=no
22870 fi
22871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22872 conftest.$ac_objext conftest.beam conftest.$ac_ext
22873 fi
22874
22875 fi;;
22876 esac
22877 fi
22878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22879 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
22880 if test $ac_cv_type_long_long_int = yes; then
22881
22882 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22883
22884 fi
22885
22886 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
22887 "
22888 if test "x$ac_cv_type_ssize_t" = xyes
22889 then :
22890
22891 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
22892
22893
22894 fi
22895
22896 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
22897 if test "x$ac_cv_func_explicit_bzero" = xyes
22898 then :
22899 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
22900
22901 fi
22902
22903 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
22904 if test "x$ac_cv_func_asprintf" = xyes
22905 then :
22906 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
22907
22908 else $as_nop
22909 case " $LIBOBJS " in
22910 *" asprintf.$ac_objext "* ) ;;
22911 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
22912 ;;
22913 esac
22914
22915 fi
22916 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
22917 if test "x$ac_cv_func_issetugid" = xyes
22918 then :
22919 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
22920
22921 else $as_nop
22922 case " $LIBOBJS " in
22923 *" issetugid.$ac_objext "* ) ;;
22924 *) LIBOBJS="$LIBOBJS issetugid.$ac_objext"
22925 ;;
22926 esac
22927
22928 fi
22929 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
22930 if test "x$ac_cv_func_mkstemp" = xyes
22931 then :
22932 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
22933
22934 else $as_nop
22935 case " $LIBOBJS " in
22936 *" mkstemp.$ac_objext "* ) ;;
22937 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
22938 ;;
22939 esac
22940
22941 fi
22942 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
22943 if test "x$ac_cv_func_reallocarray" = xyes
22944 then :
22945 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
22946
22947 else $as_nop
22948 case " $LIBOBJS " in
22949 *" reallocarray.$ac_objext "* ) ;;
22950 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
22951 ;;
22952 esac
22953
22954 fi
22955 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
22956 if test "x$ac_cv_func_strndup" = xyes
22957 then :
22958 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
22959
22960 else $as_nop
22961 case " $LIBOBJS " in
22962 *" strndup.$ac_objext "* ) ;;
22963 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
22964 ;;
22965 esac
22966
22967 fi
22968
22969
22970 case $host in #(
22971 *-hpux*) :
22972 if test x"$GCC" = x"yes"
22973 then :
22974 AM_LDFLAGS="-Wl,-Bsymbolic $AM_LDFLAGS"
22975 else $as_nop
22976 AM_LDFLAGS="-Wl,+vshlibunsats $AM_LDFLAGS"
22977 fi ;; #(
22978 *-linux*) :
22979 AM_LDFLAGS="-Wl,-z,defs -Wl,-Bsymbolic $AM_LDFLAGS" ;; #(
22980 *-solaris2*) :
22981 if test x"$GCC" = x"yes"
22982 then :
22983 AM_LDFLAGS="-Wl,-Bsymbolic $AM_LDFLAGS"
22984 else $as_nop
22985 AM_LDFLAGS="-Wl,-xldscope=symbolic $AM_LDFLAGS"
22986 fi ;; #(
22987 *) :
22988 ;;
22989 esac
22990
22991 ac_config_headers="$ac_config_headers config.h"
22992
22993 ac_config_files="$ac_config_files Makefile"
22994
22995 cat >confcache <<\_ACEOF
22996 # This file is a shell script that caches the results of configure
22997 # tests run on this system so they can be shared between configure
22998 # scripts and configure runs, see configure's option --config-cache.
22999 # It is not useful on other systems. If it contains results you don't
23000 # want to keep, you may remove or edit it.
23001 #
23002 # config.status only pays attention to the cache file if you give it
23003 # the --recheck option to rerun configure.
23004 #
23005 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23006 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23007 # following values.
23008
23009 _ACEOF
23010
23011 # The following way of writing the cache mishandles newlines in values,
23012 # but we know of no workaround that is simple, portable, and efficient.
23013 # So, we kill variables containing newlines.
23014 # Ultrix sh set writes to stderr and can't be redirected directly,
23015 # and sets the high bit in the cache file unless we assign to the vars.
23016 (
23017 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23018 eval ac_val=\$$ac_var
23019 case $ac_val in #(
23020 *${as_nl}*)
23021 case $ac_var in #(
23022 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23023 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23024 esac
23025 case $ac_var in #(
23026 _ | IFS | as_nl) ;; #(
23027 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23028 *) { eval $ac_var=; unset $ac_var;} ;;
23029 esac ;;
23030 esac
23031 done
23032
23033 (set) 2>&1 |
23034 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23035 *${as_nl}ac_space=\ *)
23036 # `set' does not quote correctly, so add quotes: double-quote
23037 # substitution turns \\\\ into \\, and sed turns \\ into \.
23038 sed -n \
23039 "s/'/'\\\\''/g;
23040 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23041 ;; #(
23042 *)
23043 # `set' quotes correctly as required by POSIX, so do not add quotes.
23044 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23045 ;;
23046 esac |
23047 sort
23048 ) |
23049 sed '
23050 /^ac_cv_env_/b end
23051 t clear
23052 :clear
23053 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23054 t end
23055 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23056 :end' >>confcache
23057 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23058 if test -w "$cache_file"; then
23059 if test "x$cache_file" != "x/dev/null"; then
23060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23061 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23062 if test ! -f "$cache_file" || test -h "$cache_file"; then
23063 cat confcache >"$cache_file"
23064 else
23065 case $cache_file in #(
23066 */* | ?:*)
23067 mv -f confcache "$cache_file"$$ &&
23068 mv -f "$cache_file"$$ "$cache_file" ;; #(
23069 *)
23070 mv -f confcache "$cache_file" ;;
23071 esac
23072 fi
23073 fi
23074 else
23075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23076 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23077 fi
23078 fi
23079 rm -f confcache
23080
23081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23082 # Let make expand exec_prefix.
23083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23084
23085 DEFS=-DHAVE_CONFIG_H
23086
23087 ac_libobjs=
23088 ac_ltlibobjs=
23089 U=
23090 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23091 # 1. Remove the extension, and $U if already installed.
23092 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23093 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23094 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23095 # will be set to the directory where LIBOBJS objects are built.
23096 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23097 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23098 done
23099 LIBOBJS=$ac_libobjs
23100
23101 LTLIBOBJS=$ac_ltlibobjs
23102
23103
23104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23105 printf %s "checking that generated files are newer than configure... " >&6; }
23106 if test -n "$am_sleep_pid"; then
23107 # Hide warnings about reused PIDs.
23108 wait $am_sleep_pid 2>/dev/null
23109 fi
23110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23111 printf "%s\n" "done" >&6; }
23112 if test -n "$EXEEXT"; then
23113 am__EXEEXT_TRUE=
23114 am__EXEEXT_FALSE='#'
23115 else
23116 am__EXEEXT_TRUE='#'
23117 am__EXEEXT_FALSE=
23118 fi
23119
23120 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23121 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23123 fi
23124 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23125 as_fn_error $? "conditional \"AMDEP\" was never defined.
23126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23127 fi
23128 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23129 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23131 fi
23132 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
23133 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
23134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23135 fi
23136 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
23137 as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
23138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23139 fi
23140
23141 : "${CONFIG_STATUS=./config.status}"
23142 ac_write_fail=0
23143 ac_clean_files_save=$ac_clean_files
23144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23146 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23147 as_write_fail=0
23148 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23149 #! $SHELL
23150 # Generated by $as_me.
23151 # Run this file to recreate the current configuration.
23152 # Compiler output produced by configure, useful for debugging
23153 # configure, is in config.log if it exists.
23154
23155 debug=false
23156 ac_cs_recheck=false
23157 ac_cs_silent=false
23158
23159 SHELL=\${CONFIG_SHELL-$SHELL}
23160 export SHELL
23161 _ASEOF
23162 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23163 ## -------------------- ##
23164 ## M4sh Initialization. ##
23165 ## -------------------- ##
23166
23167 # Be more Bourne compatible
23168 DUALCASE=1; export DUALCASE # for MKS sh
23169 as_nop=:
23170 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23171 then :
23172 emulate sh
23173 NULLCMD=:
23174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23175 # is contrary to our usage. Disable this feature.
23176 alias -g '${1+"$@"}'='"$@"'
23177 setopt NO_GLOB_SUBST
23178 else $as_nop
23179 case `(set -o) 2>/dev/null` in #(
23180 *posix*) :
23181 set -o posix ;; #(
23182 *) :
23183 ;;
23184 esac
23185 fi
23186
23187
23188
23189 # Reset variables that may have inherited troublesome values from
23190 # the environment.
23191
23192 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23193 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23194 # side effect of setting IFS to empty, thus disabling word splitting.)
23195 # Quoting is to prevent editors from complaining about space-tab.
23196 as_nl='
23197 '
23198 export as_nl
23199 IFS=" "" $as_nl"
23200
23201 PS1='$ '
23202 PS2='> '
23203 PS4='+ '
23204
23205 # Ensure predictable behavior from utilities with locale-dependent output.
23206 LC_ALL=C
23207 export LC_ALL
23208 LANGUAGE=C
23209 export LANGUAGE
23210
23211 # We cannot yet rely on "unset" to work, but we need these variables
23212 # to be unset--not just set to an empty or harmless value--now, to
23213 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23214 # also avoids known problems related to "unset" and subshell syntax
23215 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23216 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23217 do eval test \${$as_var+y} \
23218 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23219 done
23220
23221 # Ensure that fds 0, 1, and 2 are open.
23222 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23223 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23224 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23225
23226 # The user is always right.
23227 if ${PATH_SEPARATOR+false} :; then
23228 PATH_SEPARATOR=:
23229 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23230 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23231 PATH_SEPARATOR=';'
23232 }
23233 fi
23234
23235
23236 # Find who we are. Look in the path if we contain no directory separator.
23237 as_myself=
23238 case $0 in #((
23239 *[\\/]* ) as_myself=$0 ;;
23240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23241 for as_dir in $PATH
23242 do
23243 IFS=$as_save_IFS
23244 case $as_dir in #(((
23245 '') as_dir=./ ;;
23246 */) ;;
23247 *) as_dir=$as_dir/ ;;
23248 esac
23249 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23250 done
23251 IFS=$as_save_IFS
23252
23253 ;;
23254 esac
23255 # We did not find ourselves, most probably we were run as `sh COMMAND'
23256 # in which case we are not to be found in the path.
23257 if test "x$as_myself" = x; then
23258 as_myself=$0
23259 fi
23260 if test ! -f "$as_myself"; then
23261 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23262 exit 1
23263 fi
23264
23265
23266
23267 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23268 # ----------------------------------------
23269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23271 # script with STATUS, using 1 if that was 0.
23272 as_fn_error ()
23273 {
23274 as_status=$1; test $as_status -eq 0 && as_status=1
23275 if test "$4"; then
23276 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23278 fi
23279 printf "%s\n" "$as_me: error: $2" >&2
23280 as_fn_exit $as_status
23281 } # as_fn_error
23282
23283
23284
23285 # as_fn_set_status STATUS
23286 # -----------------------
23287 # Set $? to STATUS, without forking.
23288 as_fn_set_status ()
23289 {
23290 return $1
23291 } # as_fn_set_status
23292
23293 # as_fn_exit STATUS
23294 # -----------------
23295 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23296 as_fn_exit ()
23297 {
23298 set +e
23299 as_fn_set_status $1
23300 exit $1
23301 } # as_fn_exit
23302
23303 # as_fn_unset VAR
23304 # ---------------
23305 # Portably unset VAR.
23306 as_fn_unset ()
23307 {
23308 { eval $1=; unset $1;}
23309 }
23310 as_unset=as_fn_unset
23311
23312 # as_fn_append VAR VALUE
23313 # ----------------------
23314 # Append the text in VALUE to the end of the definition contained in VAR. Take
23315 # advantage of any shell optimizations that allow amortized linear growth over
23316 # repeated appends, instead of the typical quadratic growth present in naive
23317 # implementations.
23318 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23319 then :
23320 eval 'as_fn_append ()
23321 {
23322 eval $1+=\$2
23323 }'
23324 else $as_nop
23325 as_fn_append ()
23326 {
23327 eval $1=\$$1\$2
23328 }
23329 fi # as_fn_append
23330
23331 # as_fn_arith ARG...
23332 # ------------------
23333 # Perform arithmetic evaluation on the ARGs, and store the result in the
23334 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23335 # must be portable across $(()) and expr.
23336 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23337 then :
23338 eval 'as_fn_arith ()
23339 {
23340 as_val=$(( $* ))
23341 }'
23342 else $as_nop
23343 as_fn_arith ()
23344 {
23345 as_val=`expr "$@" || test $? -eq 1`
23346 }
23347 fi # as_fn_arith
23348
23349
23350 if expr a : '\(a\)' >/dev/null 2>&1 &&
23351 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23352 as_expr=expr
23353 else
23354 as_expr=false
23355 fi
23356
23357 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23358 as_basename=basename
23359 else
23360 as_basename=false
23361 fi
23362
23363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23364 as_dirname=dirname
23365 else
23366 as_dirname=false
23367 fi
23368
23369 as_me=`$as_basename -- "$0" ||
23370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23371 X"$0" : 'X\(//\)$' \| \
23372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23373 printf "%s\n" X/"$0" |
23374 sed '/^.*\/\([^/][^/]*\)\/*$/{
23375 s//\1/
23376 q
23377 }
23378 /^X\/\(\/\/\)$/{
23379 s//\1/
23380 q
23381 }
23382 /^X\/\(\/\).*/{
23383 s//\1/
23384 q
23385 }
23386 s/.*/./; q'`
23387
23388 # Avoid depending upon Character Ranges.
23389 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23390 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23391 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23392 as_cr_digits='0123456789'
23393 as_cr_alnum=$as_cr_Letters$as_cr_digits
23394
23395
23396 # Determine whether it's possible to make 'echo' print without a newline.
23397 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23398 # for compatibility with existing Makefiles.
23399 ECHO_C= ECHO_N= ECHO_T=
23400 case `echo -n x` in #(((((
23401 -n*)
23402 case `echo 'xy\c'` in
23403 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23404 xy) ECHO_C='\c';;
23405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23406 ECHO_T=' ';;
23407 esac;;
23408 *)
23409 ECHO_N='-n';;
23410 esac
23411
23412 # For backward compatibility with old third-party macros, we provide
23413 # the shell variables $as_echo and $as_echo_n. New code should use
23414 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23415 as_echo='printf %s\n'
23416 as_echo_n='printf %s'
23417
23418 rm -f conf$$ conf$$.exe conf$$.file
23419 if test -d conf$$.dir; then
23420 rm -f conf$$.dir/conf$$.file
23421 else
23422 rm -f conf$$.dir
23423 mkdir conf$$.dir 2>/dev/null
23424 fi
23425 if (echo >conf$$.file) 2>/dev/null; then
23426 if ln -s conf$$.file conf$$ 2>/dev/null; then
23427 as_ln_s='ln -s'
23428 # ... but there are two gotchas:
23429 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23430 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23431 # In both cases, we have to default to `cp -pR'.
23432 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23433 as_ln_s='cp -pR'
23434 elif ln conf$$.file conf$$ 2>/dev/null; then
23435 as_ln_s=ln
23436 else
23437 as_ln_s='cp -pR'
23438 fi
23439 else
23440 as_ln_s='cp -pR'
23441 fi
23442 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23443 rmdir conf$$.dir 2>/dev/null
23444
23445
23446 # as_fn_mkdir_p
23447 # -------------
23448 # Create "$as_dir" as a directory, including parents if necessary.
23449 as_fn_mkdir_p ()
23450 {
23451
23452 case $as_dir in #(
23453 -*) as_dir=./$as_dir;;
23454 esac
23455 test -d "$as_dir" || eval $as_mkdir_p || {
23456 as_dirs=
23457 while :; do
23458 case $as_dir in #(
23459 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23460 *) as_qdir=$as_dir;;
23461 esac
23462 as_dirs="'$as_qdir' $as_dirs"
23463 as_dir=`$as_dirname -- "$as_dir" ||
23464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23465 X"$as_dir" : 'X\(//\)[^/]' \| \
23466 X"$as_dir" : 'X\(//\)$' \| \
23467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23468 printf "%s\n" X"$as_dir" |
23469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23470 s//\1/
23471 q
23472 }
23473 /^X\(\/\/\)[^/].*/{
23474 s//\1/
23475 q
23476 }
23477 /^X\(\/\/\)$/{
23478 s//\1/
23479 q
23480 }
23481 /^X\(\/\).*/{
23482 s//\1/
23483 q
23484 }
23485 s/.*/./; q'`
23486 test -d "$as_dir" && break
23487 done
23488 test -z "$as_dirs" || eval "mkdir $as_dirs"
23489 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23490
23491
23492 } # as_fn_mkdir_p
23493 if mkdir -p . 2>/dev/null; then
23494 as_mkdir_p='mkdir -p "$as_dir"'
23495 else
23496 test -d ./-p && rmdir ./-p
23497 as_mkdir_p=false
23498 fi
23499
23500
23501 # as_fn_executable_p FILE
23502 # -----------------------
23503 # Test if FILE is an executable regular file.
23504 as_fn_executable_p ()
23505 {
23506 test -f "$1" && test -x "$1"
23507 } # as_fn_executable_p
23508 as_test_x='test -x'
23509 as_executable_p=as_fn_executable_p
23510
23511 # Sed expression to map a string onto a valid CPP name.
23512 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23513
23514 # Sed expression to map a string onto a valid variable name.
23515 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23516
23517
23518 exec 6>&1
23519 ## ----------------------------------- ##
23520 ## Main body of $CONFIG_STATUS script. ##
23521 ## ----------------------------------- ##
23522 _ASEOF
23523 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23524
23525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23526 # Save the log message, to keep $0 and so on meaningful, and to
23527 # report actual input values of CONFIG_FILES etc. instead of their
23528 # values after options handling.
23529 ac_log="
23530 This file was extended by pam-krb5 $as_me 4.11, which was
23531 generated by GNU Autoconf 2.71. Invocation command line was
23532
23533 CONFIG_FILES = $CONFIG_FILES
23534 CONFIG_HEADERS = $CONFIG_HEADERS
23535 CONFIG_LINKS = $CONFIG_LINKS
23536 CONFIG_COMMANDS = $CONFIG_COMMANDS
23537 $ $0 $@
23538
23539 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23540 "
23541
23542 _ACEOF
23543
23544 case $ac_config_files in *"
23545 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23546 esac
23547
23548 case $ac_config_headers in *"
23549 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23550 esac
23551
23552
23553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23554 # Files that config.status was made for.
23555 config_files="$ac_config_files"
23556 config_headers="$ac_config_headers"
23557 config_commands="$ac_config_commands"
23558
23559 _ACEOF
23560
23561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23562 ac_cs_usage="\
23563 \`$as_me' instantiates files and other configuration actions
23564 from templates according to the current configuration. Unless the files
23565 and actions are specified as TAGs, all are instantiated by default.
23566
23567 Usage: $0 [OPTION]... [TAG]...
23568
23569 -h, --help print this help, then exit
23570 -V, --version print version number and configuration settings, then exit
23571 --config print configuration, then exit
23572 -q, --quiet, --silent
23573 do not print progress messages
23574 -d, --debug don't remove temporary files
23575 --recheck update $as_me by reconfiguring in the same conditions
23576 --file=FILE[:TEMPLATE]
23577 instantiate the configuration file FILE
23578 --header=FILE[:TEMPLATE]
23579 instantiate the configuration header FILE
23580
23581 Configuration files:
23582 $config_files
23583
23584 Configuration headers:
23585 $config_headers
23586
23587 Configuration commands:
23588 $config_commands
23589
23590 Report bugs to <[email protected]>."
23591
23592 _ACEOF
23593 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23594 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23596 ac_cs_config='$ac_cs_config_escaped'
23597 ac_cs_version="\\
23598 pam-krb5 config.status 4.11
23599 configured by $0, generated by GNU Autoconf 2.71,
23600 with options \\"\$ac_cs_config\\"
23601
23602 Copyright (C) 2021 Free Software Foundation, Inc.
23603 This config.status script is free software; the Free Software Foundation
23604 gives unlimited permission to copy, distribute and modify it."
23605
23606 ac_pwd='$ac_pwd'
23607 srcdir='$srcdir'
23608 INSTALL='$INSTALL'
23609 MKDIR_P='$MKDIR_P'
23610 AWK='$AWK'
23611 test -n "\$AWK" || AWK=awk
23612 _ACEOF
23613
23614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23615 # The default lists apply if the user does not specify any file.
23616 ac_need_defaults=:
23617 while test $# != 0
23618 do
23619 case $1 in
23620 --*=?*)
23621 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23622 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23623 ac_shift=:
23624 ;;
23625 --*=)
23626 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23627 ac_optarg=
23628 ac_shift=:
23629 ;;
23630 *)
23631 ac_option=$1
23632 ac_optarg=$2
23633 ac_shift=shift
23634 ;;
23635 esac
23636
23637 case $ac_option in
23638 # Handling of the options.
23639 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23640 ac_cs_recheck=: ;;
23641 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23642 printf "%s\n" "$ac_cs_version"; exit ;;
23643 --config | --confi | --conf | --con | --co | --c )
23644 printf "%s\n" "$ac_cs_config"; exit ;;
23645 --debug | --debu | --deb | --de | --d | -d )
23646 debug=: ;;
23647 --file | --fil | --fi | --f )
23648 $ac_shift
23649 case $ac_optarg in
23650 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23651 '') as_fn_error $? "missing file argument" ;;
23652 esac
23653 as_fn_append CONFIG_FILES " '$ac_optarg'"
23654 ac_need_defaults=false;;
23655 --header | --heade | --head | --hea )
23656 $ac_shift
23657 case $ac_optarg in
23658 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23659 esac
23660 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23661 ac_need_defaults=false;;
23662 --he | --h)
23663 # Conflict between --help and --header
23664 as_fn_error $? "ambiguous option: \`$1'
23665 Try \`$0 --help' for more information.";;
23666 --help | --hel | -h )
23667 printf "%s\n" "$ac_cs_usage"; exit ;;
23668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23670 ac_cs_silent=: ;;
23671
23672 # This is an error.
23673 -*) as_fn_error $? "unrecognized option: \`$1'
23674 Try \`$0 --help' for more information." ;;
23675
23676 *) as_fn_append ac_config_targets " $1"
23677 ac_need_defaults=false ;;
23678
23679 esac
23680 shift
23681 done
23682
23683 ac_configure_extra_args=
23684
23685 if $ac_cs_silent; then
23686 exec 6>/dev/null
23687 ac_configure_extra_args="$ac_configure_extra_args --silent"
23688 fi
23689
23690 _ACEOF
23691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23692 if \$ac_cs_recheck; then
23693 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23694 shift
23695 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23696 CONFIG_SHELL='$SHELL'
23697 export CONFIG_SHELL
23698 exec "\$@"
23699 fi
23700
23701 _ACEOF
23702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23703 exec 5>>config.log
23704 {
23705 echo
23706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23707 ## Running $as_me. ##
23708 _ASBOX
23709 printf "%s\n" "$ac_log"
23710 } >&5
23711
23712 _ACEOF
23713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23714 #
23715 # INIT-COMMANDS
23716 #
23717 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23718
23719
23720 # The HP-UX ksh and POSIX shell print the target directory to stdout
23721 # if CDPATH is set.
23722 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23723
23724 sed_quote_subst='$sed_quote_subst'
23725 double_quote_subst='$double_quote_subst'
23726 delay_variable_subst='$delay_variable_subst'
23727 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23728 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23729 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23730 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23731 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23732 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23733 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23734 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23735 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23736 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23737 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23738 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23739 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23740 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23741 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23742 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23743 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23744 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23745 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23746 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23747 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23748 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23749 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23750 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23751 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23752 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23753 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23754 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23755 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23756 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23757 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23758 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23759 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23760 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23761 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23762 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23763 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23764 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23765 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23766 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23767 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23768 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23769 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23770 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23771 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23772 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23773 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23774 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23775 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23776 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23777 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23778 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23779 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23780 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23781 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23782 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23783 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23784 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23785 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"`'
23786 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23787 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23788 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23789 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23790 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23791 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23792 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23793 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23794 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23795 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23796 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23797 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23798 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23799 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23800 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23801 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23802 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23803 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23804 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23805 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23806 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23807 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23808 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23809 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23810 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23811 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23812 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23813 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23814 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23815 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23816 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23817 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23818 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23819 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23820 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23821 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23822 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23823 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23824 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23825 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23826 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23827 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23828 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23829 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23830 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23831 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23832 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23833 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23834 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23835 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23836 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23837 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23838 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23839 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23840 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23841 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23842 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23843 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23844 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23845 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23846 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23847 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23848 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23849 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23850 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23851 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23852 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23853 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23854 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23855 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23856 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23857 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23858 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23859 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23860 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23861 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23862
23863 LTCC='$LTCC'
23864 LTCFLAGS='$LTCFLAGS'
23865 compiler='$compiler_DEFAULT'
23866
23867 # A function that is used when there is no print builtin or printf.
23868 func_fallback_echo ()
23869 {
23870 eval 'cat <<_LTECHO_EOF
23871 \$1
23872 _LTECHO_EOF'
23873 }
23874
23875 # Quote evaled strings.
23876 for var in SHELL \
23877 ECHO \
23878 PATH_SEPARATOR \
23879 SED \
23880 GREP \
23881 EGREP \
23882 FGREP \
23883 LD \
23884 NM \
23885 LN_S \
23886 lt_SP2NL \
23887 lt_NL2SP \
23888 reload_flag \
23889 OBJDUMP \
23890 deplibs_check_method \
23891 file_magic_cmd \
23892 file_magic_glob \
23893 want_nocaseglob \
23894 DLLTOOL \
23895 sharedlib_from_linklib_cmd \
23896 AR \
23897 AR_FLAGS \
23898 archiver_list_spec \
23899 STRIP \
23900 RANLIB \
23901 CC \
23902 CFLAGS \
23903 compiler \
23904 lt_cv_sys_global_symbol_pipe \
23905 lt_cv_sys_global_symbol_to_cdecl \
23906 lt_cv_sys_global_symbol_to_import \
23907 lt_cv_sys_global_symbol_to_c_name_address \
23908 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23909 lt_cv_nm_interface \
23910 nm_file_list_spec \
23911 lt_cv_truncate_bin \
23912 lt_prog_compiler_no_builtin_flag \
23913 lt_prog_compiler_pic \
23914 lt_prog_compiler_wl \
23915 lt_prog_compiler_static \
23916 lt_cv_prog_compiler_c_o \
23917 need_locks \
23918 MANIFEST_TOOL \
23919 DSYMUTIL \
23920 NMEDIT \
23921 LIPO \
23922 OTOOL \
23923 OTOOL64 \
23924 shrext_cmds \
23925 export_dynamic_flag_spec \
23926 whole_archive_flag_spec \
23927 compiler_needs_object \
23928 with_gnu_ld \
23929 allow_undefined_flag \
23930 no_undefined_flag \
23931 hardcode_libdir_flag_spec \
23932 hardcode_libdir_separator \
23933 exclude_expsyms \
23934 include_expsyms \
23935 file_list_spec \
23936 variables_saved_for_relink \
23937 libname_spec \
23938 library_names_spec \
23939 soname_spec \
23940 install_override_mode \
23941 finish_eval \
23942 old_striplib \
23943 striplib; do
23944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23945 *[\\\\\\\`\\"\\\$]*)
23946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23947 ;;
23948 *)
23949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23950 ;;
23951 esac
23952 done
23953
23954 # Double-quote double-evaled strings.
23955 for var in reload_cmds \
23956 old_postinstall_cmds \
23957 old_postuninstall_cmds \
23958 old_archive_cmds \
23959 extract_expsyms_cmds \
23960 old_archive_from_new_cmds \
23961 old_archive_from_expsyms_cmds \
23962 archive_cmds \
23963 archive_expsym_cmds \
23964 module_cmds \
23965 module_expsym_cmds \
23966 export_symbols_cmds \
23967 prelink_cmds \
23968 postlink_cmds \
23969 postinstall_cmds \
23970 postuninstall_cmds \
23971 finish_cmds \
23972 sys_lib_search_path_spec \
23973 configure_time_dlsearch_path \
23974 configure_time_lt_sys_library_path; do
23975 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23976 *[\\\\\\\`\\"\\\$]*)
23977 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23978 ;;
23979 *)
23980 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23981 ;;
23982 esac
23983 done
23984
23985 ac_aux_dir='$ac_aux_dir'
23986
23987 # See if we are running on zsh, and set the options that allow our
23988 # commands through without removal of \ escapes INIT.
23989 if test -n "\${ZSH_VERSION+set}"; then
23990 setopt NO_GLOB_SUBST
23991 fi
23992
23993
23994 PACKAGE='$PACKAGE'
23995 VERSION='$VERSION'
23996 RM='$RM'
23997 ofile='$ofile'
23998
23999
24000
24001
24002 _ACEOF
24003
24004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24005
24006 # Handling of arguments.
24007 for ac_config_target in $ac_config_targets
24008 do
24009 case $ac_config_target in
24010 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24011 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24013 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24014
24015 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24016 esac
24017 done
24018
24019
24020 # If the user did not use the arguments to specify the items to instantiate,
24021 # then the envvar interface is used. Set only those that are not.
24022 # We use the long form for the default assignment because of an extremely
24023 # bizarre bug on SunOS 4.1.3.
24024 if $ac_need_defaults; then
24025 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24026 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24027 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24028 fi
24029
24030 # Have a temporary directory for convenience. Make it in the build tree
24031 # simply because there is no reason against having it here, and in addition,
24032 # creating and moving files from /tmp can sometimes cause problems.
24033 # Hook for its removal unless debugging.
24034 # Note that there is a small window in which the directory will not be cleaned:
24035 # after its creation but before its name has been assigned to `$tmp'.
24036 $debug ||
24037 {
24038 tmp= ac_tmp=
24039 trap 'exit_status=$?
24040 : "${ac_tmp:=$tmp}"
24041 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24042 ' 0
24043 trap 'as_fn_exit 1' 1 2 13 15
24044 }
24045 # Create a (secure) tmp directory for tmp files.
24046
24047 {
24048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24049 test -d "$tmp"
24050 } ||
24051 {
24052 tmp=./conf$$-$RANDOM
24053 (umask 077 && mkdir "$tmp")
24054 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24055 ac_tmp=$tmp
24056
24057 # Set up the scripts for CONFIG_FILES section.
24058 # No need to generate them if there are no CONFIG_FILES.
24059 # This happens for instance with `./config.status config.h'.
24060 if test -n "$CONFIG_FILES"; then
24061
24062
24063 ac_cr=`echo X | tr X '\015'`
24064 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24065 # But we know of no other shell where ac_cr would be empty at this
24066 # point, so we can use a bashism as a fallback.
24067 if test "x$ac_cr" = x; then
24068 eval ac_cr=\$\'\\r\'
24069 fi
24070 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24071 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24072 ac_cs_awk_cr='\\r'
24073 else
24074 ac_cs_awk_cr=$ac_cr
24075 fi
24076
24077 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24078 _ACEOF
24079
24080
24081 {
24082 echo "cat >conf$$subs.awk <<_ACEOF" &&
24083 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24084 echo "_ACEOF"
24085 } >conf$$subs.sh ||
24086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24087 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24088 ac_delim='%!_!# '
24089 for ac_last_try in false false false false false :; do
24090 . ./conf$$subs.sh ||
24091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24092
24093 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24094 if test $ac_delim_n = $ac_delim_num; then
24095 break
24096 elif $ac_last_try; then
24097 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24098 else
24099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24100 fi
24101 done
24102 rm -f conf$$subs.sh
24103
24104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24105 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24106 _ACEOF
24107 sed -n '
24108 h
24109 s/^/S["/; s/!.*/"]=/
24110 p
24111 g
24112 s/^[^!]*!//
24113 :repl
24114 t repl
24115 s/'"$ac_delim"'$//
24116 t delim
24117 :nl
24118 h
24119 s/\(.\{148\}\)..*/\1/
24120 t more1
24121 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24122 p
24123 n
24124 b repl
24125 :more1
24126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24127 p
24128 g
24129 s/.\{148\}//
24130 t nl
24131 :delim
24132 h
24133 s/\(.\{148\}\)..*/\1/
24134 t more2
24135 s/["\\]/\\&/g; s/^/"/; s/$/"/
24136 p
24137 b
24138 :more2
24139 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24140 p
24141 g
24142 s/.\{148\}//
24143 t delim
24144 ' <conf$$subs.awk | sed '
24145 /^[^""]/{
24146 N
24147 s/\n//
24148 }
24149 ' >>$CONFIG_STATUS || ac_write_fail=1
24150 rm -f conf$$subs.awk
24151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24152 _ACAWK
24153 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24154 for (key in S) S_is_set[key] = 1
24155 FS = ""
24156
24157 }
24158 {
24159 line = $ 0
24160 nfields = split(line, field, "@")
24161 substed = 0
24162 len = length(field[1])
24163 for (i = 2; i < nfields; i++) {
24164 key = field[i]
24165 keylen = length(key)
24166 if (S_is_set[key]) {
24167 value = S[key]
24168 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24169 len += length(value) + length(field[++i])
24170 substed = 1
24171 } else
24172 len += 1 + keylen
24173 }
24174
24175 print line
24176 }
24177
24178 _ACAWK
24179 _ACEOF
24180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24181 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24182 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24183 else
24184 cat
24185 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24186 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24187 _ACEOF
24188
24189 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24190 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24191 # trailing colons and then remove the whole line if VPATH becomes empty
24192 # (actually we leave an empty line to preserve line numbers).
24193 if test "x$srcdir" = x.; then
24194 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24195 h
24196 s///
24197 s/^/:/
24198 s/[ ]*$/:/
24199 s/:\$(srcdir):/:/g
24200 s/:\${srcdir}:/:/g
24201 s/:@srcdir@:/:/g
24202 s/^:*//
24203 s/:*$//
24204 x
24205 s/\(=[ ]*\).*/\1/
24206 G
24207 s/\n//
24208 s/^[^=]*=[ ]*$//
24209 }'
24210 fi
24211
24212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24213 fi # test -n "$CONFIG_FILES"
24214
24215 # Set up the scripts for CONFIG_HEADERS section.
24216 # No need to generate them if there are no CONFIG_HEADERS.
24217 # This happens for instance with `./config.status Makefile'.
24218 if test -n "$CONFIG_HEADERS"; then
24219 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24220 BEGIN {
24221 _ACEOF
24222
24223 # Transform confdefs.h into an awk script `defines.awk', embedded as
24224 # here-document in config.status, that substitutes the proper values into
24225 # config.h.in to produce config.h.
24226
24227 # Create a delimiter string that does not exist in confdefs.h, to ease
24228 # handling of long lines.
24229 ac_delim='%!_!# '
24230 for ac_last_try in false false :; do
24231 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24232 if test -z "$ac_tt"; then
24233 break
24234 elif $ac_last_try; then
24235 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24236 else
24237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24238 fi
24239 done
24240
24241 # For the awk script, D is an array of macro values keyed by name,
24242 # likewise P contains macro parameters if any. Preserve backslash
24243 # newline sequences.
24244
24245 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24246 sed -n '
24247 s/.\{148\}/&'"$ac_delim"'/g
24248 t rset
24249 :rset
24250 s/^[ ]*#[ ]*define[ ][ ]*/ /
24251 t def
24252 d
24253 :def
24254 s/\\$//
24255 t bsnl
24256 s/["\\]/\\&/g
24257 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24258 D["\1"]=" \3"/p
24259 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24260 d
24261 :bsnl
24262 s/["\\]/\\&/g
24263 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24264 D["\1"]=" \3\\\\\\n"\\/p
24265 t cont
24266 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24267 t cont
24268 d
24269 :cont
24270 n
24271 s/.\{148\}/&'"$ac_delim"'/g
24272 t clear
24273 :clear
24274 s/\\$//
24275 t bsnlc
24276 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24277 d
24278 :bsnlc
24279 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24280 b cont
24281 ' <confdefs.h | sed '
24282 s/'"$ac_delim"'/"\\\
24283 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24284
24285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24286 for (key in D) D_is_set[key] = 1
24287 FS = ""
24288 }
24289 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24290 line = \$ 0
24291 split(line, arg, " ")
24292 if (arg[1] == "#") {
24293 defundef = arg[2]
24294 mac1 = arg[3]
24295 } else {
24296 defundef = substr(arg[1], 2)
24297 mac1 = arg[2]
24298 }
24299 split(mac1, mac2, "(") #)
24300 macro = mac2[1]
24301 prefix = substr(line, 1, index(line, defundef) - 1)
24302 if (D_is_set[macro]) {
24303 # Preserve the white space surrounding the "#".
24304 print prefix "define", macro P[macro] D[macro]
24305 next
24306 } else {
24307 # Replace #undef with comments. This is necessary, for example,
24308 # in the case of _POSIX_SOURCE, which is predefined and required
24309 # on some systems where configure will not decide to define it.
24310 if (defundef == "undef") {
24311 print "/*", prefix defundef, macro, "*/"
24312 next
24313 }
24314 }
24315 }
24316 { print }
24317 _ACAWK
24318 _ACEOF
24319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24320 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24321 fi # test -n "$CONFIG_HEADERS"
24322
24323
24324 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24325 shift
24326 for ac_tag
24327 do
24328 case $ac_tag in
24329 :[FHLC]) ac_mode=$ac_tag; continue;;
24330 esac
24331 case $ac_mode$ac_tag in
24332 :[FHL]*:*);;
24333 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24334 :[FH]-) ac_tag=-:-;;
24335 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24336 esac
24337 ac_save_IFS=$IFS
24338 IFS=:
24339 set x $ac_tag
24340 IFS=$ac_save_IFS
24341 shift
24342 ac_file=$1
24343 shift
24344
24345 case $ac_mode in
24346 :L) ac_source=$1;;
24347 :[FH])
24348 ac_file_inputs=
24349 for ac_f
24350 do
24351 case $ac_f in
24352 -) ac_f="$ac_tmp/stdin";;
24353 *) # Look for the file first in the build tree, then in the source tree
24354 # (if the path is not absolute). The absolute path cannot be DOS-style,
24355 # because $ac_f cannot contain `:'.
24356 test -f "$ac_f" ||
24357 case $ac_f in
24358 [\\/$]*) false;;
24359 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24360 esac ||
24361 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24362 esac
24363 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24364 as_fn_append ac_file_inputs " '$ac_f'"
24365 done
24366
24367 # Let's still pretend it is `configure' which instantiates (i.e., don't
24368 # use $as_me), people would be surprised to read:
24369 # /* config.h. Generated by config.status. */
24370 configure_input='Generated from '`
24371 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24372 `' by configure.'
24373 if test x"$ac_file" != x-; then
24374 configure_input="$ac_file. $configure_input"
24375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24376 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24377 fi
24378 # Neutralize special characters interpreted by sed in replacement strings.
24379 case $configure_input in #(
24380 *\&* | *\|* | *\\* )
24381 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24382 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24383 *) ac_sed_conf_input=$configure_input;;
24384 esac
24385
24386 case $ac_tag in
24387 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24388 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24389 esac
24390 ;;
24391 esac
24392
24393 ac_dir=`$as_dirname -- "$ac_file" ||
24394 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24395 X"$ac_file" : 'X\(//\)[^/]' \| \
24396 X"$ac_file" : 'X\(//\)$' \| \
24397 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24398 printf "%s\n" X"$ac_file" |
24399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24400 s//\1/
24401 q
24402 }
24403 /^X\(\/\/\)[^/].*/{
24404 s//\1/
24405 q
24406 }
24407 /^X\(\/\/\)$/{
24408 s//\1/
24409 q
24410 }
24411 /^X\(\/\).*/{
24412 s//\1/
24413 q
24414 }
24415 s/.*/./; q'`
24416 as_dir="$ac_dir"; as_fn_mkdir_p
24417 ac_builddir=.
24418
24419 case "$ac_dir" in
24420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24421 *)
24422 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24423 # A ".." for each directory in $ac_dir_suffix.
24424 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24425 case $ac_top_builddir_sub in
24426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24428 esac ;;
24429 esac
24430 ac_abs_top_builddir=$ac_pwd
24431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24432 # for backward compatibility:
24433 ac_top_builddir=$ac_top_build_prefix
24434
24435 case $srcdir in
24436 .) # We are building in place.
24437 ac_srcdir=.
24438 ac_top_srcdir=$ac_top_builddir_sub
24439 ac_abs_top_srcdir=$ac_pwd ;;
24440 [\\/]* | ?:[\\/]* ) # Absolute name.
24441 ac_srcdir=$srcdir$ac_dir_suffix;
24442 ac_top_srcdir=$srcdir
24443 ac_abs_top_srcdir=$srcdir ;;
24444 *) # Relative name.
24445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24446 ac_top_srcdir=$ac_top_build_prefix$srcdir
24447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24448 esac
24449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24450
24451
24452 case $ac_mode in
24453 :F)
24454 #
24455 # CONFIG_FILE
24456 #
24457
24458 case $INSTALL in
24459 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24460 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24461 esac
24462 ac_MKDIR_P=$MKDIR_P
24463 case $MKDIR_P in
24464 [\\/$]* | ?:[\\/]* ) ;;
24465 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24466 esac
24467 _ACEOF
24468
24469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24470 # If the template does not know about datarootdir, expand it.
24471 # FIXME: This hack should be removed a few years after 2.60.
24472 ac_datarootdir_hack=; ac_datarootdir_seen=
24473 ac_sed_dataroot='
24474 /datarootdir/ {
24475 p
24476 q
24477 }
24478 /@datadir@/p
24479 /@docdir@/p
24480 /@infodir@/p
24481 /@localedir@/p
24482 /@mandir@/p'
24483 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24484 *datarootdir*) ac_datarootdir_seen=yes;;
24485 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24487 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24488 _ACEOF
24489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24490 ac_datarootdir_hack='
24491 s&@datadir@&$datadir&g
24492 s&@docdir@&$docdir&g
24493 s&@infodir@&$infodir&g
24494 s&@localedir@&$localedir&g
24495 s&@mandir@&$mandir&g
24496 s&\\\${datarootdir}&$datarootdir&g' ;;
24497 esac
24498 _ACEOF
24499
24500 # Neutralize VPATH when `$srcdir' = `.'.
24501 # Shell code in configure.ac might set extrasub.
24502 # FIXME: do we really want to maintain this feature?
24503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24504 ac_sed_extra="$ac_vpsub
24505 $extrasub
24506 _ACEOF
24507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24508 :t
24509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24510 s|@configure_input@|$ac_sed_conf_input|;t t
24511 s&@top_builddir@&$ac_top_builddir_sub&;t t
24512 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24513 s&@srcdir@&$ac_srcdir&;t t
24514 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24515 s&@top_srcdir@&$ac_top_srcdir&;t t
24516 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24517 s&@builddir@&$ac_builddir&;t t
24518 s&@abs_builddir@&$ac_abs_builddir&;t t
24519 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24520 s&@INSTALL@&$ac_INSTALL&;t t
24521 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24522 $ac_datarootdir_hack
24523 "
24524 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24525 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24526
24527 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24528 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24529 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24530 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24532 which seems to be undefined. Please make sure it is defined" >&5
24533 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24534 which seems to be undefined. Please make sure it is defined" >&2;}
24535
24536 rm -f "$ac_tmp/stdin"
24537 case $ac_file in
24538 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24539 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24540 esac \
24541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24542 ;;
24543 :H)
24544 #
24545 # CONFIG_HEADER
24546 #
24547 if test x"$ac_file" != x-; then
24548 {
24549 printf "%s\n" "/* $configure_input */" >&1 \
24550 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24551 } >"$ac_tmp/config.h" \
24552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24553 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24555 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24556 else
24557 rm -f "$ac_file"
24558 mv "$ac_tmp/config.h" "$ac_file" \
24559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24560 fi
24561 else
24562 printf "%s\n" "/* $configure_input */" >&1 \
24563 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24564 || as_fn_error $? "could not create -" "$LINENO" 5
24565 fi
24566 # Compute "$ac_file"'s index in $config_headers.
24567 _am_arg="$ac_file"
24568 _am_stamp_count=1
24569 for _am_header in $config_headers :; do
24570 case $_am_header in
24571 $_am_arg | $_am_arg:* )
24572 break ;;
24573 * )
24574 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24575 esac
24576 done
24577 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24578 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24579 X"$_am_arg" : 'X\(//\)[^/]' \| \
24580 X"$_am_arg" : 'X\(//\)$' \| \
24581 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24582 printf "%s\n" X"$_am_arg" |
24583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24584 s//\1/
24585 q
24586 }
24587 /^X\(\/\/\)[^/].*/{
24588 s//\1/
24589 q
24590 }
24591 /^X\(\/\/\)$/{
24592 s//\1/
24593 q
24594 }
24595 /^X\(\/\).*/{
24596 s//\1/
24597 q
24598 }
24599 s/.*/./; q'`/stamp-h$_am_stamp_count
24600 ;;
24601
24602 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24603 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24604 ;;
24605 esac
24606
24607
24608 case $ac_file$ac_mode in
24609 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24610 # Older Autoconf quotes --file arguments for eval, but not when files
24611 # are listed without --file. Let's play safe and only enable the eval
24612 # if we detect the quoting.
24613 # TODO: see whether this extra hack can be removed once we start
24614 # requiring Autoconf 2.70 or later.
24615 case $CONFIG_FILES in #(
24616 *\'*) :
24617 eval set x "$CONFIG_FILES" ;; #(
24618 *) :
24619 set x $CONFIG_FILES ;; #(
24620 *) :
24621 ;;
24622 esac
24623 shift
24624 # Used to flag and report bootstrapping failures.
24625 am_rc=0
24626 for am_mf
24627 do
24628 # Strip MF so we end up with the name of the file.
24629 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24630 # Check whether this is an Automake generated Makefile which includes
24631 # dependency-tracking related rules and includes.
24632 # Grep'ing the whole file directly is not great: AIX grep has a line
24633 # limit of 2048, but all sed's we know have understand at least 4000.
24634 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24635 || continue
24636 am_dirpart=`$as_dirname -- "$am_mf" ||
24637 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24638 X"$am_mf" : 'X\(//\)[^/]' \| \
24639 X"$am_mf" : 'X\(//\)$' \| \
24640 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24641 printf "%s\n" X"$am_mf" |
24642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24643 s//\1/
24644 q
24645 }
24646 /^X\(\/\/\)[^/].*/{
24647 s//\1/
24648 q
24649 }
24650 /^X\(\/\/\)$/{
24651 s//\1/
24652 q
24653 }
24654 /^X\(\/\).*/{
24655 s//\1/
24656 q
24657 }
24658 s/.*/./; q'`
24659 am_filepart=`$as_basename -- "$am_mf" ||
24660 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24661 X"$am_mf" : 'X\(//\)$' \| \
24662 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24663 printf "%s\n" X/"$am_mf" |
24664 sed '/^.*\/\([^/][^/]*\)\/*$/{
24665 s//\1/
24666 q
24667 }
24668 /^X\/\(\/\/\)$/{
24669 s//\1/
24670 q
24671 }
24672 /^X\/\(\/\).*/{
24673 s//\1/
24674 q
24675 }
24676 s/.*/./; q'`
24677 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24678 && sed -e '/# am--include-marker/d' "$am_filepart" \
24679 | $MAKE -f - am--depfiles" >&5
24680 (cd "$am_dirpart" \
24681 && sed -e '/# am--include-marker/d' "$am_filepart" \
24682 | $MAKE -f - am--depfiles) >&5 2>&5
24683 ac_status=$?
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } || am_rc=$?
24686 done
24687 if test $am_rc -ne 0; then
24688 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24689 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24690 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24691 for automatic dependency tracking. If GNU make was not used, consider
24692 re-running the configure script with MAKE=\"gmake\" (or whatever is
24693 necessary). You can also try re-running configure with the
24694 '--disable-dependency-tracking' option to at least be able to build
24695 the package (albeit without support for automatic dependency tracking).
24696 See \`config.log' for more details" "$LINENO" 5; }
24697 fi
24698 { am_dirpart=; unset am_dirpart;}
24699 { am_filepart=; unset am_filepart;}
24700 { am_mf=; unset am_mf;}
24701 { am_rc=; unset am_rc;}
24702 rm -f conftest-deps.mk
24703 }
24704 ;;
24705 "libtool":C)
24706
24707 # See if we are running on zsh, and set the options that allow our
24708 # commands through without removal of \ escapes.
24709 if test -n "${ZSH_VERSION+set}"; then
24710 setopt NO_GLOB_SUBST
24711 fi
24712
24713 cfgfile=${ofile}T
24714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24715 $RM "$cfgfile"
24716
24717 cat <<_LT_EOF >> "$cfgfile"
24718 #! $SHELL
24719 # Generated automatically by $as_me ($PACKAGE) $VERSION
24720 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24721
24722 # Provide generalized library-building support services.
24723 # Written by Gordon Matzigkeit, 1996
24724
24725 # Copyright (C) 2014 Free Software Foundation, Inc.
24726 # This is free software; see the source for copying conditions. There is NO
24727 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24728
24729 # GNU Libtool is free software; you can redistribute it and/or modify
24730 # it under the terms of the GNU General Public License as published by
24731 # the Free Software Foundation; either version 2 of of the License, or
24732 # (at your option) any later version.
24733 #
24734 # As a special exception to the GNU General Public License, if you
24735 # distribute this file as part of a program or library that is built
24736 # using GNU Libtool, you may include this file under the same
24737 # distribution terms that you use for the rest of that program.
24738 #
24739 # GNU Libtool is distributed in the hope that it will be useful, but
24740 # WITHOUT ANY WARRANTY; without even the implied warranty of
24741 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24742 # GNU General Public License for more details.
24743 #
24744 # You should have received a copy of the GNU General Public License
24745 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24746
24747
24748 # The names of the tagged configurations supported by this script.
24749 available_tags=''
24750
24751 # Configured defaults for sys_lib_dlsearch_path munging.
24752 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24753
24754 # ### BEGIN LIBTOOL CONFIG
24755
24756 # Which release of libtool.m4 was used?
24757 macro_version=$macro_version
24758 macro_revision=$macro_revision
24759
24760 # Whether or not to build static libraries.
24761 build_old_libs=$enable_static
24762
24763 # Whether or not to build shared libraries.
24764 build_libtool_libs=$enable_shared
24765
24766 # What type of objects to build.
24767 pic_mode=$pic_mode
24768
24769 # Whether or not to optimize for fast installation.
24770 fast_install=$enable_fast_install
24771
24772 # Shared archive member basename,for filename based shared library versioning on AIX.
24773 shared_archive_member_spec=$shared_archive_member_spec
24774
24775 # Shell to use when invoking shell scripts.
24776 SHELL=$lt_SHELL
24777
24778 # An echo program that protects backslashes.
24779 ECHO=$lt_ECHO
24780
24781 # The PATH separator for the build system.
24782 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24783
24784 # The host system.
24785 host_alias=$host_alias
24786 host=$host
24787 host_os=$host_os
24788
24789 # The build system.
24790 build_alias=$build_alias
24791 build=$build
24792 build_os=$build_os
24793
24794 # A sed program that does not truncate output.
24795 SED=$lt_SED
24796
24797 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24798 Xsed="\$SED -e 1s/^X//"
24799
24800 # A grep program that handles long lines.
24801 GREP=$lt_GREP
24802
24803 # An ERE matcher.
24804 EGREP=$lt_EGREP
24805
24806 # A literal string matcher.
24807 FGREP=$lt_FGREP
24808
24809 # A BSD- or MS-compatible name lister.
24810 NM=$lt_NM
24811
24812 # Whether we need soft or hard links.
24813 LN_S=$lt_LN_S
24814
24815 # What is the maximum length of a command?
24816 max_cmd_len=$max_cmd_len
24817
24818 # Object file suffix (normally "o").
24819 objext=$ac_objext
24820
24821 # Executable file suffix (normally "").
24822 exeext=$exeext
24823
24824 # whether the shell understands "unset".
24825 lt_unset=$lt_unset
24826
24827 # turn spaces into newlines.
24828 SP2NL=$lt_lt_SP2NL
24829
24830 # turn newlines into spaces.
24831 NL2SP=$lt_lt_NL2SP
24832
24833 # convert \$build file names to \$host format.
24834 to_host_file_cmd=$lt_cv_to_host_file_cmd
24835
24836 # convert \$build files to toolchain format.
24837 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24838
24839 # An object symbol dumper.
24840 OBJDUMP=$lt_OBJDUMP
24841
24842 # Method to check whether dependent libraries are shared objects.
24843 deplibs_check_method=$lt_deplibs_check_method
24844
24845 # Command to use when deplibs_check_method = "file_magic".
24846 file_magic_cmd=$lt_file_magic_cmd
24847
24848 # How to find potential files when deplibs_check_method = "file_magic".
24849 file_magic_glob=$lt_file_magic_glob
24850
24851 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24852 want_nocaseglob=$lt_want_nocaseglob
24853
24854 # DLL creation program.
24855 DLLTOOL=$lt_DLLTOOL
24856
24857 # Command to associate shared and link libraries.
24858 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24859
24860 # The archiver.
24861 AR=$lt_AR
24862
24863 # Flags to create an archive.
24864 AR_FLAGS=$lt_AR_FLAGS
24865
24866 # How to feed a file listing to the archiver.
24867 archiver_list_spec=$lt_archiver_list_spec
24868
24869 # A symbol stripping program.
24870 STRIP=$lt_STRIP
24871
24872 # Commands used to install an old-style archive.
24873 RANLIB=$lt_RANLIB
24874 old_postinstall_cmds=$lt_old_postinstall_cmds
24875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24876
24877 # Whether to use a lock for old archive extraction.
24878 lock_old_archive_extraction=$lock_old_archive_extraction
24879
24880 # A C compiler.
24881 LTCC=$lt_CC
24882
24883 # LTCC compiler flags.
24884 LTCFLAGS=$lt_CFLAGS
24885
24886 # Take the output of nm and produce a listing of raw symbols and C names.
24887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24888
24889 # Transform the output of nm in a proper C declaration.
24890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24891
24892 # Transform the output of nm into a list of symbols to manually relocate.
24893 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24894
24895 # Transform the output of nm in a C name address pair.
24896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24897
24898 # Transform the output of nm in a C name address pair when lib prefix is needed.
24899 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24900
24901 # The name lister interface.
24902 nm_interface=$lt_lt_cv_nm_interface
24903
24904 # Specify filename containing input files for \$NM.
24905 nm_file_list_spec=$lt_nm_file_list_spec
24906
24907 # The root where to search for dependent libraries,and where our libraries should be installed.
24908 lt_sysroot=$lt_sysroot
24909
24910 # Command to truncate a binary pipe.
24911 lt_truncate_bin=$lt_lt_cv_truncate_bin
24912
24913 # The name of the directory that contains temporary libtool files.
24914 objdir=$objdir
24915
24916 # Used to examine libraries when file_magic_cmd begins with "file".
24917 MAGIC_CMD=$MAGIC_CMD
24918
24919 # Must we lock files when doing compilation?
24920 need_locks=$lt_need_locks
24921
24922 # Manifest tool.
24923 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24924
24925 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24926 DSYMUTIL=$lt_DSYMUTIL
24927
24928 # Tool to change global to local symbols on Mac OS X.
24929 NMEDIT=$lt_NMEDIT
24930
24931 # Tool to manipulate fat objects and archives on Mac OS X.
24932 LIPO=$lt_LIPO
24933
24934 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24935 OTOOL=$lt_OTOOL
24936
24937 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24938 OTOOL64=$lt_OTOOL64
24939
24940 # Old archive suffix (normally "a").
24941 libext=$libext
24942
24943 # Shared library suffix (normally ".so").
24944 shrext_cmds=$lt_shrext_cmds
24945
24946 # The commands to extract the exported symbol list from a shared archive.
24947 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24948
24949 # Variables whose values should be saved in libtool wrapper scripts and
24950 # restored at link time.
24951 variables_saved_for_relink=$lt_variables_saved_for_relink
24952
24953 # Do we need the "lib" prefix for modules?
24954 need_lib_prefix=$need_lib_prefix
24955
24956 # Do we need a version for libraries?
24957 need_version=$need_version
24958
24959 # Library versioning type.
24960 version_type=$version_type
24961
24962 # Shared library runtime path variable.
24963 runpath_var=$runpath_var
24964
24965 # Shared library path variable.
24966 shlibpath_var=$shlibpath_var
24967
24968 # Is shlibpath searched before the hard-coded library search path?
24969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24970
24971 # Format of library name prefix.
24972 libname_spec=$lt_libname_spec
24973
24974 # List of archive names. First name is the real one, the rest are links.
24975 # The last name is the one that the linker finds with -lNAME
24976 library_names_spec=$lt_library_names_spec
24977
24978 # The coded name of the library, if different from the real name.
24979 soname_spec=$lt_soname_spec
24980
24981 # Permission mode override for installation of shared libraries.
24982 install_override_mode=$lt_install_override_mode
24983
24984 # Command to use after installation of a shared archive.
24985 postinstall_cmds=$lt_postinstall_cmds
24986
24987 # Command to use after uninstallation of a shared archive.
24988 postuninstall_cmds=$lt_postuninstall_cmds
24989
24990 # Commands used to finish a libtool library installation in a directory.
24991 finish_cmds=$lt_finish_cmds
24992
24993 # As "finish_cmds", except a single script fragment to be evaled but
24994 # not shown.
24995 finish_eval=$lt_finish_eval
24996
24997 # Whether we should hardcode library paths into libraries.
24998 hardcode_into_libs=$hardcode_into_libs
24999
25000 # Compile-time system search path for libraries.
25001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25002
25003 # Detected run-time system search path for libraries.
25004 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25005
25006 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25007 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25008
25009 # Whether dlopen is supported.
25010 dlopen_support=$enable_dlopen
25011
25012 # Whether dlopen of programs is supported.
25013 dlopen_self=$enable_dlopen_self
25014
25015 # Whether dlopen of statically linked programs is supported.
25016 dlopen_self_static=$enable_dlopen_self_static
25017
25018 # Commands to strip libraries.
25019 old_striplib=$lt_old_striplib
25020 striplib=$lt_striplib
25021
25022
25023 # The linker used to build libraries.
25024 LD=$lt_LD
25025
25026 # How to create reloadable object files.
25027 reload_flag=$lt_reload_flag
25028 reload_cmds=$lt_reload_cmds
25029
25030 # Commands used to build an old-style archive.
25031 old_archive_cmds=$lt_old_archive_cmds
25032
25033 # A language specific compiler.
25034 CC=$lt_compiler
25035
25036 # Is the compiler the GNU compiler?
25037 with_gcc=$GCC
25038
25039 # Compiler flag to turn off builtin functions.
25040 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25041
25042 # Additional compiler flags for building library objects.
25043 pic_flag=$lt_lt_prog_compiler_pic
25044
25045 # How to pass a linker flag through the compiler.
25046 wl=$lt_lt_prog_compiler_wl
25047
25048 # Compiler flag to prevent dynamic linking.
25049 link_static_flag=$lt_lt_prog_compiler_static
25050
25051 # Does compiler simultaneously support -c and -o options?
25052 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25053
25054 # Whether or not to add -lc for building shared libraries.
25055 build_libtool_need_lc=$archive_cmds_need_lc
25056
25057 # Whether or not to disallow shared libs when runtime libs are static.
25058 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25059
25060 # Compiler flag to allow reflexive dlopens.
25061 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25062
25063 # Compiler flag to generate shared objects directly from archives.
25064 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25065
25066 # Whether the compiler copes with passing no objects directly.
25067 compiler_needs_object=$lt_compiler_needs_object
25068
25069 # Create an old-style archive from a shared archive.
25070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25071
25072 # Create a temporary old-style archive to link instead of a shared archive.
25073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25074
25075 # Commands used to build a shared archive.
25076 archive_cmds=$lt_archive_cmds
25077 archive_expsym_cmds=$lt_archive_expsym_cmds
25078
25079 # Commands used to build a loadable module if different from building
25080 # a shared archive.
25081 module_cmds=$lt_module_cmds
25082 module_expsym_cmds=$lt_module_expsym_cmds
25083
25084 # Whether we are building with GNU ld or not.
25085 with_gnu_ld=$lt_with_gnu_ld
25086
25087 # Flag that allows shared libraries with undefined symbols to be built.
25088 allow_undefined_flag=$lt_allow_undefined_flag
25089
25090 # Flag that enforces no undefined symbols.
25091 no_undefined_flag=$lt_no_undefined_flag
25092
25093 # Flag to hardcode \$libdir into a binary during linking.
25094 # This must work even if \$libdir does not exist
25095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25096
25097 # Whether we need a single "-rpath" flag with a separated argument.
25098 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25099
25100 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25101 # DIR into the resulting binary.
25102 hardcode_direct=$hardcode_direct
25103
25104 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25105 # DIR into the resulting binary and the resulting library dependency is
25106 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25107 # library is relocated.
25108 hardcode_direct_absolute=$hardcode_direct_absolute
25109
25110 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25111 # into the resulting binary.
25112 hardcode_minus_L=$hardcode_minus_L
25113
25114 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25115 # into the resulting binary.
25116 hardcode_shlibpath_var=$hardcode_shlibpath_var
25117
25118 # Set to "yes" if building a shared library automatically hardcodes DIR
25119 # into the library and all subsequent libraries and executables linked
25120 # against it.
25121 hardcode_automatic=$hardcode_automatic
25122
25123 # Set to yes if linker adds runtime paths of dependent libraries
25124 # to runtime path list.
25125 inherit_rpath=$inherit_rpath
25126
25127 # Whether libtool must link a program against all its dependency libraries.
25128 link_all_deplibs=$link_all_deplibs
25129
25130 # Set to "yes" if exported symbols are required.
25131 always_export_symbols=$always_export_symbols
25132
25133 # The commands to list exported symbols.
25134 export_symbols_cmds=$lt_export_symbols_cmds
25135
25136 # Symbols that should not be listed in the preloaded symbols.
25137 exclude_expsyms=$lt_exclude_expsyms
25138
25139 # Symbols that must always be exported.
25140 include_expsyms=$lt_include_expsyms
25141
25142 # Commands necessary for linking programs (against libraries) with templates.
25143 prelink_cmds=$lt_prelink_cmds
25144
25145 # Commands necessary for finishing linking programs.
25146 postlink_cmds=$lt_postlink_cmds
25147
25148 # Specify filename containing input files.
25149 file_list_spec=$lt_file_list_spec
25150
25151 # How to hardcode a shared library path into an executable.
25152 hardcode_action=$hardcode_action
25153
25154 # ### END LIBTOOL CONFIG
25155
25156 _LT_EOF
25157
25158 cat <<'_LT_EOF' >> "$cfgfile"
25159
25160 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25161
25162 # func_munge_path_list VARIABLE PATH
25163 # -----------------------------------
25164 # VARIABLE is name of variable containing _space_ separated list of
25165 # directories to be munged by the contents of PATH, which is string
25166 # having a format:
25167 # "DIR[:DIR]:"
25168 # string "DIR[ DIR]" will be prepended to VARIABLE
25169 # ":DIR[:DIR]"
25170 # string "DIR[ DIR]" will be appended to VARIABLE
25171 # "DIRP[:DIRP]::[DIRA:]DIRA"
25172 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25173 # "DIRA[ DIRA]" will be appended to VARIABLE
25174 # "DIR[:DIR]"
25175 # VARIABLE will be replaced by "DIR[ DIR]"
25176 func_munge_path_list ()
25177 {
25178 case x$2 in
25179 x)
25180 ;;
25181 *:)
25182 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25183 ;;
25184 x:*)
25185 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25186 ;;
25187 *::*)
25188 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25189 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25190 ;;
25191 *)
25192 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25193 ;;
25194 esac
25195 }
25196
25197
25198 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25199 func_cc_basename ()
25200 {
25201 for cc_temp in $*""; do
25202 case $cc_temp in
25203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25205 \-*) ;;
25206 *) break;;
25207 esac
25208 done
25209 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25210 }
25211
25212
25213 # ### END FUNCTIONS SHARED WITH CONFIGURE
25214
25215 _LT_EOF
25216
25217 case $host_os in
25218 aix3*)
25219 cat <<\_LT_EOF >> "$cfgfile"
25220 # AIX sometimes has problems with the GCC collect2 program. For some
25221 # reason, if we set the COLLECT_NAMES environment variable, the problems
25222 # vanish in a puff of smoke.
25223 if test set != "${COLLECT_NAMES+set}"; then
25224 COLLECT_NAMES=
25225 export COLLECT_NAMES
25226 fi
25227 _LT_EOF
25228 ;;
25229 esac
25230
25231
25232
25233 ltmain=$ac_aux_dir/ltmain.sh
25234
25235
25236 # We use sed instead of cat because bash on DJGPP gets confused if
25237 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25238 # text mode, it properly converts lines to CR/LF. This bash problem
25239 # is reportedly fixed, but why not run on old versions too?
25240 sed '$q' "$ltmain" >> "$cfgfile" \
25241 || (rm -f "$cfgfile"; exit 1)
25242
25243 mv -f "$cfgfile" "$ofile" ||
25244 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25245 chmod +x "$ofile"
25246
25247 ;;
25248
25249 esac
25250 done # for ac_tag
25251
25252
25253 as_fn_exit 0
25254 _ACEOF
25255 ac_clean_files=$ac_clean_files_save
25256
25257 test $ac_write_fail = 0 ||
25258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25259
25260
25261 # configure is writing to config.log, and then calls config.status.
25262 # config.status does its own redirection, appending to config.log.
25263 # Unfortunately, on DOS this fails, as config.log is still kept open
25264 # by configure, so config.status won't be able to write to it; its
25265 # output is simply discarded. So we exec the FD to /dev/null,
25266 # effectively closing config.log, so it can be properly (re)opened and
25267 # appended to by config.status. When coming back to configure, we
25268 # need to make the FD available again.
25269 if test "$no_create" != yes; then
25270 ac_cs_success=:
25271 ac_config_status_args=
25272 test "$silent" = yes &&
25273 ac_config_status_args="$ac_config_status_args --quiet"
25274 exec 5>/dev/null
25275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25276 exec 5>>config.log
25277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25278 # would make configure fail if this is the last instruction.
25279 $ac_cs_success || as_fn_exit 1
25280 fi
25281 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25283 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25284 fi
25285
25286